Mplayer installation Configuration

Source: Internet
Author: User
Tags gtk

1. mplayer is successfully installed. Pay attention to the installation path for skin and font.

2. Play the RM file and download and install codecs. Reference http://linux.chinaunix.net/bbs/viewthread.php? Tid = 919463

-----------------------------------------------

References

1. (1) mplayer official website http://www.mplayerhq.hu/homepage/design7/dload.html

(2) http://www.linuxext.com/bbs/read.php? Tid = 14472

Red Hat 9: Install mplayer in Linux

Mplayer has been installed in Linux rh9 for many times. It used to end with a failure. The installation was successful two days ago and I am glad to myself. You can use it as a reference for later installation (I also refer to others in some places ).

Mplayer is the fastest player in Linux (with a video card driver correctly installed) and supports one of the most media formats. It can play almost all win media files! The following describes how to install it:

Prerequisites for installation:
To compile this software, make sure your system has the appropriate XFree86-devel installed, and if you want to compile the GUI
(./Configure -- enable-Gui). Make sure that your system has LibPNG, libpng-devel, GTK, and
GTK-devel (requires version greater than 1.2). You can find the corresponding RPM package at www.rpmfind.net.
(These packages can be obtained by installing GNOME Desktop)
1. download the latest version of mplayer and the collection package for installing the required software package.

2. Upgrade GCC: (if necessary, GCC versions 2.9.5 and 3.2.x are recommended)
Check your GCC version and run gcc-V to check the output. If it is less than 3.0, we recommend that you install gcc3.0
./Configre -- disable-gcc-checking can be used for GCC lower than 3.0 according to mplayer official instructions.
Parameter compilation, but may be unstable). To install gcc3, enter the gcc3 directory and run rpm-IVH *. rpm.
-- Nodeps, After all installs, open a terminal window and run mV/usr/bin/GCC/usr/bin/gcc2
And mV/usr/bin/gcc3/usr/bin/GCC, run gcc-V to check whether the output is 3.0.2. If yes, OK, no, check the installation steps.

3. Compile and install mplayer:
Tar vxf mplayer-*****. Tar, CD mplayer-*****,./configure (if you want
To use the GUI, use this command./configrue -- enable-Gui, but it seems that
Incorrect translation. Neither linuxcn nor I can succeed, but pre4 can be used.), make, make
Install, run mplayer successfully (this is to make it establish the. mplayer configuration directory under the Home Directory)
(. Mplayer is a hidden directory, which can be seen using the LS-a command. Cd ~ /. The mplayer command can be entered .)
Step operations)

. /Configure -- prefix =/usr/local -- enable-Gui -- enable-live -- enable-menu -- enable-FreeType -- enable-fontconfig -- enable-win32 -- enable-dshow -- enable-real -- enable-divx4linux -- enable-Xvid -- disable-arts -- language = zh_cn -- enable-dynamic-plugins -- With-codecsdir =/usr/local/lib/codecs -- with-win32libdir =/usr/local/ LIB/codecs -- With-reallibdir =/usr/local/lib/codecs -- With-livelibdir =/usr/local/lib/live -- With-FreeType-Config =/usr/bin /FreeType-config
Important parameter description:
-- Prefix = installation path:/usr/local
-- Enable-Gui: graphical interface. mplayer can run in command line or GUI.
-- Enable-live supports streaming media
-- Enable-FreeType subtitle font TTF can be used
-- The enable-win32 can use a Win32 decoder in. dll format
-- Enable-real supports real format
-- Language = zh_cn mplayer the format of the interface is Chinese
-- With-codecsdir =/usr/local/lib/codecs specify the decoder search path
-- With-win32libdir =/usr/local/lib/codecs specifies the Win32 decoder search path
-- With-reallibdir =/usr/local/lib/codecs specify the real decoder search path
-- With-livelibdir =/usr/local/lib/live specify the live decoder search path

Use now
Make
Automatically compile the software. You can go to dinner and check it again.

Make install // install

Run mplayer
./Mplayer

4. Copy the configuration file: (Note: The etc directory is extracted from the mplayer-*** directory in the previous step, not/etc)
Cp etc/codecs. conf ~ /. Mplayer
Cp etc/example. conf ~ /. Mplayer/config

5. Install font and skin: (if you select./configure -- enable-Gui, skin is required; otherwise, skin
No installation required)
Go to your home directory, display hidden files, enter the. mplayer folder, and create two folders: font and
Skin.

Download the font file (available on the official mplayer website) and copy simsun. TTF to ~ in font ~ /. Mplayer directory
Copy the blue directory to the/usr/local/share/mplayer/skins directory.

6. Running Mode
Two types: (1) mplayer/path/media file name to be played; (2) gmplayer (only./configure
-- Enable-this command compiled by GUI is valid)

Now you can run mplayer and gmplayer. However, if the gmplayer subtitle is faulty, the system prompts that the image cannot be found.

Subtitle font file. Follow the prompts to copy simsun. TTF (Other font files are also supported) ~ /. In the mplayer directory (change the file name ).

7. About ~ /. Mplayer/config file configurations
Vo = XV,
We recommend that you use the mplayer-vo HELP command to view more display modes. The VESA mode can be disabled.
Play the video on the xwin interface, a bit like the Kingsoft film overlord under DOS)
Ao = OSS (select the playing mode of the Sound. OSS is the most compatible playing mode. Recommended. You can also try the SDL mode.
Type)
FS = Yes (Full Screen mode. If yes, full screen playback is used by default. If no is added or the line is commented out with #, the default value is 1.
: 1 playback Mode)
Zoom = Yes
If not)
Gui = Yes (the default is the graphical operation interface, which requires you to compile with./configure -- enable-Gui.
Otherwise, even if yes, there is no GUI)
Skin = default
Skin is the default value. This parameter is valid only on the GUI)
Cache = 8192 (default playback cache size. If the machine memory is large enough, increase it a bit. If not
Large, such as less than 128, or use the default calculation)
Framedrop = Yes (frame Skip is allowed. If your machine's CPU speed is very slow, set this yes, default
Is no or add # in front to disable this line; for machines larger than MHz, it is recommended to set it to no or add # In front)
Use the default setting for other settings.

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.