I'm having similar problems. I can play .wav files with aplay fine. (Apart from underruns if I try to run other software at the same time). After I read this thread, I installed lxmusic, and that works fine. aplay -l gives me the following output:
Code: Select all
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
Subdevices: 8/8
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
Subdevice #7: subdevice #7
But,VLC and mplayer don't seem to be able to open alsa audio. Here's the output that I get from VLC. I don't get the error output until I try to play an mp3.
Code: Select all
$ vlc
VLC media player 2.0.2 Twoflower (revision 2.0.1-453-g40d9fef)
[0x1bea8f0] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[0x1e21320] pulse audio output error: PulseAudio server connection failure: Connection refused
[0x1e21320] alsa audio output error: cannot commit hardware parameters: Invalid argument
[0x1e21320] oss audio output error: cannot open audio device (/dev/dsp)
[0x1e21320] main audio output error: no suitable audio output module
[0x1e01270] main decoder error: failed to create audio output
And here is the output I get from mplayer.
Code: Select all
Player svn r34540 (Debian), built with gcc-4.6 (C) 2000-2012 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing 01_u_soul_me.mp3.
libavformat version 53.21.0 (external)
Mismatching header version 53.19.0
Audio only file format detected.
Clip info:
Title: 01 U Soul Me
Artist: Annie Crummer
Album: Seventh Wave
Year: 1996
Comment:
Track: 1
Genre: Rock
Load subtitles in ./
==========================================================================
Requested audio codec family [mpg123] (afm=mpg123) not available.
Enable it at compilation.
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
libavcodec version 53.35.0 (external)
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
libavcodec version 53.35.0 (external)
Mismatching header version 53.32.2
AUDIO: 44100 Hz, 2 ch, floatle, 128.0 kbit/4.54% (ratio: 16001->352800)
Selected audio codec: [ffmp3float] afm: ffmpeg (FFmpeg MPEG layer-3 audio)
==========================================================================
AO: [pulse] Init failed: Connection refused
Failed to initialize audio driver 'pulse'
[AO_ALSA] Unable to set hw-parameters: Invalid argument
Failed to initialize audio driver 'alsa'
[AO SDL] Samplerate: 44100Hz Channels: Stereo Format floatle
[AO SDL] using aalib audio driver.
[AO SDL] Unsupported audio format: 0x1d.
[AO SDL] Unable to open audio: No available audio device
Failed to initialize audio driver 'sdl:aalib'
Could not open/initialize audio device -> no sound.
Audio: no sound
Video: no video
Exiting... (End of file
Any ideas of what to try next?