I wanted to use rebkell's logic to fix gaps in the AC3 stream in HDPVR files, in a command line program that I can run as a step under my own workflow manager. I didn't notice that he had already done something similar in KLSync - so I did my own derivative version, simply called cleanac3. It is based on the 12/30/2008 version of MyAnalyzer. It does have a slightly different command line, assumptions, and internal organization: 1. since I am using tsmuxer to remux, and it can pull the video straight out of the original file, by default cleanac3 writes the ac3 stream to file and does not write the video stream to its own file 2. the command line allows options to turn off the audio file and turn on the video, -a and +h respectively 3. I put rebkell's logic that extracts and fixes the stream into a separate class, which could make it easier to re-use. Posted here for anyway to use in any way they may wish, "in the hope that it may be useful but without warranty of any kind", at your own risk. the_tom