MPlayer 加入{libmad} -enable mad

mp3lib用的是浮點運算,ARM9 或是 Intel PXA270中沒有浮點協處理器,你需要修改mp3lib算法,將浮點運算更改為定點運算。

下載MAD的source code,make生成 libmad.a,記得把libmad.a mad.h 加到合適的路徑下(/usr/local/arm/2.95.3(3.3.2)/lib),

然後configure 時加上--enable-mad,重新編譯。播放時加上 -ac mad 參數即可!

Introduction to libmad

libmad is a high-quality MPEG audio decoder capable of 24-bit output.

Package Information
Installation of libmad

Install libmad by running the following commands:

./configure --prefix=/usr &&
make

This package does not come with a test suite.

Now, as the root user:

make install

Some packages check for the pkg-config file for libmad. This file is particularly needed so that Cdrdao can recognize the installed libmad.

As the root user:

 cat > /usr/lib/pkgconfig/mad.pc << "EOF"
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: mad
Description: MPEG audio decoder
Requires:
Version: 0.15.1b
Libs: -L${libdir} -lmad
Cflags: -I${includedir}
EOF 
arrow
arrow
    全站熱搜

    BB 發表在 痞客邦 留言(0) 人氣()