The installation process of MPlayer under Linux __linux

Source: Internet
Author: User
Tags bz2

MPlayer downloads need to download four types of files:


MPLAYER-1.0RC1.TAR.BZ2 (Installation file)
ALL-20071007.TAR.BZ2 (decoder 1)
Windows-all-20071007.zip (Decoder 2)
BLUEHEART-1.5.TAR.BZ2 (skin)

Subfont.ttf (font)

Linux software is best downloaded from the official website to ensure quality, this is its official address

www1.mplayerhq.hu/mplayer/releases/mplayer-1.0rc1.tar.bz2

www1.mplayerhq.hu/mplayer/releases/codecs/all-20071007.tar.bz2

Www1.mplayerhq.hu/mplayer/releases/codecs/windows-all-20071007.zip

http://www1.mplayerhq.hu/MPlayer/skins/BlueHeart-1.5.tar.bz2

1. Install decoder

Unzip the decoder.

Tar jxvf all-20071007.tar.bz2

Tar jxvf windows-all-20071007.zip

Copy to/usr/lib/codecs directory

2. Install MPlayer

Unzip the MPlayer.

Tar jxvf mplayer-1.0rc1.tar.bz2

Execute Configure

./configure--prefix=/usr/local/mplayer--with-codecsdir=/usr/lib/codecs--enable-gui--language=zh_CN- With-win32libdir=/usr/lib/codecs

Make clean First (note that you may have a variety of errors in the first place.) )

And then execute make, and if this occurs

Snd_config_search_alias_hooks an undefined error, add the--disable-alsa to the Configure;

Make install

After the installation is complete, the executable files are located in the/usr/local/mplayer/bin directory: Gmplayer and MPlayer

Gmplayer is graphical and MPlayer is a command-line form.

You need to install skin before using Gmplayer:

Tar xvfj blueheart-1.5.tar.bz2

CP BLUEHEART/USR/LOCAL/MPLAYER/SHARE/MPLAYER/SKINS/DEFAULT-FR

Can.

To set environment variables:

Vim/etc/profile

Add Export path=/usr/local/mplayer/bin: $PATH

Source/etc/profile (or. /etc/profile)

Can.

To set the font:

CP/USR/SHARE/FONTS/CHINESE/TRUETYPEUKAI.TFF ~/.MPLAYER/SUBFONT.TFF

3. Use

(1) gmplayer Start graphical interface

(2) using the MPlayer command in the terminal

Enter the directory where the song is located

MPlayer *.mp3 can be implemented loop playback

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.