PDA

View Full Version : Audio/video sync issues when capturing video in VirtualDub


eljainc
18th December 2008, 23:47
Hello,

I am having a problem that is continually occurring. I'm using VirtualDub, version 1.7.0, to capture audio/video. The video is being captured and saved to an AVI file and compressed using DivX (6.5 I believe). The video is lagging the audio. It seems that as the time goes further, the audio becomes off by more. By about 20 minutes into the video, the audio precedes the video by roughly 2 seconds.

I am encoding the audio using MP3, in stereo at 44,100 samples/sec.

I have tried some of the options: Sync to Audio, although this is supposed to be for preview only, right?

I have also tried some of the settings under Capture/timing: i.e. Resync mode, correct video timing. None of these seem to have any effect.

How can I fix this problem? I do not wish to recode my AVI files. I would like the initial compression to be the final output.


Thanks
Mike

[P]ako
19th December 2008, 18:48
what is the FPS rate of the video in question?

setarip_old
20th December 2008, 01:21
@eljainc

Hi!

1) For future reference, you might try setting the audio capture to (Uncompressed) .WAV format. Typically, this will avoid the out of synch problem you're having. Under VirtualDub, it will then take only a couple of minutes to convert the audiostream to .MP3.

2) Is there a specific reason you're not using the most recent version of VirtualDub?

3) Load the file into VirtualDub, VirtualDubMod, or NanDub.
Set BOTH "Video"(VirtualDub,
VirtualDubMod and NanDub) and "Audio"
(VirtualDub and NanDub - VirtualDubMOD>"Streams>"Stream
list") to "Direct Stream Copy".

A) If the difference between audio and video is constant
throughout the video:

From the "Audio" dropdown menu, select "Interleaving" (For
VirtualDubMOD, rightclick on the listed audiostream and then
select "Interleaving")

Under "Audio skew correction", set an appropriate number of
milliseconds (positive or negative) in the box labelled "Delay
audio track by"

Save with a new filename

B) If the difference increases as the movie plays:

From under the "Video" dropdown menu, select "Framerate" -
and select "Change so video and audio durations match"

Save with a new filename

Let us know of your success ;>}