[MPlayer-users] Problems emerged when playing audio with alsa (Mplayer 1.0rc2)

dongbenson dongas86.dev at hotmail.com
Mon Dec 10 12:27:47 CET 2007


The mplayer vertion is 1.0.rc2, run on the arm9 board and kernel 2.6.18.
The configure parameter is
./configure --cc=arm-9tdmi-linux-gnu-gcc \
--host-cc=gcc \
--prefix=/work/src/mplayer/install/mplayer-1.0rc2/ \
--enable-cross-compile \
--target=arm-armv4l-linux \
--disable-win32dll \
--disable-dvdread \
--disable-dvdnav \
--disable-dvdread-internal \
--disable-libdvdcss-internal \
--enable-fbdev \
--disable-mencoder \
--disable-libmpeg2 \
--disable-mp3lib \
--enable-mad \
--enable-static \
--enable-alsa \
--disable-gui \
--disable-tv \
--disable-live \
--with-extraincdir=/opt/crosstool/gcc-3.4.1-glibc-2.3.3/arm-9tdmi-linux-gnu/arm-9tdmi-linux-gnu/include/ \
--with-extralibdir=/opt/crosstool/gcc-3.4.1-glibc-2.3.3/arm-9tdmi-linux-gnu/arm-9tdmi-linux-gnu/lib/

Another thing should be said was that I didn't install alsa-lib-dev before compiled mplayer because i couldn't find where to download it.But i used another way which seemed also work.I compiled alsa-lib static first,then the configure of mplayer could find the alsa well.But the problems emerged when playing audio with "-ao alsa" parameter using this way to compile the mplayer.

The error log is as follows .
/ # mplayer -ao alsa 1.wav
MPlayer 1.0rc2-3.4.1 (C) 2000-2007 MPlayer Team
CPU: ARM
Playing 1.wav.
Audio file file format detected.
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 44100 Hz, 2 ch, s16le, 1411.2 kbit/100.00% (ratio: 176400->176400)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
[AO_ALSA] alsa-lib: pcm.c:2145snd_pcm_open_noupdate) Unknown PCM default
[AO_ALSA] Playback open error: No such file or directory
Could not open/initialize audio device -> no sound.
Audio: no sound
Video: no video

It could work well when used oss driver.The command was "mplayer -ao oss 1.wav".
It seems alsa driver error ,but i couldnot make sure.
How can i solve this problem ? Do i need to config some files about alsa or mplayer?
If someone knows ,please tell me .Any help would be much appreciated!
Thanks in advance!


Best Regards!
dongas

_________________________________________________________________
新一代的Windows Live    重装推出全新的七种武器!
http://get.live.cn



More information about the MPlayer-users mailing list