Log in

View Full Version : wmv to avi sync issue


rakan
7th June 2008, 03:16
Hello

I am trying to convert a wmv file to an avi file. The WMV file is I know that the wmv is a vfr video so I opened it in graphedit and extracted the audio stream as a wav file and encapsulated the video stream in an mkv file. Now here are the file lengths...

Original.wmv 1083.431 seconds
videostream.mkv 1083.417 seconds
audiostream.wav 1080.468 seconds

So the audio stream is now 3 seconds slower than the video stream. I tried to fix this by compressing the videostream.mkv using megui and then lengthening the audiostream.wav by three seconds using audacity. However, when I muxed them together as an .avi file the audio is still out of sync. I think the best way would be to get the video to play faster or somehow compress that extra three seconds of the video stream. How would I do this? Thanks.

setarip_old
7th June 2008, 03:35
Hi!when I muxed them together as an .avi file the audio is still out of syncLoad 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 ;>}

rakan
7th June 2008, 05:14
Thanks setarip_old

I tried option B and it seemed to work well. However I noticed that the more I skip around in the movie (i.e. fast forward and reverse and fast forward) that the audio becomes more and more unsynced especially in the middle of the movie. This doesn't happen in the original movie. I'm not sure how to address this. I figured that going from vfr to cfr would be tough but I wasn't expecting this.

I read somewhere that you can use vdub to compress your movie to shave off the extra three seconds that my video stream has but I'm not sure how to go about doing this.

roozhou
7th June 2008, 08:17
Use WMVTIMES to extract timecode_v2 from wmv/asf and use mmg to remux your cfr mkv -> vfr mkv.