[CLI] Preserve subtitle flags (forced/default) from source file to target MKV when processing subtitles in pass-through

Archive of historical feature requests.
Please use the GitHub link above to report issues.
Forum rules
*******************************
Please be aware we are now using GitHub for issue tracking and feature requests.
- This section of the forum is now closed to new topics.

*******************************
Post Reply
Drag0nFly
Posts: 37
Joined: Thu Mar 01, 2012 2:07 pm

[CLI] Preserve subtitle flags (forced/default) from source file to target MKV when processing subtitles in pass-through

Post by Drag0nFly »

Please describe what you would like to see added to HandBrake:

Files containing subtitle tracks that have been explicitly activated for display via the 'default' and 'forced' flags, and which are copied in pass-through mode, should have those flags carried over to the resulting MKV file (unless language-specific options override their selection.)

Not having the tags handled automatically by HandBrakeCLI requires manually re-activating the flags post-encode, or specifying extra options at the encoding stage, a task which should be unnecessary and redundant.

More importantly, however: this breaks batch encoding as it requires manual intervention for each file containing forced subtitles.

HandBrakeCLI does detect the flags properly during initialization, as can be seen in the debug output from HandBrakeCLI–

Code: Select all

Stream #0.2(eng): Subtitle: pgssub (default) (forced)
But those are not carried over to the generated target file, requiring --subtitle-default={n} /--subtitle-forced={n} options to be manually set.

Why would you like to see this added:

Manually re-adding tags which have been purposefully enabled causes extra time and breaks batch-encode processing as it requires manual intervention.

In the absence of this functionality the alternative would be–

1. Manually inspect the tracks in the source file to determine which, if any, tracks are set to default & forced.
2. Encode the file with HandBrakeCLI, providing extra options so as to indicate which tracks one wishes to have set to default/forced, which is an unwanted extra hassle when peforming batch encodes, as scripts need to be modified just for this.

-or-

3. Re-activate the tracks using other tools such as mkvpropedit after HandBrakeCLI has finished encoded the file, necessitating extra time and attention to each rip and again defeating the purpose of a batch encode.

What version of HandBrake you are running:

0.10.2-800-9546038-master (2015090701)

What operating system and version and you running (e.g. OSX 10.11, Windows 7, Ubuntu 14):

OSX 10.9, Ubuntu 14.04, Ubuntu 13.04.
Drag0nFly
Posts: 37
Joined: Thu Mar 01, 2012 2:07 pm

Re: [CLI] Preserve subtitle flags (forced/default) from source file to target MKV when processing subtitles in pass-thro

Post by Drag0nFly »

btw -it's nice to see HandBrakeCLI being actively worked on; its functionality last year was not the best for batch encodes, but at this point it creates the most compatible MKVs (by far) wrt. spec conformance and especially seeking within the streams (cue generation/handling.) Obviously there's always room for some improvement regarding minor (more or less) issues. :)
User avatar
BradleyS
Moderator
Posts: 1860
Joined: Thu Aug 09, 2007 12:16 pm

Re: [CLI] Preserve subtitle flags (forced/default) from source file to target MKV when processing subtitles in pass-thro

Post by BradleyS »

Most of that is thanks to John's reading, understanding, and implementing the spec. ;)
Drag0nFly
Posts: 37
Joined: Thu Mar 01, 2012 2:07 pm

Re: [CLI] Preserve subtitle flags (forced/default) from source file to target MKV when processing subtitles in pass-thro

Post by Drag0nFly »

It has obviously paid off, as even seeking within HEVC streams is almost the same as for regular AVC encodes; something which has proven to be a bit of a challenge for other transcoding solutions (where some are even debating whether there's a spec to conform to in the first place..) ;)
mduell
Veteran User
Posts: 8205
Joined: Sat Apr 21, 2007 8:54 pm

Re: [CLI] Preserve subtitle flags (forced/default) from source file to target MKV when processing subtitles in pass-thro

Post by mduell »

Drag0nFly wrote:(where some are even debating whether there's a spec to conform to in the first place..)
Isn't that the norm with MKV, there is no spec only sample code?
nhyone
Bright Spark User
Posts: 252
Joined: Fri Jul 24, 2015 4:13 am

Re: [CLI] Preserve subtitle flags (forced/default) from source file to target MKV when processing subtitles in pass-thro

Post by nhyone »

What if I want the subtitles, but don't want the forced / default flags to carry over?
User avatar
BradleyS
Moderator
Posts: 1860
Joined: Thu Aug 09, 2007 12:16 pm

Re: [CLI] Preserve subtitle flags (forced/default) from source file to target MKV when processing subtitles in pass-thro

Post by BradleyS »

nhyone wrote:What if I want the subtitles, but don't want the forced / default flags to carry over?
What if you started your own thread? :P
Post Reply