Command line equivalents of GUI "convert" actions

About encoding, codec settings, muxers and filter usage
brianthelion
New Cone
New Cone
Posts: 1
Joined: 12 Jun 2012 06:09

Command line equivalents of GUI "convert" actions

Postby brianthelion » 12 Jun 2012 06:31

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

deranjer
New Cone
New Cone
Posts: 7
Joined: 18 Jun 2012 14:52

Re: Command line equivalents of GUI "convert" actions

Postby deranjer » 18 Jun 2012 15:23

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".


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 11 guests