2004-07-19 22:42:56 +00:00
|
|
|
Welcome to MPlayer, The Movie Player. MPlayer can play most standard video
|
2002-05-31 21:26:28 +00:00
|
|
|
formats out of the box and almost all others with the help of external codecs.
|
2002-07-26 03:53:27 +00:00
|
|
|
MPlayer currently works best from the command line, but visual feedback for
|
|
|
|
many functions is available from its onscreen status display (OSD), which is
|
2009-07-07 17:35:54 +00:00
|
|
|
also used for displaying subtitles.
|
2003-03-18 20:22:36 +00:00
|
|
|
|
|
|
|
MEncoder is a command line video encoder for advanced users that can be built
|
2007-02-14 00:19:33 +00:00
|
|
|
from the MPlayer source tree. Unofficial graphical frontends exist but are
|
2003-03-18 20:22:36 +00:00
|
|
|
not included.
|
2002-05-31 21:26:28 +00:00
|
|
|
|
2002-07-26 03:53:27 +00:00
|
|
|
This document is for getting you started in a few minutes. It cannot answer all
|
|
|
|
of your questions. If you have problems, please read the documentation in
|
2003-10-19 21:15:23 +00:00
|
|
|
DOCS/HTML/en/index.html, which should help you solve most of your problems.
|
2002-07-26 03:53:27 +00:00
|
|
|
Also read the man page to learn how to use MPlayer.
|
|
|
|
|
|
|
|
|
|
|
|
Requirements:
|
2009-02-01 11:29:18 +00:00
|
|
|
- POSIX system: You need a POSIX-compatible shell and POSIX-compatible system
|
|
|
|
tools like grep, sed, awk, etc. in your path.
|
2003-06-01 04:26:01 +00:00
|
|
|
- You need a working development environment that can compile programs.
|
|
|
|
On popular Linux distributions, this means having the glibc development
|
|
|
|
package(s) installed.
|
2005-06-27 20:23:11 +00:00
|
|
|
- To compile MPlayer with X11 support, you need to have the X Window System
|
2005-06-30 21:42:38 +00:00
|
|
|
development packages (like for XFree86 or X.Org) installed.
|
2002-05-31 21:26:28 +00:00
|
|
|
|
|
|
|
|
|
|
|
Before you start...
|
2007-02-14 00:19:33 +00:00
|
|
|
Make sure that your version of X has Xvideo support, without it even very
|
|
|
|
fast machines may not be able to properly play high resolution videos in
|
|
|
|
fullscreen mode. Consult DOCS/HTML/en/video.html for details. There you may
|
|
|
|
also find out about special card-specific video output drivers that can yield
|
|
|
|
optimal performance.
|
2002-07-26 03:53:27 +00:00
|
|
|
|
|
|
|
|
|
|
|
______________________
|
|
|
|
STEP0: Getting MPlayer
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
2006-09-13 10:41:30 +00:00
|
|
|
Official releases and Subversion snapshots, as well as binary codec packages
|
2009-07-07 17:35:54 +00:00
|
|
|
available from the download section of our homepage at
|
2002-07-26 03:53:27 +00:00
|
|
|
|
2006-03-01 10:01:43 +00:00
|
|
|
http://www.mplayerhq.hu/dload.html
|
2002-07-26 03:53:27 +00:00
|
|
|
|
2008-10-22 17:34:39 +00:00
|
|
|
MPlayer has builtin support for the most common audio and video formats. For a
|
|
|
|
few formats no native decoder exists and external binary codecs are required
|
|
|
|
to handle them. Examples are newer RealVideo variants and a variety of rare
|
|
|
|
formats. However, binary codecs are NOT required in this day and age, they are
|
|
|
|
strictly optional.
|
|
|
|
|
|
|
|
Please note that binary codecs only work on the processor architecture they
|
|
|
|
were compiled for. Choose the correct package for your processor. No other
|
|
|
|
package is necessary.
|
|
|
|
|
2009-07-07 17:35:54 +00:00
|
|
|
Codec packages add support for some more video and audio formats. MPlayer does
|
|
|
|
not come with any of these by default, you have to download and install them
|
|
|
|
separately.
|
2002-07-26 03:53:27 +00:00
|
|
|
|
2006-06-09 13:32:57 +00:00
|
|
|
You can also get MPlayer via Subversion. Issue the following commands to get
|
2003-03-18 20:22:36 +00:00
|
|
|
the latest sources:
|
2002-07-26 03:53:27 +00:00
|
|
|
|
2006-06-09 13:32:57 +00:00
|
|
|
svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
|
2002-07-26 03:53:27 +00:00
|
|
|
|
2006-06-09 13:32:57 +00:00
|
|
|
A directory named 'mplayer' will be created. It will include all necessary
|
|
|
|
FFmpeg libraries, you don't need to get them separately as was the case in
|
|
|
|
the past. You can later update your sources by saying
|
2002-07-26 03:53:27 +00:00
|
|
|
|
2006-06-09 13:32:57 +00:00
|
|
|
svn update
|
2002-07-26 03:53:27 +00:00
|
|
|
|
|
|
|
from within that directory.
|
|
|
|
|
2002-05-31 21:26:28 +00:00
|
|
|
|
2003-05-23 00:20:33 +00:00
|
|
|
_______________________________
|
2006-06-09 13:32:57 +00:00
|
|
|
STEP1: Installing Binary Codecs
|
2003-05-23 00:20:33 +00:00
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2002-05-31 21:26:28 +00:00
|
|
|
|
2003-03-18 20:22:36 +00:00
|
|
|
Unpack the codecs archives and put the contents in a directory where MPlayer
|
2003-05-23 00:20:33 +00:00
|
|
|
will find them. The default directory is /usr/local/lib/codecs/ (it used to be
|
|
|
|
/usr/local/lib/win32 in the past, this also works) but you can change that to
|
2006-10-31 14:48:07 +00:00
|
|
|
something else by passing the '--codecsdir' option to './configure'.
|
2002-05-31 21:26:28 +00:00
|
|
|
|
|
|
|
|
|
|
|
__________________________
|
2006-06-09 13:32:57 +00:00
|
|
|
STEP2: Configuring MPlayer
|
2002-05-31 21:26:28 +00:00
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
2003-03-18 20:22:36 +00:00
|
|
|
MPlayer can be adapted to all kinds of needs and hardware environments. Run
|
2002-05-31 21:26:28 +00:00
|
|
|
|
|
|
|
./configure
|
|
|
|
|
2009-07-07 17:35:54 +00:00
|
|
|
to configure MPlayer with the default options. If something does not work as
|
|
|
|
expected, try
|
2002-05-31 21:26:28 +00:00
|
|
|
|
|
|
|
./configure --help
|
|
|
|
|
|
|
|
to see the available options and select what you need.
|
|
|
|
|
2002-07-26 03:53:27 +00:00
|
|
|
The configure script prints a summary of enabled and disabled options. If you
|
|
|
|
have something installed that configure fails to detect, check the file
|
|
|
|
configure.log for errors and reasons for the failure. Repeat this step until
|
|
|
|
you are satisfied with the enabled feature set.
|
|
|
|
|
2002-05-31 21:26:28 +00:00
|
|
|
|
|
|
|
________________________
|
2006-06-09 13:32:57 +00:00
|
|
|
STEP3: Compiling MPlayer
|
2002-05-31 21:26:28 +00:00
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
Now you can start the compilation by typing
|
|
|
|
|
|
|
|
make
|
|
|
|
|
|
|
|
You can install MPlayer with
|
|
|
|
|
|
|
|
make install
|
|
|
|
|
|
|
|
provided that you have write permission in the installation directory.
|
|
|
|
|
2002-07-26 03:53:27 +00:00
|
|
|
If all went well, you can run MPlayer by typing 'mplayer'. A help screen with a
|
|
|
|
summary of the most common options and keyboard shortcuts should be displayed.
|
2002-05-31 21:26:28 +00:00
|
|
|
|
2002-07-26 03:53:27 +00:00
|
|
|
If you get 'unable to load shared library' or similar errors, run
|
2002-05-31 21:26:28 +00:00
|
|
|
'ldd ./mplayer' to check which libraries fail and go back to STEP 3 to fix it.
|
2002-07-26 03:53:27 +00:00
|
|
|
Sometimes running 'ldconfig' is enough to fix the problem.
|
2002-05-31 21:26:28 +00:00
|
|
|
|
2002-07-26 03:53:27 +00:00
|
|
|
NOTE: If you run Debian you can configure, compile and build a proper Debian
|
|
|
|
.deb package with only one command:
|
2002-05-31 21:26:28 +00:00
|
|
|
|
|
|
|
fakeroot debian/rules binary
|
|
|
|
|
2004-11-05 10:38:33 +00:00
|
|
|
If you want to pass custom options to configure, you can set up the
|
2009-07-07 17:35:54 +00:00
|
|
|
DEB_BUILD_OPTIONS environment variable. For instance, if you want OSD menu
|
|
|
|
support you would use:
|
2004-11-05 10:38:33 +00:00
|
|
|
|
2009-07-07 17:35:54 +00:00
|
|
|
DEB_BUILD_OPTIONS="--enable-menu" fakeroot debian/rules binary
|
2004-11-05 10:38:33 +00:00
|
|
|
|
|
|
|
You can also pass some variables to the Makefile. For example, if you want
|
|
|
|
to compile with gcc 3.4 even if it's not the default compiler:
|
|
|
|
|
2009-07-07 17:35:54 +00:00
|
|
|
CC=gcc-3.4 DEB_BUILD_OPTIONS="--enable-menu" fakeroot debian/rules binary
|
2004-11-05 10:38:33 +00:00
|
|
|
|
|
|
|
To clean up the source tree run the following command:
|
|
|
|
|
|
|
|
fakeroot debian/rules clean
|
2002-07-26 03:53:27 +00:00
|
|
|
|
2006-09-13 10:41:30 +00:00
|
|
|
______________________________________
|
|
|
|
STEP4: Choose an onscreen display font
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2002-05-31 21:26:28 +00:00
|
|
|
|
2006-09-17 14:58:00 +00:00
|
|
|
You can use any TrueType font installed on your system. Just pass '-font
|
|
|
|
/path/to/font.ttf' on the command line or add 'font=/path/to/font.ttf' to
|
|
|
|
your configuration file. The manual page has more details. Alternatively
|
|
|
|
you can create a symbolic link from either ~/.mplayer/subfont.ttf or
|
|
|
|
/usr/local/share/mplayer/subfont.ttf to your TrueType font.
|
2005-03-06 17:31:55 +00:00
|
|
|
|
2002-05-31 21:26:28 +00:00
|
|
|
|
|
|
|
__________________
|
2009-07-07 17:35:54 +00:00
|
|
|
STEP5: Let's play!
|
2002-05-31 21:26:28 +00:00
|
|
|
~~~~~~~~~~~~~~~~~~
|
|
|
|
|
2002-07-26 03:53:27 +00:00
|
|
|
That's it for the moment. To start playing movies, open a command line and try
|
2002-05-31 21:26:28 +00:00
|
|
|
|
|
|
|
mplayer <moviefile>
|
|
|
|
|
2002-07-26 03:53:27 +00:00
|
|
|
To play a VCD track or a DVD title, try:
|
2002-05-31 21:26:28 +00:00
|
|
|
|
2003-07-14 16:39:28 +00:00
|
|
|
mplayer vcd://2 -cdrom-device /dev/hdc
|
2003-07-09 20:10:48 +00:00
|
|
|
mplayer dvd://1 -alang en -slang hu -dvd-device /dev/hdd
|
2002-05-31 21:26:28 +00:00
|
|
|
|
|
|
|
See 'mplayer -help' and 'man mplayer' for further options.
|
|
|
|
|
|
|
|
'mplayer -vo help' will show you the available video output drivers. Experiment
|
2002-07-26 03:53:27 +00:00
|
|
|
with the '-vo' switch to see which one gives you the best performance.
|
|
|
|
If you get jerky playback or no sound, experiment with the '-ao' switch (see
|
|
|
|
'-ao help') to choose between different audio drivers. Note that jerky playback
|
|
|
|
is caused by buggy audio drivers or a slow processor and video card. With a
|
2007-02-14 00:19:33 +00:00
|
|
|
good audio and video driver combination, one can play DVDs and 720x576 MPEG-4
|
2002-07-26 03:53:27 +00:00
|
|
|
files smoothly on a Celeron 366. Slower systems may need the '-framedrop'
|
|
|
|
option.
|
2002-05-31 21:26:28 +00:00
|
|
|
|
|
|
|
Questions you may have are probably answered in the rest of the documentation.
|
2003-10-19 21:15:23 +00:00
|
|
|
The places to start reading are the man page, DOCS/HTML/en/index.html and
|
|
|
|
DOCS/HTML/en/faq.html. If you find a bug, please report it, but first read
|
|
|
|
DOCS/HTML/en/bugreports.html.
|