Home  >  Article  >  Operation and Maintenance  >  Centos system cannot play videos

Centos system cannot play videos

王林
王林Original
2020-03-21 11:48:362530browse

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn