[mythtv-users] Digital Audio Passthrough not working Mythtv 0.24-fixes

David Knight dlknight at sdf.lonestar.org
Tue Nov 9 20:48:09 UTC 2010


On Tue, November 9, 2010 7:33 pm, David Knight wrote:
> I've just upgraded to Mythtv 0.24-fixes and I'm glad the build process was
> as simple as for 0.23.1 :) Just a few modifications required to the
> build_myth.sh.
>
> Now in Mythtv 0.23.1 I had the following options configured which
> outputted audio to the analog output of my soundcard and also the optical
> audio out into my DD/DTS amplifier. This worked great and I could listen
> to all sources via my amplifier with DD/DTS being output when the source
> supported it.
>
> Audio output device = "ALSA:default"
> Passthrough output device: "ALSA:iec958 {AES0: 0x02}"
> Max Audio Channels: 5.1
> Upmix: Passive
> Enable AC3 to SPDIF passthrough = Enabled
> Enable DTS to SPDIF passthrough = Enabled
> Advanced Audio Configuration = Disabled
> Use internal volume controls = Enabled
>
> In Mythtv 0.24 the same settings do not work with DD/DTS, instead I get no
> sound and stuttery video which utimately stops playing after 5-10 seconds
> with a buffer error.
>
> If I change the audio output device in Mythtv 0.24 to "ALSA:iec958 {AES0:
> 0x02}" then playback through the spdif interface works fine although I no
> longer having the ability to output analog audio from the soundcard or
> control the volume of stereo PCM audio with the internal volume controls.
> Does anyone have any ideas why this isn't working?
>
> Dave

Here is the relevant log information from mythfrontend when attempting to
view a recording with DD 5.1 audio (from BBC HD) -

2010-11-09 20:42:58.120 TV: Attempting to change from None to
WatchingPreRecorded
2010-11-09 20:42:58.305 AudioPlayer: Disabling Audio, params(0,2,44100)
2010-11-09 20:42:58.538 Pulse: PulseAudio suspend OK
2010-11-09 20:42:58.590 AudioOutput Error: Aborting Audio Reconfigure.
Invalid audio parameters ch 2 fmt 0 @ 44100Hz
2010-11-09 20:42:58.591 AudioPlayer: Disabling Audio, reason is: Aborting
Audio Reconfigure. Invalid audio parameters ch 2 fmt 0 @ 44100Hz
2010-11-09 20:42:58.591 playCtx, Error: Aborting Audio Reconfigure.
Invalid audio parameters ch 2 fmt 0 @ 44100Hz
2010-11-09 20:42:59.186 [h264 @ 0x3890d95f40]non-existing SPS 0 referenced
in buffering period
2010-11-09 20:42:59.186 [h264 @ 0x3890d95f40]non-existing PPS referenced
2010-11-09 20:42:59.186 [h264 @ 0x3890d95f40]non-existing SPS 0 referenced
in buffering period
2010-11-09 20:42:59.186 [h264 @ 0x3890d95f40]non-existing PPS 0 referenced
2010-11-09 20:42:59.187 [h264 @ 0x3890d95f40]decode_slice_header error

THE ABOVE ERRORS CONTINUE SEVERAL TENS OF TIMES THEN:

2010-11-09 20:42:59.526 AFD: Opened codec 0x7ca7240, id(H264) type(Video)
2010-11-09 20:42:59.527 AFD: codec MP2 has 2 channels
2010-11-09 20:42:59.527 AFD: Opened codec 0x7ca78c0, id(MP2) type(Audio)
2010-11-09 20:42:59.527 AFD: Opened codec 0x7f39eb0, id(DVB_SUBTITLE)
type(Subtitle)
2010-11-09 20:42:59.527 AFD: codec AC3 has 2 channels
2010-11-09 20:42:59.529 AFD: Opened codec 0x7f3a530, id(AC3) type(Audio)
2010-11-09 20:42:59.743 Pulse: PulseAudio resume OK
2010-11-09 20:42:59.944 Pulse: PulseAudio suspend OK
2010-11-09 20:42:59.985 AO: Opening audio device 'default' ch 2(2) sr
48000 sf signed 32 bit reenc 1
2010-11-09 20:42:59.985 Opening ALSA audio device 'default'.
2010-11-09 20:43:00.049 AudioPlayer: Enabling Audio
2010-11-09 20:43:00.303 Clearing OpenGL painter cache.
2010-11-09 20:43:00.976 VDPAU: Created 2 output surfaces.
2010-11-09 20:43:00.976 VDPAU: Version 1
2010-11-09 20:43:00.976 VDPAU: Information NVIDIA VDPAU Driver Shared
Library  260.19.12  Fri Oct  8 11:46:03 PDT 2010
2010-11-09 20:43:00.976 VDPAU: Created VDPAU render device 1920x1080
2010-11-09 20:43:01.202 Player(0): Forcing decode extra audio option on
(Video method requires it).
2010-11-09 20:43:01.621 AFD: Audio stream changed
2010-11-09 20:43:01.631 AO: Opening audio device 'default' ch 6(6) sr
48000 sf signed 32 bit reenc 1
2010-11-09 20:43:01.632 Opening ALSA audio device 'default'.
2010-11-09 20:43:01.646 ALSA, Error: Channels count 6 not available:
Invalid argument
2010-11-09 20:43:01.646 ALSA, Error: Unable to set ALSA parameters:
Invalid argument
2010-11-09 20:43:01.646 AudioOutput Error: Aborting reconfigure
2010-11-09 20:43:01.808 Player(0): Video timing method: USleep with busy wait
2010-11-09 20:43:01.850 TV: Changing from None to WatchingPreRecorded
2010-11-09 20:43:02.118 ALSA, Error: getBufferedOnSoundcard() called with
pcm_handle == NULL!
2010-11-09 20:43:02.143 VDPAU: Added 2 output surfaces (total 4, max 4)
2010-11-09 20:43:02.160 ALSA, Error: getBufferedOnSoundcard() called with
pcm_handle == NULL!

The above then continues until I exit playback (which has stopped playing
by that point).

Dave



More information about the mythtv-users mailing list