Installing MPlayer from source
I will detail the installation from source, because it is one that ensures the best adaptation to the processor and is more generic. That said, there are more and more binary packages (. Rpm. Deb) which require some additional handling, refer to sites that talk about it for more information. To install MPlayer simply type the following lines in a terminal (the small black tv bottom left):
Code:
$ Tar-xjvf / o_est/mplayer-xxx.tar.bz2 $ cd mplayer-xxxx / $. / Configure - prefix = / usr - datadir = / usr / share / mplayer - confdir = / etc / mplayer - enable-gui - enable-largefiles - enable-menu - enable-shared-pp - enable-dynamic-plugins - enable-real - enable-freetype - language = en - with-codecsdir = / usr / lib / codecs - with-xvidlibdir = / path / to / libxvidcore.a - with-xvidincdir = / path / to / xvid.h
If you have a Matrox card, add: - enable-mga If you have a 3dfx card, add: - enable-3dfx - enable-tdfxfb If you have a RedHat 7.x or 8.x Mandriva, add: - -disable-gcc-ckecking If you use devfs, add: - enable-linux-devfs If you use KDE, add: - enable-arts At the end of sets you'll need something like:
Code:
Successfully generated by config files. / Configure! Install prefix: / usr Data directory: / usr / share / mplayer Config direct. / Etc / mplayer Byte order: Little Endian Optimizing for: athlon-tbird mmx 3dnow mmx2 3dnowex mtrr Enabled optional drivers: Input: streaming tv edl cdda vcd mpdvdkit2 Codecs: xvid libdv libavcodec qtx real dshow / dmo win32 libvorbis libmad gif Audio output: esd oss sdl alsa9 mpegpes (file) Video output: sdl vesa xvidix gif89a jpeg png mpegpes (file) fbdev svga aa opengl dga xv xmga mga x11 Disabled optional drivers : Input: tv-v4l tv-dvdnav dvdread bsdbt848 dvdcss Codecs: OpenDivX xanim liblzo Audio output: sgi sun Arts dxr2 nas win32 Video output: bl zr dxr3 dxr2 directx ggi directfb tdfxfb 3dfx
As you read, the executable (mplayer) will be in / usr / bin / pay and codecs: qtx, xvid libdv, libavcodec, real, dshow / dmo, win32, libvorbis, libmad, gif. Mplayer support for a codec, you must install it before, note that the essential are win32 and libavcodec. Also take a look at the video output for use mplayer comfortably in graphical mode, you need at least one of the 2 fat (xv and sdl), but the 2 is good too. Compile it with:
If you have a Matrox, type also:
Code:
Drivers $ cd / $ make all $ cd ..
For all, install it with:
Code:
$ Su # make install # cd etc / # cp codecs.conf example.conf input.conf menu.conf / etc / mplayer / # chmod 644 / etc / mplayer / * # cd .. # Cp Gui / mplayer / pixmaps / logo.xpm / usr / share / pixmaps / mplayer.xpm
If you have a Matrox, type also:
Code:
# Cp drivers / mga_vid.o / lib / modules / uname-r / kernel / drivers / char / # depmod-a &> / dev / null
If you have at least a 2.4.19 kernel (uname-r to know), you can type:
Code:
# Echo "1024"> / proc / sys / dev / rtc / max-user-freq
Always if you have at least a 2.4.19 kernel, add this line in your / etc / rc.d / rc.local. That is installed, it remains only to configure the set for each user. Finally, for some reason, mplayer no longer installs the file / usr / lib / libpostproc.so. If your version of mplayer, install this file, you can skip the following lines. Otherwise type:
Code:
# Cd libavcodec / libpostproc # make prefix = / usr SHARED_PP = "yes" install
Bookmarks