CentOS 6和7安裝方法是不同的,下面分別說明:io
安裝前都須要先安裝epel擴展源import
yum -y install epel-release擴展
CentOS 6比較簡單,安裝yum源以後直接安裝便可:ffmpeg
su -c 'yum localinstall --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-6.noarch.rpm https://download1.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-6.noarch.rpm'gc
yum -y install ffmpeg ffmpeg-devel方法
而CentOS 7需額外安裝擴展源:im
su -c 'yum localinstall --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm https://download1.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-7.noarch.rpm'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-1.el7.nux.noarch.rpmtop
yum -y install ffmpeg ffmpeg-develps