Install VLC on CentOS

Source: Internet
Author: User
Before executing the following commands, you can first go to the/etc/yum. repos. d/directory to ls to see what they look like. 1. install the repository of epel and remi: [root @ localhost ~] # Yumlocalinstall -- nogpgcheckhttp: // dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.

Before executing the following commands, you can first go to the/etc/yum. repos. d/directory to ls to see what they look like.

1. install the repository of epel and remi:
[Root @ localhost ~] # Yum localinstall -- nogpgcheck http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
When a foreigner wrote the article, the epel-release version was 6.7, and the download link he gave was.
[Root @ localhost ~] # Yum localinstall -- nogpgcheck http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

2. install rpmfusion's repository:
The following two rpm packages must be installed:
[Root @ localhost ~] # Yum localinstall -- nogpgcheck http://download1.rpmfusion.org/free/el/updates/6/i386/rpmfusion-free-release-6-1.noarch.rpm
[Root @ localhost ~] # Yum localinstall -- nogpgcheck http://download1.rpmfusion.org/nonfree/el/updates/6/i386/rpmfusion-nonfree-release-6-1.noarch.rpm

After completing the preceding two steps, go to the/etc/yum. repo. d/directory and execute ls to check the changes. I want to know everything clearly. if you don't know anything about it, let's get it done ..

3. view the vlc version information:
[Root @ localhost ~] # Yum -- enablerepo = remi-test info vlc
The result of this command is as follows:

Available Packages
Name: vlc
Arch: i686
Version: 2.0.6
Release: 1. el6
Size: 1.4 M
Repo: rpmfusion-free-updates
Summary: The cross-platform open-source multimedia framework, player and
: Server
URL: http://www.videolan.org
License: GPLv2 +
Description: VLC media player is a highly portable multimedia player and
: Multimedia framework capable of reading most audio and video
: Formats as well as DVDs, Audio CDs VCDs, and various streaming
: Protocols. It can also be used as a media converter or a server
: Stream in uni-cast or multi-cast in IPv4 or IPv6 on networks.
 

4. installation:
[Root @ localhost ~] # Yum -- enablerepo = remi-test install vlc

Run the input vlc directly after completion.
[Root @ localhost ~] # Vlc
Unfortunately, it tells you that vlc does not support root. It is reasonable to think about how vlc has such a design. We can only blame you for not doing enough. continue to solve the problem.
Two methods:
Method 1: Download the vlc source code and re-compile it. in configure, add a configuration item -- enable-run-as-root, and then everything is fine. At present, it is unrealistic for me. I am also going to bed, unless I want to experience the fun of compiling from the source code someday. [Reject]
Method 2: easy and pleasant. I like it. In this case, the vlc executable file should be installed in the/usr/bin/directory and backed up to another path for future use. Then open/usr/bin/vlc in the vi editor and change the unique geteuid to getppid to save and exit.

Since my CentOS does not have a graphical interface installed, to verify the correctness of the VLC, execute the following command in the VM:
Its function is to use vlc to publish a video file named space_camera.flv in the current directory in a "streaming" manner, similar to vod of Youku and Tudou, enable vlc for playback in windows, and fill in "mmsh: // 192.168.40.132: 11111" in "enable network streaming ".
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.