Linux下安装ffmpeg
首先要安装各种解码器
1、lame
lame-3.97.tar.gz
Url:
安装方法如下:
- tar -zxvf
lame-3.97.tar.gz
- cd lame-3.97
- ./configure
--enable-shared --prefix=/usr
- make
- make
install
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:
安装方法如下:
- ./configure
--prefix=/usr
- make
- make
install
./configure --prefix=/usr
make
make install
3、libvorbis
libvorbis-1.1.2.tar.gz
Url:
安装方法如下:
- ./configure
--prefix=/usr
- make
- make
install
./configure --prefix=/usr
make
make install
4、xvid
xvidcore-1.1.3.tar.gz
Url:
安装方法如下:
- tar zvxf
xvidcore-1.1.3.tar.gz
- cd xvidcore-1.1.3/build/generic
- ./configure
--prefix=/usr
- make
- make
install
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
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]
[/url]
安装方法:
- tar zxvf
libdts-0.0.2.tar.gz
- cd libdts-0.0.2
- ./configure
--prefix=/usr
- make
- make
install
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
安装方法:
- ./configure
--prefix=/usr
- make
- make
install
./configure --prefix=/usr
make
make install
8、faad2
faad2-2.6.1.tar.gz
安装方法
- autoreconf
-vif
- ./configure
--prefix=/usr --with-mp4v2 --enable-shared
- make
- make
install
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
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
安装方法:
- ./configure
--prefix=/usr
- make
- make
install
./configure --prefix=/usr
make
make install
11、amr-wb
amrwb-7.0.0.1.tar.bz2
安装方法:
- ./configure
--prefix=/usr
- make
- make
install
./configure --prefix=/usr
make
make install
12、lib52
a52dec-0.7.4.tar.gz
如果前面的安装一切顺利的话,恭喜你,可以安装ffmpeg了
安装ffmpeg
Tar xjvf ffmpeg-export-snapshot.tar.bz2
Cd ffmpeg-export-2010-03-02
./configure --prefix=/usr --enable-shared --enable-gpl
Make
Make install
测试!
ffmpeg -i 4128666.flv -y -f image2 -ss 8 -t 0.001 -s 400x300 test.jpg
阅读(9583) | 评论(0) | 转发(1) |