[FFmpeg-devel] Issue with ffmpeg mp3 decoder on ARM11

Alexy galahad
Tue Jul 17 09:27:16 CEST 2007


Hello,

 Thank you for the help. I checked the file you mentioned,
ALT_BITSTREAM_READER was already enabled (maybe because i had tried building
ffmpeg with arch=<blank> )

Some more things i could find out.

1) The input to the MP3 decoder is matching on arm and on linux.

2) I am using the gcc 3.3.2 compiler, but the libs on the filesystems are
built using 3.4.4. When i configure ffmpeg with the 3.4.4 libs,
config.errtalks about the libraries using hardware fp. As far as i
could know ARM does
not have hardware fp. Could this be a problem? Detailed log is given below.

3) decoding of H.263 is happening fine on ARM with the same library


Regards,

Alexy

The gcc tool chain -v gives this output

Reading specs from /usr/local/arm/3.3.2/lib/gcc-lib/arm-linux/3.3.2/specs
Configured with: ../gcc-3.3.2/configure --target=arm-linux
--with-cpu=strongarm1100 --prefix=/usr/local/arm/3.3.2 i686-pc-linux-gnu
--with-headers=/work/kernel.h3900/include --enable-threads=pthreads
--enable-shared --enable-static --enable-languages=c,c++
Thread model: posix
gcc version 3.3.2

This is the part from config.err when --extra-ldflags=--no-warn-mismatch

/usr/local/arm/3.3.2/bin/arm-linux-gcc -fomit-frame-pointer -c -o
/tmp/ffmpeg-conf-15761-14931-17310.o /tmp/ffmpeg-conf-13822-14931-14077.c
/usr/local/arm/3.3.2/bin/arm-linux-gcc -Wl,--warn-common
-L/work/omap2430/rootfs26/lib -o /tmp/ffmpeg-conf-25060-14931-18692
/tmp/ffmpeg-conf-15761-14931-17310.o -lm
/usr/local/arm/3.3.2/lib/gcc-lib/arm-linux/3.3.2/../../../../arm-linux/bin/ld:
ERROR: /usr/local/arm/3.3.2/lib/libc_nonshared.a(elf-init.oS) uses hardware
FP, whereas /tmp/ffmpeg-conf-25060-14931-18692 uses software FP
File format not recognized: failed to merge target specific data of file
/usr/local/arm/3.3.2/lib/libc_nonshared.a(elf-init.oS)
/usr/local/arm/3.3.2/lib/gcc-lib/arm-linux/3.3.2/../../../../arm-linux/bin/ld:
ERROR: /usr/local/arm/3.3.2/lib/gcc-lib/arm-linux/3.3.2/crtend.o uses
hardware FP, whereas /tmp/ffmpeg-conf-25060-14931-18692 uses software FP
File format not recognized: failed to merge target specific data of file
/usr/local/arm/3.3.2/lib/gcc-lib/arm-linux/3.3.2/crtend.o
/usr/local/arm/3.3.2/lib/gcc-lib/arm-linux/3.3.2/../../../../arm-linux/bin/ld:
ERROR:
/usr/local/arm/3.3.2/lib/gcc-lib/arm-linux/3.3.2/../../../../arm-linux/lib/crtn.o
uses hardware FP, whereas /tmp/ffmpeg-conf-25060-14931-18692 uses software
FP
File format not recognized: failed to merge target specific data of file
/usr/local/arm/3.3.2/lib/gcc-lib/arm-linux/3.3.2/../../../../arm-linux/lib/crtn.o
collect2: ld returned 1 exit status
C compiler test failed.


On 7/17/07, Siarhei Siamashka <siarhei.siamashka at gmail.com> wrote:
>
> On Monday 16 July 2007 21:28, Alexy wrote:
>
> >  I am trying to use ffmpeg mp3 decoder on an ARM processor. When
> > avcodec_decode_audio2 is called for decode, the decoded buffer is filled
> > with only zeroes. When i checked the same version of ffmpeg on a linux
> pc
> > the decoded output does not have this problem.
>
> ...
>
> >  Has anyone else faced the same problem? Could you please give me some
> > pointers about this? I tried searching through the archives, but i could
> > not find any help.
>
> Don't know if this could cause a difference, but check bitstream.h header
> file. ARM uses A32_BITSTREAM_READER while all the other architectures
> use ALT_BITSTREAM_READER. Try to set ALT_BITSTREAM_READER
> for ARM and check if it solves your problem.
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at mplayerhq.hu
> http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-devel
>




More information about the ffmpeg-devel mailing list