handbrakecli burning foreign audio scan subtitles

Discussion of the HandBrake command line interface (CLI)
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Post Reply
beastmorgan
Posts: 1
Joined: Sat Aug 11, 2018 8:41 pm

handbrakecli burning foreign audio scan subtitles

Post by beastmorgan »

Running Windows 10 x64 v1803, handbrakecli and gui v1.1.1

How do I get the cli to only burn in a subtitle if it detects one from the foreign audio scan. Right now it burns the first track if it doesn't find foreign audio.
Here's part of what the cli exports:

"SubtitleAddCC": false,
"SubtitleAddForeignAudioSearch": true,
"SubtitleAddForeignAudioSubtitle": false,
"SubtitleBurnBDSub": false,
"SubtitleBurnBehavior": "foreign_first",
"SubtitleBurnDVDSub": false,
"SubtitleLanguageList": [
"eng"
],
"SubtitleTrackSelectionBehavior": "all",

Whereas this is what the gui exports

"SubtitleAddCC": true,
"SubtitleAddForeignAudioSearch": true,
"SubtitleAddForeignAudioSubtitle": false,
"SubtitleBurnBehavior": "foreign",
"SubtitleBurnBDSub": false,
"SubtitleBurnDVDSub": false,
"SubtitleLanguageList": [
"eng"
],
"SubtitleTrackSelectionBehavior": "all",

The CC would be nice, but it's not as important. The relevant cli commands I'm using: --subtitle-lang-list eng --all-subtitles --subtitle scan --subtitle-forced=1 --subtitle-burned=1
Post Reply