Red Hat 9: MPLAYER player under Linux

zhaozj2021-02-16  114

Installing MPLAYER in Linux RH9 has been many times. It has been ended in failure before, and it is finally successful in the first two days. Everyone can be used as a reference when installing (some places I also refer to others).

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 .

转载请注明原文地址:https://www.9cbs.com/read-10896.html

New Post(0)