1. Install epel, elrepo, nux-dextop source
epel address: wget -O /etc/yum.repos.d/epel.repo http:/ /mirrors.aliyun.com/repo/epel-7.repo
elrepo address: rpm -Uvh https://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch. rpm
nux-dextop address: 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
(Recommended tutorial:centos usage tutorial)
2. Install the following decoder under the root account:
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. Restart the system.
Recommended related video tutorials:linux video tutorial
The above is the detailed content of centos cannot play video. For more information, please follow other related articles on the PHP Chinese website!