1、安裝epel、elrepo、nux-dextop來源
epel位址: wget -O /etc/yum.repos.d/epel.repo http:/ /mirrors.aliyun.com/repo/epel-7.repo
elrepo位址: rpm -Uvh https://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch. rpm
nux-dextop位址: 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
(推薦教學:centos使用教學)
2、root帳號下安裝以下解碼器:
yum -y install gstreamer-ffmpeg yum -y install gstreamer-plugins-ugly yum -y install gstreamer-plugins-bad yum -y install ffmpeg yum -y install libvdpau yum -y install mpg123 yum -y install mplayer yum -y install mplayer-gui yum -y install gstreamer1-libav yum -y install vlc
3、重啟系統。
相關影片教學推薦:linux影片教學
#以上是centos無法播放視頻的詳細內容。更多資訊請關注PHP中文網其他相關文章!