From 81321500fa1dfce2c59a424a390e6a0226bfbdbc Mon Sep 17 00:00:00 2001 From: Rodeo Date: Fri, 4 Jan 2013 14:41:11 +0000 Subject: [PATCH] CLI: help: print per-encoder default mixdown dynamically. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5147 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- test/test.c | 22 ++++++++++++++-------- 1 file 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" " Separated by commas for more than one audio track.\n" -- 2.40.0