Log in

View Full Version : ASF/WMV conversion in VirtualDub


Slekvak
29th May 2007, 15:16
Hi,

I've been trying to convert a ASF/WMV file to XviD/MP3 using VirtualDub. Whatever config I may try, I always end up with audio/video unsynced. Is there another, better method, or am I doing anything wrong? Are there any Tips and/or Tricks?

Thanks

LoRd_MuldeR
29th May 2007, 15:50
Frameserve the WMV file into VirtualDub with an up-to-date version of Avisynth!
http://sourceforge.net/project/showfiles.php?group_id=57023&package_id=72557&release_id=366702

The following script should do the job:
DirectShowSource("C:\Path to WMV\Foobar.wmv", fps=25, convertfps=true)

The fps and convertfps options are required, as VFR -> CFR conversion is mandatory!
Of course you may have to adjust the framerate to your specific input video...

Slekvak
29th May 2007, 16:17
I did try that, and I got an error when opening the file in VDub. Something along the lines "Timeout waiting for graph". Will try the newest version (if that's not what I have already).

LoRd_MuldeR
29th May 2007, 16:32
I did try that, and I got an error when opening the file in VDub. Something along the lines "Timeout waiting for graph". Will try the newest version (if that's not what I have already).

Does your WMV file play in GraphEdit ???

Slekvak
29th May 2007, 17:01
Tried updating AviSynth, and the file seems to open fine in GraphEdit. When opening in VirtualDub (newest), it freezes and after some seconds this error appears:

Avisynth open failure:
DirectShowSource: Could not open as video or audio
Video returned: "DirectShowSource: Timeout waiting for graph to start."
Audio returned: "DirectShowSource: Timeout waiting for graph to start."

(C:\video.avs, line 1)

LoRd_MuldeR
29th May 2007, 17:34
You could still try to do the first step of conversion with mencoder:
mencoder.exe -ovc lavc -oac pcm -lavcopts vcodec=ffv1 -ofps 25 -o C:\out.avi "C:\Path to Video\Foobar.wmv"

Then do the further editing in VDub...