diff options
author | Rodeo <[email protected]> | 2013-01-04 14:41:11 +0000 |
---|---|---|
committer | Rodeo <[email protected]> | 2013-01-04 14:41:11 +0000 |
commit | 81321500fa1dfce2c59a424a390e6a0226bfbdbc (patch) | |
tree | bc55a64d061c196ade0aafa8de46a89d20bf3303 | |
parent | 16bf6e9e82f97d6e866877013f30eeaea1a5a240 (diff) |
CLI: help: print per-encoder default mixdown dynamically.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5147 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r-- | test/test.c | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/test/test.c b/test/test.c index 1e9717df8..5ceb4045b 100644 --- a/test/test.c +++ b/test/test.c @@ -2903,14 +2903,20 @@ static void ShowHelp() } fprintf(out, " Separated by commas for more than one audio track.\n" - " Default: up to %s for ffflac and ffflac24,\n", - hb_mixdown_get_short_name_from_mixdown(HB_AMIXDOWN_7POINT1)); - fprintf(out, - " up to %s for ffac3,\n", - hb_mixdown_get_short_name_from_mixdown(HB_AMIXDOWN_5POINT1)); - fprintf(out, - " up to %s for other encoders.\n", - hb_mixdown_get_short_name_from_mixdown(HB_AMIXDOWN_DOLBYPLII)); + " Defaults:\n"); + for (i = 0; i < hb_audio_encoders_count; i++) + { + if (!(hb_audio_encoders[i].encoder & HB_ACODEC_PASS_FLAG)) + { + // layout: UINT64_MAX (all channels) should work with any mixdown + int mixdown = hb_get_default_mixdown(hb_audio_encoders[i].encoder, + UINT64_MAX); + // assumes that the encoder short name is <= 16 characters long + fprintf(out, " %-16s up to %s\n", + hb_audio_encoders[i].short_name, + hb_mixdown_get_short_name_from_mixdown(mixdown)); + } + } fprintf(out, " --normalize-mix Normalize audio mix levels to prevent clipping.\n" " <string> Separated by commas for more than one audio track.\n" |