[MPlayer-users] mplayer for arm926ej-s

Shakthi Kannan genes46genes at yahoo.com
Mon Sep 12 19:46:11 CEST 2005


I am working on cross-compiling mplayer for ARM926EJ-s

I found this useful link:

and used it as a base for cross-compilation.

I have cross-compiled it with libmad-0.15.0b.tar.gz
(first), but, I am not able to get any audio output. I
am using:

cross-toolchain 2.95.3 (from

A quick summary of the results:

Format   Video    Audio
mpeg     yes      no
mp3       -       no
wav       -       yes
avi      yes      no
wmv      no       no

A brief howto that I followed:


1. Compiled libmad-0.15.0b.tar.gz 
	./configure --prefix=
	make install


1. Change /dev/dsp and /dev/mixer in configure script
[Because base.cramfs provided by ARM has no /dev/sound
and it uses /dev/dsp and /dev/mixer]

2. Set libmad path

3. ./configure
   cd libavcodec
   ln -s ../config.h config.h
   cd ../libmpcodecs
   ln -s ../config.h config.h
   cd ..

4. Rename codec-cfg to codec-cfg.x86 or something else

5. Change in Makefile for codec-cfg with gcc instead
of ${CC}

6. ./configure 	--enable-static 

7. In libmpcodecs/Makefile, add
"-I/path/to/libmad/install/include" in CC compilation

8. In config.mak, set "limbad=-L/path/to/lib -lmad"

9. make

mplayer gets compiled.

I have two questions:

1. When I try to play mp3 using mplayer on the ARM
board, I get:

Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG
layer-2, layer-3)
A: 0.4 (0.4) 0.0%

But, the 0.0% doesn't move at all and I don't get any
audio output at all. If I play .wav files, it plays
properly though. Any suggestions as to how I can get
mplayer to play mp3?

2. mpeg-1 video files seem to play fine. But, other
mpeg versions seem to play with a blue tinch. Do I
need to use some codecs?

I'd appreciate any feedback as to what I am doing
wrong and how I can get these working.



Shakthi Kannan, MS
Software Engineer, Specsoft (Hexaware Technologies)
[E]: genes46genes at yahoo.com          [M]: (91) 98407-87007
[W]: http://www.shakthimaan.com      [L]: Chennai, India

Yahoo! for Good 
Donate to the Hurricane Katrina relief effort. 

More information about the MPlayer-users mailing list