Command line equivalents of GUI "convert" actions
Posted: 12 Jun 2012 06:31
by brianthelion
Hypothetical situation: I've successfully used the GUI to transcode a video. The results area good. Now I want to use the dummy interface to script a batch job to do the same thing to *hundreds* of videos. Is there a way to know what sout pipeline the GUI "called" to produce the result so that I can supply it at the command line?
Thanks!
~br
Re: Command line equivalents of GUI "convert" actions
Posted: 18 Jun 2012 15:23
by deranjer
If I understand you correctly, this should be easy. I assume you transcoded it using the convert/save menu item in the gui? If so, before you convert another one, go to tools->messages, and turn verbosity all the way up to 2 (debug), then start to convert your video. Then go back to messages, and near the top you should see something like this: sout=#transcode{vcodec=VP80,vb=2000,scale=0,acodec=vorb,ab=128,channels=2,samplerate=44100}:std{access=file,mux=webm,dst='filename.mpg'} This is the basic info you need.
For scripting this it will require a little bit of work. Call clvc -vvv $filename --sout=(etc, etc). Experiment with it on the command line to get it working.... then script it however you plan on doing that, and I think you will only need to pass the two different filenames to the script (input and output) each time you call it.
EDIT: To run in the background, just add "-d".