diff options
author | jstebbins <[email protected]> | 2010-12-31 17:44:48 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2010-12-31 17:44:48 +0000 |
commit | c2e18153dd42dfaf6ffe877b39c0d5d44d681318 (patch) | |
tree | e0ec442763d4867043c12d5d3fde5d317af66229 /test | |
parent | de17702605859fec7e90edd468ee690bfca109ac (diff) |
cli: add better logging for ac3 encoder fallback and track dropping
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3722 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'test')
-rw-r--r-- | test/test.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test/test.c b/test/test.c index e8d9d183b..a0354fd4e 100644 --- a/test/test.c +++ b/test/test.c @@ -1913,10 +1913,12 @@ static int HandleEvents( hb_handle_t * h ) ( audio->out.codec & HB_ACODEC_PASS_FLAG ) && !( audio->out.codec & audio->in.codec ) ) { + // AC3 passthru not possible, fallback to AC3 encoder. + fprintf( stderr, "AC3 passthru requested and input codec is not AC3 for track %d, using AC3 encoder\n", + audio->out.track ); audio->out.codec = HB_ACODEC_AC3; audio->out.mixdown = hb_get_default_mixdown( audio->out.codec, audio->in.channel_layout ); - audio->out.bitrate = hb_get_default_audio_bitrate( - audio->out.codec, audio->out.samplerate, + audio->out.bitrate = hb_get_default_audio_bitrate( audio->out.codec, audio->out.samplerate, audio->out.mixdown ); } // fix 'copy' to select a specific codec @@ -1926,7 +1928,7 @@ static int HandleEvents( hb_handle_t * h ) if ( !( audio->out.codec & HB_ACODEC_MASK ) ) { // Passthru not possible, drop audio. - fprintf( stderr, "Passthru requested and input codec is not the same as output codec for track %d\n", + fprintf( stderr, "Passthru requested and input codec is not the same as output codec for track %d, dropping track\n", audio->out.track ); hb_audio_t * item = hb_list_item( job->list_audio, i ); hb_list_rem( job->list_audio, item ); |