Set AVFMT_FLAG_GENPTS if -correct-pts is used.
[mplayer.git] / README
blob75ec28d6912298a922c2e1437b0cb3f0e50c151d
1 Welcome to MPlayer, The Movie Player. MPlayer can play most standard video
2 formats out of the box and almost all others with the help of external codecs.
3 MPlayer currently works best from the command line, but visual feedback for
4 many functions is available from its onscreen status display (OSD), which is
5 also used for displaying subtitles. MPlayer also has a GUI with skin support and
6 several unofficial alternative graphical frontends are available.
8 MEncoder is a command line video encoder for advanced users that can be built
9 from the MPlayer source tree. An unofficial graphical frontend exists but is
10 not included.
12 This document is for getting you started in a few minutes. It cannot answer all
13 of your questions. If you have problems, please read the documentation in
14 DOCS/HTML/en/index.html, which should help you solve most of your problems.
15 Also read the man page to learn how to use MPlayer.
18 Requirements:
19 - You need a working development environment that can compile programs.
20   On popular Linux distributions, this means having the glibc development
21   package(s) installed.
22 - To compile MPlayer with X11 support, you need to have the X Window System
23   development packages (like for XFree86 or X.Org) installed.
24 - For the GUI you need the libpng and GTK development packages.
27 Before you start...
28 Unless you know what are you doing, consult DOCS/HTML/en/video.html to see
29 which driver to use with your video card to get the best quality and
30 performance. Most cards require special drivers not included with XFree86 to
31 drive their 2-D video acceleration features like YUV and scaling.
33 Without accelerated video even an 800MHz P3 may be too slow to play DVDs.
36 ______________________
37 STEP0: Getting MPlayer
38 ~~~~~~~~~~~~~~~~~~~~~~
40 Official releases and Subversion snapshots, as well as binary codec packages
41 and a number of different skins for the GUI are available from the download
42 section of our homepage at
44   http://www.mplayerhq.hu/dload.html
46 The GUI needs at least one skin and codec packages add support for some more
47 video and audio formats. MPlayer does not come with any of these by default,
48 you have to download and install them separately.
50 You can also get MPlayer via Subversion. Issue the following commands to get
51 the latest sources:
53   svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
55 A directory named 'mplayer' will be created. It will include all necessary
56 FFmpeg libraries, you don't need to get them separately as was the case in
57 the past. You can later update your sources by saying
59   svn update
61 from within that directory.
64 _______________________________
65 STEP1: Installing Binary Codecs
66 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68 MPlayer has builtin support for the most common audio and video formats, but
69 for some external binary codecs are required. Examples include newer RealVideo
70 variants and a couple of uncommon formats. This step is not mandatory, but
71 recommended for getting MPlayer to play a broader range of formats. Please
72 note that binary codecs only work on the platform they were compiled for.
73 We provide packages for x86 and PowerPC.
75 Unpack the codecs archives and put the contents in a directory where MPlayer
76 will find them. The default directory is /usr/local/lib/codecs/ (it used to be
77 /usr/local/lib/win32 in the past, this also works) but you can change that to
78 something else by passing the '--codecsdir' option to './configure'.
81 __________________________
82 STEP2: Configuring MPlayer
83 ~~~~~~~~~~~~~~~~~~~~~~~~~~
85 MPlayer can be adapted to all kinds of needs and hardware environments. Run
87   ./configure
89 to configure MPlayer with the default options. The codecs you installed above
90 should be autodetected. GUI support has to be enabled separately, run
92   ./configure --enable-gui
94 if you want to use the GUI.
96 If something does not work as expected, try
98   ./configure --help
100 to see the available options and select what you need.
102 The configure script prints a summary of enabled and disabled options. If you
103 have something installed that configure fails to detect, check the file
104 configure.log for errors and reasons for the failure. Repeat this step until
105 you are satisfied with the enabled feature set.
108 ________________________
109 STEP3: Compiling MPlayer
110 ~~~~~~~~~~~~~~~~~~~~~~~~
112 Now you can start the compilation by typing
114   make
116 You can install MPlayer with
118   make install
120 provided that you have write permission in the installation directory.
122 If all went well, you can run MPlayer by typing 'mplayer'. A help screen with a
123 summary of the most common options and keyboard shortcuts should be displayed.
125 If you get 'unable to load shared library' or similar errors, run
126 'ldd ./mplayer' to check which libraries fail and go back to STEP 3 to fix it.
127 Sometimes running 'ldconfig' is enough to fix the problem.
129 NOTE: If you run Debian you can configure, compile and build a proper Debian
130 .deb package with only one command:
132   fakeroot debian/rules binary
134 If you want to pass custom options to configure, you can set up the
135 DEB_BUILD_OPTIONS environment variable. For instance, if you want GUI
136 and OSD menu support you would use:
138   DEB_BUILD_OPTIONS="--enable-gui --enable-menu" fakeroot debian/rules binary
140 You can also pass some variables to the Makefile. For example, if you want
141 to compile with gcc 3.4 even if it's not the default compiler:
143   CC=gcc-3.4 DEB_BUILD_OPTIONS="--enable-gui" fakeroot debian/rules binary
145 To clean up the source tree run the following command:
147   fakeroot debian/rules clean
149 ______________________________________
150 STEP4: Choose an onscreen display font
151 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
153 You can use any TrueType font installed on your system. Just pass '-font
154 /path/to/font.ttf' on the command line or add 'font=/path/to/font.ttf' to
155 your configuration file. The manual page has more details. Alternatively
156 you can create a symbolic link from either ~/.mplayer/subfont.ttf or
157 /usr/local/share/mplayer/subfont.ttf to your TrueType font.
160 ____________________________
161 STEP5: Installing a GUI skin
162 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
164 Unpack the archive and put the contents in /usr/local/share/mplayer/skins/ or
165 ~/.mplayer/skins/. MPlayer will use the skin in the subdirectory named default
166 of /usr/local/share/mplayer/skins/ or ~/.mplayer/skins/ unless told otherwise
167 via the '-skin' switch. You should therefore rename your skin subdirectory or
168 make a suitable symbolic link.
171 __________________
172 STEP6: Let's play!
173 ~~~~~~~~~~~~~~~~~~
175 That's it for the moment. To start playing movies, open a command line and try
177   mplayer <moviefile>
179 or for the GUI
181   gmplayer <moviefile>
183 gmplayer is a symbolic link to mplayer created by 'make install'.
184 Without <moviefile>, MPlayer will come up and you will be able to use the GUI
185 filepicker.
187 To play a VCD track or a DVD title, try:
189   mplayer vcd://2 -cdrom-device /dev/hdc
190   mplayer dvd://1 -alang en -slang hu -dvd-device /dev/hdd
192 See 'mplayer -help' and 'man mplayer' for further options.
194 'mplayer -vo help' will show you the available video output drivers. Experiment
195 with the '-vo' switch to see which one gives you the best performance.
196 If you get jerky playback or no sound, experiment with the '-ao' switch (see
197 '-ao help') to choose between different audio drivers. Note that jerky playback
198 is caused by buggy audio drivers or a slow processor and video card. With a
199 good audio and video driver combination, one can play DVDs and 720x576 DivX
200 files smoothly on a Celeron 366. Slower systems may need the '-framedrop'
201 option.
203 Questions you may have are probably answered in the rest of the documentation.
204 The places to start reading are the man page, DOCS/HTML/en/index.html and
205 DOCS/HTML/en/faq.html. If you find a bug, please report it, but first read
206 DOCS/HTML/en/bugreports.html.