Install mplayer in centos

Source: Internet
Author: User
Tags gtk

Download the main program:
MPlayer-1.0pre8.tar.bz2
Official decoder:
Essential-20071007.tar.bz2
Win32_CODES-all official:
Windows-essential-20071007.zip
Skin:
Orange-1.3.tar.bz2
Download URL: http://www.mplayerhq.hu/homepage/design7/dload.html
Step2. install codecs:
 
Tar vjxf essential-20071007.tar.bz2
MV essentials-20071007/usr/lib/codes (or/usr/lib/codecs, this is used.
/Configure -- With-codecsdir =/usr/lib/codecs /,
You must make the direct is correct, or you cant install the codes .)
Chmod 644/usr/lib/codes/* (or 777)
Chown root. Root/usr/lib/codes /*

Unzip windows-essential-20071007.zip
MV windows-essential-20071007/usr/lib/wincodes
(Or/usr/lib/wincodecs,
This is usedfor./configure -- with-win32libdir =/usr/lib/wincodecs /,
You must make thedirect is correct, or you cant install the codes .)
Chmod 644/usr/lib/wincodes/* (or 777)
Chown root. Root/usr/lib/wincodes /*

Step 3. Install mplayer:
 
Tar vjxf MPlayer-1.0pre8.tar.bz2
CD MPlayer-1.0pre8
./Configure -- prefix =/usr/local/mplayer/
-- Enable-Gui -- enable-FreeType -- With-codecsdir =/usr/lib/codes/-- with-win32libdir =
/Usr/lib/wincodes/
-- Disable-gcc-checking -- language = zh_cn

Press enter to confirm whether you are willing to disable-gcc-checking. Just press Enter.
Make
Make may take a long time. We recommend that you do something else first. Next we can make install.
Make install
 
CD etc
CP example. CONF/usr/local/mplayer/etc/config
CP codecs. CONF/usr/local/mplayer/etc/
 
Step 4. Install the font
Put the font you want to use (such as simsun. TTF. C: \ Windows \ font \) in the font directory of the Windows system is stored in/home/<your username> /. mplayer (put the root user in/root /. in mplayer) and renamed it subfont. TTF.
Copy (assume that your simsun font is temporarily placed in the/root/directory and the user is root ):
CP/root/simsun. TTF/root/. mplayer/
Rename:
MV/root/. mplayer/simsun. TTF/root/. mplayer/subfont. TTF
(If this step is not performed, the following error will be reported: new_face failed. Maybe the font path is wrong. Please supply teh text font ~ /. Mplayer/subfont. TTF. If no ~ /. Mplayer. You only need to check the key menu bar and select to display hidden files .)
 
Step 5. Install skin
Tar vjxf Orange-1.3.tar.bz2
MV orange/usr/local/mplayer/share/mplayer/skins/
CD/usr/local/mplayer/share/mplayer/skins/
Ln-s orange default
The official website has a lot of skins. After downloading them, decompress them and put them under/usr/local/mplayer/share/mplayer/skins/. Then, right-click mplayer and select skin for browsing, you can see the skin you just put in.
 
Step 6. Run
/Usr/local/mplayer/bin/gmplayer

You can run the program. You can watch movies in Linux.

Problem: When./configure ''', the following error occurs: error: the GUI requires GTK devel packages (which were not found ).

After installation:

Glib-devel-1.2.10-15.i386.rpm
GTK +-devel-1.2.10-33.i386.rpm

Rpm-IVH file name -- force -- nodeps

Again:

Error: the GUI requires glib devel packages (which were not found)

In fact, the lib has been installed and cannot be found. The path may not be specified. Unsolved!

Reference: http://linux.chinaitlab.com/set/737712.html

Http://space.itpub.net/16111659/viewspace-664795

···

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.