PDA

View Full Version : DVB-T ts streams - how is audio/video sync maintained?


lchiu7
23rd November 2008, 03:19
I capture DVB-T streams using a Hauppauge Nova-T 500 (these are usually H.264/AAC or H.264/AC-3). I have an external UHF antenna.

When viewing these streams using PowerDVD8 I can occasionally see video glitches (dropouts, momentary freezes) but the AV stays in sync. The sync remains even if I edit the streams using TS Packed Editor. However if I demux the video and audio and try to mux a different audio streams back, at the point of the glitches, the AV sync goes out.

The glitches play havoc occasionally with programs that process the video stream (dgavcindex will generate errors or stop prematurely, H264cutter will abort) but I guess they were never written to handle these kinds of error situations.

I am assuming (this is not an area of expertise of mine) that the original streams contain time code information in the packets that allow the playback devices/software to maintain sync. But once the audio is say removed and converted and muxed back (I am using txmuxer) those timecodes no longer exist and so should there be drops in the signal, there are no codes for the software to lock back onto?

If so then at least I know what I am dealing with.

Thanks

neuron2
23rd November 2008, 03:28
That's right. When you demux to elementary streams the timestamps are lost. When you remux, the muxer adds new stamps, but they are not aligned right anymore. We need an app like ProjectX for AVC, which can fix this kind of issue.

rebkell
23rd November 2008, 03:44
You could try eac3to and use the -ignorediscon switch, it will try to remedy the stream and sync it back up, I've had limited success doing this, eac3to is a great program, but when the stream is really corrupted it's 50/50 whether it will work correctly.

lchiu7
23rd November 2008, 07:26
That's right. When you demux to elementary streams the timestamps are lost. When you remux, the muxer adds new stamps, but they are not aligned right anymore. We need an app like ProjectX for AVC, which can fix this kind of issue.

That would be good but I can't see anywhere where such development is occurring. At present the best I can do is cut around the bad part and/or segment the file before the glitch occurs and after it and create two different files which each are in sync. Then just add them together.