[Starting from Linux] mplayer for software installation in Linux

Source: Internet
Author: User
In Linux environments, especially home desktop systems, some required applications, such as Firefox, Thunderbird, RealPlayer,
OpenOffice.org, GAIM, and so on. Basically, the mainstream Linux releases mentioned above are included by default,
Or at least you can use yum, Apt-Get, YaST, and other configuration tools to automatically download and install the existing repositories,
Some very useful software often needs to be downloaded and installed by yourself. The common installation methods of this part of software can be roughly divided into off-the-shelf self-extracting installation methods. Program ,
Rpm software package and Source code Three types of tarball. Self-decompressed files, such as Sun's JDK and JRE. RPM files are. RPM files. Download them with RPM
-Install the IVH command; tarball is relatively troublesome, but it is also the most interesting way Code After downloading the package, decompress, compile, and install it,
Completely autonomous process (another important benefit is that the compiled application is optimized for the specific platform currently in use .)

Today, let's take a look at the mplayer installation process. On the one hand, we will give our new users a bit of experience in Linux: how to install the application software from the source code in Linux;
On the other hand, the configuration process of mplayer is not very straightforward, and such problems may occur, while the Chinese descriptions that can be found on the Internet are scattered,
Here we will organize and back up the installation process in the FC4 environment.

What is mplayer? It is an audio and video player that plays various media formats in the Unix X Window environment. It may be the most popular in Linux,
It also supports the most complete format of the player, its home page is: http://www.mplayerhq.hu/. Haha, actually. Hu, a little unexpected.
To install a GUI-supported mplayer from the source code, we must first ensure that our system contains the GCC, GTK, and other tool kits,
By default, We have installed the necessary compilation tools. Next, let's take a look at the specific installation steps:

#1-installation preparation ##

On http://www.mplayerhq.hu/, find and download the following four documents: (cannot be found? Don't be lazy, Google it .)
Source code javasmplayer-1.0.pre7try2.tar.bz2 (main program, without decoder and GUI skin)
Unzip the decoder ]all-20050412.tar.bz2 (note not Windows-*, this all-20050412 is currently the most complete official codecs)
Gb2312-ming.tar.bz2 (to support Chinese subtitles)
Skin extension bluecurve-1.3.tar.bz2)

#2-install codecs ##

We have to do a very simple job. Unzip all-20050412.tar.bz2 to the/usr/local/lib/codecs/directory and run the following command:
Bzip2-CD all-20050412.tar.gz2 | tar xvf-
CP all-20050412/*/usr/local/lib/codecs/
Note: If this directory is not available, use the mkdir command to create a new directory. If the permission is insufficient, use Su to install the directory as the root user.

#3-configure mplayer ##

Extract the main program code package first: (we recommend that you perform the following steps in the/usr/local/src directory)
Bzip2-CD MPlayer-1.0pre7try2.tar.bz2 | tar xvf-
Then go to the MPlayer-1.0pre7try2 directory and execute./configure to configure makefile:
./Configure -- enable-Gui -- cc = gcc32
-- Enable-Gui parameter indicates that we need a graphical interface, -- cc = gcc32 indicates that we need GCC of version 3.2 (this is required by mplayer of this version,
It does not support versions earlier than 3.2 or FC4 4.0). In this process, the configure script will find the codecs we just installed,
A prompt is displayed after the execution is successful.

#4-compile and install mplayer ##

It is very simple. Execute two commands successively:
Make
Make install
Note: if it is not the first installation, make clean before the two steps.
OK. Now we can test run mplayer in the command line:
Mplayer ?????. Avi or mplayer ?????. MP3

#5-install fonts ##

After extracting gb2312-ming.tar.bz2, you will find two directories: gbsn00lp16 and gbsn00lp24, which are fonts of 16 and 24 respectively. select one of them, copy all the files to the/usr/local/share/mplayer/font directory.

#6-install skin ##

Decompress bluecurve-1.3.tar.bz2 and copy all the files to the/usr/local/share/mplayer/skin directory.

#7-start running ##

Okay. Now we can start running our GUI mplayer. The command is:
Gmplayer
Of course, you can add the above command to the Panel or desktop as the starter. If you find that the subtitles are garbled, you can use the-Unicode parameter to start.

Enjoy!

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.