1. 首先安装系统编译环境
yum
install
-y automake autoconf libtool
gcc
gcc
-c++
#CentOS
2. 编译所需源码包
#yasm:汇编器,新版本的ffmpeg增加了汇编代码
wget http:
//www
.tortall.net
/projects/yasm/releases/yasm-1
.3.0.
tar
.gz
tar
-xzvf yasm-1.3.0.
tar
.gz
cd
yasm-1.3.0
.
/configure
make
make
install
#lame:Mp3音频解码
wget http:
//jaist
.dl.sourceforge.net
/project/lame/lame/3
.99
/lame-3
.99.5.
tar
.gz
tar
-xzvf lame-3.99.5.
tar
.gz
cd
lame-3.99.5
.
/configure
make
make
install
#amr支持
wget http:
//downloads
.sourceforge.net
/project/opencore-amr/opencore-amr/opencore-amr-0
.1.3