歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux編程 >> Linux編程 >> 編譯安裝FFmpeg 要支持xvid、x264、mp3、ogg、amr、faac

編譯安裝FFmpeg 要支持xvid、x264、mp3、ogg、amr、faac

日期:2017/3/1 9:33:57   编辑:Linux編程

編譯安裝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!

Linux下編譯FFmpeg之下載源文件並編譯 http://www.linuxidc.com/Linux/2012-02/54565.htm

Linux 編譯升級 FFmpeg 步驟 http://www.linuxidc.com/Linux/2013-08/88190.htm

CentOS 5.6 上安裝 FFMPEG http://www.linuxidc.com/Linux/2011-09/42793.htm

在Ubuntu下安裝FFmpeg http://www.linuxidc.com/Linux/2012-12/75408.htm

Ubuntu 12.04下編譯ffmpeg http://www.linuxidc.com/Linux/2013-02/78857.htm

Ubuntu 14.04下PPA安裝FFmpeg 2.2.2 http://www.linuxidc.com/Linux/2014-05/101322.htm

FFmpeg 的詳細介紹:請點這裡
FFmpeg 的下載地址:請點這裡

Copyright © Linux教程網 All Rights Reserved