Install MPlayer packages under Linux __linux

Source: Internet
Author: User
Tags bz2 mkdir unpack
Two days earlier, my classmate came to play with me, I have to go to work. During the day I go to the company, he is alone at home. In less than two days my computer was unaware of the virus. The computer does not start. Safe mode is not accessible. Because I have been learning Linux recently, I do not want to install two sets of operating systems. So once I reload Windows my Linux won't see (I'm a rookie, I don't know how to fix it). Finally himself a hard-hearted. Just install Linux, I think it will be safer. Early two days from 9 o'clock in the evening until 2 o'clock in the morning, finally will install MPlayer software to understand.
First, download the relevant software package
1.mplayer-1.0rc2.tar.bz2
2.essential-20071007.tar.bz2
3.blue-1.7.tar.bz2
You can download it from the official website of MPlayer.
Second, unpack the software package
1. Because I need to use a binary package, I need to create a stored directory. For ease of management. I still need to create a directory to store the software.
#mkdir/usr/local/lib/codecs
#mkdir/usr/local/mplayer
2. Unpack the Package
$tar-JXVF essential-20071007.tar.bz2
$tar-JXVF mplayer-1.0rc2.tar.bz2
3. Move all files in the essential-20071007 directory to/usr/local/lib/codecs
#mv/home/xiaopeng/software/essential-20071007/*/usr/local/lib/codecs
Third, the MPlayer configuration, compilation, installation
$CD MPLAYER-1.0RC2
$./configure--enable-gui--enable-menu--prefix=/usr/local/mplayer--codecsdir=/usr/local/lib/codecs
$make
#make Install
Create skin catalogue, install skin
1.MPlayer Software Installation, if there is no skin, we still can not start the MPlayer graphics interface. Because MPlayer needs a default skin directory. So we can manually create this directory.
#mkdir/usr/local/mplayer/share/mplayer/skins
#mkdir/usr/local/mplayer/share/mplayer/skins/default
2. Extract Skin Files
$tar-JXVF blue-1.7.tar.bz2
3. After decompression, a blue directory is generated, and all files in blue are copy to/usr/local/mplayer/share/mplayer/skins/default as the default skin configuration for the MPlayer software.
#cp-R/home/xiaopeng/software/blue/*/usr/local/mplayer/share/mplayer/skins/default
Five, use the terminal to start MPlayer graphical interface.
$./usr/local/mplayer/bin/gmplayer
At this point, you may encounter an error message "New_face failed." Maybe the font path is wrong.please supply teh text font ~/.mplayer/subfont.ttf. This is because we lack the font, after I checked online, I know the solution to this problem.
C:/windows/fonts/simsun the WINDOWS operating system. The TTF file is copied to the. MPlayer directory under the current user's home directory and renamed to Subfont.ttf
$CP/home/xiaopeng/software/simsun.ttf/home/xiaopeng/.mplayer/subfont.ttf

Turn off the MPlayer software and reboot the MPlayer software, not the wrong hint.

Description
1. My username is Xiaopeng, so the home directory is:/home/xiaopeng
2. Install MPlayer all packages, I save in/home/xiaopeng/software
3. I install the MPlayer software into the/usr/local/mplayer directory for later management
Please according to this document, according to the actual situation of your flexible application. Install the MPlayer software.

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.