1.添加RPMfusion仓库
$ sudo yum install https://download1.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm
2.安装FFmpeg
sudo yum install http://rpmfind.net/linux/epel/7/x86_64/Packages/s/SDL2-2.0.10-1.el7.x86_64.rpm
sudo yum install ffmpeg
若有需要可以再安装开发库:
$ sudo yum -y install ffmpeg-devel
3.检查FFmpeg在CentOS8上的安装
rpm -qi ffmpeg
ffmpeg -version