Log in

View Full Version : Soft Subtitles with HandBrakeCLI? How?


mocham
26th March 2011, 08:20
I'm trying to figure out what is the difference between HandBrake GUI and HandBrakeCLI in respect to how they encode subtitles. If I use the GUI and don't choose forced, it makes the subtitles as a track in the resulting MP4. If I use CLI, the subtitle is always burned into the MP4. How can I do soft subs with CLI? I'm using 0.9.5.

Here is an example command that I use:

HandBrakeCLI -f mp4 -e x264 --crop -r -p -q 0.62 -a 1,1 -E faac,ac3 -6 dpl2,auto -R 48,Auto -B 160,auto -D 1.5,2.5 -d slower -s 1,2,3,4,5 -x ref=2:bframes=2:subme=6:mixed-refs=0:weightb=0:8x8dct=0:trellis=0 -v -i input.iso -o output.mp4

JohnAStebbins
26th March 2011, 19:16
It's difficult to say exactly what is going wrong without more information. The log output would be useful.

The command line you have give is invalid and doesn't even work with 0.9.5. '-r' requires and arguement. '-p' doesn't exist at all. If I remove those and use the rest of your command line on a dvd iso, it works fine for me.

mocham
27th March 2011, 09:07
Well thanks for responding because it made me investigate a bit further and I discovered that I was actually using 0.9.2 from my /usr/local/bin... With the proper 0.9.5 version in use and the following command everything is working as expected.

HandBrakeCLI -f mkv -e x264 --crop --strict-anamorphic -q 20 -a 1,1 -E faac,ac3 -6 dpl2,auto -R 48,auto -B 160,auto -D 2,2 -d slower -s 1,2,3,4,5 -x ref=2:bframes=2:subme=6:mixed-refs=0:weightb=0:8x8dct=0:trellis=0 -v -i input.iso -o output.mkv