ffmpeg centos6.5上安装(测试 amr 转换为 mp3)
1. 下载相关源码包
wget http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz
wget http://sourceforge.net/projects/lame/files/lame/3.99/lame-3.99.5.tar.gz/download
wget http://sourceforge.net/projects/opencore-amr/files/opencore-amr/opencore-amr-0.1.3.tar.gz/download
#下载链接所在网页:http://www.penguin.cz/~utx/amr
#安装amr之前需要:yum install patch
wget http://www.penguin.cz/~utx/ftp/amr/amrnb-11.0.0.0.tar.bz2
wget http://www.penguin.cz/~utx/ftp/amr/amrwb-11.0.0.0.tar.bz2
#下载链接所在网页:http://ffmpeg.org/download.html
wget http://ffmpeg.org/releases/ffmpeg-2.6.2.tar.bz2
2. 以上源码包按顺序编译安装。
./configuer
./make
./make install
3. 添加环境变量
在 ~/.bashrc 中添加 (因为安装后的lame, amr等动态链接库被拷贝至/usr/local/lib/)
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib64:/usr/lib64:/usr/local/lib"
4. 重新登录后,测试
ffmpeg -i test.amr test.mp3