Current version

v1.10.4 (stable)

Navigation

Main page
Archived news
Downloads
Documentation
   Capture
   Compiling
   Processing
   Crashes
Features
Filters
Plugin SDK
Knowledge base
Contact info
Forum
 
Other projects
   Altirra

Search

Archives

01 Dec - 31 Dec 2013
01 Oct - 31 Oct 2013
01 Aug - 31 Aug 2013
01 May - 31 May 2013
01 Mar - 31 Mar 2013
01 Feb - 29 Feb 2013
01 Dec - 31 Dec 2012
01 Nov - 30 Nov 2012
01 Oct - 31 Oct 2012
01 Sep - 30 Sep 2012
01 Aug - 31 Aug 2012
01 June - 30 June 2012
01 May - 31 May 2012
01 Apr - 30 Apr 2012
01 Dec - 31 Dec 2011
01 Nov - 30 Nov 2011
01 Oct - 31 Oct 2011
01 Sep - 30 Sep 2011
01 Aug - 31 Aug 2011
01 Jul - 31 Jul 2011
01 June - 30 June 2011
01 May - 31 May 2011
01 Apr - 30 Apr 2011
01 Mar - 31 Mar 2011
01 Feb - 29 Feb 2011
01 Jan - 31 Jan 2011
01 Dec - 31 Dec 2010
01 Nov - 30 Nov 2010
01 Oct - 31 Oct 2010
01 Sep - 30 Sep 2010
01 Aug - 31 Aug 2010
01 Jul - 31 Jul 2010
01 June - 30 June 2010
01 May - 31 May 2010
01 Apr - 30 Apr 2010
01 Mar - 31 Mar 2010
01 Feb - 29 Feb 2010
01 Jan - 31 Jan 2010
01 Dec - 31 Dec 2009
01 Nov - 30 Nov 2009
01 Oct - 31 Oct 2009
01 Sep - 30 Sep 2009
01 Aug - 31 Aug 2009
01 Jul - 31 Jul 2009
01 June - 30 June 2009
01 May - 31 May 2009
01 Apr - 30 Apr 2009
01 Mar - 31 Mar 2009
01 Feb - 29 Feb 2009
01 Jan - 31 Jan 2009
01 Dec - 31 Dec 2008
01 Nov - 30 Nov 2008
01 Oct - 31 Oct 2008
01 Sep - 30 Sep 2008
01 Aug - 31 Aug 2008
01 Jul - 31 Jul 2008
01 June - 30 June 2008
01 May - 31 May 2008
01 Apr - 30 Apr 2008
01 Mar - 31 Mar 2008
01 Feb - 29 Feb 2008
01 Jan - 31 Jan 2008
01 Dec - 31 Dec 2007
01 Nov - 30 Nov 2007
01 Oct - 31 Oct 2007
01 Sep - 30 Sep 2007
01 Aug - 31 Aug 2007
01 Jul - 31 Jul 2007
01 June - 30 June 2007
01 May - 31 May 2007
01 Apr - 30 Apr 2007
01 Mar - 31 Mar 2007
01 Feb - 29 Feb 2007
01 Jan - 31 Jan 2007
01 Dec - 31 Dec 2006
01 Nov - 30 Nov 2006
01 Oct - 31 Oct 2006
01 Sep - 30 Sep 2006
01 Aug - 31 Aug 2006
01 Jul - 31 Jul 2006
01 June - 30 June 2006
01 May - 31 May 2006
01 Apr - 30 Apr 2006
01 Mar - 31 Mar 2006
01 Feb - 29 Feb 2006
01 Jan - 31 Jan 2006
01 Dec - 31 Dec 2005
01 Nov - 30 Nov 2005
01 Oct - 31 Oct 2005
01 Sep - 30 Sep 2005
01 Aug - 31 Aug 2005
01 Jul - 31 Jul 2005
01 June - 30 June 2005
01 May - 31 May 2005
01 Apr - 30 Apr 2005
01 Mar - 31 Mar 2005
01 Feb - 29 Feb 2005
01 Jan - 31 Jan 2005
01 Dec - 31 Dec 2004
01 Nov - 30 Nov 2004
01 Oct - 31 Oct 2004
01 Sep - 30 Sep 2004
01 Aug - 31 Aug 2004

Stuff

Powered by Pivot  
XML: RSS feed 
XML: Atom feed 

§ VirtualDub's command line switches

While I'd like to say that the reason I'm posting this is to republish some info I dropped from the old help file, the real reason is that I want to stem the flow of comments about watermelons. I had no idea that salting watermelon was so common. One of my friends suggested that the salt draws water out and makes the melon taste sweeter, but I buy that about as much as the diarrhea-prevention theory a commenter posted. When I tried it I all I tasted was salty watermelon. Maybe I used the wrong kind of salt.

Anyway, about VirtualDub's command-line parameters....

VirtualDub exposes a few switches on its command line that can be used to automate its behavior. Nearly all of them are centered around running scripts, so you cannot do much that is not scriptable -- in particular, you cannot script capture mode at all. However, you can run jobs automatically, which is how the various front-end apps work.

The switches in 1.5.10 and 1.6.0 are, as follows:

There must not be spaces between the switches and their arguments, but you can quote, like: /s"foo bar.vcf" /p"this one.avi","that one.avi". The command line parsing will be a bit cleaner in 1.6.1, and in addition, I'm adding a facility for passing parameters to a script.

You can also load a video file by specifying it on the command-line, but note that it is not loaded until after the command-line has been parsed -- so attempting to load a file that way and then execute a script using /s will not work as intended.

Render and preview operations can be invoked directly and immediately from a script. However, if an error occurs, VirtualDub will stop and display a dialog. If you are automating a pipeline you should construct a job queue instead and run it with /r. This way the errors are deposited into the VirtualDub.jobs file instead and VirtualDub will proceed to the next job. (This file is always located next to the EXE, so make sure the current user has write access to that folder.) VirtualDub always flushes its job queue to disk immediately before starting a render so if it crashes during an operation, the .jobs file will have the failed job in the In Progress state, which is then changed to Aborted on the next load. Remember that VirtualDub is a GUI application, so if you are starting it from the command interpreter you may need to use start /wait to force cmd.exe to pause.

Comments

Comments posted:


Interesting. Is there a way to specify a .vcf file with processing settings to be loaded at startup by chance? Rather than having to manually "Load Processing Settings" from the menu?

That would eliminate one more pointless set of clicks for alot of us who use VDub to re-encode downloaded material. Especially when you're using largely the same codec to compress with and the same filters to adjust image quality,etc

M.James - 16 10 04 - 19:12


Easy, M.James; Just create a shortcut to VirtualDub, right-click the shortcut and click properties, then add the /s"whatever.vcf" to the end of the Target textbox and click OK.

ISV_Damocles - 16 10 04 - 20:48


How can I make a job list? Only using command line? It is very unhandy. If it so, please make visual button or something in VirtualDub (like TMPGEnc "Add current project to batch list").

GMV (link) - 16 10 04 - 22:06


@GMV
Of course you can also add files to the job list from the UI: when saving a file check the box next to "Don't run this job now; add it to .....". To process the job list press F4 and click "Start"

tommazzo - 17 10 04 - 15:39


I use Virtualdub quite often for compressing files and/or extracting them out of bigger files.

A switch containing the path to the configuration script file would be of good help.

Regards and gratulation to your product
Peter

Peter - 24 10 04 - 12:26


Glad to see the thread on salting watermelon die. Can we now start one on salting Pineapple? :-) The best pineapple I've tasted was in the Philippines where they rub the outside of the pineapple with rock salt before slicing it.

garrullo - 25 10 04 - 11:49


Re: pineapple thread... don't even think about it.

Phaeron - 26 10 04 - 01:19


Salting watermelons - the truth! Watermelons are high in potassium (K+), salt is high in sodium (Na+), both of these ions have an effect on nerve cells, e.g. taste receptors, and adding salt improves the taste by providing a balance against the high potassium in the watermelon and your taste receptors work more effectively - so it tastes better. Ttfn, Nick (Just like Zanussi - "the appliance of science")

Nickjd - 02 12 04 - 05:22


i would really like to see at least 3 actual examples with each of these commands, would make life mucho easier.

smok3 (link) - 22 03 05 - 12:13


OK, so let's suppose I have a job list with a day's worth of transcoding. But unfortunately my input files are prone to crash the decoder filter. How do I have VD go on to the next job in case of a crash in a previous one? It's quite annoying to return to the machine only to see it crashed 10 minutes after I've left, and the box sat idle ever since.

mortee - 05 04 05 - 14:24


I am trying to use the following syntax with the virtual dub system, but keep getting "syntax error" coming up. I am completely hopeless at this sort of thing and this is the first time I have attempted using anything like this so please keep it really simple for me!

loadplugin(”…DGDecode.dll”)
mpeg2source(”‘filename.d2v”)

Any help much appreciated.

Cheers

Danielle - 12 09 05 - 11:01


Hey guys,how can you add a directory containing avi files into the job list,without having to open them one by one and adding them with save as?

therock - 18 12 05 - 18:27


That's what I want to do! - I have a folder full of avi and mp3 files and i want to join mux them all together quickly (not as one big file, obviously) and it would be great to do this via commandline instead of manually doing each video with nandub. any ideas? an example is always best...

snowden - 19 04 07 - 09:19


How can I save wav file in command line or in batch mode ?

Asaf Ayoub - 31 05 07 - 18:13


I've built a text file which is a job list for virtual dub. By loading it on the VirtualDub Job Control Dialog it runs perfectly.

How do I do all this in command line mode?

Is there any switch that loads any textfile as joblist then running it?

Claudio Hernandez - 19 06 07 - 07:29


question:

i have 7,000+ video Files and clips encoded in roughly 20 different codecs that i am trying in vane to manually convert to mpeg1 352x240 24 color depth for a website i am building.

what i need is a MS dos script incorpertaing vertual dub & tmpegenc.exe command line switches & MS dos Batch file methonds to acmplish the following actions (I only need to do this once, and will not need to do this again.


1. Parse a dos text files holding a List video files in dos directory format) to be processesed
2. Load each video files one at a time

from a script
3. make virtual dub strip & save the video files audio data to filename(aud).wav
4. make virtual dub strip & save the video files video data to filename(vid).avi Uncompressed rgb data
5. Shoutdown vitual dub

use a ms dos batch command to call TEMPEGENC.exe
6. Start the TEmpegenc & load the filename(vid).avi & Filename(aud).wav files into tmpeg encoder
7. Set the tmpeg output path & filename(re-encoded).mpg
8. Encode the video in tempegenc
9. Close tempegenc.exe after encoding is compleated
10.Repeat steps 1 - 8 on the next file in the seqence until all the files are completed.

does anyone have any idea how to do this?

I have been using MediaCoder in a attemp to automate this process, just to end up with mediacoder generating 375 MPEG1 video files that will not play on a freshly installed windows Xp / Mediaplayer 9 installation or Linux media player.

A special thanks to my buddy "Trent" Videofreaks.com for sending an email saying I should test my files on a fresh windows install (without any additional codecs installed, as the additional codec can make broken video files apear ok.

As a result of this I have removed and deleted MediaCoder as it has way too many confusing settings & ways to make a MPEG1/2 video file (broken & incompatible).

I have had to resort to my trusty video tools (VirtualDub.exe & TEmpgenc.exe) to manually re-encode!!.

these tools work 100% of the time for encoding videos. but it requires me to babysit the process.

Pjillip J - 15 04 08 - 23:07


Here is an example of how I used the command line. I had a folder containing a bunch of avi files, and I want to play them on my Xbox 360 using TVersity. They are already in XVid but the 360 is lousy at scaling and even with the various viewing modes on my HDTV as well as the 360 video player, it's tough to get it just right, as it is either too small or large to fit the screen. I found the solution was to add about 50 pixels of letterboxing to the height, or 25 pixels above and below. Here is an example. My 4:3 content is all at 512x384 and I want to add letterboxing to make it 512x434. I also lowered the bitrate on the audio and video to save space.

Anyway I open one file and set Audio and Video to full processing. Under audio compression I do MP3 and under video a single pass XVID. I add a resize filter and select the "letterbox to W x H" and type in 512x434. I then click File, save processing settings and save the settings file settings.vcf (in the same folder as vdub.) Then from the command line....

vdub /s settings.vcf /b G:\in G:\out

where my video files are in the "in" folder and I want the output going to the "out" folder.

Then back in VirtualDub open the Job list from the file menu and start it. Maybe this will help someone.

Matt - 14 07 08 - 01:24


How can I make a simple script to join two avi files from command line?
How do I pass the files to VirtualDub, and have it join with Direct Stream Copy?
Is there a way to do this?

WhACKO - 24 06 09 - 12:29


I am trying to use vdub to play my xbox 360 on my laptop. the program works great but I would like to make a shortcut to start it up with one click. For example: I would like to make a batch file that would open up vdub in fullscreen mode showing video from capture device but not recording. I tried vdub /capture / max BUT about 5 seconds after it starts up it dissapears. Any pointerS?

Adam - 06 03 10 - 06:27


Hi,

Can virtualdub be used to create movie from set of JPEG files with particular encoding from command line. Any help would be highly appreciated.

Thanks,
Ishwar

Ishwar - 28 10 10 - 16:29


I have the same question as WhACKO which is:

How can I make a simple script to join two avi files from command line?
How do I pass the files to VirtualDub, and have it join with Direct Stream Copy?
Plz help.

Arefin - 25 05 11 - 13:33


I came up with something similar. Maybe it will be useful to somebody. Parallel Virtualdub, not using batch jobs, however easily modded to do so.

copy following to something.bat :
Set Mfps=23.976
Set Bpath="E:\- Video Extractions\Virtualdub\1920x1280 (23.976fps pure,93%%,MPEG2,deinterlaced)auto openNsave.vcf"
rem Set Bpath="E:\- Video Extractions\Virtualdub\852x480 DAR3 (16x9) (24fps,96%%,MPEG2,deinterlaced).vcf"
Set Vdpath="E:\- Video Extractions\Virtualdub\VirtualDub-1.8.8\"
Set Svpath="D:\"

for %%A in (*.mkv *.avi *.mpg *.mpeg *.m2ts *.vob) do >%%~nA.avs echo # M2ts file & >>%%~nA.avs echo SetMemoryMax(128) & >>%%~nA.avs echo DirectShowSource("%%~dpnxA", fps=%Mfps%, audio=true, seekzero = true, convertfps=true) & >>%%~nA.avs echo EnsureVBRMP3Sync() & start /d /x %Vdpath% VirtualDub.exe /i %Bpath% "%%~dpnA.avs" "%Svpath%%%~nA.avi"




rem ---Notes---
rem code requires: Avisynth, virtualdub, pre-existing (.vcf) config file
rem most people prefer to use virtualdub with jobs in queue; run them in sequence. This runs jobs in parallel by searching the directory of the script, finding all listed wildcard masked files below, generating a simple avisynth script file for each file, then opening virtualdub and autosaving the video to .avi
rem caution, this will stress your system. you may only be able to handle 1 file at a time. I can input 30 blueray .m2ts files just fine, so long as i set vdub process to idle or low. Modify the code to your hearts content ~ TigerWild

rem create a unique .vcf that you will use with this batch file only. Do this by running Virtualdub, opening a video file, configuring all your settings as you want them, then selecting File->save processing settings->.vcf
rem use a text editor to open the vcf file you made, and add these 2 lines: VirtualDub.Open(VirtualDub.params[0]); VirtualDub.SaveAVI(VirtualDub.params[1]);

rem ---References---
rem http://stackoverflow.com/questions/87496..
rem http://forum.doom9.org/archive/index.php.. with a nod to stax76

TigerWild - 16 05 13 - 13:45

Comment form


Please keep comments on-topic for this entry. If you have unrelated comments about VirtualDub, the forum is a better place to post them.
Name:  
Remember personal info?

Email (Optional):
Your email address is only revealed to the blog owner and is not shown to the public.
URL (Optional):
Comment: /

An authentication dialog may appear when you click Post Comment. Simply type in "post" as the user and "now" as the password. I have had to do this to stop automated comment spam.



Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.