"failure to intialize audio device" while playing ripped BluRay files
#1
I installed XBMC last week, and have encountered issues while attempting to play Blu Ray ripped files or Blu Ray disks. Standard DVD ripped files play without errors.

My setup
OS: Ubuntu Release 12.04 (precise) 64-bit, Kernel Linux 3.2.0-49-generic, GNOME 3.4.2
Hardware
Memory: 7.8 GB, Processor: Intel Core i7 CPU 870 @ 2.93GHz x 8
XBMC: 11.0

Graphics Hardware
results of lspci -v
VGA compatible controller: NVIDIA Corporation GF106 [GeForce GTS 450] (rev a1) (prog-if 00 [VGA controller])
Subsystem: eVga.com. Corp. Device 1450
Flags: bus master, fast devsel, latency 0, IRQ 16
Memory at f4000000 (32-bit, non-prefetchable) [size=16M]
Memory at e8000000 (64-bit, prefetchable) [size=128M]
Memory at e4000000 (64-bit, prefetchable) [size=32M]
I/O ports at ac00 [size=128]
[virtual] Expansion ROM at f7700000 [disabled] [size=512K]
Capabilities: <access denied>
Kernel driver in use: nvidia
Kernel modules: nvidia_current, nouveau, nvidiafb

Audio Hardware
results of lspci -v
Audio device: NVIDIA Corporation GF106 High Definition Audio Controller (rev a1)
Subsystem: eVga.com. Corp. Device 1450
Flags: bus master, fast devsel, latency 0, IRQ 17
Memory at f77fc000 (32-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
Kernel driver in use: snd_hda_intel
Kernel modules: snd-hda-intel

results of aplay -L
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: VT1828S Analog [VT1828S Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: VT1828S Digital [VT1828S Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 2: VT1828S HP [VT1828S HP]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 7: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 8: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 9: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0

Snippet of XBMC log while attempting to play a ripped BluRay file
11:16:23 T:139768032188288 NOTICE: DVDPlayer: Opening: /media/media-2/Public/Documentaries/Band Of Brothers/Band_Of_ Brothers_Part_02.mkv
11:16:23 T:139768032188288 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
11:16:23 T:139767612950272 NOTICE: Creating InputStream
11:16:23 T:139767612950272 NOTICE: Creating Demuxer
11:16:23 T:139767612950272 NOTICE: Opening video stream: 0 source: 256
11:16:23 T:139767612950272 NOTICE: Creating video codec with codec id: 72
11:16:23 T:139767612950272 NOTICE: CDVDVideoCodecFFmpeg::Open() Creating VDPAU(1920x1080, 72)
11:16:23 T:139767612950272 NOTICE: vdp_device = 0x00000001 vdp_st = 0x00000000
11:16:23 T:139767612950272 NOTICE: VDPAU Decoder capabilities:
11:16:23 T:139767612950272 NOTICE: name level macbs width height
11:16:23 T:139767612950272 NOTICE: ------------------------------------
11:16:23 T:139767612950272 NOTICE: MPEG1 0 8192 2048 2048
11:16:23 T:139767612950272 NOTICE: MPEG2_SIMPLE 3 8192 2048 2048
11:16:23 T:139767612950272 NOTICE: MPEG2_MAIN 3 8192 2048 2048
11:16:23 T:139767612950272 NOTICE: H264_MAIN 41 8192 2048 2048
11:16:23 T:139767612950272 NOTICE: H264_HIGH 41 8192 2048 2048
11:16:23 T:139767612950272 NOTICE: VC1_SIMPLE 1 8190 2048 2048
11:16:23 T:139767612950272 NOTICE: VC1_MAIN 2 8190 2048 2048
11:16:23 T:139767612950272 NOTICE: VC1_ADVANCED 4 8190 2048 2048
11:16:23 T:139767612950272 NOTICE: MPEG4_PART2_ASP 5 8192 2048 2048
11:16:23 T:139767612950272 NOTICE: ------------------------------------
11:16:23 T:139767612950272 NOTICE: Mixer feature: VDP_VIDEO_MIXER_FEATURE_NOISE_REDUCTION
11:16:23 T:139767612950272 NOTICE: Mixer feature: VDP_VIDEO_MIXER_FEATURE_SHARPNESS
11:16:23 T:139767612950272 NOTICE: Mixer feature: VDP_VIDEO_MIXER_FEATURE_DEINTERLACE_TEMPORAL
11:16:23 T:139767612950272 NOTICE: Mixer feature: VDP_VIDEO_MIXER_FEATURE_DEINTERLACE_TEMPORAL_SPATIAL
11:16:23 T:139767612950272 NOTICE: Mixer feature: VDP_VIDEO_MIXER_FEATURE_INVERSE_TELECINE
11:16:23 T:139767612950272 NOTICE: Mixer feature: VDP_VIDEO_MIXER_FEATURE_HIGH_QUALITY_SCALING_L1
11:16:23 T:139767612950272 NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: SMPTE VC-1 VDPAU
11:16:24 T:139767612950272 NOTICE: Creating video thread
11:16:24 T:139767612950272 NOTICE: Opening audio stream: 1 source: 256
11:16:24 T:139767612950272 NOTICE: Finding audio codec for: 86020
11:16:24 T:139767351715584 NOTICE: running thread: video_thread
11:16:24 T:139767612950272 NOTICE: Creating audio thread
11:16:24 T:139767343322880 NOTICE: running thread: CDVDPlayerAudio::Process()
11:16:24 T:139767343322880 NOTICE: Creating audio device with codec id: 86020, channels: 2, sample rate: 48000, pass-through
11:16:24 T:139767343322880 ERROR: Initialize - failed to open custom device hdmi:CARD=NVidia,DEV=7,AES0=0x6,AES1=0x82,AES2=0x0,AES3=0x2 (error:No such file or directory), retry with default hdmi:CARD=NVidia,DEV=7
11:16:24 T:139767343322880 ERROR: Initialize - pcm_open_lconf, alsa error: -2 - No such file or directory
11:16:24 T:139767343322880 ERROR: Creating a Null Audio Renderer, Check your audio settings as this should not happen
11:16:24 T:139767351715584 NOTICE: (VDPAU) screenWidth:0 vidWidth:1920 surfaceWidth:1920
11:16:24 T:139767351715584 NOTICE: (VDPAU) screenHeight:0 vidHeight:1080 surfaceHeight:1080

XBMC configuration settings at the time of above log file snippet:
Audio Output: HDMI
Audio Output Device: GF106 High Definition Audio Controller Digital Stereo HDMI – (PulseAudio)
Audio Output Passthrough: HDA Nvidia – hdmi – 7 (ALSA)
When video started, the popup "failure to intialize audio device" appeared on the screen

Changes in XBMC configuration after reading log file, results the same:
Test 2
Audio Output: HDMI
Audio Output Device: GF106 High Definition Audio Controller Digital Stereo HDMI – (PulseAudio)
Audio Output Passthrough: Custom: CARD=NVidia,DEV=7

Test 3
Audio Output: HDMI
Audio Output Device: Custom: CARD=NVidia,DEV=7
Audio Output Passthrough: Custom: CARD=NVidia,DEV=7

I should note that the same test files play on the same server without any issue using VLC. The same files play without issue using my WDTV Live box. I am hopeful that I can eliminate the need for the WDTV Live box.

Any help would be appreciated.
Reply
#2
Get me:
aplay -l and aplay -L
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#3
The results of 'aplay -L' appear in my original post. The results of 'aplay -l' are as follows:

**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: VT1828S Analog [VT1828S Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: VT1828S Digital [VT1828S Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 2: VT1828S HP [VT1828S HP]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 7: HDMI 0 [HDMI 0]
Subdevices: 0/1
Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 8: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 9: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
Reply
#4
Try from the shell with:

speaker-test -D plughw:1,7 -c 2 do you hear anything?
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#5
speaker-test -D plugw:1,7 -c 2 results:

speaker-test 1.0.25

Playback device is plughw:1,7
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Playback open error: -16,Device or resource busy

No audio heard.
Reply
#6
I bet pulseudio is hogging that device.
Reply
#7
If xbmc was running while you tested it, it could also be xbmc itself :-)

In short, as your are on Version 11: put plughw:1,7 into every custom audio field you can find.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#8
My mistake, there was an instance of XBMC running in the background. XBMC was stopped and speaker-test -D plugw:1,7 -c 2 resulted in a successful test.

"put plughw:1,7 into every custom audio field you can find." << where am I looking to put this setting, and should it be 'plughw:1,7' or 'plugw:1,7'?

I installed 11.0 from the ubuntu repo due to difficulties with getting access via your posted ppa. Are you indicating that 12.02 would not have these audio issues?

(W: Failed to fetch http://ppa.launchpad.net/team-xbmc/ppa/u...ce/Sources 403 Forbidden

W: Failed to fetch http://ppa.launchpad.net/team-xbmc/ppa/u...4/Packages 403 Forbidden

W: Failed to fetch http://ppa.launchpad.net/team-xbmc/ppa/u...6/Packages 403 Forbidden)
Reply
#9
Update on my testing:
Audio Output: HDMI
Audio Output Device: Custom: plughw:1,7
Audio Output Passthrough: Custom: plughw:1,7
Results: "failure to intialize audio device"

Audio Output: HDMI
Audio Output Device: Custom: plugw:1,7
Audio Output Passthrough: Custom: plugw:1,7
Results: "failure to intialize audio device"
Reply
#10
To make something clear: xbmc 11 has no audio issue. It cannot open the device you try to give it. Version 12 makes it easier for users to choose the actual audio output - but setups (mostly with PA) or some "good meant" asound.confs also break those automatisms.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#11
What confuses me is that I can successfully play the same test file on the same PC using VLC and a check of the Audio Device in VLC indicates "GF106 High Definition Audio Controller Digital Stereo HDMI – (PulseAudio)"
Reply
#12
yeah, that makes sense now.

PA is blocking exactly that device, so xbmc cannot use it in the ALSA way.

Code:
sudo apt-get remove --purge pulseaudio libasound2-plugins

reboot and retry. You can easily install it again after the test.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#13
Removed PulseAudio

Test 1 Results:
Audio Output: HDMI
Audio Output Device: Custom: plughw:1,7
Audio Output Passthrough: Custom: plughw:1,7
Results: "failure to intialize audio device"

Test 2 Results:
Audio Output: HDMI
Audio Output Device: GF106 High Definition Audio Controller Digital Stereo HDMI – (PulseAudio)
Audio Output Passthrough: Custom: plughw:1,7
Results: "failure to intialize audio device"

Test 3 Results:
Audio Output: HDMI
Audio Output Device: GF106 High Definition Audio Controller Digital Stereo HDMI – (PulseAudio)
Audio Output Passthrough: HDA Nvidia HDMI – 7 – (ALSA)
Results: "failure to intialize audio device"

Rebooted and retested - same outcome.
Reply
#14
Please upgrade to version 12. Nvidia in pre Frodo time had a big problem, when checking for the device number via aplay and use the mafterwards.

What you can do before upgrading:
You can try plughw:1,9 and the other one that was also found in your aplay -l and aplay -L

Frodo solves those issues, as it finds the correct device.

The Pulseaudio device should be gone ... make sure there is also no alsa pulse wrapper running.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#15
I have confirmed that nothing 'pulse' related is running in processes.

It sounds like upgrading to Frodo would be the best solution, however the PPA is not reachable for me as indicated in a prior post. Can you offer an alternate site?
Reply

Logout Mark Read Team Forum Stats Members Help
"failure to intialize audio device" while playing ripped BluRay files0