Centos6编译安装最新版ffmpeg

1. 安装必要库

wget http://sourceforge.net/projects/lame/files/lame/3.99/lame-3.99.5.tar.gz

wget http://sourceforge.net/projects/opencore-amr/files/opencore-amr/opencore-amr-0.1.3.tar.gz

wget http://downloads.xiph.org/releases/ogg/libogg-1.3.0.tar.gz

wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.3.tar.gz

wget ftp://ftp.videolan.org/pub/x264/snapshots/last_x264.tar.bz2

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

wget http://sourceforge.net/projects/faac/files/faac-src/faac-1.26/faac-1.26.tar.gz/download

wget http://downloads.xvid.org/downloads/xvidcore-1.3.2.tar.gz

按照其中的README或者INSTALL提示,编译安装.大多为 ./configure && make && make install .

其中 x264 lame3 需要 --enable-shared

2. 编译ffmpeg

./configure  --enable-gpl --enable-version3  --enable-nonfree --enable-libfaac --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-shared   --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvorbis --enable-pthreads --disable-ffserver --disable-ffplay

make && make install

以此结束。如果编译完成后,找不到库,ldconfig即可。

posted on 2012-05-14 20:35  yxyx213  阅读(481)  评论(0编辑  收藏  举报

导航