Wednesday, 17 September 2008

Tip of the Day: Convert Various Video Formats to Theora Video

In this tips and tricks article I'll briefly introduce you to ffmpeg2theora, a powerful command line tool which allows you to convert many video formats to the free video codec Theora. ffmpeg2theora can encode to Theora any format that can be read by ffmpeg, like MPEG, MPEG4 or DivX.

To install ffmpeg2theora in Ubuntu, type:

sudo apt-get install ffmpeg2theora

With your user's password. Here's a basic example for using it:

ffmpeg2theora -q 6 -A 192 video_file.avi

Which will recode video_file.avi into video_file.ogg, using the video quality of 6 (-q 6) and the average audio bitrate of 192 kbps (-A 192). You can also use ffmpeg2theora to encode DVD .VOB files, like this:

ffmpeg2theora VTS_01_1.VOB -o video_01.ogg

Or, for example:

ffmpeg2theora -A 192 --artist "Pink Floyd" --title "Live at Pompeii [1972]" VTS_01_1.VOB -o

Which will convert VTS_01_1.VOB into Ogg Theora, using 192 kbps for audio and will also add the artist and title tags as video metadata.

Updated: Sep 17, 2008

No comments: