[mythtv-users] HDMI sound works for AC3 2-channel, but not 6-channel
Steven Ihde
steve at x2.hamachi.us
Tue Apr 3 04:58:03 UTC 2012
The patch worked!
On Apr 2, 2012, at 6:35 PM, Jean-Yves Avenard wrote:
> On 3 April 2012 11:25, Steven Ihde <steve at x2.hamachi.us> wrote:
>> Yes, I can build from source. I'm happy to try any suggestions you have. I
>> was expecting to see a message about "downmixing" from 6 to 2 channels but I
>> don't see one.
>
> if you were running mythfrontend with -v audio, you would have seen it.
Yes, I see it after enabling -v audio.
>
> Apply the following patch and see how it works:
> diff --git a/mythtv/libs/libmyth/audiooutputbase.cpp b/mythtv/libs/libmyth/audio
> index 54e9371..3f0420a 100644
> --- a/mythtv/libs/libmyth/audiooutputbase.cpp
> +++ b/mythtv/libs/libmyth/audiooutputbase.cpp
> @@ -534,7 +534,7 @@ void AudioOutputBase::Reconfigure(const AudioSettings &orig_
> if (enc)
> output_format = FORMAT_S16; // Output s16le for AC-3 encoder
> else
> - output_format = output_settings->BestSupportedFormat();
> + output_format = FORMAT_S16;
> }
>
> if (passthru)
>
>
The patch worked! Both 2 and 6 channel AC3 are playing back correctly now. After the patch, I see the following:
2012-04-02 21:43:07.729 AO: Opening audio device 'iec958:CARD=CMI8768,DEV=0' ch 2(6) sr 48000 sf signed 16 bit reenc 0
Now it's using 16-bit instead of 32-bit.
Please let me know if I can help with further testing.
>
>>
>> Sorry I missed your earlier message asking for more logs; pasted a longer
>> log segment below.
> Those aren't with -v audio, so it doesn't help much
If you want a full log pre- or post-patch with -v audio let me know.
Thanks,
Steve
More information about the mythtv-users
mailing list