From subsecret
Jump to: navigation, search
No edit summary
No edit summary
Line 7: Line 7:
=Commands=
=Commands=
Example command:
Example command:
  vlc "/path/to/input.vob" --sout='#transcode{vcodec=VP80,vb=5000},acodec=vorbis,ab=128,channels=2}:std{access=file,mux="ffmpeg{mux=webm}",dst="/path/to/output.webm"}'
  vlc "/path/to/input.vob" --sout='#transcode{vcodec=VP80,vb=5000},
        acodec=vorbis,ab=128,channels=2}:std{access=file,mux="ffmpeg{mux=webm}"
        ,dst="/path/to/output.webm"}'


Codec options:
Codec options:

Revision as of 12:25, 22 June 2013

Transcoding with VLC

VLC while mainly known for being a good video player, can also be used as a tool for transcoding. Since it has good support for most formats, it is a good choice when wanting a powerful and yet relatively simple transcoder.

It is possible to both do transcoding from commandline and from the graphical user interface. However the graphical user interface lacks many options (ie. cropping), and the commanline options are not build in a standardized way. This guide will give some very useful commands for transcoding with VLC through commandline.

VLC comes with 2 executables, vlc and cvlc. both accept the same options, but when using cvlc the GUI will not be launched. This is very useful when transcoding on a remote machine without access to a desktop.

Commands

Example command:

vlc "/path/to/input.vob" --sout='#transcode{vcodec=VP80,vb=5000},
       acodec=vorbis,ab=128,channels=2}:std{access=file,mux="ffmpeg{mux=webm}"
       ,dst="/path/to/output.webm"}'

Codec options: vcodec is the video codec used, in this case VP80 (webm). vb is the video bitrate set to 5000 bit/sec acodec is the audio codec used, in this case vorbis. ab is the audio bitrate set to 128 bit/sec. 2 channels for stereo sound mux is set to webm (webm required VB80 as video codec and vorbis as audio codec) No video filters are used in this example

Cropping

When encoding a video that contains a black frame around it, it is very useful to peel away the black frame and only leave the actual image-part behind. This can be done by cropping the video. First it is however necessary to know what part to crop away

Cropping with VLC graphical user interface