Centos安装FFmpeg
安装依赖
yum install autoconf automake bzip2 bzip2-devel cmake freetype-devel gcc gcc-c++ git libtool make pkgconfig zlib-devel
下载源码:
https://github.com/FFmpeg/FFmpeg/releases
编译/安装源码
1.先安装yasm
,不然在执行./configure
时会遇到无yasm的错误错误
1.1先安装epel
扩展源:
yum install -y epel-release
1.2安装yasm:
yum install yasm -y
2.安装
tar -zxvf ffmpeg-3.0.tar.gz && cd ffmpeg-3.0
编译
/configure
安装
make && make install
检查是否安装成功:
ffmpeg -version
参考:https://blog.csdn.net/qq_35663625/article/details/122455099