步驟如下:
2. ElRepo源(地址:http://elrepo.org/tiki/tiki-index.php):
導入公鑰:rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
導入源:rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm (適用於RHEL-7, SL-7 or CentOS-7)
[[ for RHEL-6, SL-6 or CentOS-6: rpm -Uvh http://www.elrepo.org/elrepo-release-6-6.el6.elrepo.noarch.rpm ]]
3.My RPM repositories for EL (RHEL, CentOS, ScientificLinux etc) (地址:http://li.nux.ro/repos.html)
EL7: yum -y install epel-release && rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
[[ EL6: yum -y install epel-release && rpm -Uvh http://li.nux.ro/download/nux/dextop/el6/x86_64/nux-dextop-release-0-2.el6.nux.noarch.rpm ]]
4. yum repolist (用來確定源 epel, elrepo, nux-dextop 是否安裝正確)
5. yum -y --enablerepo=nux-dextop install gstreamer-ffmpeg vlc gstreamer-plugins-ugly gstreamer-ffmpeg gstreamer-plugins-bad gstreamer-plugins-ugly ffmpeg libvdpau mpg123 mplayer mplayer-gui gstreamer-plugins-bad-nonfree gstreamer1-libav gstreamer1-plugins-bad-freeworld gstreamer1-plugins-ugly
6. yum install mplayer
7. yum install vlc (安裝之後,若有黑影無聲或choppy video,須調preference audio 和video setting)
<Ps: mplayer vlc 任選一個就可以了,都是視頻播放器,具體哪個好,看個人喜好>
<Pps:之前嘗試源碼安裝mplayer,各種報錯,各種依賴問題,百度出來的答案千變萬化,看得人眼花繚亂,不知所云,以上全靠google,經試驗可行,如有任何疑問,請google一下 >
^_^