Install mplayer in centos 7.0

Source: Internet
Author: User
Tags svn update

The built-in player neither rmvb nor MP4 can play the video, nor can it find the decoder.
Centos7epel cannot be installed, so there is no rpmfusion, so I decided to compile mplayer myself

First, you need to obtain the source code.
The first is the source code of the main program.
Open your terminal and follow the instructions in one step:
CD download
SVN checkout SVN: // SVN. mplayerhq. hu/mplayer/trunk mplayer

Press enter to generate the "mplayer" directory in the downloads directory.

Then go to the mplayer directory and update SVN.
CD mplayer
SVN update

If the update is successful, as shown below:

Then you need to download another compressed package.
Go back to the downloads directory and run wget to download
CD ..
Wget http://www.mplayerhq.hu/MPlayer/releases/codecs/essential-amd64-20071007.tar.bz2

This package is 64-bit. I think no one will use 32 more characters now...
The commands I entered are in bold and black.
Decompress the package after the download is successful.
Tar-xaf essential-amd64-20071007.tar.bz2
Copy all the files in the pressurized folder to the specified directory:
Sudo mkdir/usr/local/lib/codecs
Sudo CP essential-amd64-20071007/*/usr/local/lib/codecs

The next step begins compilation.

Enter the mplayer directory and execute configure
CD mplayer
./Configure -- enable-Gui -- language = zh_cn

The execution stops. Press enter to automatically download the missing component.
After the download is complete, it will automatically continue. For example:

The configuration is successful:

I use Emacs, so you can flip the terminal up several pages and find successfully.

Make:
Make
It takes a long time to execute make. Please be patient.
However, before executing this make command, please confirm your GCC version, please upgrade to 3.0 or later.
If you confirm the program version, the format is followed by -- version:
GCC -- version
If the version is not installed or the version is too low, upgrade it first:
Sudo Yum install-y gcc
After a few minutes, I finally compiled it. Then execute:
Sudo make install

Because I have already installed it, I will not press Enter.
I have sent the previous one.

Now you can use mplayer to view the film.
However, it can only be viewed under the command line. Because there is still a lack of skin.
Go to the official online download skin: http://www.mplayerhq.hu/design7/dload.html
You will find many skins at the bottom.
I chose blue.
If you are too reluctant to manually download the package, copy the following command:
CD ..
Wget http://www.mplayerhq.hu/MPlayer/skins/Blue-1.10.tar.bz2
Decompress:
Tar-xaf Blue-1.10.tar.bz2
Copy the extracted folder to the specified directory:
Sudo CP-r blue/usr/local/share/mplayer/skins/

Create a soft link for the blue folder named default. Like this:
CD/usr/local/share/mplayer/skins/
Sudo ln-s blue/Default

The ll command shows you the final soft link generation result.

Finally, let's show the results.

The final result is displayed.
In the menu bar:

After opening:

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.