XBMC will not play non-AC3 audio
#1
Hello,
I've tried several fixes to this and have reinstalled ubuntu and XBMC multiple times and still have the same problem. Any audio that is not AC3/Dolby Digital will not work for me.

I'm running build 19954 from PPA. My sound card is connected to my speakers vi SPDIF.
I've removed pulseaudio. I even removed all librariess for pulseaudio so that there was no chance it could come back. I've tried Ubuntu 8.10 and 9.04.. I can go into sound properties in Ubuntu, hit the test button and get sound. I can load up Totem Movie Player and play any and all audio with no problem.

When I start to play a video with non-AC3 audio, I get this in my xbmc.log:

Code:
18:44:22 T:2898082704 M:729640960  NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: MPEG-4 part 2
18:44:22 T:2898082704 M:729640960   DEBUG: FactoryCodec - Video: ff-mpeg4 - Opened
18:44:22 T:2898082704 M:729640960  NOTICE: Creating video thread
18:44:22 T:2883197840 M:729640960   DEBUG: Running thread 2883197840
18:44:22 T:2883197840 M:729640960   DEBUG: thread start, auto delete: 0
18:44:22 T:2883197840 M:729640960  NOTICE: running thread: video_thread
18:44:22 T:2898082704 M:729640960  NOTICE: Opening audio stream: 1 source: 256
18:44:22 T:2898082704 M:729640960  NOTICE: Finding audio codec for: 86017
18:44:22 T:2898082704 M:729640960   DEBUG: FactoryCodec - Audio: passthrough - Opening
[b]18:44:22 T:2898082704 M:729640960   DEBUG: FactoryCodec - Audio: passthrough - Failed[/b]
18:44:22 T:2898082704 M:729640960   DEBUG: FactoryCodec - Audio: libmad - Opening
18:44:22 T:2898082704 M:729640960   DEBUG: SECTION:LoadDLL(special://xbmc/system/players/dvdplayer/libmad-i486-linux.so)
18:44:22 T:2898082704 M:729640960   DEBUG: Loading: /usr/share/xbmc/system/players/dvdplayer/libmad-i486-linux.so
18:44:22 T:2898082704 M:729640960   DEBUG: FactoryCodec - Audio: libmad - Opened
18:44:22 T:2898082704 M:729640960  NOTICE: Creating audio thread
18:44:22 T:2874805136 M:729604096   DEBUG: Running thread 2874805136
18:44:22 T:2874805136 M:729604096   DEBUG: thread start, auto delete: 0
18:44:22 T:2874805136 M:729604096  NOTICE: running thread: CDVDPlayerAudio::Process()
18:44:22 T:3049301824 M:729604096   DEBUG: Playback has started
18:44:22 T:3049301824 M:729382912   DEBUG: Load black-back2.png: 0.6ms (bundled)
18:44:22 T:3049301824 M:729382912   DEBUG: Load PlayerControls-RepeatNF.png: 0.1ms (bundled)
18:44:22 T:3049301824 M:729382912   DEBUG: CGUIInfoManager::SetCurrentMovie(smb://ALEXANDRIA/videos/TV Shows/That 70s show/Season 1/that.70s.
show.s01e01.dvdrip.xvid-river.avi)

Also, I'm not getting navigation sounds that I was getting in the PPA build from a few months ago.

If anyone has any ideas, I'd really appreciate it.
Reply
#2
FYI, as an experiment, I went back to r16164 and all audio works now with no problems.

Any ideas would be appreciated. I'd really like to have VDPAU support.
Reply
#3
I must say, I believe i had a similar problem as you did. I posted on the forums here for like 4 days with no help (http://forum.xbmc.org/showthread.php?tid=51030).

I then came across this thread, specifically this post i tried (http://forum.xbmc.org/showpost.php?p=209655&postcount=2). The test worked fine, but xbmc center still had problems. If you note in my posts, my audio configuration was messed up somehow. I have no idea how that happens since i would never edit any of those settings.

To say the least, audio was working again for me, however I still have been having alot of issues with xbmc lately. The audio stops working from time to time and I have to repeat the steps mentioned above. Also, i was just playing an mp3 the other day and all the sudden I ended up back to my desktopHuh I have been hesitant to even upgrade the svn because I have limited functionality working now and I dont even want that to screw up.

XBMC is usually great for me without many problems. But i must say as of late, i feel like i have been having a larger number of problems and limited support. That said, I do appreciate everyones hard work on the project. hopefully this helps you.
Motherboard P5N7A-VM, E8400 C2D 3.0 processor. NVIDIA 9300 graphics card. OpenELEC Stable - Generic x86_64 Version:3.2.4
Reply
#4
Thanks for replying.

Actually, I saw your post when I was researching this on my own about a week ago. I made sure settings were to default and iec958 in XBMC, which they were. They were not misspelled or anything else like that. I've also tried playing around with the .asound file to no avail.

Here's what I've noticed by reading the debug log:
Code:
02:41:17 T:2866244496 M:779300864  NOTICE: Opening audio stream: 1 source: 256
02:41:17 T:2866244496 M:779300864  NOTICE: Finding audio codec for: 65537
02:41:17 T:2866244496 M:779300864   DEBUG: FactoryCodec - Audio: passthrough - Opening
02:41:17 T:2866244496 M:779300864   DEBUG: FactoryCodec - Audio: passthrough - Failed
02:41:17 T:2866244496 M:779300864   DEBUG: FactoryCodec - Audio: pcm - Opening
02:41:17 T:2866244496 M:779300864   DEBUG: FactoryCodec - Audio: pcm - Opened
02:41:17 T:2866244496 M:779300864  NOTICE: Creating audio thread
02:41:17 T:2841066384 M:779300864   DEBUG: Running thread 2841066384

It tries to create passthrough audio but fails for some reason.

Code:
02:41:17 T:2841066384 M:779247616  NOTICE: Creating audio device with codec id: 65537, channels: 2, sample rate: 48000, no pass-through
02:41:17 T:2841066384 M:779247616   DEBUG: PulseAudio: Opening Channels: 2 - SampleRate: 48000 - SampleBit: 16 - Resample false - Codec PCM - IsMusic false - IsPassthrough false - audioHost: default - audioDevice: default

Code:
02:41:17 T:2841066384 M:782491648   DEBUG: PulseAudio: Context failed
02:41:17 T:2841066384 M:782491648   ERROR: PulseAudio: Waited for the Context but it failed
02:41:17 T:2841066384 M:782405632   DEBUG: CALSADirectSound::CALSADirectSound - Channels: 2 - SampleRate: 48000 - SampleBit: 16 - Resample false - Codec PCM - IsMusic false - IsPassthrough false - audioDevice: default
02:41:17 T:2841066384 M:782462976   DEBUG: Initialize - using alsa device default
02:41:17 T:2841066384 M:782462976   DEBUG: CALSADirectSound::Initialize - packet size:4096, packet count:8, buffer size:8192
02:41:17 T:2841066384 M:782462976   DEBUG: CDVDPlayerAudio:: Discontinuty - was:345066.740000, should be:14.405333, error:-345052.334667

Opens the audio with PulseAudio, but then realizes PulseAudio isn't there and tries ALSA. The problem is that now its got ALSA set to non-passthrough.
I don't understand why its trying PulseAudio. I thought XBMC didn't work well with PulseAudio.

I filed a ticket early this morning http://trac.xbmc.org/ticket/6626
This is the only issue I've had with XBMC since upgrading to the new PPA. If I remove r19954 from my system and use wattazoums deprecated links to the old PPA build of r16164, everything goes back to normal. Of course, that means losing VDPAU support, x.264 support, etc.

I like XBMC a lot too. I think its a fantastic project, and I also appreciate the hard work that has been put into it by the programmers.

Thanks again for at least trying
Reply
#5
Maybe the only difference then is that I compile from the SVN using the --disable_pulse switch so that it doesn't use pulse audio.

What i dont understand is that everyone says its an ALSA bug (which it probably is), but this bug hasnt shown up for me until recent builds.
Motherboard P5N7A-VM, E8400 C2D 3.0 processor. NVIDIA 9300 graphics card. OpenELEC Stable - Generic x86_64 Version:3.2.4
Reply
#6
Well, if its an ALSA bug when was it introduced? I've been running ALSA 1.0.17 the whole time, yet audio worked perfectly with r16164.
Reply

Logout Mark Read Team Forum Stats Members Help
XBMC will not play non-AC3 audio0