Red Hat 9: Install MPLAYER player under Linux (zz from http://blog.9cbs.net/lastking/)
MPlayer is the fastest playback speed under Linux (properly installed on graphics card), supporting one of the players in the media format, which can play almost all WIN media files! The following describes its installation method: Installation big premise: To compile this software, confirm that your system has the corresponding XFree86-Devel, and if you want to compile the GUI operation interface (./configure --enable-gui), please confirm Your system has four softwares for libPng, libpng-debpng, libpng-debpng, gtk-wevel (requires version greater than 1.2), can find the corresponding RPM package at www.rpmfind.net (these packages can be obtained by installing the Gnome desktop) 1, In the latest version of MPlayer and the set package 2 for installing the required package 2, upgrade GCC: (necessary, recommended GCC version is 2.9.5 and 3.2.x) Check your GCC version, how much is the output of GCC -V, If it is 3.0 or less, it is recommended to install GCC3.0 or more (according to MPLAYER's official instructions, GCC below 3.0 can be compiled with ./configre --disable-gcc-checking parameters, but may be unstable), the method of installing GCC3 is : Enter the GCC3 directory, run rpm -ivh *.rpm --Nodeps, all 100% installed, open a terminal window, run MV / USR / BIN / GCC / USR / BIN / GCC2 and MV / USR / BIN / GCC3 / usr / bin / gcc, run GCC -V, see if the output is 3.0.2, if yes, OK, not, check the installation step. 3, compilation and install MPLAYER: TAR VXF MPLAYER - ****. TAR, CD MPLAYER - ****,. / Configure (if you want the GUI's operating interface, switch this command ./configrue --enable- GUI, but it seems that this version of GUI compilation is wrong, I and Linuxcn can't succeed, PRE4 version is no problem), make, make install, successfully run MPLAYER (this is to make it build. MPlayer this configuration in home directory. Directory (.MPlayer is a hidden directory, you can see with LS -A instructions, CD ~ / .mplayer instructions can enter), good to perform the next operation)
./configure --Prefix = / usr / local --enable-gui --enable-limited --enable-menu --Nable-freetype --enable-fontconfig --enable-win32 --enable-dshow --enable- REAL --ENABLE-DIVX4LINUX --ENABLE-XVID --DISABLE-ARTS --LANGUAGE = zh_cn --enable-Dynamic-Plugins --with-codecsdir = / usr / local / lib / codecs --with-win32libdir = / usr / local / lib / codecs --with-reallibdir = / usr / local / lib / codecs --with-limitedibdir = / usr / local / lib / limited --with-freetype-config = / usr / bin / freetype-config Important parameter description: --prefix = Installation path to / usr / local --enable-gui Using graphical interfaces, Mplayer has two running methods for command line and graphical interface --Nable-Live use streaming support --Nable-FreeType subtitles Fonts can use TTF fonts --Nable-win32 can use Win32 .dll format decoder --Nable-REAL support Real format --Language = zh_cn mplayer interface format is Chinese --with-codecsdir = / usr / local / LIB / CODECS Specify decoder search path --with-win32libdir = / usr / local / lib / codecs Specify Win32 decoder search path --with-realibdir = / usr / local / lib / codecs Specify Real Decoder Search Path - WITH-LIVELIBDIR = / usr / local / lib / limited Specifies the LIVE Decoder Search Path Now use Make automatic compiling software, you can go to eat, come back and look Make install // Installation Run MPlayer ./mplayer 4, copy configuration file: (Note: The following ETC directory is under the MPLAYER - *** directory under the previous step, non / ETC) cp etc / codecs.conf ~ /.MPlayer CP etc / example.conf ~ /. MPlayer / Config 5, install font and skin: (if you choose ./configure --enable-gui) only Skin, otherwise Skin doesn't have to install) into your own home directory Display hidden files, enter the .mplayer folder, create 2 built folders: font and skin. Download the font file, (on the MPlayer official website) copy into the Font to copy the SIMSUN.TTF to ~ / .mplayer directory copy Blue skin catalog to / usr / local / share / mplayer / skins directory 6, run mode : (1) MPlayer / Path / The name of the media file to be played; (2) GMPLAYER (only this command compiled by ./configure --enable-gui)
You can now run MPLAYER and GMPLAYER. But the GMPlayer subtitles have problems, prompting curtain font files. Copy SIMSUN.TTTF (other font files) in the prompt (other font file can also be) (change the file name). 7. About ~ / .MPlayer / config file Some configuration instructions VO = XV (Select the default play mode, XV mode is the mode of supporting the hard acceleration function of the graphics card, the occupation of the CPU is small, recommended; more display mode can From the command MPlayer -vo Help, the VESA mode can be played when not starting the XWIN interface, a bit like the Jinshan Mountainea under DOS) AO = OSS (select sound playback mode, OSS is the best play mode of compatibility , Recommended; you can also try SDL mode) FS = yes (full screen mode, YES, by default, the default is 1: 1 play mode) ZOOM = yes (instant) zoom = yes by default to full-screen playback, NO or front plus ## Change the size of the movie picture, YES can use the mouse free to pull the picture, NO, no can be) GUI = YES (default is the graphical operation interface, this requires you to compile with ./configure --enable-gui Otherwise, even if Yes does not have a GUI operation interface) SKIN = Default (setting the default SKIN, change the value on the right side of the right to Skin to set the desired Skin as the default, this parameter is using the GUI operation interface It is only valid) cache = 8192 (the default play cache size, if the machine is large enough, put it, if it is not very big, such as 128, or the default calculation) framedrop = YES (allowed to jump frame, If your machine CPU speed is very slow, please add this YES, the default is NO or the front plus ## will be prohibited; for machines above 366MHz, it is recommended to set it into no or front plus ##) Other settings for default .
Published on September 04, 2004 2:11 PM
comment
#
Reply: Red Hat 9: LINUX Install MPLAYER player (zz from http://blog.9cbs.net/lastking/) 2004-09-04 2:23 PM
IMHOW
Hand teaches you to compile and install MPLAYER This article allows free reprint, but please indicate the source (
http://imhow.donews.net/imhow
) And author name (IMHOW), thank you here to introduce MPlayer1.0PRE3 compilation and installation method. But most of these steps should be applied to other versions. My system is RH9, the kernel is 2.4.20-8, and the development package is selected. Step 1 Downloading to Official Site (
Http://www.mplayerhq.hu/homepage/design6/dload.html
Download the needed package, including: mplayer-1.0pre3 codecs package (the two officials are required, if you want to watch RM) DEFAULT SKIN PACKAGE Download the font package when downloading DVDrip during the Linux commune. Download address (need to be registered to download):
Http: // 呜呜 .linux fans.org/ Nuk /Modules.php? So = site_downloads & op = with Info & Location = 192
Step 2 Coping Files Use the tar command to extract each file, then copy the downloaded decoder, font, and Skin files to the corresponding directory: I am copy font and skin files to / usr / share / mplayer directory, decoder Copy to / usr / local / lib / codecs, Real decoder copies to / usr / local / lib / codecs / rp. Of course, you can copy them in any directory, but you should pay attention: the font directory and SKIN directory are going on the same directory, the font directory name is the font, the Skin directory name is Skin (case note), and the interface needs The picture file is going to be below Skin / Default, and you will not find Skin when you start the MPLAYER graphical interface. STEP 3 modifing sometimes "NOT AUDIO / Video Stream or Unsupported!", "NOT AUDIO / Video Stream or Unsupported!" But click OK to play normally, in order to remove this annoying dialog, we modify the source file (open source advantage, huh, huh ). Use any text editor (such as kedit, gedit) to open the demux_real.c file in the MPlayer source code directory: mplayer-1.0pre3 / libmpdemux / demux_real.c Plus // with // with // to note this line code in the 1298 line code . (Note: Corresponding to MPlayer1.0Pre3 version. Other versions may have different numbers, but basic information is the same). After saving. The specific content is as follows: // mp_msg (msgt_demux, msgl_err, "not audio / video stream or unsupported! / N"); Step 4 Configuration & Make then start configure. In the terminal mode, run the following command in the source code directory: (more options, run ./configure - Help to view) $. / Configure --enable-gui --enable-real --dataDir = / usr / share / MPLAYER --LIBDIR = / usr / local / lib / codecs --Language = en --with-reallibdir = / usr / local / lib / codecs / rp --with-win32libdir = / usr / local / lib / codecs / Win32 explains the meaning of each option: --Nable-GUI: MapLayer can use graphical interface - DataDir = / usr / share / mplayer: Setting the font and Skin's directory, depending on the directory you just copied --Libdir = / usr / local / lib / codecs: Set the directory where the decoder --language = en: Sets the MPLAYER's interface language to English, which can also be set to zH to display Chinese. --with-reallibdir = / usr / local / lib / codecs / rp: Setting REAL File Decoder Directory --with-win32libdir = / usr / local / lib / codecs / win32: Sets the Win32 decoder directory. Note that the Win32 decoder is not necessary, but setting this directory is necessary, or if you set libdir, but no Win32 directory, MPlayer will prompt in Configure. When Configure is over, the following is simple, direct make (this step is a bit long), then make install.