编译安装FFmpeg 要支持xvid、x264、mp3、ogg、amr、faac

编译安装FFmpeg 要支持xvid、x264、mp3、ogg、amr、faac

libfaac    faac格式的编解码包
libmp3lame    mp3格式编解码包
libopencore-amrwb libopencore-amrnb    amr格式编解码包
libx264    x264格式编解码包
libvorbis    ogg格式编解码包
libxvid    xvid格式编解码包

开始安装(有些包下载可能需要翻墙)
faac
wget http://softlayer-dal.dl.sourceforge.net/project/faac/faac-src/faac-1.28/faac-1.28.tar.gz
tar zxf faac-1.28.tar.gz
cd faac-1.28
./configure prefix=/usr/local/
make && make install


lame
wget http://colocrossing.dl.sourceforge.net/project/lame/lame/3.98.4/lame-3.98.4.tar.gz
tar zxf lame-3.98.4.tar.gz
cd lame-3.98.4
./configure prefix=/usr/local/
make && make install


opencore-amr
wget http://iweb.dl.sourceforge.net/project/opencore-amr/opencore-amr/opencore-amr-0.1.3.tar.gz
tar zxf opencore-amr-0.1.3.tar.gz
cd opencore-amr
./configure prefix=/usr/local/
make && make install


yasm(x264 configure need)
wget http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz
tar zxf yasm-1.3.0.tar.gz
cd yasm-1.3.0
./configure prefix=/usr/local/
make && make install


x264
wget ftp://ftp.videolan.org/pub/x264/snapshots/last_x264.tar.bz2
tar jxf last_x264.tar.bz2
cd x264-snapshot-20141124-2245
./configure prefix=/usr/local/
make && make install


ogg
wget http://downloads.xiph.org/releases/ogg/libogg-1.3.2.tar.xz
xz -d libogg-1.3.2.tar.xz
tar xf libogg-1.3.2.tar
cd libogg-1.3.2
./configure prefix=/usr/local/
make && make install


xvid
wget http://downloads.xvid.org/downloads/xvidcore-1.3.3.tar.gz
tar zxf xvidcore-1.3.3.tar.gz
cd xvidcore/build/generic/
./configure prefix=/usr/local/
make && make install


ffmpeg
wget http://ffmpeg.org/releases/ffmpeg-2.4.3.tar.bz2
tar jxf ffmpeg-2.4.3.tar.bz2
cd ffmpeg-2.4.3
./configure --enable-libxvid --enable-libx264 --enable-libmp3lame --enable-libvorbis --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfaac  --enable-gpl --enable-version3 --enable-nonfree --enable-shared --enable-zlib --enable-bzlib --enable-libvorbis
make#wait about 10 minutes
make install

OVER!

FFmpeg 的详细介绍:请点这里
FFmpeg 的下载地址:请点这里

相关推荐