Install and implement the RedHat Linux mplayer on a virtual machine

Source: Internet
Author: User
I had been working on it last night. I finally installed it when I went back to bed. I also dragged on some time to try the effect and listened to a song. mplayer is really powerful, sound effects are quite good. Compared with madplay, sound effects are indeed not of a grade. The installation process is listed below.

Mplayer installation requires four packages: MasterProgram, Skin, codecs, and wincodecs (win32 ). All four programs can be downloaded from the official mplayer Website:

Http://www.mplayer.hu (HTTP/www. mplayerhq. hu/mplayer) source code. Here, you can find the programs you want first.) The programs I downloaded are as follows:

Main Program: MPlayer-1.0rc1.tar.bz2

Codecs: All-20071007.tar.bz2

Wincodecs: windows-all-20071007.zip

Skin:   Abyss-1.7.tar.bz2

1. Preparations

Create a directory: mplayer

# Mkdir/usr/local/mplayer

Then, download the four installation files from the official website of mplayer,

Download the four installation files to the/usr/local/mplayer directory (because I am a Linux instance under the virtual machine, download the files to Windows and then use SSH to transfer files quickly ).

2. Install the encoding package

To install the encoding package in the/usr/lib/codecs and/usr/lib/wincodecs directories, create a folder first.

# Mkdir/usr/lib/codecs

# Mkdir/usr/lib/wincodecs

# Tar jvxf all-20071007.tar.bz2

# Mv all-20071007/usr/lib/codecs

# Unzip windows-all-20071007.zip

# Music Video Streaming windows-all-20071007/usr/lib/wincodecs

Install mplayer by third compilation

# Tar jxvf MPlayer-1.0rc1.tar.bz2

# Cd MPlayer-1.0rc1

The following describes how to compile mplayer. It is difficult and takes me a lot of time.CodeAn error occurs.

#. /Configure -- prefix =/usr/local/mplayer -- enable-Gui -- enable-FreeType -- With-codecsdir =/usr/lib/codecs/-- with-win32libdir =/usr/lib/wincodecs /-- language = zh_cn

The specific meaning of this line of command:

-- Prefix =/usr/local/mplayer is the installation path

-- Enable-FreeType is used to adjust the font.

-- Enable-Gui is used to install a graphical user interface.

-- With-codecsdir =/usr/lib/codecs and -- with-win32libdir =/usr/lib/wincodecs is the location specified for decoding

(Http://blog.sina.com.cn/s/blog_5bf3a1720100hvkv.html)-Virtual Machine RedHat Linux mplayer installation implementation _ meiwp_rbcce _ Sina Blog

-- Language = zh_cnThe specified language is Chinese.

In this step, I encountered a problem, such:

: Unknown Parameter -- With-codecsdir =/usr/local/lib/codecs/

After checking, -- With-codecsdir =/usr/lib/codecs/  -- With-win32libdir =/usr/lib/wincodecs, sometimes there is an error, you can remove these two parameters, compiled successfully. When installing these two parameters, you can also remove them if an error occurs.

Next proceed

# Make

# Make install

(These two steps may take a few minutes to see your specific machine configuration. I spent a few minutes)

4. Install skin

There are many skin types on the official mplayer website.Source code, You can choose any one you like.

# Tar jxvf Abyss-1.7.tar.bz2

# Mv abyss/usr/local/mplayer/share/mplayer/skins/

5. install fonts

Next we need to install the font for mplayer. We can download a font compressed package online. You can also directly copy a font to the mplayer folder in the main directory and rename it subfont. TTF.

In fact, the fonts we want to use are available in our system. Just copy them one by one. The fonts in our system are located in the/usr/share/fonts/zh_cn/TrueType/directory.

We can directly: CP/usr/share/fonts/zh_cn/TrueType/text body name. TTF$ Home/. mplayer

CD $ home/. mplayer

Mv name. TTFSubfont. TTF

 

By now, mplayer has become a universal player in your llinux environment. The specific execution path is in the/usr/local/mplayer/bin directory. You can also run the 'gmplayer' command in the terminal command line to run the player.

Don't come over in the morning. Come over in the afternoon and continue to get this...

Try the effect and find a problem: You can only play the audio file, the video file still cannot be played, search for information, and modify the parameters in the player. This problem has finally been solved. Set as shown in Figure 1. If you select "use non-staggered Avi parser", you can also set the decoder family.

             
                               Figure 1 mplayer parameter settings

 

Summary and prospects

Now, mplayer has been installed in the RedHat Linux system under the Virtual Machine. mplayer is a powerful cross-platform excellent media player. if you want to play online music and movies in Linux, this software cannot be installed. The playback audio file has good sound quality and high volume, and the effect is quite good.

You can play the AVI file. If you want to use mplayer to play the rmvb file, you need to download the other two packages: essential-20071007.tar.bz21_windows-all-20071007.zip.

 

[From] http://blog.sina.com.cn/s/blog_5bf3a1720100hvkv.html

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.