This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

mplayer does not produce any sound when playing mp3

Hi,

I have cross compiled the mplayer for AM335x Sitara EVM Board and when playing any song, i hear no sound. Below is my log when I play a song.

root@am335x-evm:/usr# mplayer hp.mp3 
MPlayer 1.0rc2-4.5.3 (C) 2000-2007 MPlayer Team
CPU: ARM
Creating config file: /home/root/.mplayer/config

Playing hp.mp3.
Audio file file format detected.
Clip info:
 Title: Happy Birthday @ IndiaMp3.Com
 Artist: Sachin-Jigar
 Album: ABCD 2 (2015)
 Year: 2015
 Comment: @ IndiaMp3.Com
 Track: 4
 Genre: Soundtrack
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
Opening /dev/dvb/adapter0/audio0
DVB AUDIO DEVICE: No such file or directory
AO: [null] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A:  24.8 (24.8) of 244.0 (04:04.0) 10.7%                                        

The compilation steps are here :

# ./configure --prefix=/home/cyient/rootfs --enable-cross-compile --cc=arm-arago-linux-gnueabi-gcc --host-cc=gcc --as=arm-arago-linux-gnueabi-as --ar=arm-arago-linux-gnueabi-ar --ranlib=arm-arago-linux-gnueabi-ranlib --target=arm-linux --disable-ivtv

# make 

# make install

I have a doubt on prefix= /home/cyient/rootfs. What needs to be used here ??

mplayer version used : MPlayer-1.0rc2

compiler : PATH=/home/cyient/arago-2011.09-armv7a-linux-gnueabi-sdk/arago-2011.09/armv7a/bin:

Any help is appreciated. 

  • Hi,
    Did you enable Audio support in linux ?
    Able to play any *.wav files with "aplay" tool ?

    Able to find the audio sound card ?


    Can't open audio device /dev/dsp: No such file or directory

    It seems you have to enable audio support via make menuconfig.
  • Hi,

    Yes we have enabled the audio support. We are able to play wave file using aplay command. I am using the SDK 5 version prebuilt binaries on Sitara EVM board.

    See here :

    root@am335x-evm:/usr# aplay /usr/share/sounds/alsa/Front_Center.wav
    Playing WAVE '/usr/share/sounds/alsa/Front_Center.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
    root@am335x-evm:/usr# aplay /usr/share/sounds/alsa/Front_Center.wav
    Playing WAVE '/usr/share/sounds/alsa/Front_Center.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono

    root@am335x-evm:/usr# aplay -l
    **** List of PLAYBACK Hardware Devices ****
    card 0: EVM [AM335X EVM], device 0: AIC3X tlv320aic3x-hifi-0 []
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    root@am335x-evm:/usr#
  • # ./configure --prefix=/home/cyient/rootfs --enable-cross-compile --cc=arm-arago-linux-gnueabi-gcc --host-cc=gcc --as=arm-arago-linux-gnueabi-as --ar=arm-arago-linux-gnueabi-ar --ranlib=arm-arago-linux-gnueabi-ranlib --target=arm-linux --disable-ivtv --enable-alsa

    Even tried enabling alsa, but still I dont here any sound.
    One more thing :
    when I give mplayer -ao help, I dont get alsa here.

    root@am335x-evm:/usr# mplayer -ao help
    MPlayer 1.0rc2-4.5.3 (C) 2000-2007 MPlayer Team
    CPU: ARM
    Available audio output drivers:
    oss OSS/ioctl audio output
    mpegpes DVB audio output
    v4l2 V4L2 MPEG Audio Decoder output
    null Null audio output
    pcm RAW PCM/WAVE file writer audio output

    I encountered error while sudo make install
    make -C osdep
    make[1]: Entering directory `/home/cyient/MPlayer-1.0rc2/osdep'
    make[1]: Nothing to be done for `libs'.
    make[1]: Leaving directory `/home/cyient/MPlayer-1.0rc2/osdep'
    install -m 755 -s mplayer /media/cyient/rootfs//media/cyient/rootfs/bin
    strip: Unable to recognise the format of the input file `/media/cyient/rootfs//media/cyient/rootfs/bin/mplayer'
    install: strip process terminated abnormally
    make: *** [install-mplayer] Error 1

    Please help.
    Thank you

    Vijay
  • We built our own mp3 decoder and solved this issue ourself.
    Thanks for the help.