THIS program is ONLY FOR .ts RECORDINGS MADE WITH THE HAUPPAUGE HDPVR 1212 unit: KLSync.exe is a console application written to demux ONLY HDPVR 1212 RECORDINGS WITH AC3 AUDIO @ 48KHz. It will create 4 files, a .264 file with the same base name as the recording, an ac3 file same as the .264 file, another file mystamps.txt that will record all the audio and video timestamps and another file called tsinfo.txt which is really a leftover file and does nothing :) I have been experiencing audio dropouts while recording with the HDPVR unit, this causes a problem when I want to re-encode the recording, every time there is an audio dropout the video will continue on sometimes up to 7 or 8 video frames before the unit resets itself and gets things back in sync. This causes audio/video sync problems when demuxing and then remuxing. The program tries to find the last good section with audio and video and drops the rest until the unit resets itself. It comes in handy if you are like me and record off of the DVR and jump through the commercials, these will always cause major audio/video sync issues, this program will hopefully allow you to jump around and still keep sync after demuxing. There is a possiblility of missing an audio frame every so often, if the error occurs near the point where another audio frame would be inserted. You can look at the mystamps.txt file and see the audio video frames, and you will notice that about every 24 or 25 frames an extra audio frame will be inserted. AC3 @ 48KHz lengths are 32ms, whereas the 29.97 Video frames are 33.333ms each. the following command: KLSync HDPVR_Recording.ts will create the following files in the same directory as the HDPVR_Recording.ts file: HDPVR_Recording.264 HDPVR_Recording.ac3 mystamps.txt NOTE: the audio delay will be reported at the end of the demuxing. Revisions: 2/3/09 - Fixed bug that was actually dropping an audio Frame on restarts 2/3/09 - Added Padding of AC3 Frames to restore sync 2/4/09 - Had a bug in previous version, Restarts were to close together caused crash, put in tests for the condition 2/26/09 - Added additional capability to demux 59.97 FPS captures, KLSync720.exe should work with 29.97 or 59.97 Dropped the tsinfo.txt file, audio delays and avg bitrate reported in file and console 4/17/09 - Tweaked the output reported on the command line, also mystamps.txt is now basefilename.txt