mplayer 1.0pre6a

Aus Mikiwiki
Zur Navigation springen Zur Suche springen

mplayer 1.0pre6a ist eine Version des Medienspielers mplayer.

Installation unter SUSE Linux 9.1 Professional

Referenzsystem: 2005.02.09 meister

Basic dependencies

Divx

DivX is the MPEG-4 codec provided by DivXNetworks, Inc.

Current Version: 5.0.5
Current Date: 20030428
Download: http://www.divx.com/divx/linux/

$ tar xzf divx4linux-std-20030428.tar.gz
$ cd divx4linux-20030428
# checkinstall
# yast -i /usr/src/packages/RPMS/i386/divx4linux-20030428-1.i386.rpm

Lame

Lame is an open source MP3 encoder. MPlayer uses lame for compressing audio into MP3 when encoding files from MPEG or other sources.

Current Version: 3.96.1
Release Date: 2004-07-24
Download: http://lame.sourceforge.net/download/download.html

$ tar xzf lame-3.96.1.tar.gz
$ cd lame-3.96.1
$ ./configure
$ make
# checkinstall
# yast -i /usr/src/packages/RPMS/i386/lame-3.96.1-1.i386.rpm

Xvid

Xvid is an ISO MPEG-4 compliant video codec. MPlayer can encode movie files formats into the XviD format.

Current stable Version: 1.0.0-rc4
Release Date:
Download: http://files.xvid.org/downloads/xvidcore-1.0.0-rc4.tar.bz2

$ tar xjf xvidcore-1.0.0-rc4.tar.bz2
$ cd xvidcore-1.0.0-rc4/build/generic/
$ ./configure
$ make
# make install

Note: An installation with checkinstall wasn't possible. The installed files were:

/usr/local/lib/libxvidcore.so.4.0
/usr/local/lib/libxvidcore.a
/usr/local/include/xvid.h

Real Player

Real Player 8.0.3.465-89 is already installed with SuSE Linux 9.1

mplayer

Current Version: 1.0pre6a
Current Date: 2004.12.29
Download: http://www.mplayerhq.hu/homepage/design7/dload.html

mplayer files

Obtain the following files for installation. Please use an appropriate mirror location to download the files. The first is the MPlayer source, the second set is additional codecs. The third set is a few skins and the last is the basic fonts. Select the correct font for your location. Both the skins are strictly optional, however if you want to have a GUI for MPlayer you should have at least one skin. You only need one font set.

The MPlayer source: MPlayer-1.0pre6a.tar.bz2
Additional codecs: essential-20050412.tar.bz2 windows-all-20050412.zip
Skins:
Basic fonts:

Installing additional codecs

These additional codecs are to read formats that currently are only accessible in Microsoft Windows. They include Windows Media and Quicktime. All the win32 codecs must be installed in "/usr/lib/win32".

# tar xjf essential-20050412.tar.bz2
# cd essential-20050412
# mkdir /usr/lib/win32
# mv -i * /usr/lib/win32
# cd ..
# unzip windows-all-20050412.zip
# cd windows-all-20050412
# mv -i * /usr/lib/win32

Setup mplayer

MPlayer follows standard Linux application procedure of installing dependancies, configuring, compiling and installing. The above steps were to eliminate any dependancy problems.

$ tar xjf MPlayer-1.0pre6a.tar.bz2
$ cd MPlayer-1.0pre6a

Configuring

Configuring allows to customize certain parameters. To see all of MPlayers configuring options run:

$ ./configure --help

I recommend the following options:

$ ./configure --enable-gui --enable-largefiles --enable-menu --enable-xmms

or forget the GUI if there is a problem with GTK:

$ ./configure --enable-largefiles --enable-xmms

Read the output carefully to determine whether or not any mistakes were made or if some library is not detected. For example to check if the Lame libraries were detected, look for the following line:
Checking for libmp3lame (for mencoder) ... yes

If you'd like to add any additional codecs or modify the configure settings and re-run the configure script.

Not all the codecs should be detected. In fact most will not. However the many that you have should be an adequate starting point for using MPlayer to decode and encode. Read over the MPlayer documention to find out how to enable additional codecs or input/output drivers.

Note: When MPlayer fails to detect a plugin or library, make sure you have that library RPM installed AND make sure you have its devel RPM installed. For example: for artsd output you need "arts-1.1.4-3" and "arts-devel-1.1.4-3.3.3.2".

Installing

$ make

If there is an error at this point you may have used an improper library or version of a dependancy. Try to determine at which file the compile fails and post to help forums, newsgroups or mailing lists for assistance. Reading MPlayer documentions usually helps. Often the easiest solution is go to a previous version of a library or dependancy application. For example: using the DivX 5.0.1 instead of 5.0.5. Another solution maybe to entirely disable that plugin. Running "./configure --help" will show how to disable most plugins or detections that MPlayer uses.

If you need to fix something, you will have to re-do the configure step from above. Otherwise continue:

# checkinstall

Create the files for the user configuration:

$ cd /tmp/MPlayer-1.0pre6a/etc
$ cp codecs.conf input.conf ~/.mplayer
$ cp example.conf ~/.mplayer/config

Edit your config (or your systemwide configuration in "/usr/local/etc/mplayer.conf"):

$ vi ~/.mplayer/config
joystick=0
lirc=0
vo=xv
ac=mad,ffmp2,
ao=alsa
fs=yes
# vi /etc/rc.d/boot.local
# Needed by mplayer to avoid message "Linux RTC init error in ioctl"
echo 1024 > /proc/sys/dev/rtc/max-user-freq