Install MPlayer in CentOS 7.0

Source: Internet
Author: User

Install MPlayer in CentOS 7.0

The built-in player neither rmvb nor mp4 can play the video, nor can it find the decoder.
CentOS7 epel cannot be installed, so there is no rpmfusion, so I decided to compile the 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 # Before this step, please download the yasm-1.2.0-4.sdl7.x86_64.rpm at http://pkgs.org/download/yasm

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.

For more details, please continue to read the highlights on the next page:

  • 1
  • 2
  • Next Page

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.