HandBrake CLI Linux examples to convert vob/mp4/avi/ogm/mkv/mpeg/xvid/ts
Sep 12, 2009 Linux
Here are some examples I am using to convert video files.
Outputs File format supported are: MP4, AVI, OGM or MKV. You can apply these example to any format.
Because HandBrake can directly convert .iso file, you don’t have to write your DVD or mount. We simply work the .iso.
Convert dvd to avi, this is the most general example, with default parameters:
HandBrakeCLI -i dvd.iso -o dvd.avi |
Convert dvd to avi, result to fit a CD:
HandBrakeCLI -i dvd.iso -o dvd.avi -S 700MB |
Set the width of the video to 320 X 240:
HandBrakeCLI -i dvd.iso -o dvd.avi -w 320 -l 240 |
Use another encoder than the default (option -e, ffmpeg,xvid, x264,theora default: ffmpeg):
HandBrakeCLI -i dvd.iso -o dvd.avi -e x264 |
Set video quality (-q, accepting value 0.0..1.0):
HandBrakeCLI -i dvd.iso -o dvd.avi -q 0.7 |
Set video bitrate (default: 1000):
HandBrakeCLI -i dvd.iso -o dvd.avi -b 1500 |
These are the most important parameters. Read the full HandBrakeCLI command line options
Some days ago I got an error: No Title Found Error when I tried to execute HandBrake command:
HandBrakeCLI -i dvd.iso -o dvd.avi |
Using Google, found that HandBrake cannot decide which title to use from dvd iso file.
The solution is to list all titles, and then select one of them. If you use the “-t 0″ parameter you’ll be able to find the titles used on dvd.
#HandBrakeCLI -i dvd.iso -o dvd.avi -t 0 HandBrake 0.9.3 (2008121800) - http://handbrake.fr/ 2 CPUs detected Opening dvd.iso... Scanning title 2... Scanning title 2... Scanning title 2... + title 2: + vts 2, ttn 1, cells 0->11 (2216315 blocks) + duration: 01:34:06 + size: 720x576, aspect: 1.78, 25.000 fps + autocrop: 0/0/0/2 + chapters: + 1: cells 0->0, 184236 blocks, duration 00:07:48 + 2: cells 1->1, 164012 blocks, duration 00:06:56 + 3: cells 2->2, 175305 blocks, duration 00:07:24 |
No related posts.



April 17th, 2010 at %I:%M %p
This update was really interesting, how often do you update your blog? I’ve bookmarked this site and gave you guys a digg, hope to read more soon!