comparison README @ 6243:20389bf27dd4

quick install guide, based on draft and patches by Diego Biurrun <diego@biurrun.de>
author arpi
date Fri, 31 May 2002 21:26:28 +0000
parents 0704cb60a223
children e792875ac769
comparison
equal deleted inserted replaced
6242:9c8c3b5e6658 6243:20389bf27dd4
1 The main documentation file is DOCS/documentation.html 1
2 Welcome to MPlayer, the Unix movie player. MPlayer can play most standard video
3 formats out of the box and almost all others with the help of external codecs.
4 MPlayer currently works best from the command line, but there is a GUI with
5 skin support in the alpha development stage.
6
7 This document is for getting you started in a few minutes. It cannot answer
8 all of your questions. If you have problems, please read the documentation in
9 DOCS/documentation.html. It is extensive and should answer most of your
10 questions. Also read the manpage to learn how to use MPlayer.
11
12 To compile MPlayer with X11 support, you need to have the XFree86 development
13 packages installed, for the GUI you also need the GTK development packages.
14
15 Before you start...
16 Unless you know what are you doing, consult DOCS/video.html to see which
17 driver you should get for your video card to have the best quality and video
18 performance. Most cards require special drivers not included with standard X11,
19 to drive the 2-D video acceleration features of your card!
20
21 A quick and incomplete list of recommendations:
22 - ATI cards: get the GATOS drivers for X11/Xv or use vidix
23 - Matrox G200/G4x0/G550: compile and use mga_vid for Linux, use vidix for BSD
24 - 3dfx Voodoo3/Banshee: get XFree86 4.2.0+ for Xv or use the tdfxfb driver
25 - nVidia cards: get the X11 driver from www.nvidia.com for Xv support
26 Without having accelerated video, even a 800MHz P3 may be slow to play DVD!
27
28 ___________________________________
29 STEP1: Installing FFmpeg libavcodec
30 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
31
32 If you are using an official release, skip this step, since official releases
33 always include libavcodec. To verify this check if the libavcodec subdirectory
34 is empty or contains the sources!
35
36 The FFmpeg project provides libavcodec, a very portable MPEG4/DivX codec with
37 excellent speed and quality. It is the preferred codec of MPlayer for playing
38 mpeg4 and divx video. You have to get libavcodec directly from the FFmpeg CVS
39 server. Use the following commands in a suitable directory outside the MPlayer
40 source directory:
41
42 cvs -d:pserver:anonymous@cvs.ffmpeg.sourceforge.net:/cvsroot/ffmpeg login
43 cvs -z9 -d:pserver:anonymous@cvs.ffmpeg.sourceforge.net:/cvsroot/ffmpeg co ffmpeg/libavcodec
44
45 When asked for a password, you can just hit enter.
46
47 Now, replace the empty libavcodec directory with the FFmpeg libavcodec source
48 by removing the libavcodec subdirectory in the MPlayer source tree and then
49 copying (symbolic linking does not suffice!) the freshly downloaded FFmpeg
50 libavcodec directory back into the MPlayer source tree.
51
52
53 ______________________________
54 STEP2: Installing Win32 Codecs
55 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
56
57 While MPlayer and libavcodec has built-in support for the most common audio
58 and video formats, some others are playable only with the Win32 DLLs
59 or the XAnim binary plugins. Few examples: WMV video, Divx/WMA audio, Indeo.
60 This step is not mandatory, but recommended for getting MPlayer to play
61 play more different file types!
62
63 Grab the win32 codecs package from the download page
64
65 http://www.mplayerhq.hu/homepage/dload.html
66
67 unpack it and put the contents in a directory where MPlayer will find them.
68 The default directory is /usr/lib/win32/ but you can change that to something
69 else by using the '--with-win32libdir=DIR' option when you run './configure' .
70
71 __________________________
72 STEP3: Configuring MPlayer
73 ~~~~~~~~~~~~~~~~~~~~~~~~~~
74
75 MPlayer has a lot of options that get selected in this phase. Run
76
77 ./configure
78
79 to configure MPlayer with the default options. The options you installed above
80 should be autodetected, except GUI support, which has to be enabled separately,
81 run
82
83 ./configure --enable-gui
84
85 if you want to use the GUI.
86
87 If something does not work as expected, try
88
89 ./configure --help
90
91 to see the available options and select what you need.
92
93 The ./configure script prints a summary of enabled and disabled options.
94 If you have something installed that ./configure fails to detect, check
95 the file configure.log for errors and reasons for the failure. Repeat this
96 step until you are satisfied with the enabled feature set.
97
98 ________________________
99 STEP4: Compiling MPlayer
100 ~~~~~~~~~~~~~~~~~~~~~~~~
101
102 Now you can start the compilation by typing
103
104 make
105
106 You can install MPlayer with
107
108 make install
109
110 provided that you have write permission in the installation directory.
111
112 If all went well, you can run MPlayer by typing 'mplayer'
113 You should get a summary of the most common options and keys (help screen).
114
115 If you get 'unable to load shared library' or similar errors, then run
116 'ldd ./mplayer' to check which libraries fail and go back to STEP 3 to fix it.
117 Sometimes just running 'ldconfig' is enough.
118
119 NOTE: If you run Debian you can configure, compile and build a proper deb
120 package with only one command:
121
122 fakeroot debian/rules binary
123
124 ____________________________________________
125 STEP5: Installing the onscreen display fonts
126 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
127
128 To enable OSD (onscreen status display) and ASCII/TEXT subtitles you need some
129 fonts. Get them from our homepage:
130
131 http://www.mplayerhq.hu/homepage/dload.html
132
133 Unpack the archive and choose one of the available font sizes. Then copy the
134 font files of the corresponding size into /usr/local/share/mplayer/font/
135 (or whatever you set with './configure --datadir=DIR').
136
137 ____________________________
138 STEP6: Installing a GUI skin
139 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
140
141 Please remember that the GUI is still in the alpha development stage and not
142 completely finished yet. Features like playlist, preferences and equalizer
143 do not work at all. Expect them for the 1.0 release
144 Basic stuff like file selection and seeking works, though.
145
146 If you want to use the GUI you need to download a skin, since MPlayer does not
147 come with a skin by default. Choose one from the download page
148
149 http://www.mplayerhq.hu/homepage/dload.html
150
151 unpack it in /usr/local/share/mplayer/Skin/. MPlayer will use the skin in
152 the default/ subdirectory (/usr/local/share/mplayer/Skin/default/*) unless
153 told otherwise via the '-skin' switch. You should therefore rename your
154 skin subdirectory, make a suitable symbolic link or set the skin name in
155 the file mplayer.conf by 'skin=skinname'.
156
157 __________________
158 STEP7: Let's play!
159 ~~~~~~~~~~~~~~~~~~
160
161 That's it for the moment. To start playing movies, open a command line and try
162
163 mplayer <moviefile>
164
165 or for the GUI:
166
167 gmplayer <moviefile>
168 (just 'gmplayer' is enough to use the GUI fileselector)
169
170 To play VCD track or DVD title, try:
171
172 mplayer -vcd 2 -cdrom-device /dev/hdc
173 mplayer -dvd 1 -alang en -slang hu -dvd-device /dev/hdd
174
175 See 'mplayer -help' and 'man mplayer' for further options.
176
177 'mplayer -vo help' will show you the available video output drivers. Experiment
178 with the '-vo' switch to see which one gives you the best performance!
179 If you get very jerky playback or no sound, experiment with -ao (see -ao help)
180 Note that jerky playback is caused by buggy audio drivers or too slow cpu/vga.
181 With a good audio and video driver combination, one can play DVDs and 720x576
182 DivX files smoothly on a Celeron 366. For slower systems, you need -framedrop.
183
184 Questions you may have are probably answered in the rest of the documentation.
185 The place to start reading is DOCS/faq.html and DOCS/documentation.html.