-
The RPM Fusion repository depends on the EPEL software repository. If the EPEL is not enabled on your system, enable it by typing:
sudo yum install epel-release
-
Next, enable the RPM Fusion repository by installing the rpm package :
sudo yum localinstall --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm
-
Once the repository is enabled, install FFmpeg:
sudo yum install ffmpeg ffmpeg-devel
-
Verify the FFmpeg installation by checking its version:
ffmpeg -version
原文:https://linuxize.com/post/how-to-install-ffmpeg-on-centos-7/#installing-ffmpeg-on-centos-7