LInux下如何安装ffmpeg

阅读更多
终于装上了,把过程记录一下
首先要安装各种解码器

1、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


2、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


3、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


4、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


5、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


6、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


7、a52
a52dec-0.7.4.tar.gz
http://liba52.sourceforge.net/downloads.html
安装方法:
./configure --prefix=/usr
make
make install


8、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


9、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


10、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


11、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


12、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

你可能感兴趣的:(Linux,.net,PHP,HTML)