PDA

View Full Version : vdub from command line


falconfighter
22nd February 2004, 02:55
What I'd like to do is run VDub from a batch script, with something like:
virtualdub.exe -configuration "config.vcf" -output "file.avi"
is this possible?
if not, how far can I get with a command line?

Leak
22nd February 2004, 13:36
Originally posted by falconfighter
What I'd like to do is run VDub from a batch script, with something like:
virtualdub.exe -configuration "config.vcf" -output "file.avi"
is this possible?
if not, how far can I get with a command line?

Well, I didn't find it in my VirtualDub 1.5.10 folder, but at least VirtualDubMod 1.5.10.1 comes with a VirtualDubMod.chm that documents all functions you can use in a VCF script file for it.

My script for the first episode of Noir looks like this:


VirtualDub.Open("e:/DVD/Noir_1/Noir_01/Data_MPEG/Noir_01.avs",0,0);
VirtualDub.RemoveInputStreams();
VirtualDub.stream[0].SetSource("e:/DVD/Noir_1/Noir_01/VIDEO_TS/Audio_English.mp3",0x0202,0);
VirtualDub.stream[0].SetMode(0);
VirtualDub.stream[0].SetInterleave(1,500,1,0,0);
VirtualDub.stream[0].SetClipMode(1,1);
VirtualDub.stream[0].SetConversion(0,0,0,0,0);
VirtualDub.stream[0].SetVolume();
VirtualDub.stream[0].SetCompression();
VirtualDub.stream[0].EnableFilterGraph(0);
VirtualDub.stream[0].filters.Clear();
VirtualDub.video.SetDepth(24,24);
VirtualDub.video.SetMode(1);
VirtualDub.video.SetFrameRate(0,1);
VirtualDub.video.SetIVTC(0,0,-1,0);
VirtualDub.video.SetRange(0,0);
VirtualDub.video.SetCompression(0x64697678,0,10000,0);
VirtualDub.video.SetCompData(3012,"AQAAA...");
VirtualDub.video.filters.Clear();
VirtualDub.SaveAVI("e:/DVD/Noir_1/Noir_01/Data_MPEG/Noir_01_Pass1.avi");
VirtualDub.Close();

(Note: I've abbreviated the SetCompData call a bit, it's string is much longer and contains the VfW compression settings struct for the codec you've chosen...)

The easiest way to create one is to use "Save processing settings..." in VDubMod and then just add/change the VirtualDub.Open, VirtualDub.stream[x].SetSource, VirtualDub.SaveAVI and VirtualDub.Close calls at the appropriate positions.

Then start VDubMod with

<path>\VirtualDubMod.exe /x /s"<your VCF file>"

and watch it do it's magic... :)

np: N.M.B. Allstars - Gytolie (SMAK comp.)

falconfighter
22nd February 2004, 14:06
thanks leak - that's two yoou've solved. I should hire you or something. :)