centos编译安装ffmpeg支持AMR

新项目 涉及到 android跟ios socket聊天 语音通讯的问题 iOS的录音格式是caf  android不能放  android的amr iOS又不能放, 唉

用服务器直接amr与caf相互转换   最开始用yum默认安装ffmeg 发现amr的不能转,so只能编译安装

yum install -y automake autoconf libtool gcc gcc-c++

cd /Data/tgz/

wget http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz

tar -zxvf yasm-1.2.0.tar.gz

cd yasm-1.2.0

./configure

make

make install

wgethttp://downloads.sourceforge.net/project/opencore-amr/opencore-amr/0.1.2/opencore-amr-0.1.2.tar.gz

tar -zxvfopencore-amr-0.1.2.tar.gz

cd opencore-amr-0.1.2

./configure

make

make install

wgethttp://ffmpeg.org/releases/ffmpeg-2.4.1.tar.bz2

tar -xjf ffmpeg-2.4.1.tar.bz2

wgethttp://cznic.dl.sourceforge.net/project/opencore-amr/fdk-aac/fdk-aac-0.1.3.tar.gz

tar -zxvf fdk-aac-0.1.3.tar.gz

cd fdk-aac-0.1.3

./configure --enable-shared=no --enable-static=yes

make

make install

wget http://downloads.sourceforge.net/lame/lame-3.99.5.tar.gz

tar -zxvf lame-3.99.5.tar.gz

./configure

make

make install

cd ../ffmpeg-2.4.1

./configure --enable-libmp3lame --enable-version3 --enable-nonfree --disable-ffplay --disable-ffprobe --disable-ffserver --enable-libopencore-amrnb --enable-libopencore-amrwb --prefix=/Data/apps/ffmpeg/

make

make install

yum install -y automake autoconf libtool gcc gcc-c++

rpm -Uhvhttp://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm

yum -y install ffmpeg ffmpeg-devel

参考文档

http://my.oschina.net/feiyan/blog/84515

http://my.oschina.net/kone/blog/187468

http://www.cnblogs.com/kasuo/archive/2013/06/06/3121741.html

你可能感兴趣的:(centos编译安装ffmpeg支持AMR)