Install the mplayer player in linux-general Linux technology-Linux technology and application information. For more information, see. Original Author: wangweiwangchao
I have been studying linux this semester. Since I installed Redhat, I cannot watch movies every time I enter linux. I found it from the Internet and said that mplayer is good, but it seems very troublesome to install, so I haven't installed it all the time. I installed Redflag6.0 a few days ago. There is a Realone player in it, but it doesn't work very well, therefore, if Fedora7.0 is installed, there is still no player. I took the exam over the past few days, and I had nothing to do except review. So I tried to wear mplayer, but it didn't feel as hard as it was. I just installed it in less than an hour, except for videos in rm format with no sound or images, videos in other formats can be played. I think this is a decoder problem.
Haha, okay, heartbeat. Let's get started and make your linux system entertaining. Follow these steps:
STEP 1. Download the necessary files:
Download the main program:
MPlayer-1.0pre8.tar.bz2
Official decoder:
Essential-20071007.tar.bz2
The above items were found on the official website and downloaded smoothly.
Download URL: http://www.mplayerhq.hu/homepage/design7/dload.html
STEP2. install codecs:
Tar vjxf essential-20071007.tar.bz2
Mv essentials-20071007/usr/lib/codes (or/usr/lib/codecs, this is used. /configure -- with-codecsdir =/usr/lib/codecs/, you must make the direct is correct, or you cant install the codes .)
Chmod 644/usr/lib/codes/* (or 777)
Chown root. root/usr/lib/codes /*
Unzip windows-essential-20071007.zip
Mv windows-essential-20071007/usr/lib/wincodes (or/usr/lib/wincodecs, this is usedfor. /configure -- with-win32libdir =/usr/lib/wincodecs/, you must make thedirect is correct, or you cant install the codes .)
Chmod 644/usr/lib/wincodes/* (or 777)
Chown root. root/usr/lib/wincodes /*
STEP 3. Install MPlayer:
Tar vjxf MPlayer-1.0pre8.tar.bz2
Cd MPlayer-1.0pre8
./Configure -- prefix =/usr/local/mplayer/-- enable-gui -- enable-freetype -- with-codecsdir =/usr/lib/codes/-- with-win32libdir =
/Usr/lib/wincodes/
-- Disable-gcc-checking -- language = zh_CN
Press enter to confirm whether you are willing to disable-gcc-checking. Just press Enter.
Make
Make may take a long time. We recommend that you do something else first. Next we can make install.
Make install
Cd etc
Cp example. conf/usr/local/mplayer/etc/config
Cp codecs. conf/usr/local/mplayer/etc/
STEP 4. Install the font
Put the font you want to use (for example, simsun. ttf, c: \ windows \ font \ in the font directory of windows) to/home/ <你的用户名> /. Mplayer (put the root user under/root/. mplayer) and rename it subfont. ttf.
Copy (assume that your simsun font is temporarily placed in the/root/directory and the user is root ):
(If this step is not performed, the following error will be reported: New_Face failed. Maybe the font path is wrong. please supply teh text font ~ /. Mplayer/subfont. ttf. If not ~ /. Mplayer. You only need to check the key menu bar and select to display hidden files .)
STEP 5. Install skin
Tar vjxf Orange-1.3.tar.bz2
Mv Orange/usr/local/mplayer/share/mplayer/skins/
Cd/usr/local/mplayer/share/mplayer/skins/
Ln-s Orange default
The official website has a lot of skins. After downloading them, decompress them and put them under/usr/local/mplayer/share/mplayer/skins/. Then, right-click mplayer and select skin for browsing, you can see the skin you just put in.
STEP 6. If you are lucky, you should be able to run it. Enter
/Usr/local/mplayer/bin/gmplayer
You can run the program. You can watch movies in linux. How are you doing?
We wish you a smooth installation. Haha, action.
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