PDA

View Full Version : Delay in .TS Stream


Peter von Frosta
7th February 2007, 11:17
First of all, I'd like you to know that I did try a search, so please don't hit me if this has been discussed, I just couldn't find something that's fitting.

As you all are aware, after grabbing a transportstream from DVB-S2 the audio/video will have a delay. If you don't do anything with the .TS file this won't matter at all, because the delay is stored in the file itself.
Sadly, I want to do something with this stream, basicly demux and remux it in the official HD-DVD format. Problem is, how do I get the delay correct?
Demuxing itself is no problem, and then I tried to manually sync it with mplayer (mplayer should be able to change a/v delay while watching) but somehow I seem to be unable to get the correct delay.
Is there any way to get the a/v delay directly from the original .TS file?

neuron2
7th February 2007, 15:55
There is no single delay value in the file. It all depends on where you start demuxing in the stream and what the audio and video PTS stamps are at that point.

You can try setting your starting point in DGIndex and then doing Save Project. The delay will be given in the file name of the demuxed audio.

My most recent build of DGIndex has a new tool for displaying the delays you would encounter if you started the project at any given I frame. I will release that beta this weekend.

Peter von Frosta
7th February 2007, 16:20
Video is h264, can DGIndex handle this?

neuron2
7th February 2007, 17:52
Not currently; it's being developed.

Peter von Frosta
7th February 2007, 18:00
Okay, then I'll just wait.

drmpeg
8th February 2007, 08:07
Okay, then I'll just wait.
You can use my command line tool in the meantime. It cuts the audio to match the first I-frame, so the audio delay is always zero (or close to zero, the residual delay reported is in 90 kHz ticks).

http://www.w6rz.net/xport.zip

Ron