PDA

View Full Version : VDub MPEG-4 Compression (command line)


flanagann
6th November 2008, 13:01
Hi!

I'm trying to compress some videos to MPEG-4 using ffdshow and VirtualDub with command line execution.

I've read VirtualDub scripting tutorials but I don't know how to start. I haven't found any clear example.

I suppose I'll have to use functions like:
VirtualDub.video.SetCompression(0x34363278,0,10000,0);
VirtualDub.video.SetCompData(...)

Which information do I have to write in each parameter?? Where can I find the information related to MPEG-4 and ffdshow options??

Any help is appreciated!
Regards

smok3
6th November 2008, 13:07
here is an example for huffyuv;
http://somestuff.org/bat/vdubhuff.zip
(the *.script file can be made by looking at the virtualdub *.job file, so make some mpeg4 jobs and extract info from there, the bat in this example expects filelist as input (as opposed to file path))

flanagann
6th November 2008, 13:36
here is an example for huffyuv;
http://somestuff.org/bat/vdubhuff.zip
(the *.script file can be made by looking at the virtualdub *.job file, so make some mpeg4 jobs and extract info from there, the bat in this example expects filelist as input (as opposed to file path))
Thank you for answering so fast!!

VirtualDub.video.SetCompression(0x75796668,0,10000,0);

Supposing '0x75796668' is for Huffyuv, what would be the fcchandler for ffdshow? And the Compressing options?

flanagann
6th November 2008, 13:41
Thank you for answering so fast!!

VirtualDub.video.SetCompression(0x75796668,0,10000,0);

Supposing '0x75796668' is for Huffyuv, what would be the fcchandler for ffdshow? And the Compressing options?

Oooops... I answered really fast, without completely reading your comment.

I created some MPEG-4 compression jobs and I can get the info from there. I'm going to try if it works via command line.

Nice explanation here:
http://www.ericphelps.com/scripting/samples/VirtualDub/savevcf.gif