Linux mplayer installation process (x386)

Source: Internet
Author: User

Today, I finally installed fedora11. Some time ago, I accidentally formatted the entire disk as a Linux disk. At that time, I was so depressed ..... all my documents are missing ....

Let's talk about how to install mplayer.

 

In fact, it is also a reprint of others' things, which has been modified.

 

 

Mplayer is a movie player with powerful functions in Linux. It can also play audio files in MP3, WMA, and other formats.

The root permission is required during installation, such as copying a file and installing make install to the/usr/... directory.

Install libc6-dev, LibPNG, libpng-Dev, GTK Dev package (libgtk2.0-Dev), no configure installation will prompt error. (I have installed it all, so I don't know if it is necessary now)

 

1. Download and install various software required by mplayer,

Download related codes (http://www.mplayerhq.hu/MPlayer/) mostly here

(1) Main Program: MPlayer-1.0rc2.tar.bz2
(Required
) (Http://www.mplayerhq.hu/MPlayer/releases/MPlayer-1.0rc1.tar.bz2)

Font File: font-arial-iso-8859-1.tar.bz2

(3) skin file (GUI supported): plastic-2.0.tar.bz2 can also download other skin files of course

(4) download the required code:

Support for Avi and other W32 multimedia format plug-ins in windows-all-20071007.zip
Http://www.mplayerhq.hu/MPlayer/releases/codecs/windows-all-20071007.zip)

All-20071007.tar.bz2
Http://www.mplayerhq.hu/MPlayer/releases/codecs/all-20071007.tar.bz2)

Essential-20071007.tar.bz2 supports multimedia format plug-ins such as realplay (RM, Ram, etc.)


For other requirements, you can choose not to download and install.
 

2. Install

 

(1) extract (CODE)

You must first execute this step, and note that if you have installed realplay8 or realplay9, you do not need to merge it into the support library of realplay, note the directory where configure is running.

Tar jxvf all-20071007.tar.bz2 other files decompression method is similar

Tar jxvf essential-20071007.tar.bz2

Unzip
Windows-all-20071007.zip

 

Then create several empty folders

Mkdir/usr/lib/codecs

Mkdir/usr/lib/codecs/wincodecs20071007

Mkdir usr/lib/codecs/essential-20071007

 

Move the required libraries to the corresponding folder.
MV all-20071007/*/usr/lib/codecs

MV for Windows-all-20071007/*/usr/lib/codecs/wincodecs20071007

MV essential-20040704/*/usr/lib/codecs/essential-20071007

Actually, I sorted out a codecs directory in the download location and moved it directly to/usr/lib.

 

(2) install mplayer

Tar jxvf MPlayer-1.0rc2.tar.bz2

CD MPlayer-1.0rc2

. /Configure -- prefix =/usr/local/mplayer -- enable-Gui -- enable-FreeType -- codecsdir =/usr/lib/codecs/-- win32codecsdir =/usr/lib/codecs/wincodecs20071007 /-- realcodecsdir =/usr/lib/codecs/essential-20071007/-- language = zh_cn -- disable-ivtv
("-- Disable-ivtv" must be added to./configure. Otherwise, an error will occur.
)
 

# Note:

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

-- Enable-Gui installation graphical user interface

-- Enable-FreeType adjust the font

-- Codecsdir =/usr/lib/codecs/decoding location. The name of the decoding Location Option is different from the preceding description on the Internet. You can view it in./configure -- help.

-- Win32codecsdir =/usr/lib/codecs/wincodecs20071007/decoding location (AVI, etc)

-- Realcodecsdir =/usr/lib/codecs/essential-20071007/specifies the directory where the realplay support library is located. If you have installed realplay, you can modify it as needed.

-- Language = zh_cn specifies that the font of mplayer is Chinese.

# -- Confdir =/etc/mplayer specifies the configuration file

 

Next

Make

Make install

 

(3) install skin and font

 

Tar jxvf plastic-2.0.tar.bz2

MV plastic/usr/local/mplayer/share/mplayer/skins/default set plastic to the default Interface (it seems that you can also move to $ home /. mplayer/) (some articles specifically mention that s starting with skins is in upper case, but here I am in lower case)

 

Font

Music font-arial-iso-8859-1/font-arial-14-iso-8859-1 /*~ /. Mplayer/font

Running mplayer prompts subfont. TTF does not exist

CP/usr/share/fonts/TrueType/arphic/uming. TTF $ home/. mplayer/subfont. TTF just copy a font or make a link.

 

(4) test

After creating an initiator, you can run mplayer. The initiator command is set to/usr/local/mplayer/bin/gmplayer. (Running mplayer on the console can enable character playing mode)

Open a file and play it back.

The subtitle is garbled. The subtitle file must be the same as the video name and cannot be similar to. CHS. srt name.

 

(5) modify the configuration file and display subtitles.

Copy simhei. TTF from the font directory of windows to $ home/. mplayer, and then modify the configuration file ~ /. Mplayer/config (GUI. conf seems to be automatically modified according to config during playback)

# Write your default config options here!

# Enable video acceleration in XV mode for video output

Vo = XV

# Subtitle font files

Font = $ home/. mplayer/simhei. TTF

# Subtitle encoding (used when TTF is used)

Subcp = cp936

#0 auto scaling; 1 zooming by the height of the movie; 2 zooming by the width; 3 zooming by the diagonal line

Subfont-autoscale = 1

# Subtitle font size

Subfont-text-scale = 4

# Set the automatic bloom coefficient of OSD Elements

Subfont-OSD-scale = 6

Font = $ home/. mplayer/simhei. TTF

Subcp = cp936

Subfont-autoscale = 1 # This controls automatic subtitle loading. Neither 2 nor 0 is automatic.

Subfont-text-scale = 7 # font size

 

Sometimes there are no subtitles in the command line. You can try the shortcut keys "V" and "B"

Unicode is not used for the character set when running commands. It can be used for gb2312 or cp936.

 

If you have any questions, modify the sub_cp = "cp936" in the config file and change cp936 to another one, such as GB, GBK, gb2312, and gb18030.

 

Other problems:

No !!!!! Error:

[Ao oss] audio_setup: Can't open audio device/dev/DSP: device or resource busy

Ao_nas: Init (): Can't open nas audio server-> nosound

Once again, I checked carefully that gnome is used in the Ubuntu Desktop Environment. The default value is enlightenment sound daemon, instead of ALSA or older OSS. The ESD function is responsible for the background sound effects of gnome, and it has the ability to simultaneously sound multiple audio sources. By default, the mplayer installed by yourself uses oss. As a result, an error message such as "/dev/DSP occupied" is displayed in X and cannot be used properly, /dev/DSP is occupied by ESD. It's not good. Why can't we unify it.

Disable the ESD function: Select enable sound server startup and sounds for events from system> preferences> sound preferences. The result is that the background sound of gnome is lost.

This will listen to songs, and it's okay to watch movies. You can finally take a rest ......

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.