Install mplayer on centos 6.2

Source: Internet
Author: User

Mplayer is an open-source multimedia player released with the GNU General Public License. This software can be used in mainstream operating systems, such as Linux and other UNIX-like systems, Microsoft Windows systems, and Mac OS X systems on Apple computers. Mplayer is based on the command line interface. You can choose to install different graphic interfaces in each job system. Another major feature of mplayer is extensive output device support. It can work in X11, XV, DGA, OpenGL, svgalib, fbdev, aalib, and directfb, and you can also use GGI and SDL and some low-level hardware-related driver modes (such as matrox, 3dfx and radeon, mach64, permedia3 ). Mplayer also supports decoding card display through hardware MPEG, such as DVB
And dxr3 with Hollywood +.

The centos Linux used in this article, install MPlayer-1.0rc4 under centos 6.2:

I. Preparations

Required installation packages and:
1w.mplayersource code package (mplayer-1.0rc4.tar.bz2) download: http://www.mplayerhq.hu/MPlayer/releases/
2nd release code installation package (all-20110131.tar.bz2) download: http://www.mplayerhq.hu/MPlayer/releases/codecs/
3、win32decoder installation package (windows-all-20071007.zip) download: http://www.mplayerhq.hu/MPlayer/releases/codecs/
4、skin installation package (blue-1.8.tar.bz2) download: http://www.mplayerhq.hu/MPlayer/skins/

Mplayer encoding packages should be installed in/usr/local/lib/codecs/by default. Win32 encoding is installed in/usr/local/lib/Win32 by default. If it is installed in another directory, when installing mplayer ,. the/configure parameter specifies the path. The parameter is -- codecsdir = "package path" and -- win32libdir = "package path ".

Decompress the mplayer decoder:
# Tar-jxvf all-20110131.tar.bz2
# Mkdir/usr/local/lib/codecs/
# Mv-f all-20110131/*/usr/local/lib/codecs/

Note: All files in all-20110131 are copied to/usr/loc-Al/lib/codecs instead of folders. Otherwise, the files cannot be played after compilation.

Decompress the Win32 decoder:
# Unzip windows-all-20071007.zip
# Mkdir/usr/local/lib/Win32
# Mv window-all-20071007/*/usr/local/lib/Win32

Ii. Install mplayer

All the software packages here are downloaded to the/usr/local/directory. The specific directory is defined as needed.

Install theme file:
# Tar-jxvf MPlayer-1.0rc4.tar.bz2
# Cd MPlayer-1.0rc4
#. /Configure -- prefix =/usr -- codecsdir =/usr/local/lib/codecs -- enable-Gui -- enable-largefiles -- enable-menu -- language = zh_cn, en -- charset = utf8 -- confdir =/usr/local/mplayer

The following parameters are explained:
-- Enable-Gui is used to open the graphical interface, which is generally required
-- Enalbe-largefiles: large files that can be played more than 2 GB
-- Enable-menu
-- Prefix =/usr if this sentence is added, mplayer and gmplayer are put in the/usr/bin/directory. If this sentence is not found, it is in the installation directory/bin.
-- Confdir =/usr/local/mplayer: the installation directory of mplayer.
-- Disable-gcc-checking does not check the GCC version. No, MPlayer-1.0rc1 is gcc4.1 and centos 5 is gcc4.1
-- Language = zh_cn install the Chinese interface.

If there is no compilation error, execute:
# Make
# Make install

3. Install skin:

The default installation path is/usr/share/mplayer/skins/. The default skin directory is default.
# Tar-jxvf Blue-1.8.tar.bz2
# Cd/usr/share/mplayer/skins
# Mkdir default
# Cd blue
# Cp./*/usr/share/mplayer/skins/Default

Here we have installed the blue skin and set it as the default one. After installation, you can also find the skin of various mplayers, you can modify the skin on the mplayer interface without unzipping and put it under/usr/share/mplayer/skin.

Step 4: place the mplayer icon

Then, you can place an mplayer icon on the desktop. Right-click the initiator (for GNOME) on the desktop and choose mplayer. The command is/usr/bin/gmplayer, the default icon location for mplayer is in/usr/share/pixmaps/mplayer-desktop.xpm or use command # cp/usr/share/pixmaps/mplayer-desktop.xpm/root/desktop/

After installation, you can start mplayer.

 

 

 

 

 

 

 

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.