Log in

View Full Version : Delay Problem


Ranguvar
1st November 2007, 00:38
When I capture video with my capture card to MPEG-2, it saves the audio as MPEG Layer-2 384kb/s CBR stereo audio in the MPG. I index the MPG and demux the audio streams. I then open an AviSynth script for the D2V in VirtualDubMod, find the part I want cut out, and select it. I then add in the MPA audio stream. I then save into an AVI with ffdshow's HuffYUV codec, and the same audio stream. Now I'm making a montage, and I'm adding in all the clips. The editor I'm using doesn't support the audio in the AVI, so I use VirtualDubMod to demux the audio back out of each clip.The problem is, when I add the video clip and audio clip into Vegas, the audio is 1 second (approx.) smaller.

My theory is that this is from the 144ms "delay" in the DGIndex demuxed original audio. So what can I do? Should I add 144ms of silence to the beginning of the audio clips, or the end? I'm a little confused as to what DGIndex means by "delay".

:thanks:

Guest
1st November 2007, 00:43
Demuxed audio files will be named after the project name and additional parameters of the audio format.
For example: "MyProject T01 3_2ch 448Kbps DELAY -248ms.ac3".

An important number is contained in the filename of the demultiplexed audio file: the delay correction for the audio relative to the video. In the example above, the audio delay correction is reported as -248 milliseconds. That means that the audio should be advanced by 248 milliseconds. The number -248 could thus be entered directly into VirtualDub's "Audio Skew Correction" edit box to achieve audio/video synchronization.

Ranguvar
1st November 2007, 00:45
As an alternative, can I add 144ms of silence to the beginning of the audio clip in Audacity? So, 6,912 samples.

Guest
1st November 2007, 00:47
Yes, you can add silence for positive delays.

Ranguvar
1st November 2007, 00:48
It was a negative delay, I think. As in, the end of the demuxed audio was "DELAY -144ms.mpa"

Guest
1st November 2007, 03:31
If it is negative, you have to DELETE that much audio, not add it.

Ranguvar
1st November 2007, 03:58
I found a way to do it simply right in Vegas - but thanks for all your help!