//静态版的
FFmpeg Static Builds release: 3.3.3
https://www.johnvansickle.com/ffmpeg/
ffmpeg-release-64bit-static.tar.xz
解压xz文件
xz -d ffmpeg-release-64bit-static.tar.xz.tar.xz
tar -xvf ffmpeg-release-64bit-static.tar.xz.tar
或者一步完后
tar xvJf ffmpeg-release-64bit-static.tar.xz
自己编译
http://ffmpeg.org/download.html#releases
ffmpeg-3.0.9.tar.xz
tar xvJf ffmpeg-3.0.9.tar.xz
./configure --help
./configure 后出现问题
yasm/nasm not found or too old. Use --disable-yasm for a crippled build.
./configure --disable-yasm
make
make install
ffmpeg -help
搞定
使用过程中出现问题
No such filter: 'delogo'
Mplayer Delogo
没有生成ffplay
Makefile中指定的config.mak(在ffmpeg根目录下)中: CONFIG_FFPLAY=yes
./configure --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3 --enable-shared --disable-yasm
ERROR: libmp3lame >= 3.98.3 not found
在 https://sourceforge.net/projects/lame/files/lame/3.99/ 下载
lame-3.99.5.tar.gz
tar xzf lame-3.99.5.tar.gz
cd lame-3.99.5
./configure
make
make install
编译完出现如下问题
ffmpeg: error while loading shared libraries: libmp3lame.so.0: cannot open shared object file: No such file or directory
ln -s /usr/local/lib/libmp3lame.so.0.0.0 /usr/lib64/libmp3lame.so.0
或
mv /usr/local/lib/libmp3lame.so.0.0.0 /usr/lib64/libmp3lame.so.0
后来安装的ffmpeg-3.3.3
因为要使用 Installing libsdl-1.2 development package
yum install SDL-devel
./configure --disable-yasm --enable-libmp3lame --enable-shared --enable-libx264 --enable-gpl
ERROR: libx264 not found
wget http://download.videolan.org/pub/x264/snapshots/last_x264.tar.bz2
tar xjvf last_x264.tar.bz2
cd x264-snapshot*
./configure --enable-static --disable-opencl
报错
Found no assembler
Minimum version is nasm-2.13
If you really want to compile without asm, configure with --disable-asm.
./configure --enable-static --disable-opencl --disable-asm
make
make install
参考 https://stackoverflow.com/questions/25079145/how-to-resolve-error-libx264-not-found
然后回到FFmpeg
./configure --disable-yasm --enable-libmp3lame --enable-shared --enable-libx264 --enable-gpl
出现
WARNING: using libx264 without pkg-config
根据参考文章不用管
make
make install
查看过滤器
ffmpeg -filters
参考文章
http://thierry-xing.iteye.com/blog/2017864
http://www.mikewootc.com/wiki/sw_develop/multimedia/ffmpeg_build.html
http://escabe.org/joomla/index.php/13-projects/matlab/joymex2cat/6-installing-libsdl-12-development-package
https://blog.evanxia.com/2016/12/1212