Install mplayer in Linux

Source: Internet
Author: User

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

Mplayer-1.0rc1.tar.bz2 (main program) (http://www.mplayerhq.hu/MPlayer/releases/MPlayer-1.0rc1.tar.bz2)

Abyss-1.6.tar.bz2 (skin) (http://www2.mplayerhq.hu/MPlayer/skins/Abyss-1.6.tar.bz2)

All-20060611.tar.bz2 (http://www.mplayerhq.hu/MPlayer/releases/codecs/all-20060611.tar.bz2)

Windows-all-20060611.zip ()

Http://www.mplayerhq.hu/MPlayer/releases/codecs/windows-all-20060611.zip)

This is some of my mplayer components and you can go to http://www.mplayerhq.hu/MPlayer/ to download your favorite skins and fonts.

2. Installation Process (please open your terminal)

A. install corresponding decoding

After entering the main directory, install it as the root user. In this way, change the identity: Enter Su or su root on the terminal, and then enter the password. Do you see that $ is changed #

Next

Mkdir/usr/lib/codecs
Mkdir/usr/lib/wincodecs
Tar jxvf all-20060611.tar.bz2
MV all-20060611/*/usr/lib/codecs
Unzip windows-all-20060611.zip
Music videos for Windows-all-20060611/*/usr/lib/wincode

B. Install mplayer

Tar jxvf MPlayer-1.0rc1.tar.bz2

CD MPlayer-1.0rc1

. /Configure -- prefix =/usr/local/mplayer -- enable-Gui -- enable-FreeType -- codecsdir =/usr/lib/codecs/-- win32codecsdir =/usr/lib/wincodecs /-- language = zh_cn

Note:

* -- Prefix =/usr/local/mplayer is the installation path.
* -- Enable-Gui installation graphical user interface
* -- Enable-FreeType adjust the font
*-Codecsdir =/usr/lib/codecs/
*-Win32libdir =/usr/lib/wincodecs specify the decoding location
* -- Language = zh_cn Chinese

Next

Make

Make install

C. Install skin

Put the default skin under/usr/local/mplayer/share/mplayer/skins/default.

The execution program is in/usr/local/mplayer/bin.

You can enter gmplayer in the terminal or create a starter on the desktop to use mplayer.
Ln-S/usr/local/mplayer/bin/gmplayer ~ /Desktop/gmplayer

Link or copy font

Ln-S $ {fonts}/simsun. TTC ~ /. Mplayer/subfont. TTF

The GUI requires libavcodec with PNG support
Install zlib-devel

Opening mplayer appears "[WS] Sorry, your system does not support xshape extension. "" Solution:
Add a line under section "module" of/etc/X11/Xorg. conf:
Load "extmod"

 

Use any document Editor (such as Vim) to open the subtitle file and save it as a file with the same name as gb18030.

Garbled problem:

Subtitle settings for mplayer:

Font-> encodeing-> Unicode

Subtitle & OSD-> encoding-> cp936, check box select Unicode subtitle

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.