[mythtv-users] SPDIF passthrough problems / VDPAU problems

mythtv at thestack.de mythtv at thestack.de
Tue Jan 31 11:29:02 UTC 2012


Hi,

for the audio problems:

My HTPC running mythtv 0.24.1 (now upgraded to 0.24.2) is connected to 
an AVR via optical SPDIF. Here's my audio settings:

- Audio output device: "ALSA:hw:CARD=CMI8738,DEV=2" (also tried 
"ALSA:iec958:CARD=CMI8738,DEV=0" here)
- DD and DTS checked in capabilities
- Speaker configuration: 5.1
- Upmixing disabled
- Advanced Audio Config:
  - Digital output device: ALSA:iec958:{ AES0 0x02 } (also tried without 
this enabled)

- Internal mixer disabled

All kind of two channel audio works fine but for multichannel audio 
(both DD/AC3 and DTS) I only get choppy output. Changing Speaker config 
to Stereo or disabling the digital audio device / advanced settings 
doesn't help oder I even get no sound at all.
In VLC media player and mplayer the same media files are working 
perfectly. I thought the "reenc 0" in the logs means everything is right 
but it seems it's not.

This is the log output:

2012-01-30 12:04:45.452 MythCoreContext: Connecting to backend server: 
htpc:6543 (try 1 of 1)
2012-01-30 12:04:45.457 Using protocol version 63
ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave
2012-01-30 12:05:19.018 ALSA, Error: 
snd_pcm_open("dmix:CARD=CX8811,DEV=0"): No such file or directory
ALSA lib pcm_dsnoop.c:551:(snd_pcm_dsnoop_open) The dsnoop plugin 
supports only capture stream
2012-01-30 12:05:19.020 ALSA, Error: 
snd_pcm_open("dsnoop:CARD=CMI8738,DEV=0"): Invalid argument
ALSA lib pcm_dsnoop.c:551:(snd_pcm_dsnoop_open) The dsnoop plugin 
supports only capture stream
2012-01-30 12:05:19.023 ALSA, Error: 
snd_pcm_open("dsnoop:CARD=CMI8738,DEV=1"): Invalid argument
ALSA lib pcm_dsnoop.c:551:(snd_pcm_dsnoop_open) The dsnoop plugin 
supports only capture stream
2012-01-30 12:05:19.026 ALSA, Error: 
snd_pcm_open("dsnoop:CARD=CMI8738,DEV=2"): Invalid argument
ALSA lib pcm_dsnoop.c:551:(snd_pcm_dsnoop_open) The dsnoop plugin 
supports only capture stream
2012-01-30 12:05:19.029 ALSA, Error: 
snd_pcm_open("dsnoop:CARD=CX8811,DEV=0"): Invalid argument
2012-01-30 12:05:19.084 ALSA, Error: 
snd_pcm_open("hw:CARD=CX8811,DEV=0"): No such file or directory
2012-01-30 12:05:19.141 ALSA, Error: 
snd_pcm_open("plughw:CARD=CX8811,DEV=0"): No such file or directory
2012-01-30 12:05:19.292 PulseAudio Error: ContextConnect, context 
connect failed: Connection refused
2012-01-30 12:08:40.685 Received a remote 'Clear Cache' request
2012-01-30 12:12:17.861 TV: Attempting to change from None to 
WatchingVideo
2012-01-30 12:12:18.767 [h264 @ 0x7f9f137e1700]non-existing SPS 1 
referenced in buffering period
2012-01-30 12:12:18.781 [h264 @ 0x7f9f137e1700]non-existing SPS 1 
referenced in buffering period
2012-01-30 12:12:18.795 [h264 @ 0x7f9f137e1700]non-existing SPS 1 
referenced in buffering period
2012-01-30 12:12:18.811 [h264 @ 0x7f9f137e1700]non-existing SPS 1 
referenced in buffering period
2012-01-30 12:12:18.821 [h264 @ 0x7f9f137e1700]non-existing SPS 1 
referenced in buffering period
2012-01-30 12:12:20.004 AFD Warning: ScanATSCCaptionStreams() called 
with no PMT
2012-01-30 12:12:20.004 AFD: Opened codec 0x7f9ee8888260, id(H264) 
type(Video)
2012-01-30 12:12:20.004 AFD: codec DTS has 6 channels
2012-01-30 12:12:20.004 AFD: Opened codec 0x7f9ee88886c0, id(DTS) 
type(Audio)
2012-01-30 12:12:20.004 AFD: codec DTS has 6 channels
2012-01-30 12:12:20.004 AFD: Opened codec 0x7f9ee8888d40, id(DTS) 
type(Audio)
2012-01-30 12:12:20.005 AFD: Opened codec 0x7f9ee8889470, 
id(HDMV_PGS_SUBTITLE) type(Subtitle)
2012-01-30 12:12:20.005 AFD: Opened codec 0x7f9ee8889ba0, 
id(HDMV_PGS_SUBTITLE) type(Subtitle)
2012-01-30 12:12:20.005 AFD: Opened codec 0x7f9ee888a2b0, 
id(HDMV_PGS_SUBTITLE) type(Subtitle)
2012-01-30 12:12:20.005 AFD: Opened codec 0x7f9ee888a9c0, 
id(HDMV_PGS_SUBTITLE) type(Subtitle)
2012-01-30 12:12:20.150 AO: Opening audio device 
'hw:CARD=CMI8738,DEV=2' ch 2(6) sr 48000 sf signed 16 bit reenc 0
2012-01-30 12:12:20.152 ALSA, Error: Setting hardware audio buffer size 
to 128
2012-01-30 12:12:20.152 ALSA, Error: Error opening 
/proc/asound/card0/pcm2p/sub0/prealloc: Permission denied.
2012-01-30 12:12:20.152 ALSA, Error: Try to manually increase audio 
buffer with: echo 128 | sudo tee /proc/asound/card0/pcm2p/sub0/prealloc
2012-01-30 12:12:20.152 ALSA, Error: Unable to sufficiently increase 
ALSA hardware buffer size - underruns are likely
2012-01-30 12:12:20.153 AudioPlayer: Enabling Audio
2012-01-30 12:12:20.184 Clearing OpenGL painter cache.
2012-01-30 12:12:21.185 VDPAU: Created 2 output surfaces.
2012-01-30 12:12:21.185 VDPAU: Version 1
2012-01-30 12:12:21.185 VDPAU: Information NVIDIA VDPAU Driver Shared 
Library  280.13  Wed Jul 27 17:15:20 PDT 2011
2012-01-30 12:12:21.185 VDPAU: Created VDPAU render device 1920x1080
2012-01-30 12:12:21.667 Player(0): Forcing decode extra audio option on 
(Video method requires it).
2012-01-30 12:12:21.797 Player(0): Video sync method can't support 
double framerate (refresh rate too low for 2x deint)
2012-01-30 12:12:21.797 Player(0): Video timing method: USleep with 
busy wait
2012-01-30 12:12:21.797 TV: Changing from None to WatchingVideo
2012-01-30 12:12:21.994 Player(0): Waited 100ms for video buffers 
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
2012-01-30 12:12:22.005 Player(0): Waited 100ms for video buffers 
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
2012-01-30 12:12:22.011 Player(0): Waited 100ms for video buffers 
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
2012-01-30 12:12:22.124 Player(0): Waited 100ms for video buffers 
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
2012-01-30 12:12:22.140 Player(0): Waited 100ms for video buffers 
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
2012-01-30 12:12:22.251 Player(0): Waited 100ms for video buffers 
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
2012-01-30 12:12:22.267 Player(0): Waited 100ms for video buffers 
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
2012-01-30 12:12:22.379 Player(0): Waited 100ms for video buffers 
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
2012-01-30 12:12:22.395 Player(0): Waited 100ms for video buffers 
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
2012-01-30 12:12:22.507 Player(0): Waited 100ms for video buffers 
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
2012-01-30 12:12:22.523 Player(0): Waited 100ms for video buffers 
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
2012-01-30 12:12:22.540 [h264_vdpau @ 0x7f9f137e1700]non-existing SPS 1 
referenced in buffering period
2012-01-30 12:12:22.637 Player(0): Waited 100ms for video buffers 
AAAAAAAAAAAALLLAAAAAAAAAAAAAAAAA
2012-01-30 12:12:22.643 Player(0): Waited 100ms for video buffers 
AAAAAAAAAAAALLLAAAAAAAAAAAAAAAAA
2012-01-30 12:12:22.659 Player(0): Waited 100ms for video buffers 
AAAAAAAAAAAALLLAAAAAAAAAAAAAAAAA
2012-01-30 12:12:22.665 [h264_vdpau @ 0x7f9f137e1700]non-existing SPS 1 
referenced in buffering period
2012-01-30 12:12:22.665 [h264_vdpau @ 0x7f9f137e1700]non-existing SPS 1 
referenced in buffering period
2012-01-30 12:12:22.716 [h264_vdpau @ 0x7f9f137e1700]non-existing SPS 1 
referenced in buffering period
2012-01-30 12:12:22.717 VDPAU: Added 2 output surfaces (total 4, max 4)
2012-01-30 12:12:22.756 [h264_vdpau @ 0x7f9f137e1700]non-existing SPS 1 
referenced in buffering period
...

The last line then gets repeated VERY often (about 25 times per second, 
maybe that's one line for each frame?)

Manually increasing audio buffer with: echo 128 | sudo tee 
/proc/asound/card0/pcm2p/sub0/prealloc didn't help.
I couldn't find any solution for those problems in this mailing list or 
by googling so hopefully someone here has an idea what could be wrong 
there.

Many thanks in advance!


More information about the mythtv-users mailing list