FFmpeg安装及encode库的安装说明
一、安装ffmpeg
A. 去ffmpeg官网(https://ffmpeg.org/)下载linux的官方源码包
B. 解压 tar -jxvf ffmpeg-3.1.4.tar.bz2
C. 进入解压目录 cd ffmpeg-3.1.4/
D. 执行 ./configure –enable-shared –prefix=/usr/local/ffmpeg
如果提示出错
yasm/nasm not found or too old. Use –disable-yasm for a crippled build.
If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file “config.log” produced by configure as this will help
solve the problem.
E.按照提示需要安装yasm.
1).wget http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz 下载源码包
2).tar zxvf yasm-1.3.0.tar.gz 解压
3).cd yasm-1.3.0 进入目录
4)../configure 配置
5).make && make install 编译