Linuxredhat9 installation of mplayer source code

Source: Internet
Author: User
1. Required files: 1. All-20071007.tar.bz2 (decoder) 2. Win32codecs-20040703.tar.bz2 (supporting multiple formats of decoder for windows) 3. Divx4linux-20020418.tar.gz (supporting DivX format) 4. Font-arial-iso-8859-1.tar.bz2 (word...


1. Required files: 1. All-20071007.tar.bz2 (decoder) 2. Win32codecs-20040703.tar.bz2 (support for windows decoding in multiple formats) 3. Divx4linux-20020418.tar.gz (supporting DivX format) 4. Font-arial-iso-8859-1.tar.bz2 (font) 5. ITunes-1.1.tar.bz2 (player skin) 6. Mplayer-1.0pre8.tar.bz2 (broadcaster Main file)

II. download files:

1. all-20071007.tar.bz2 (decoder)

2. win32codecs-20040703.tar.bz2 (supports decoder of multiple formats in windows)

3, divx4linux-20020418.tar.gz (support DivX format) 20020422135132

4,font-arial-iso-8859-1.tar.bz2 (font)

5, itunes-1.1.tar.bz2 (player skin)

6. mplayer-1.0pre8.tar.bz2 (player Main file)

III. Installation

1. create the directory mkdir/usr/lib/win32, mkdir/usr/lib/codecs, and mkdir/usr/local/share/mplayer/Skin/default, create directory mkdir/usr/local/share/mplayer/font

2. copy all files decompressed by all-20071007.tar.bz2 to the new codecs directory.

Command: tar-jxvf all-20071007.tar.bz2, mv all-20071007/*/usr/lib/codecs (note * indicates all)

Copy all the files decompressed by win32codecs-20040703.tar.bz2 to the new win32 directory.

Command: tar-jxvf win32codecs-20040703.tar.bz2, music win32codecs-20040703/*/usr/lib/win32

3. install divx4linux-20020418.tar.gz.

Command: tar-zxvf divx4linux-20020418.tar.gz, cd divx4linux-20020418, execute./install. sh

4. extract and install the main package of the player.

Command: tar-jxvf Mplayer-1.0pre8.tar.bz2, cd Mplayer-1.0pre8,

(To prevent the Not audio/video ...... You can first modify the files in the source code.

Vim./libmp demux/demux_real.c, enter/Not audio, and set "else {mp_mag (…)}" at the found position (......)}" Delete .)

Run the configure script to check the system compilation environment and execute./configure -- enable-gui (the added option is to use the graphical interface after installation)

Then input make (compile the source code, which takes several minutes)

Then enter make install (installation)

After the installation is complete, you can use the mplayer song name to listen to mp3 in the shell.

5, installation skin, tar-jxvf iTunes-1.1.tar.bz2,

Create the mkdir-p/usr/local/share/mplayer/Skin/default directory (-p indicates that no directory in this path will be created)

Put all the files in the unzipped package in the new directory, cp./iTunes-1.1.tar.bz2/*/usr/local/share/mplayer/Skin/default

6, install the font, tar-jxvf font-arial-iso-8859-1.tar.bz2, put all the files under the font-arial-18-iso directory in the package to the corresponding font directory, cp font-arial-iso-8859-1/font-arial-18-iso/*/usr/local/share/mplayer/font

After playing the game, you can enter the gmplayer movie name in the shell to bring up mplayer to play the movie.

3. create an icon on the desktop. On the gnome desktop, right-click and choose new session. enter mplayer in the name and command gmplayer. The icon is in/usr/local/share/pixmaps.

4. uninstall. Enter make uninstall in the main package directory of the player. Therefore, we recommend that you do not delete the previous packages. Then delete the new directories and they will be cleaned, because linux does not have a registry like windows.

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: 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.