FlyZhy.Org logo Projects - Installing Mplayer

Before
HowTo
Download
Installing
Configuring
After
Related Links

MPlayer is really a perfect movie player in GNU/Linux. However, someone think it's also too complicated for GNU/Linux users especially newbies to use. That's indeed true, but I want to try my best to make newbies can also use the perfect movie player (as MPlayer here), and that's why this article is. Read and do what I did, also donot be afraid about the errors, that can be easy to overcome if you know what exactly it is.

Before

The most important thing you must do before you install MPlayer is that you must know more details about your Video Card and some other information about your hardware, such as what kind of CPU you have, what kind of Mother Board, and so on.1 Therefore, before compiling and installing MPlayer please check the following pages on this web:

HowTo

Download

Installing

Codecs
MPlayer
#tar xvfj MPlayer-1.0pre7try2.tar.bz2
#cd MPlayer-1.0pre7try2/
#./configure --enable-gui --enable-freetype --enable-xmms --enable-menu \
             --enable-live --with-livelibdir=/usr/local/lib/codecs_live \
             --with-codecsdir=/usr/local/lib/codecs \
             --with-win32libdir=/usr/local/lib/codecs_windows | tee outfile_configure
optional: [--disable-gcc-checking --language=zh_CN]
#make | tee outfile_make
#make install | tee outfile_make_install
Notice that the option --disable-gcc-checking --language=zh_CN is optional and you would pay more attention the version of your gcc2.
Fonts
#tar xvfj gb2312-ming.tar.bz2
#cp -rf gb2312-ming /usr/local/share/mplayer/font/
#cd /usr/local/share/mplayer/font/
#ln -s gb2312-ming font
Skins
#tar xvfj Blue-1.5.tar.bz2
#cp -rf Blue /usr/local/share/mplayer/Skin/
#cd /usr/local/share/mplayer/Skin/
#ln -s Blue default

Configuring

#cd MPlayer-1.0pre7try2/etc/
#cp example.conf /usr/local/share/mplayer/etc/config
#cp codecs.conf /usr/local/share/mplayer/etc/
#cp input.conf /usr/local/share/mplayer/
#cp input.conf ~/.mplayer/

top

After

I like to use MPlayer in console, that is to say, I almost did not use gmplayer and always use mplayer in CLI3. Before you know how I use my mplayer you must make sure what kind of video and audio you can use, to know this just check out the output after you use the command ./configure for MPlayer Source Code4. Here exists my output

Enabled optional drivers:
  Input: ftp network tv-v4l2 tv-v4l edl tv live.com matroska cdda mpdvdkit2 vcd smb
  Codecs: qtx libavcodec real xanim dshow/dmo win32 faad2(internal) libmpeg2 liba52 mp3lib tremor(internal) libmad gif
  Audio output: alsa esd oss sdl mpegpes(file)
  Video output: xvidix cvidix sdl vesa gif89a md5sum pnm jpeg png mpegpes(file) fbdev svga caca aa xmga mga opengl dga xv x11 xover tga
  Audio filters:
Disabled optional drivers:
  Input: vstream tv-bsdbt848 dvdread dvb
  Codecs: opendivx x264 xvid libdv amr_wb amr_nb libdts libtheora toolame liblzo
  Audio output: sgi sun jack polyp arts dxr2 nas dsound win32 macosx
  Video output: winvidix bl zr zr2 dxr3 dxr2 directx ggi xvmc directfb tdfx_vid tdfxfb 3dfx quartz
  Audio filters: ladspa

Related Links


1. The kernel options also have an effect about the function of MPlayer, such as framebuffer etc., you can have a look at this section for reference.

2. I know that the gcc-3.3.6 can work well (maybe gcc-3.3.x or gcc-3.4.x are all ok), and if something wrong about the version of gcc, just add the option --disable-gcc-checking for a try.

3. CLI - Command Line Interface which is opposite to GUI - Graphical User Interface.

4. The file named outfile_configure would be in use if you do exactly what I said before.

5. The options I used may not work in your workspace, so try the enabled video output for your own (#mplayer -vo help can helps).