I have many 2 gig mpeg-2 files I'd like to batch encode to xvid. I have seen bat files that use nandub to do this, but i can't remember where. I thought you simply load one in the software, then save your settings and then write something into a batch file and it goes to work....Can someone point me to a guide that'll show me how to do this?
Thanks
+ Reply to Thread
Results 1 to 7 of 7
-
http://encoding.n3.net <-- for all your DVD and CD backup needs!
-
If you use Virtualdub MPEG2, as you save you can add it to job control. Once you have all of your files and passes saved just go to job control and click start.
-
Yeah, I know about the job control in VD and VDmod. I know that one can save the settings also. If it do it the way you're suggesting, I'll have to load every file (it takes a looooooong time for them to load up since the software pasrses the interleaved MPEG-2 file each time it loads one) and then apply the settings, save to job control, modify settings for 2nd pass, save to job control, repeat 40 times.
My question is: how can I use a DOS commandline to drive the software using my saved settings? That way, I can dump an entire directory to be encoded.
I found the following in the help file:
Here is a list of commandline options you can use when launching VirtualDubMod.
First of all options coming from VirtualDub :
Option Comment
/s"ScriptFile.vcf" Execute the specified script file.
/c Clear the job list.
/p"srcfile","dstfile" Add file batch process to job list.
/b"srcdir","dstdir" Add directory batch process to job list.
/r Run the job list.
/x Exit when jobs complete.
/h Disable the crash handler.
/w Set the global g_fWine flag to true, which make some display function behave differently.
Maybe fix some issues when running the program under Wine ...
/fsck Make VirtualDub crash (to test the crash handler).
Note that when specifying file or directories to process there are no spaces between the switch and the name specified between quotes.
Now options added in VirtualDubMod :
Option Comment
/log Generates the vdenc.log log file when recompressing video.
Each line give information about a frame (first number gives the kind of frame - 1 for keyframe, 0 for others -, the second number give the size of the compressed frame.
/log"LogFile.log" With this one you can specify where will be written the log file.
/nowrite This one prevents VirtualDubMod from actually writing the video data in the output file.
the log and nowrite options have been proposed and added by jonny, author of DivX5Enc.http://encoding.n3.net <-- for all your DVD and CD backup needs! -
I have written an app in VB that rips, demuxes and re-encodes audio and video. It is controlled by a batch file. I'm sure that you could get something working.
All you would need to do is set your desired settings as the default (assuming you want the same settings applied to each file) and then execute from the command line or create a batch file with the following:
virtuldubmod.exe /bc:\<sourcedir> c:\<destdir> /r /x
where sourcedir is your source directory and <destdir> is your destination directory and assuming virtualdubmod.exe is the exe file. You may even have to put the full path to the exe ie. c:\virtualdubmod\virtualdubmod.exe.If in doubt, Google it. -
How do I save them as default? I have two different settings, one for pass 1 and a second for pass two. Each is saved in it's own file.
http://encoding.n3.net <-- for all your DVD and CD backup needs! -
Originally Posted by graysky
There should be a way to say that you want the 1st pass settings to be the default every time you start virtualdub. When you go into virtualdubmod and load your settings from the file, exit the program. Go back into the program. Are the settings retained ?
I think what you need to do is set your 1st pass settings as the default, run the batch command taking your source directory and outputting to a temporary directory, set your 2nd pass settings as the default, run the batch command taking the temporary directory and outputting to your final destination directory.
I know the theory but haven't ever tried doing it in virtualdubmod so I can't really help you on specifics.If in doubt, Google it.
Similar Threads
-
Converting 25fps XVID to 29.97 MPEG2
By dkrajisnik in forum Video ConversionReplies: 6Last Post: 21st Sep 2010, 14:46 -
XVID to MPEG2-TS
By videotinker in forum Video ConversionReplies: 1Last Post: 30th Aug 2010, 03:37 -
MPEG2 to Xvid with Virtualdubmod
By Cazz in forum EditingReplies: 25Last Post: 26th Feb 2008, 13:49 -
Newbie stuck @ mpeg2 > xvid conversion
By kamaleon in forum Video ConversionReplies: 29Last Post: 29th Jan 2008, 17:45 -
Xvid to mpeg2 - bitrates
By 2nickelstripper in forum Video ConversionReplies: 10Last Post: 6th Dec 2007, 08:26