Log in

View Full Version : wmv to avi


rjc7394
14th April 2009, 21:25
I've converted wmv to avi (XviD) before using virtualdubmod but I'm having trouble with this wmv conversion. I imported wmv (via avisynth) as fps=29.97 into virtualdubmod. I converted the audio (wma) to mp3 and both video and audio came out to the same length (45:50). Then I muxed them together and the audio is way out of sync with video so I tried to manually sync the audio with the video but sections are still out-of-synch. What am I doing wrong?

Inspector.Gadget
14th April 2009, 21:49
Use DirectShowSource(,audio=true) as your input for an audio encoder (e.g., MeGUI's audio encoder) as well as the input for your video encoder. I think (though I may be wrong) that this should feed your audio encoder silence for any delay set in the ASF container and ensure the A/V sync of the output file.

rjc7394
14th April 2009, 23:01
I used Directshowsource ("C:\filename.wmv", fps=29.97, audio=false) to encode the wmv->avi then wma->mp3 and audio was out-of-synch.

Inspector.Gadget
15th April 2009, 02:56
Hmmm...try it without DirectShowSource then, e.g. use ASFBinGUI to demux the WMA audio and encode it with something like foobar2000, dbpoweramp, or MeGUI's audio encoder tool.

rjc7394
15th April 2009, 04:15
Directshowsource is the only way to import wmv into Virtualdubmod?

Midzuki
15th April 2009, 04:42
Windows Media Audio can have "variable sample rate", much like Ogg Vorbis, and this feature may lead to sync issues if the format conversion is done "carelessly". I have found two methods for doing an appropriate decompression/recompression of wma streams, 1) = via Winamp's DiskWriter plugin, 2) = via WMVmuxer or Windows Media Encoder. Please take a look at the URLs below:

http://forum.videohelp.com/topic346029.html

and

http://msdn.microsoft.com/en-us/library/dd443447(VS.85,loband).aspx

HTH.

movmasty
3rd May 2009, 19:05
I've converted wmv to avi (XviD) before using virtualdubmod but I'm having trouble with this wmv conversion. I imported wmv (via avisynth) as fps=29.97 into virtualdubmod. I converted the audio (wma) to mp3 and both video and audio came out to the same length (45:50). Then I muxed them together and the audio is way out of sync with video so I tried to manually sync the audio with the video but sections are still out-of-synch. What am I doing wrong?
there is a plugin to load wmv in vdub (not the mod)http://home.comcast.net/~fcchandler/index.html

generally to solve sync problem save the audio as wav then load the saved wav and compress in mp3 together with the video

or asftools3.1 can write a wav heder for the wma letting to load it in vdub and saving as direct stream copy

then sometime to save video and audio(in mp3) separetely could give sync problems that there are not saving them together,
specially when you cut some part of the video