Mplayer configuration in Fedora 14

Source: Internet
Author: User

 

In Linux, the most popular audio and video playback software is Mplayer, which can be played in text mode and in x-window mode.

In earlier versions of Fedora, Fedora 9 and earlier versions have relatively simple Mplayer installation. You can simply type yum install mplayer, but the installation in later versions is not the same.

1. If you want to install MPlayer, you must first provide the installation environment, so that we can get twice the result. First, check whether the following packages have been installed in Linux.

 

Gtk2-devel, glib2-devel, libpng, libpng-devel, gtk +, gtk +-devel

And GCC compiling environment

 

2. Download the main program: (download from the official website)

MPlayer-1.0rc2.tar.bz2 (installed successfully)

: Http://www.mplayerhq.hu/MPlayer/releases/MPlayer-1.0rc2.tar.bz2

Official decoder: essential-20071007.tar.bz2

: Http://www.mplayerhq.hu/MPlayer/releases/codecs/essential-20071007.tar.bz2

Win32_codes_all: windows-essential-20071007.zip

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

Skin: Clearlooks-1.2.tar.bz2

: Http://www.mplayerhq.hu/MPlayer/skins/Clearlooks-1.2.tar.bz2

Text: gb2312-ming.tar.bz2

: Http://www.mplayerhq.hu/MPlayer/contrib/fonts/chinesefonts/gb2312-ming.tar.bz2

3. Run the following command to install codec:

# Mkdir/usr/lib/codecs

# Mkdir/usr/lib/wincodecs

# Tar jxvf essential-20071007.tar.bz2

# Mv essential-20071007/*/usr/lib/codecs

# Unzip windows-essential-20071007.zip

# Mv windows-essentials-20071007/*/usr/lib/wincodecs

4. Run the following command to 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/wincodecs /-- language = zh_CN -- disable-ivtv

Note:

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

-- Enable-gui installation graphical user interface

-- Enable-freetype adjust the font

-- Codecsdir =/usr/lib/codecs/

-- Win32codecsdir =/usr/lib/wincodecs specify the decoding location

-- Language = zh_CN Chinese

-- Disable-ivtv: disable ivtv (if it is not blocked, the-o vo_ivtv.o vo_ivtv.c error will occur during make)

# Make (if make fails, run the make distclean command to clear it)

# Make install

 

5. Run the following command to install the skin:

# Tar jxvf Clearlooks-1.2.tar.bz2

# Mv Clearlooks/usr/local/mplayer/share/mplayer/skins/

# Cd/usr/local/mplayer/share/mplayer/skins/

# Mv Clearlooks default

6. Installation fonts:

# Mkdir/usr/local/mplayer/share/mplayer/font/

# Tar jxvf gb2312-ming.tar.bz2

# Cd gb2312-ming/gbsn00lp16/

# Cp */usr/local/mplayer/share/mplayer/font/

 

7. Test and run the command:/usr/local/mplayer/bin/gmplayer (inconvenient to use)

8. vim/etc/profile

Add a row: PATH = $ PATH:/usr/local/mplayer/bin

Then re-read: export PATH

9. You can use mplayer or gmplayer directly.

Note: At this time, the running may only show that the image has no sound.

The prompt is as follows: audio settings: Unable to enable the audio device/dev/dsp: No such file or directory

The solution is as follows:

 

# Mknod/dev/dsp c 14 3

# Chmod 666/dev/dsp

This is normal !!

 

10. Although the gui is also installed in front, it is not very easy to use. Install the front-end player kmplayer, so that you can use the kmplayer interface to call mplayer to play the video.

Yum install kmplayer

 

This article is from the lopnxrp blog

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.