diff options
author | John Stebbins <[email protected]> | 2018-10-31 09:05:42 -0700 |
---|---|---|
committer | John Stebbins <[email protected]> | 2018-10-31 09:07:37 -0700 |
commit | 16fa5e831920dda9f442d4fd29227789b2ffd6f3 (patch) | |
tree | 7757610bb3cb0bc734d0831347814c477ba5c3ab | |
parent | 36f5330eb113f7917de31e57a79611c7ad661cc4 (diff) |
CLI: Add command line override for SubtitleBurnDVDSub
... and SubtitleBurnBDSub.
If these preset values were true, there was no way to encode without
burning the first DVD or BD subtitle track using the CLI.
-rw-r--r-- | test/test.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/test/test.c b/test/test.c index acfe43e53..6746b336b 100644 --- a/test/test.c +++ b/test/test.c @@ -1795,7 +1795,7 @@ static void ShowHelp() " Example: \"1,2,3\" for multiple tracks.\n" " If \"string\" is omitted, the first track is\n" " forced.\n" -" --subtitle-burned[=number]\n" +" --subtitle-burned[=number, \"native\", or \"none\"]\n" " \"Burn\" the selected subtitle into the video\n" " track. If \"subtitle\" is omitted, the first\n" " track is burned. \"subtitle\" is an index into\n" @@ -2480,7 +2480,13 @@ static int ParseOptions( int argc, char ** argv ) { if (!strcasecmp(optarg, "native") || !strcasecmp(optarg, "scan")) + { subburn_native = 1; + } + else if (!strcasecmp(optarg, "none")) + { + subburn = 0; + } else { subburn = strtol(optarg, NULL, 0); @@ -3451,6 +3457,11 @@ static hb_dict_t * PreparePreset(const char *preset_name) } hb_dict_set(preset, "SubtitleBurnBehavior", hb_value_string(burn)); } + if (subburn == 0) + { + hb_dict_set(preset, "SubtitleBurnDVDSub", hb_value_bool(0)); + hb_dict_set(preset, "SubtitleBurnBDSub", hb_value_bool(0)); + } const char *selection = NULL; if (subtitle_track_count == 0 && subtitle_all != -1) { |