Skip to content

Forced subtitle scan is not performed unless 'scan' is the first --subtitle #1478

Closed

Description

@domihb

Description of the problem

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 --title 1 -e x264 --audio 1 --aencoder ca_aac --subtitle 1,scan --subtitle-forced=2 --stop-at duration:60 --input ../TESTDVD --output scanlast.m4v

HandBrake version and OS

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.

Log with --subtitle 1,scan --subtitle-forced=2

[scanlast.txt](https://github.com/HandBrake/HandBrake/files/2191411/scanlast.txt)

Log with --subtitle scan,1 --subtitle-forced=1

[scanfirst.txt](https://github.com/HandBrake/HandBrake/files/2191413/scanfirst.txt)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions