文中内容部分参考大牛博客进行边操作边总结
一、ubuntu安装ffmpeg
1. 从ffmpeg官网:https://www.ffmpeg.org/download.html下载源代码,ffmpeg-3.1.3.tar.bz2
先安装yasm,ffmpeg编译中为了提高编译速度,使用了汇编指令,于是需要使用这个工具,并且只有先安装yasm,才能安装ffmpeg
可以直接运行 yum -y install yasm直接安装,或者官网http://yasm.tortall.net/Download.html下载源码yasm-1.3.0.tar.gz安装,解压进入yasm-1.3.0目录后直接运行./configure && make && make install