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: