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

Centos system cannot play videos

王林
Release: 2020-03-21 11:48:36
Original
2638 people have browsed it

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
Copy after login

(Recommended tutorial: centos usage tutorial)

elrepo address:

rpm -Uvh https://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch.rpm
Copy after login

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
Copy after login

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template