(Posted from www.linuxfans.org)
MPlayerLinux is the fastest playing speed, support the most media format player, it can play almost all the win media files. The following describes how it is installed:
Most of this article refers to the Chairman of this site in the CH2000 Technology Forum article, http://www.ch2000.com.cn/lbbbs/cgi-bin/topic.cgi?forum=19&topic=974&start= 0&show=0, I only do some supplementary
Friends using the Nvdia graphics card must install Nvidia for Linux driver, otherwise XV mode is not supported, although it can be played in SDL video mode, but the effect is not satisfactory.
1. Download in this website
MPlayerThe latest version of the package and the set of packages required for installation http://www.linuxfans.org/nuke/modules.php?name=Downloads&d_op=getit&lid=23
2, Unzip
MPlayer. zip
Get
MPlayerDirectories, CDs
MPlayer, run the LS command, you should be able to see the four directories of Divx4linux-20020418,arial-18,gcc3,default (three directories have some files, this is not listed here), And mplayer-0.90pre5.tar,w32codec-0.60.tar,sdl-1.2.3-1.i686.rpm,sdl-devel-1.2.3-1.i686.rpm these four documents
3. Upgrade GCC:
Check your GCC version, run gcc-v to see what the output is, if it is below 3.0, it is recommended to install gcc3.0 above (
MPlayerThe official note that GCC under 3.0 can be compiled with the./configre--disable-gcc-checking parameter, but may be unstable), the way to install GCC3 is to enter the GCC3 directory, run Rpm-ivh *.rpm, After all hundred cent installs, opens a terminal window, runs MV/USR/BIN/GCC/USR/BIN/GCC2 and MV/USR/BIN/GCC3/USR/BIN/GCC, then runs the gcc-v, See if the output is 3.0.2, if yes, OK, no, then check the installation steps.
4. Install SDL and Sdl-devel:
Check to see if your system has a sdl-devel library with SDL and the same version (must have the same version): Run Package Manager, press the Find Package button, enter SDL, find, and if you can find SDL and sdl-devel packages, you are already installed. If the version is higher than the 1.2.0, skip to step 5th; If it is not installed or has a lower version (less than 1.2.0), install the SDL package provided on this site, command RPM-IVH sdl*.rpm--nodeps or RPM-UVH sdl*.rpm--nodeps, After the installation run Sdl-config--version, see the output is not 1.2.3, if correct, then OK; incorrect or problematic, check the steps, or send a post to ask.
5, install Win32 for Linux DLL library: (must, only install it can play win under the media files, including Asf,wmv,mp3,avi,dat,mpg, etc.)
Run command: Tar vxf w32codec-0.60.tar, get W32codec-0.60.tar This directory, build/usr/lib/win32 directory (MKDIR/USR/LIB/WIN32), Copy all files in the W32codec-0.60.tar directory to the/usr/lib/win32 directory (CP w32codec-0.60/*.*/USR/LIB/WIN32)
6, install divx5 for Linux: (if you want to play the movie file in DivX format must install this, installed after this xine can also be used, recommended)
Go to the divx4linux-20020418 directory (CD divx4linux-20020418) and run./install.sh
7, decompression compile installation
MPlayer:
Tar vxf mplayer-0.90pre5.tar,cd mplayer-0.90pre5.tar,./configure (if you want the GUI's operating interface, swap this command.)/configrue--enable-gui, But it seems that this version of the GUI compilation is wrong, I and LINUXCN can not succeed, Pre4 version is no problem), Make,make install, have successfully run a
MPlayer(This is to allow it to be set up in the home directory. MPlayer This configuration directory for next steps)
8, copy the configuration file: (Note: The following this etc directory is extracted from the previous step of the Mplayer-0.90pre5 directory, not/etc)
CP etc/codecs.conf ~/.mplayer
CP etc/example.conf ~/.mplayer/config
9, install Font and skin: (If you choose./configure--enable-gui that only need skin, otherwise skin do not install)
Enter your home directory, show hidden files, enter the. MPlayer folder, create 2 folders: Font and skin. Then copy all the files in the arial-18 into the font, and put the default entire folder (note: Together with the folder) into the skin.
10. Operation mode
Two kinds: (1) Mpalyer/path/media filename to be played, (2) Gmplayer (only the command compiled with the./configure--enable-gui is valid)
11, about the ~/.mplayer/config file some configuration instructions
VO=XV (choose the default playback mode, XV mode is to support the hard acceleration of graphics mode, the CPU is very small, recommended; more display modes can be used with commands
MPlayer-vo help Look, the VESA mode can be played without starting the Xwin interface, a bit like the Golden Hill Shadow in the year of DOS
Ao=oss (choose sound playback mode, OSS is the most compatible playback mode, recommended; You can also try SDL mode)
Fs=yes (full screen mode, yes if the default is full screen playback, no or preceded by the # number annotation out of this line is the default 1:1 playback mode)
Zoom=yes (immediately change the size of the movie screen, yes, you can use the mouse to play the screen at will pull small, no words can not)
GUI = yes (the default is a graphical operation interface, which requires you to compile it previously with the./configure--enable-gui, otherwise, even if yes, there is no GUI operator interface)
Skin = Default (set skin, replace the value to the right of the equal sign skin the directory you want to set the desired skin as default, this parameter is valid with GUI interface)
Cache = 8192 (the default playback cache size, if the machine memory is large enough, it will be increased a little, if not very large, such as 128 below, or with the default to forget)
Framedrop = yes (allow jump frames, if your machine CPU speed is very very slow, please put this yes, the default is no or preceded by the # number will prohibit this line; for machines above 366MHZ, it is recommended to set no or front plus #)
Other settings with default on line
Some tips:
Standard playback mode generally press the F key can switch to Full-screen mode, and then click the recovery, press Q can exit, if the sound and the picture is not synchronized, you can press the + number (shift+=) or-number adjustment; If you want to support Chinese subtitles when you play a DivX avi, Then your movie file directory must have the same name as the movie idx and sub in both formats of the subtitle file exists; Support network playback streaming files, such as input
MPlayerHTTP://IP/1.ASF can play 1.asf online
Attached map:./configure Output Window, note the following: Optional drivers:
Codecs:divx5linux Libavcodec DirectShow Win32 This line, it represents all media formats in the support movie format including Divx,avi,win32dll; If you lack DivX, Then check your divx4linux installation has no problem, if you are missing Win32, then check your win32codec installed correctly.
Audio output:arts oss SDL mpegpes (file), which indicates that the output mode of the audio supports the ARTS,OSS,SDL and Mpegpes modes, where the mpegpes mode is to export the audio to the MPG file, and if the SDL mode is missing, Check that your SDL and sdl-devel are installed, you can set the default audio output mode by modifying config file after installation, or use
MPlayer-ao mode to play the filename immediately change playback mode, such as
MPlayer-ao SDL 1.asf is using SDL's audio mode to play 1.ASF
Video Output:xvidix SDL VESA gif89a jpeg PNG mpegpes (file) Fbdev SVGA OpenGL DGA XV X11 this line, which represents the output mode that can be supported; if SDL mode is missing, check your s DL and Sdl-devel installed No, after installation can be modified config file to set the default video output mode, or with
MPlayer-vo mode to play the filename immediately change playback mode, such as
MPlayer-vo SDL 1.asf is using SDL's video mode to play 1.asf,
MPlayer-vo Sdl-ao SDL 1.asf is an audio video that uses the SDL mode to play 1.asf "
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.