Mplayer compilation and Installation Guide (Fedora)
Source: Internet
Author: User
Mplayer is a super-powerful movie player in Linux. It can play almost all the video and audio files (at least until now, I have not encountered the following error :-)).
(1) Main Program:
Http://www1.mplayerhq.hu/MPlayer/releases/MPlayer-1.0pre7.tar.bz2
(2) font files:
Http://www1.mplayerhq.hu/MPlayer/releases/fonts/font-arial-iso-8859-1.tar.bz2
(3) skin files (GUI is supported, and other skin files can also be downloaded ):
Http://www1.mplayerhq.hu/MPlayer/Skin/plastic-1.2.tar.bz2
(4) Support for Avi and other W32 multimedia format plug-ins:
Http://www1.mplayerhq.hu/MPlayer/releases/codecs/win32codecs-20040703.tar.bz2
(5) supports multimedia plug-ins such as realplay (RM, Ram, etc:
Http://www1.mplayerhq.hu/MPlayer/releases/codecs/essential-20050412.tar.bz2
If it is too slow to download the above site, you can go to the sky network (http://e.pku.edu.cn/) search to download.
If you are only running in the console (text), you only need to download (1) (4) (5). If you want to use a graphical interface and support Chinese characters, you must download all the above five.
2. Upload the above five files to the main directory (of course, other directories can also be used) and decompress:
3. Copy the w32codec support library (win32codecs-20040703) and realplay support library (essential-20050412)
You must first execute this step, and note that if you have installed realplay8 or realplay9, you do not need to merge it into the support library of realplay, note the directory where configure is running.
[Root @ localhost ~] # Music win32codecs-20040703/usr/lib/Win32
[Root @ localhost ~] # Music Video essential-20050412/usr/lib/
4, enter the Mplayer-1.0pre7 directory and execute, note the parameters:
[Root @ localhost ~] # Cd MPlayer-1.0pre7
[Root @ localhost MPlayer-1.0pre7] #./configure -- enable-Gui -- cc = gcc32 -- With-reallibdir =/usr/lib/essential-20050412 -- language = zh_cn
(If the system does not have gcc3.2, you can use the -- disable-gcc-checking parameter, but we do not recommend this)
# Note: -- enable-Gui is an input tool that supports graphical interfaces. -- cc = gcc32 is compiled using gcc of version 3.2, -- With-reallibdir =/usr/lib/essential-20050412 is used to specify the directory of the realplay support library. If you have installed realplay 8, the option should be -- With-reallibdir =/usr/lib/realplay8/codecs. If you have installed realplay 9 (you can modify it as needed): -- With-reallibdir =/root/real/codecs, -- language = zh_cn is used to specify the font of mplayer as Chinese. Version 1.0 already supports RTSP streams, so you don't need to use -- enable-live.
5. Execute the following commands in sequence:
[Root @ localhost MPlayer-1.0pre7] # Make
[Root @ localhost MPlayer-1.0pre7] # make install
6. font of the token:
[Root @ localhost MPlayer-1.0pre7] # mv font-arial-iso-8859-1/font-arial-14-iso-8859-1/*/usr/local/share/mplayer/font/
Note that the first letter of the skin must be capitalized.
8. Input input the input. conf file to the terminal:
[Root @ localhost MPlayer-1.0pre7] # cp MPlayer-1.0pre7/etc/input. CONF/usr/local/share/mplayer/
9. Run gmplayer in X to enable the graphic interface broadcasting mode. Run mplayer in the console to enable the character playing mode. (My text mode is acceptable, but the graphic interface is not successful -_-)
Installation script:
---------- Begin, this row not supported ed ----------
#! /Bin/sh
# Decompress.
If [! -E MPlayer-1.0pre7]; then
Tar-jxf MPlayer-1.0pre7.tar.bz2
Fi
If [! -E win32codecs-20040703]; then
Tar-jxf win32codecs-20040703.tar.bz2
Fi
If [! -E essential-20050412]; then
Tar-jxf essential-20050412.tar.bz2
Fi
If [! -E font-arial-iso-8859-1]; then
Tar-jxf font-arial-iso-8859-1.tar.bz2
Fi
If [! -E plastic]; then
Tar-jxf plastic-1.2.tar.bz2
Fi
# Configure, make and install.
CD MPlayer-1.0pre7
If [./configure -- enable-Gui -- cc = gcc32 -- With-reallibdir =/usr/lib/essential-20050412 -- language = zh_cn]; then
Make & make install
CD ..
Else
Exit
Fi
# Do some clearance.
Rm-RF MPlayer-1.0pre7
Rm-RF win32codecs-20040703
Rm-RF essential-20050412
Rm-RF font-arial-iso-8859-1
Rm-RF plastic
---------- End, this row not supported ed ----------
Required files: (because RC1 has a graphical interface to support Compilation, there is no graphical interface to support installation, and the font and skin package are not required)
Mplayer-1.0-rc1svn20070618.orig.tar.gz
Windows-all-20060611.zip
Rp9codecs-20050115.tar.bz2
Installation script:
---------- Begin, this row not supported ed ----------
#! /Bin/sh
# Since there is something wrong with the compilation with GUI support, we
# Don't need to include the skins and fonts here. Just comment them.
# Decompress.
If [! -E mplayer-1.0-rc1svn20070618]; then
Tar-jxf mplayer-1.0-rc1svn20070618.orig.tar.gz
Fi
If [! -E win32codecs-20040703]; then
Tar-jxf win32codecs-20040703.tar.bz2
Fi
If [! -E rp9codecs-20050115]; then
Tar-jxf rp9codecs-20050115.tar.bz2
Fi
# If [! -E font-arial-iso-8859-1]; then
# Tar-jxf font-arial-iso-8859-1.tar.bz2
# Fi
# If [! -E plastic]; then
# Tar-jxf plastic-1.2.tar.bz2
# Fi
# Configure, make and install.
CD mplayer-1.0-rc1svn20070618
If [./configure -- realcodecsdir =/usr/lib/rp9codecs-20050115 -- language = zh_cn]; then
Make & make install
CD ..
Else
Exit
Fi
# Do some clearance.
Rm-RF MPlayer-1.0pre7
Rm-RF win32codecs-20040703
Rm-RF rp9codecs-20050115
# Rm-RF font-arial-iso-8859-1
# Rm-RF plastic
---------- End, this row not supported ed ----------
Online Reference documents:
1. http://jiangli1984.blogchina.com/3811048.html (this article is basically modified on the basis of this article)
2. http://mp.dev.hu/DOCS/HTML/zh/documentation.html (mplayer detailed Chinese Document)
3. http://www.mplayerhq.hu/homepage/design7/dload.html (mplayer homepage download page that provides many encoding packages, fonts and skin downloads)
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.