免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1320 | 回复: 0
打印 上一主题 下一主题

Linux下如何安装ffmpeg [复制链接]

论坛徽章:
2
2015年辞旧岁徽章
日期:2015-03-03 16:54:1515-16赛季CBA联赛之上海
日期:2016-05-05 09:45:14
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-12-16 11:48 |只看该作者 |倒序浏览
首先要安装各种解码器
1、lame
lame-3.97.tar.gz
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
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
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
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
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
http://download.videolan.org/pub/videolan/libdca/0.0.2/libdca-0.0.2.tar.gz

安装方法:
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


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/249/showart_1722926.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP