PDA

View Full Version : 5.1 Audio works fine for Videos / DVDs, but MP3s wont play. Any ideas?


djayc
2009-02-05, 10:25
Sound works great for DVDs, mpegs, etc, and the 5.1 is working, but for some reason when I start to play an MP3 nothing happens.

If I hit TAB to go to the play screen it just shows the MP3 hanging at 0:00. It reads the file fine, but it seems to hang on playback.

Any ideas? :confused2:

spozen
2009-02-05, 12:40
So stereo works? Menu sound, movies in stereo?

ronie
2009-02-05, 14:39
Are you using analogue audio output or digital (HDMI or S/PDIF) ?
What are the contents of your .asoundrc file, if you have one?
How did you configure your audio hardware in XBMC ?

djayc
2009-02-05, 18:42
Yep.. menu sounds work as do movies.

I am using digital audio with spdif passthrough, and what I have working now was setup correctly out of the box.

This is my .asoundrc :

pcm.!default {
type hw
card 0
device 1
}

It's weird because when I start an MP3 it's not like I can see it playing, but there's no sound.. it just doesn't seem to start at all. It hangs at 0:00.

ronie
2009-02-07, 03:47
If you enable debug logging, does the logfile show anything relevant when you start to play the mp3 file ?
You can also try to play the file with the build-in dvd player, select the mp3 and open up the context menu, now select: Play using.. and select DVDPlayer.

Just to make sure, is sound working ok outside of XBMC ?

djayc
2009-02-09, 04:41
hmm.. interesting. It plays just fine with the built in DVD player using the context menu as you suggested.

It seems that PAPlayer is having problems. Any ideas about that? Shouldn't it be using the same settings and codecs and what not?

djayc
2009-02-09, 04:45
Could someone post a dump of what files are in system/players/paplayer ?

It looks like the mp3 codec may not be in that directory, which is odd. I'm wondering if the Ubuntu packages don't have the mp3 codec included for some reason?

djayc
2009-02-09, 04:46
nevermind.. MADCodec is in there.

Now I'm stumped ;-)

djayc
2009-02-09, 05:00
It looks like an issue with ALSA.

I think XBMC is tying up the ALSA Device with it's Front End, so when it attempts to run PAPlayer it doesn't have access to the device since it's busy.

This was in my log:
ERROR: CreateStream - pcm_open, alsa error: Device or resource busy

Southpark
2009-02-09, 10:32
Did you applied this http://xbmc.org/trac/ticket/5801 patch because of onboard audio? This one breaks paplayer for me. (dvdplayer runs fine with 5.1 sound)

Znubbis
2009-02-09, 14:07
I had the same problem as you but i got it to work.

Go to your audio hardware page in xbmc, you should have a field with "default" Try change default to the same as the field under it (im at work and i dont remember what it say ???).

Restart and try, if it don't help you got some other problem than me and can just change it back to default. Hopefully it will help as it did for me.

gquiring
2009-02-24, 21:13
Any followup? Were you able to fix your problem?

Brasil
2009-05-09, 16:40
I have this exact same problem.

I have no idea what "default" is - I don't have a default.

ronie
2009-05-09, 19:59
I have no idea what "default" is - I don't have a default.

'default' refers to the analogue output of your soundcard.
run aplay -L to see for yourself.

if you want to point 'default' to another output (hdmi/spdif) you can create a .asoundrc file to do so.