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 參數即可!
libmad is a high-quality MPEG audio decoder capable of 24-bit output.
Package Information-
Download (HTTP): http://downloads.sourceforge.net/mad/libmad-0.15.1b.tar.gz
-
Download (FTP): ftp://ftp.mars.org/pub/mpeg/libmad-0.15.1b.tar.gz
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
留言列表