1. 先导入epel-release密钥
cd /etc/pki/rpm-gpg/
wget https://archive.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7
(下面这个是百度到的另一个导入密钥的方法,未验证
rpm --import /etc/pki/rpm-gpg/RPM-GPG KEY-EPEL-7)
epel-release安装
yum install epel-release -y
2. 安装Nux Dextop Yum 源
rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
3、安装FFmpeg 和 FFmpeg开发包
yum install ffmpeg ffmpeg-devel -y
安装完后检查版本
ffmpeg -version