Home >Operation and Maintenance >CentOS >Centos system cannot play videos
Environment preparation:
Install epel, elrepo, nux-dextop sources.
epel address:
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
(Recommended tutorial: centos usage tutorial)
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
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
You can watch local videos after restarting the system.
Note: Since environments vary, this method is for reference only.
Recommended related video tutorials: linux video tutorial
The above is the detailed content of Centos system cannot play videos. For more information, please follow other related articles on the PHP Chinese website!