centos系统无法播放视频

环境准备:

安装epel、elrepo、nux-dextop源。

epel地址:

wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo

(推荐教程:centos使用教程)

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

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

重启系统之后即可观看本地视频。

注意:由于环境各不相同,此方法仅供参考。

相关视频教程推荐:linux视频教程