You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Forced subtitle scan is not performed unless 'scan' is the first --subtitle #1478
When a forced subtitle scan is attempted using HandBrakeCLI, the special scan subtitle value is not obeyed unless it is the first subtitle in the --subtitle list. The operation of the special scan value should not be dependent on position, as a specific and different ordering may be desired.
Steps to reproduce the problem
Run HandBrakeCLI against a DVD source with subtitles and place the scan value anywhere other than as the first subtitle, and you can see from the output that the first pass to look for forced subtitles is not being performed before the encode. The command I used was:
HandBrakeCLI on Debian 9 (stretch) using the handbrake-cli_1.1.0-zhb-1ppa1~xenial1_amd64.deb package.
HandBrake Activity Logs
I'm including both a log from when the scan is being honored (as the first subtitle track) and when it is not (as the second). These logs show the same DVD source with all other parameters the same other than the change between --subtitle 1,scan --subtitle-forced=2 and --subtitle scan,1 --subtitle-forced=1. Please note that the timestamps in both of the included logs have been removed in order to allow easier diff'ing.
Activity
cli: fix subtitle "scan" when not first in `--subtitle` list
cli: fix subtitle "scan" when not first in `--subtitle` list
cli: fix subtitle "scan" when not first in `--subtitle` list