Adding subtitles to a Preset in CLI
Posted: Wed Apr 03, 2019 8:13 pm
Description of problem or question:
I've been running this script for a number of years successfully. The only issue is some shows have sections where a different language is spoken and subtitles are shown during this time. I'd like to be able to just add these subtitles without messing with the preset video/audio settings. Is there a way to do this?
for filename in $(cat /var/HandBrakeScript/Moviesprocessed); do
echo "$filename"
HandBrakeCLI -i "$filename" -o "${filename%.*}".mp4 --preset="Super HQ 720p30 Surround"
rm -r "$filename"
done
Steps to reproduce the problem (If Applicable):
HandBrake version (e.g., 1.0.0):
1.2.2
Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.13 High Sierra, Windows 10 Creators Update):
Ubuntu Server 18.04
HandBrake Activity Log ***required*** (see How-to get an activity log)
I've been running this script for a number of years successfully. The only issue is some shows have sections where a different language is spoken and subtitles are shown during this time. I'd like to be able to just add these subtitles without messing with the preset video/audio settings. Is there a way to do this?
for filename in $(cat /var/HandBrakeScript/Moviesprocessed); do
echo "$filename"
HandBrakeCLI -i "$filename" -o "${filename%.*}".mp4 --preset="Super HQ 720p30 Surround"
rm -r "$filename"
done
Steps to reproduce the problem (If Applicable):
HandBrake version (e.g., 1.0.0):
1.2.2
Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.13 High Sierra, Windows 10 Creators Update):
Ubuntu Server 18.04
HandBrake Activity Log ***required*** (see How-to get an activity log)
Code: Select all
Please replace this text with the contents of your log file between the two code tags - OR - provide a pastebin URL in place of these 3 lines.