1、ffmpeg-4.1,下载地址:https://johnvansickle.com/ffmpeg/release-source/
2、安装编译工具
build-essential
sudo yum -y install make automake gcc gcc-c++ cc kernel-devel glibc-devel make sudo yum -y install libxml2 libxml2-devel libxslt libxslt-devel
全的安装build-essential,用下面命令:
sudo yum -y groupinstall "Development Tools" sudo yum -y groupinstall "Development Libraries"
查看安装的group插件
sudo yum group info "Development Tools"
3、ffmpeg要依赖于yasm,首先安装yasm
yum -y install yasm
4、安装ffmpeg
进入工具目录,解压ffmpeg-4.1.tar.xz
cd /ffmpeg xz -d ffmpeg-4.1.tar.xz
tar -xvf ffmpeg-4.1.tar
进入ffmpeg-4.1解压目录,安装ffmpeg
sudo ./configure sudo make sudo make install
5. 验证安装结果
sudo ffmpeg -version