1.需要先添加RPMfusion仓库
sudo yum install https://download1.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm
2.安装ffmpeg
1.sudo yum install http://rpmfind.net/linux/epel/7/x86_64/Packages/s/SDL2-2.0.10-1.el7.x86_64.rpm
2.sudo yum install ffmpeg
原文连接:https://blog.csdn.net/mdykj33/article/details/104020068