Log in

View Full Version : ASF to Batch Batch Help


SKiTLz
18th October 2005, 05:58
Im trying to batch convert a directory of wmv (ASF) to AVI. Im using VirtualDub and AVISynth.

Im wondering what the best method is?

So far I have to create an AVS file for each ASF with the following.


DirectShowSource("E:\video.wmv",fps=15)


Then I have to process each one manually in VDub. Can anyone give me some pointers on how to automate this process some more? All videos are the same FPS etc. I just need straight AFS to AVI.

Thanks guys.

stickboy
18th October 2005, 11:08
generate avs-script for similar sourcefiles in directory (http://forum.doom9.org/showthread.php?p=520674)

And then in VirtualDub, go to File > Job Control > Edit > Process Directory. You'll probably want to keep all the .avs files in a separate directory.

SKiTLz
18th October 2005, 22:17
perfect. thanks mate

IanB
20th October 2005, 14:16
Ultimatly you will probably want
DirectShowSource("E:\video.wmv", fps=15, convertfps=true)

(note :- convertfps is a 2.5.6 feature)

SKiTLz
21st October 2005, 04:54
Unfortunately all my videos seem to have varying FPS. Should I still use this?

IanB
21st October 2005, 06:40
When using ASF format files (and derivatives like wmv) you probably always want convertfps=true. ASF is implicitly variable frame rate, any resemblance to constant frame rate is usually a reflection on the original source material being explicitly so. During processing any duplicate (or near duplicate) frames can be replaced with a single frame with double the duration, this is a very common compression enhancement ASF formats use.

Think about it this way, ASF files do NOT have a frame rate, each frame has an individual duration independant of all other frame durations.

To work out what the frame rate of the original source material most likely was use convertfps=true, fps=120 (or some other appropriately high rate, like 100). Use the Dup filter with the show option to view the stream. The pattern of duplicate frames allows you to calculate the original source frame rate. 5 duplicates implies 24fps, 4 duplicate implies 30fps, a 55554 pattern implies 25fps (confirm with 100fps). I'm sure you get the idea.

Search the forum for variable framerate and hybrid material for hints on how to best process it.