ffmpeg编译常规大全

其中有需要CMake的,可以直接sudo apt-get install cmake

编译yasm
$./configure 
$make
$sudo make install

编译AMR
$./configure
$make
$sudo make install

编译libvpx(google发明的那个高清编码格式)
$ ./configure --disable-unit-tests
$make
$sudo make install

编译lame(mp3)
$. /configure --disable-shared --enable-static
$make
$sudo make install

编译xvidcore
$. /configure 
$make
$sudo make install
--disable-shared --enable-static好像没用,可以自己去/usr/local/lib删除对应的.so

编译x264
wget ftp://ftp.videolan.org/pub/x264/snapshots/last_x264.tar.bz2
$ ./configure --enable-static
$make
$sudo make install
--enable-shared不写,就没有.so

编译OGG音频
$. /configure --disable-shared --enable-static
$make
$sudo make install

编译 libvorbis
$ ./configure  --enable-static --disable-shared --disable-oggtest
$ make -j 4
$ make install

编译libtheora
=======================
wget http://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.gz
$ ./configure --enable-static --disable-shared --disable-oggtest --disable-vorbistest --disable-examples
$ make -j 4
$ make install

编译pkg-config
wget http://pkgconfig.freedesktop.org/releases/pkg-config-0.29.1.tar.gz
$ ./configure --silent --with-pc-path=/usr/local/lib/pkgconfig --with-internal-glib 
$ make -j 4
$ make install

编译cmake
=======================
wget https://cmake.org/files/v3.5/cmake-3.5.0.tar.gz
$ ./configure
$ make -j 4
$ make install

编译vid_stab(option)
wget https://codeload.github.com/georgmartius/vid.stab/legacy.tar.gz/release-0.98b
 ... Done
$ cmake 
$ make -s install

编译x265(option)
wget https://bitbucket.org/multicoreware/x265/downloads/x265_1.9.tar.gz
$cd  x265_1.9/source
$ cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr/local -DENABLE_SHARED:bool=off
$ make -j 4
$ make install

编译fdk_aac
wget http://downloads.sourceforge.net/project/opencore-amr/fdk-aac/fdk-aac-0.1.4.tar.gz
$ ./configure --disable-shared --enable-static
$ make -j 4
$ make install

编译ffmpeg
$ ./configure --extra-version=static --disable-debug --disable-shared --enable-static --extra-cflags=--static --disable-ffplay --disable-ffserver --disable-doc --enable-version3 --enable-libvpx --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-avfilter --enable-gpl --enable-libopencore_amrwb --enable-libopencore_amrnb --enable-nonfree --enable-filters --enable-libx265 --enable-runtime-cpudetect --enable-libfdk-aac 
$ make -j 4
$ make install

备注: 其中--enable-libx265会报 "x265 not found using pkg-config" , 用不到可以暂时删除

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值