Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I loaded a DVD with 50 episodes in it (chose VIDEO_TS from the program), now when i open it in HandBrake, it shows 50 "titles" in there. i choose 320x240 output format and start converting. Then i click to next title, do same again, 50 times.

Is there any way to speed this up?, because it doesnt remember my settings when i click the next title. and i tried to make preset but it crashes every time i choose it from the presets list.

share|improve this question
FormatFactory converts general media formats in batch, try that. – clabacchio Feb 27 '12 at 12:38
up vote 7 down vote accepted

You can write a shell script to invoke HandBrakeCLI for each title.

Linux (source):

$ for i in `seq 4`; do HandBrakeCLI --input /dev/dvd --title $i --preset Normal --output NameOfDisc_Title$i.mp4; done

Windows PowerShell:

for ($title=1; $title -le 4; $title++) {
    &"C:\program files\handbrake\HandBrakeCLI.exe" --input D:\ --title $title --preset Normal --output "$title.mp4"
share|improve this answer
Isnt there any gui options for this? about that windows script example; what do i do if the $title isnt a number? im not sure what that code does. care to explain? – Rookie Feb 25 '13 at 15:10
GUI option: yes there is: Add to queue -> Add all. However, it's marked as (Experimental) and it didn't work when I tried it. – Grilse Feb 26 '13 at 22:18
$title not a number: $title will always be a number. That's how DVD's work. Explanation: well, it's a for-loop that counts from 1 through 4, and for each count, it executes HandBrakeCLI.exe with some parameters. Check out "HandBrakeCLI.exe --help" to see what the parameters mean. – Grilse Feb 26 '13 at 22:25
Not sure what else you want to know. Ask something specific and I'll answer. – Grilse Feb 26 '13 at 22:26
Thanks, now i understand it better. So its all about just commandline parameters, I can do that! – Rookie Feb 27 '13 at 15:13

You can add the tasks to the queue

From Link 2

Just go ahead and change the title, chapter, or source in use, and be sure to rename the destination file. Tweak any settings you want. Then click the "Add to queue" button on the toolbar. Repeat these steps for the whole batch of videos you wish to convert.

Some of the comments say that they were having problems with overwriting the previous file. So you will have to be sure you name them properly. Make sure a few work before you leave it running.

share|improve this answer
adding to queue doesnt remove the problem of repetition: i need to click to select next title, change resolution, click "add queue", repeat. what i want is to simply convert all titles at once with exact same settings. this seems to be possible only for chapters – Rookie Feb 27 '12 at 20:46

Extracting the files in Linux Ubuntu via the CLI worked great. The line I used below repeats the syntax given with a little amplification to force MPEG-4 and quality. If subtitles are needed, I believe the command line (CLI) parameters and arguments would need to be expanded.

patty@patty:~$ for i in `seq 4`; do HandBrakeCLI -i /media/patty/DVDTITLE -t $i -o DVDTITLE_Title$i.mp4 -e x264 -q 18; done
share|improve this answer

Based on the Answer from Grilse:

This script does not use a fixed number of titles, but lets handbrake determine them.

rawout=$(HandBrakeCLI -i /dev/dvd -t 0 2>&1 >/dev/null)
#read handbrake's stderr into variable

count=$(echo $rawout | grep -Eao "\\+ title [0-9]+:" | wc -l)
#parse the variable using grep to get the count

for i in $(seq $count)
    HandBrakeCLI --input /dev/dvd --title $i --preset Normal --output $i.mp4
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.