Install Mplayer in VMwareRedHat9.0

Source: Internet
Author: User
The following describes the installation process and some experiences. Hope to help you. & Nb: Let's talk about the installation process and some experiences. Hope to help you.

1. System Configuration

Virtual Machine Vmware7.0

System: RedHat9.0 Linux CPU: Intel E2200 2. Install the required packages (you can download these files and packages from the Mplayer official website. Http://www.mplayerhq.hu/design7/dload.html ) 1. Main Program:MPlayer-1.0pre1.tar.bz2 2. Codecs:Essential-20071007.tar.bz2 3. Wincodecs:Windows-essential-20071007.zip 4. Skin:KDE-0.3.tar.bz2 Iii. Installation ProcessTo install the encoding package in the/usr/lib/codecs and/usr/lib/wincodecs directories, create a folder first. (You can also specify a specific folder during the compilation process)

1. Install the source code package

# Mkdir/usr/lib/codecs

# Mkdir/usr/lib/wincodecs

# Tar jxvf essential-20071007.tar.bz2

# Unzip windows-essential-20071007.zip

# Mv essential-20071007/*/usr/lib/codecs (many people on the Internet directly run mv essential-20071007/No backend *, in fact, the difference is to cut the folder or file in it to the/usr/lib/libcodecs file. I do not know the difference)

# Mv windows-essential-20071007/*/usr/lib/wincodecs same as above

2. Compile and install MPlayer

# Tar jxvf MPlayer-1.0rc1.tar.bz2

# Cd mplayer-1.0pre1

#. /Configure -- prefix =/usr/local/mplayer -- enable-gui -- enable-freetype -- with-codecsdir =/usr/lib/codecs/-- with-win32libdir =/usr/lib/wincodecs /-- language = zh_CN

------- You can also write the./configure configuration process to a Shell script to avoid entering

Command:

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

-- Enable-freetype is used to adjust the font.

-- Enable-gui is used to install a graphical user interface.

-- With-codecsdir =/usr/lib/codecs and -- with-win32libdir =/usr/lib/wincodecs is the location specified for decoding

-- Language = zh_CNThe specified language is Chinese.

Next proceed

# Make

# Make install

(These two steps may take some time to check your specific machine configuration and the resources allocated to the virtual machine)

4. Install skin

There are many types of skin source code on the official Mplayer website, and you can choose any one you like. However, it seems that the playback interface and the skin are separated for each type of skin. It is quite uncomfortable to use it. In fact, you can write a small QT or GTK program to embed the playback interface into your own framework.

# Tar jxvf KDE-0.3.tar.bz2

# Mv KDE/usr/local/mplayer/share/mplayer/Skin/

# Mv KDE default ------------------ this step seems necessary, because the default skin to be searched during Mplayer running is default

5. install fonts

We can directly copy a font to the main directory. in the mplayer folder, rename the font subfont. ttf (it may not exist under/root after MPlayer installation is complete. mplayer folder. It does not matter. You can create a # mkdir. mplayer)

Copy a font in the/usr/share/fonts/zh_CN/TrueType/directory.

# Cp/usr/share/fonts/zh_CN/TrueType/zysong. ttf/root/. mplayer/subfont. ttf

6. Run settings

Run gmplayer in the/usr/local/mplayer/bin directory.

1. Set the graphics card driver

./Gmplayer 1.wmv: "An error occurred while opening/initializing the selected video output (-vo) device !"

 

Next, set the driver to run./gmplayer, right-click the driver, select attribute settings, and select video. Now, select the second item.

2. Set the Sound Card DriverHowever, after these settings are complete, the video can be played, but no video is displayed. Error message about unable to enable/initialize audio device> NOSOUNDTherefore, you must set the audio card driver to select the esd option in the audio and click OK. 7. Now you can enjoy your favorite movies in Linux.If you are not happy to start Mplayer in the command line, you can perform the following settings ----- set a desktop icon for Mplayer
Place an mplayer icon on the desktop, right-click and choose "New starter"
The name is mplayer;
Command:/usr/local/mplayer/bin/gmplayer
Default icon location in/usr/share/pixmaps/mplayer-desktop.xpm
Different Versions of Mplayer are significantly different from those of different systems. I have made many detours in compiling and installing Mplayer. I hope this article will help you.
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.