LInux下安裝ffmpeg視頻轉換工具
首先要安裝各類解碼器
一、lame
lame-3.97.tar.gz
Url:http://sourceforge.net/project/showfiles.php?group_id=290&package_id=309
安裝方法以下:
- tar -zxvf lame-3.97.tar.gz
- cd lame-3.97
- ./configure --enable-shared --prefix=/usr
- make
- make install
二、libogg
libogg-1.1.3.tar.gz
Url:http://downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz
安裝方法以下:
- ./configure --prefix=/usr
- make
- make install
三、libvorbis
libvorbis-1.1.2.tar.gz
Url:http://downloads.xiph.org/releases/vorbis/libvorbis-1.1.2.tar.gz
安裝方法以下:
- ./configure --prefix=/usr
- make
- make install
四、xvid
xvidcore-1.1.3.tar.gz
Url:http://downloads.xvid.org/downloads/xvidcore-1.1.3.tar.gz
安裝方法以下:
- tar zvxf xvidcore-1.1.3.tar.gz
- cd xvidcore-1.1.3/build/generic
- ./configure --prefix=/usr
- make
- make install
五、x264
x264-snapshot-20071107-2245.tar.bz2
Url:http://www.videolan.org/developers/x264.html
ftp://ftp.videolan.org/pub/videolan/x264/snapshots/
安裝方法以下:
- bunzip2 x264-snapshot-20070913-2245.tar.bz2
- tar xvf x264-snapshot-20070913-2245.tar
- ./configure --prefix=/usr --enable-shared
- make
- make install
六、libdts
libdts-0.0.2.tar.gz
[url]http://download.videolan.org/pub/videolan/libdca/0.0.2/libdca-0.0.2.tar.gz [/url]
安裝方法:
- tar zxvf libdts-0.0.2.tar.gz
- cd libdts-0.0.2
- ./configure --prefix=/usr
- make
- make install
七、a52
a52dec-0.7.4.tar.gz
http://liba52.sourceforge.net/downloads.html
安裝方法:
- ./configure --prefix=/usr
- make
- make install
八、faad2
faad2-2.6.1.tar.gz
http://www.audiocoding.com/downloads.html
安裝方法
- autoreconf -vif
- ./configure --prefix=/usr --with-mp4v2 --enable-shared
- make
- make install
九、faac
faac-1.26.tar.gz
http://linux.softpedia.com/progDownload/FAAC-Download-554.html
安裝方法:
- tar zxvf faac-1.26.tar.gz
- cd faac
- ./bootstrap
- ./configure --prefix=/usr
- make
- make install
十、amr-nb
amrnb-6.1.0.4.tar.bz2
http://ftp.penguin.cz/pub/users/utx/amr/amrnb-6.1.0.4.tar.bz2
安裝方法:
- ./configure --prefix=/usr
- make
- make install
十一、amr-wb
amrwb-7.0.0.1.tar.bz2
http://ftp.penguin.cz/pub/users/utx/amr/amrwb-7.0.0.1.tar.bz2
安裝方法:
- ./configure --prefix=/usr
- make
- make install
十二、lib52
a52dec-0.7.4.tar.gz
http://liba52.sourceforge.net/downloads.html
若是前面的安裝一切順利的話,恭喜你,能夠安裝ffmpeg了
安裝ffmpeg
- ./configure --prefix=/usr --enable-gpl --enable-shared --enable-libmp3lame --enable-libogg --enable-libvorbis --enable-libamr-nb --enable-libamr-wb --enable-libxvid --enable-libx264 --enable-liba52 --enable-liba52bin --enable-libfaac --enable-libfaad --enable-libfaadbin --enable-pp --enable-pthreads --disable-ffserver --disable-ffplay
- make
- make install
歡迎關注本站公眾號,獲取更多信息