The MPlayer package contains an audio/video player that is able to play almost every audio and video CODEC and can be controlled by command line or GUI.
Download (HTTP): http://www1.mplayerhq.hu/MPlayer/releases/MPlayer-1.0pre1.tar.bz2
Download (FTP): ftp://ftp1.mplayerhq.hu/MPlayer/releases/MPlayer-1.0pre1.tar.bz2
Download size: 4.0 MB
Estimated Disk space required: 67.2 MB
Estimated build time: 3.16 SBU
Required CODECs: http://www1.mplayerhq.hu/MPlayer/releases/codecs/extralite.tar.bz2
Required skin: http://www1.mplayerhq.hu/MPlayer/Skin/default-1.7.tar.bz2
Optional fonts: http://www1.mplayerhq.hu/MPlayer/releases/fonts/font-arial-iso-8859-1.tar.bz2
Note: These are the minimum to install working MPlayer. For more CODECs, skins and fonts visit MPlayer's homepage.
Note: The package maintainers recommend building without any optimization
Install MPlayer by running the following commands:
install -d /usr/lib/mplayer/extralite && tar xjvf ../extralite.tar.bz2 -C /usr/lib/mplayer && ./configure --prefix=/usr --confdir=/etc/mplayer --enable-largefiles \ --enable-gui --enable-menu --enable-shared-pp \ --with-codecsdir=/usr/lib/mplayer/extralite && make && make install && make -C libavcodec/libpostproc install && cp etc/codecs.conf /etc/mplayer && tar xjvf ../default-1.7.tar.bz2 -C /usr/share/mplayer/Skin |
If FreeType is in use, the only advantage of prerendered fonts is that they are faster. Install them like this:
tar xjvf ../font-arial-iso-8859-1.tar.bz2 -C /usr/share/mplayer/font |
If you want DVD playback with MPlayer, you need to make a link from your DVD drive to /dev/dvd:
ln -s /dev/[dvd drive] /dev/dvd |
Replace [dvd drive] with whatever device is appropriate, for example /dev/hdc. if you don't know which device to choose, type:
dmesg | grep DVD |
It should result in an output like:
hdc: Pioneer DVD-ROM ATAPIModel DVD-114 0110, ATAPI CD/DVD-ROM drive |
If you have SCSI-Emulation activated for the drives, you'll need to get the right SCSI-device. Every CD/DVD-ROM drive is mapped in the same order as in IDE to the devices named /dev/scd0, /dev/scd1 and so on.
--enable-gui: This switch tells MPlayer to compile the GUI code.
--enable-menu: These switches enable the new menu support. It's like an OSD, but you can also run a shell with it.
--enable-shared-pp: This enables the building of a shared libpostproc (library for post processing, featuring filters like sharpen).
cp etc/codecs.conf /etc/mplayer: This command copies the standard codecs.conf file to the system-wide configuration directory. MPlayer expects this file at startup.
If you wish to utilize a FreeType font, you need to link a TTF file to your ~/.mplayer directory. For example:
ln -sf /usr/X11R6/lib/X11/fonts/TTF/luxisri.ttf /etc/mplayer/subfont.ttf |
ln -sf /usr/share/mplayer/font/font-arial-*-iso-8859-1 /etc/mplayer/font |
Set up the GUI with the following commands executed from your source directory:
cat > /etc/mplayer/config << "EOF" gui = yes skin = default EOF |
The first line, gui = yes, will make MPlayer start in GUI mode automatically. If you want to decide whether to start in GUI mode or not, leave that line out and start mplayer with -gui or as gmplayer (e.g. when starting from a Window Manager menu or command prompt).
mplayer manages the input formats, the CODECs and the output formats to play video files, DVDs, (S)VCDs or network streams containing audio and/or video information on your system.
Examples:
mplayer -fs blfs.avi mplayer -vo fbdev -fb /dev/fb0 -dvd 1 -aid 128 -sub en -framedrop mplayer -fs vcd://1 # works both for VCDs and SVCDs mplayer http://www.students.uni-marburg.de/~Klossa/hapkidofight_lo.mpg |
For further information, have a look at the very good documentation included in the package in the subdirectory DOCS/.
mencoder is used to encode any MPlayer playable movie to DivX4, XviD or any CODEC in libavcodec with PCM/MP3/VBRMP3 audio.
Example:
rm frameno.avi mencoder -dvd 1 -aid 128 -ovc frameno -oac mp3lame \ -lameopts vbr=3 -o frameno.avi # mencoder should output bitrates for average encodings # now, choose one you like best! In the following lines, # replace <bitrate> and <name.avi> with statements of your # personal liking. mencoder -dvd 1 -aid 128 -oac copy -ovc lavc \ -lavcopts vcodec=mpeg4:vpass=1:vhq:vbitrate=<bitrate> -o <name.avi> mencoder -dvd 1 -aid 128 -oac copy -ovc lavc \ -lavcopts vcodec=mpeg4:vpass=2:vhq:vbitrate=<bitrate> -o <name.avi> mencoder -forceidx <name.avi> |