ffmpeg 0.8.12编译

环境:centos 6.3 64位

ffmpeg依赖的第三方库的编译:
1. 编译yasm:
wget http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz
./configure
make
make install

2. 编译faac:
wget http://jaist.dl.sourceforge.net/project/faac/faac-src/faac-1.28/faac-1.28.tar.gz
./configure --prefix=/usr/local/faac --enable-static --disable-shared
make
make install

3. 编译lame:
wget http://jaist.dl.sourceforge.net/project/lame/lame/3.99/lame-3.99.5.tar.gz
./configure --prefix=/usr/local/lame --enable-static --disable-shared
make
make install

4. 编译x264:
wget ftp://ftp.videolan.org/pub/x264/snapshots/last_x264.tar.bz2
./configure --prefix=/usr/local/x264 --enable-static --disable-shared
make
make install

5. 编译xvid:
wget http://downloads.xvid.org/downloads/xvidcore-1.3.2.tar.gz
./configure --prefix=/usr/local/xvid --enable-static --disable-shared
make
make install

ffmpeg编译:
6. 下载ffmpeg代码:
wget http://ffmpeg.org/releases/ffmpeg-0.8.12.tar.gz

7. 设置configure:
./configure --prefix=/usr/local/ffmpeg/ --enable-gpl --enable-nonfree --enable-libxvid --enable-libx264 --enable-libmp3lame --enable-libfaac --extra-cflags=-I/usr/local/faac/include --extra-ldflags=-L/usr/local/faac/lib --extra-cflags=-I/usr/local/lame/include --extra-ldflags=-L/usr/local/lame/lib --extra-cflags=-I/usr/local/x264/include --extra-ldflags=-L/usr/local/x264/lib --extra-cflags=-I/usr/local/xvid/include --extra-ldflags=-L/usr/local/xvid/lib

8. 编译安装
make
make install

最后:

编译遇到的问题google一下基本都可以找到答案。


  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值