1 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
---|
2 | "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
3 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
4 | %general-entities;
|
---|
5 |
|
---|
6 | <!ENTITY mplayer-download-http "http://www1.mplayerhq.hu/MPlayer/releases/MPlayer-&mplayer-version;.tar.bz2">
|
---|
7 | <!ENTITY mplayer-download-ftp "ftp://ftp1.mplayerhq.hu/MPlayer/releases/MPlayer-&mplayer-version;.tar.bz2">
|
---|
8 | <!ENTITY mplayer-size "5.1 MB">
|
---|
9 | <!ENTITY mplayer-buildsize "74 MB (additional 19 MB for CODECs)">
|
---|
10 | <!ENTITY mplayer-time "1.80 SBU">
|
---|
11 | <!ENTITY mplayer-default-codec "essential-20040809.tar.bz2">
|
---|
12 | <!ENTITY mplayer-default-skin "Blue-1.4.tar.bz2">
|
---|
13 | <!ENTITY mplayer-default-font "font-arial-iso-8859-1">
|
---|
14 | ]>
|
---|
15 |
|
---|
16 | <sect1 id="mplayer" xreflabel="MPlayer-&mplayer-version;">
|
---|
17 | <sect1info>
|
---|
18 | <othername>$LastChangedBy$</othername>
|
---|
19 | <date>$Date$</date>
|
---|
20 | </sect1info>
|
---|
21 | <?dbhtml filename="mplayer.html"?>
|
---|
22 | <title>MPlayer-&mplayer-version;</title>
|
---|
23 |
|
---|
24 | <sect2>
|
---|
25 | <title>Introduction to <application>MPlayer</application></title>
|
---|
26 |
|
---|
27 | <para>The <application>MPlayer</application> package contains an audio/video
|
---|
28 | player controlled via the command line or a graphical interface which is
|
---|
29 | able to play almost every popular audio and video file format
|
---|
30 | and <acronym>CODEC</acronym> (COder/DECoder, also COmpressor/DECompressor).
|
---|
31 | With supported video hardware and additional drivers,
|
---|
32 | <application>MPlayer</application> can play video files without an
|
---|
33 | <application>X</application> window system installed.</para>
|
---|
34 |
|
---|
35 | <para>For a full list of file formats, <acronym>CODEC</acronym>s and
|
---|
36 | output devices supported by <application>MPlayer</application>, visit the
|
---|
37 | <ulink url="http://www.mplayerhq.hu/DOCS/HTML/en/features.html">
|
---|
38 | <application>MPlayer</application> web site</ulink>.</para>
|
---|
39 |
|
---|
40 | <sect3><title>Package information</title>
|
---|
41 | <itemizedlist spacing='compact'>
|
---|
42 | <listitem><para>Download (HTTP): <ulink url="&mplayer-download-http;"/></para></listitem>
|
---|
43 | <listitem><para>Download (FTP): <ulink url="&mplayer-download-ftp;"/></para></listitem>
|
---|
44 | <listitem><para>Download size: &mplayer-size;</para></listitem>
|
---|
45 | <listitem><para>Estimated Disk space required: &mplayer-buildsize;</para></listitem>
|
---|
46 | <listitem><para>Estimated build time: &mplayer-time;</para></listitem></itemizedlist>
|
---|
47 | </sect3>
|
---|
48 |
|
---|
49 | <sect3><title>Additional downloads</title>
|
---|
50 | <para><emphasis>Patches</emphasis></para>
|
---|
51 | <itemizedlist spacing='compact'>
|
---|
52 | <listitem><para>Required Patch (for fbdev driver support): <ulink
|
---|
53 | url="&patch-root;/MPlayer-&mplayer-version;-kernel_2.6-1.patch"/></para>
|
---|
54 | </listitem></itemizedlist>
|
---|
55 |
|
---|
56 | <para><emphasis><acronym>CODEC</acronym>s</emphasis></para>
|
---|
57 | <itemizedlist spacing='compact'>
|
---|
58 | <listitem><para>Proprietary <acronym>CODEC</acronym>s: <ulink
|
---|
59 | url="http://www.mplayerhq.hu/MPlayer/releases/codecs/&mplayer-default-codec;"/></para>
|
---|
60 | </listitem>
|
---|
61 | <listitem><para>Additional <acronym>CODEC</acronym>s: <ulink
|
---|
62 | url="http://www.mplayerhq.hu/MPlayer/releases/codecs/"/></para>
|
---|
63 | </listitem></itemizedlist>
|
---|
64 |
|
---|
65 | <para><emphasis>Skins</emphasis></para>
|
---|
66 | <itemizedlist spacing='compact'>
|
---|
67 | <listitem><para>Default <acronym>GUI</acronym> skin: <ulink
|
---|
68 | url="http://www1.mplayerhq.hu/MPlayer/Skin/&mplayer-default-skin;"/></para>
|
---|
69 | </listitem>
|
---|
70 | <listitem><para>Additional skins: <ulink
|
---|
71 | url="http://www1.mplayerhq.hu/MPlayer/Skin/"/></para>
|
---|
72 | </listitem></itemizedlist>
|
---|
73 |
|
---|
74 | <para><emphasis>Fonts</emphasis></para>
|
---|
75 | <itemizedlist spacing='compact'>
|
---|
76 | <listitem><para>Prerendered fonts: <ulink
|
---|
77 | url="http://www1.mplayerhq.hu/MPlayer/releases/fonts/&mplayer-default-font;.tar.bz2"/></para>
|
---|
78 | </listitem>
|
---|
79 | <listitem><para>Additional fonts: <ulink
|
---|
80 | url="http://www1.mplayerhq.hu/MPlayer/releases/fonts/"/></para>
|
---|
81 | </listitem></itemizedlist>
|
---|
82 |
|
---|
83 | <note><para>The <acronym>CODEC</acronym>s, skins and fonts are not required to
|
---|
84 | build and use <application>MPlayer</application>.</para></note>
|
---|
85 | </sect3>
|
---|
86 |
|
---|
87 | <sect3><title><application>MPlayer</application> dependencies</title>
|
---|
88 | <sect4><title>Optional</title>
|
---|
89 | <para>
|
---|
90 | X (<xref linkend="xfree86"/> or <xref linkend="xorg"/>),
|
---|
91 | <xref linkend="libpng"/>,
|
---|
92 | <xref linkend="libjpeg"/>,
|
---|
93 | <xref linkend="GTK"/>,
|
---|
94 | <xref linkend="DirectFB"/>,
|
---|
95 | <xref linkend="SVGAlib"/>,
|
---|
96 | <xref linkend="freetype2"/>,
|
---|
97 | <xref linkend="fontconfig"/>,
|
---|
98 | <xref linkend="libungif"/>,
|
---|
99 | <xref linkend="libogg"/>
|
---|
100 | <xref linkend="libvorbis"/>,
|
---|
101 | <xref linkend="aalib"/>,
|
---|
102 | <xref linkend="SDL"/>,
|
---|
103 | <xref linkend="xvid"/>,
|
---|
104 | <xref linkend="arts"/>,
|
---|
105 | <xref linkend="alsa"/>,
|
---|
106 | <xref linkend="esound"/>,
|
---|
107 | <xref linkend="LZO"/>,
|
---|
108 | <xref linkend="libmad"/>,
|
---|
109 | <xref linkend="CDParanoia"/>,
|
---|
110 | <xref linkend="libdv"/>,
|
---|
111 | <xref linkend="libdvdread"/>,
|
---|
112 | <xref linkend="nas"/>,
|
---|
113 | <xref linkend="samba3"/>,
|
---|
114 | <xref linkend="lame"/>,
|
---|
115 | <xref linkend="xmms"/>,
|
---|
116 | <xref linkend="flac"/>,
|
---|
117 | <xref linkend="libfame"/>,
|
---|
118 | <ulink url="http://www.theora.org/">Theora</ulink>,
|
---|
119 | <ulink url="http://prdownloads.sourceforge.net/zapping/mp1e-1.9.3.tar.bz2">MP1E</ulink>,
|
---|
120 | <ulink url="http://faac.sourceforge.net/">FAAD2</ulink>,
|
---|
121 | <ulink url="http://www.ggi-project.org/">GGI</ulink>,
|
---|
122 | <ulink url="http://fribidi.sourceforge.net/">FriBidi</ulink>,
|
---|
123 | <ulink url="http://www.unrarlib.org/">unrarlib</ulink>,
|
---|
124 | <ulink url="http://www.lirc.org/">LIRC</ulink>,
|
---|
125 | <ulink url="http://www.dolda2000.cjb.net/~fredrik/lirccd/">lirccd</ulink>,
|
---|
126 | <ulink url="http://sam.zoy.org/projects/libcaca/">libcaca</ulink>,
|
---|
127 | <ulink url="http://www.matroska.org/downloads/linux.html">libmatroska</ulink>,
|
---|
128 | <ulink url="http://www.live.com/mplayer/">LIVE.COM Streaming Media</ulink>,
|
---|
129 | <ulink url="http://bio2jack.sourceforge.net/">bio2jack</ulink>,
|
---|
130 | <ulink url="http://dxr2.sourceforge.net/">Dxr2</ulink>,
|
---|
131 | <ulink url="http://dxr3.sourceforge.net/">libdxr3</ulink> and
|
---|
132 | <ulink url="http://trific.ath.cx/software/enca/">Enca</ulink>
|
---|
133 | </para></sect4>
|
---|
134 | </sect3>
|
---|
135 |
|
---|
136 | </sect2>
|
---|
137 |
|
---|
138 | <sect2>
|
---|
139 | <title>Installation of <application>MPlayer</application></title>
|
---|
140 |
|
---|
141 | <sect3>
|
---|
142 | <title><acronym>CODEC</acronym> installation (optional)</title>
|
---|
143 |
|
---|
144 | <para>If you downloaded any proprietary <acronym>CODEC</acronym>s
|
---|
145 | (which can provide support for additional audio and video formats such as
|
---|
146 | Real, Indeo and QuickTime), extract them to
|
---|
147 | <filename class="directory">/usr/lib/mplayer/codecs</filename>
|
---|
148 | using the following commands (substitute and/or add different
|
---|
149 | <acronym>CODEC</acronym> filenames, if necessary):</para>
|
---|
150 |
|
---|
151 | <screen><userinput><command>install -d -m755 /usr/lib/mplayer/codecs &&
|
---|
152 | tar xjfv ../&mplayer-default-codec; \
|
---|
153 | -C /usr/lib/mplayer/codecs --strip-path=1 &&
|
---|
154 | chown -R root:root /usr/lib/mplayer/codecs</command></userinput></screen>
|
---|
155 |
|
---|
156 | <para>If you installed any <acronym>CODEC</acronym>s, ensure you add
|
---|
157 | <parameter>--with-codecsdir=/usr/lib/mplayer/codecs</parameter>
|
---|
158 | to the <command>configure</command> script.</para>
|
---|
159 | </sect3>
|
---|
160 |
|
---|
161 | <sect3>
|
---|
162 | <title><acronym>GUI</acronym> installation (optional)</title>
|
---|
163 |
|
---|
164 | <para>To enable building the <acronym>GUI</acronym> version of
|
---|
165 | <application>MPlayer</application> (requires <xref linkend="GTK"/>), add
|
---|
166 | <parameter>--enable-gui</parameter> to the <command>configure</command>
|
---|
167 | script. You'll also need to extract at least one skin. Extract the desired
|
---|
168 | skin to the default location:</para>
|
---|
169 |
|
---|
170 | <screen><userinput><command>install -d -m755 /usr/share/mplayer/Skin/default &&
|
---|
171 | tar xjvf ../&mplayer-default-skin; \
|
---|
172 | -C /usr/share/mplayer/Skin/default --strip-path=1 &&
|
---|
173 | chown -R root:root /usr/share/mplayer/Skin/default</command></userinput></screen>
|
---|
174 | </sect3>
|
---|
175 |
|
---|
176 | <sect3>
|
---|
177 | <title>Installing <acronym>OSD</acronym> and subtitles support
|
---|
178 | (optional)</title>
|
---|
179 |
|
---|
180 | <para>To enable <acronym>OSD</acronym> (On Screen Display) and subtitles
|
---|
181 | support, add <parameter>--enable-menu</parameter> to the
|
---|
182 | <command>configure</command> script. You'll also need to set up at least one
|
---|
183 | font (see font installation instructions a little later).</para>
|
---|
184 | </sect3>
|
---|
185 |
|
---|
186 | <sect3>
|
---|
187 | <title>Main <application>MPlayer</application> installation</title>
|
---|
188 |
|
---|
189 | <note><para>The package maintainers recommend building without any
|
---|
190 | optimizations.</para></note>
|
---|
191 |
|
---|
192 | <para>Install <application>MPlayer</application> by running the following
|
---|
193 | commands:</para>
|
---|
194 |
|
---|
195 | <screen><userinput><command>patch -Np1 -i ../MPlayer-&mplayer-version;-kernel_2.6-1.patch &&
|
---|
196 | ./configure --prefix=/usr --confdir=/etc/mplayer \
|
---|
197 | --enable-largefiles --enable-shared-pp &&
|
---|
198 | make &&
|
---|
199 | make install &&
|
---|
200 | make -C libavcodec/libpostproc install &&
|
---|
201 | install -d -m755 /usr/share/doc/mplayer &&
|
---|
202 | cp -R DOCS/* /usr/share/doc/mplayer &&
|
---|
203 | chown -R root:root /usr/share/doc/mplayer</command></userinput></screen>
|
---|
204 |
|
---|
205 | <para>You will need <filename>codecs.conf</filename> only if you want to
|
---|
206 | change its properties, as the main binary contains an internal copy of
|
---|
207 | it. Ensure any changes you make to <filename>codecs.conf</filename> achieve
|
---|
208 | the desired results, as incorrect entries in this file have been known to
|
---|
209 | cause errors. If necessary, create the file using the following command.</para>
|
---|
210 |
|
---|
211 | <screen><userinput><command>cp etc/codecs.conf /etc/mplayer</command></userinput></screen>
|
---|
212 | </sect3>
|
---|
213 |
|
---|
214 | <sect3>
|
---|
215 | <title><acronym>OSD</acronym> and subtitles font installation
|
---|
216 | (required if <parameter>--enable-menu</parameter> was passed to
|
---|
217 | <command>configure</command>)</title>
|
---|
218 |
|
---|
219 | <para>The recommended method to set up a font for
|
---|
220 | <application>MPlayer</application> is to link a <acronym>TTF</acronym> file to
|
---|
221 | your <filename class="directory">~/.mplayer</filename> directory. A link
|
---|
222 | should be created in each user's home directory who may use
|
---|
223 | <application>MPlayer</application>. For example:
|
---|
224 | </para>
|
---|
225 |
|
---|
226 | <screen><userinput><command>mkdir ~/.mplayer &&
|
---|
227 | ln -sf /usr/X11R6/lib/X11/fonts/TTF/luxisri.ttf \
|
---|
228 | ~/.mplayer/subfont.ttf</command></userinput></screen>
|
---|
229 |
|
---|
230 | <para>There are several other ways to set up a font package. To use a
|
---|
231 | prerendered <application>MPlayer</application> font package, extract and link
|
---|
232 | one of the font tarballs using the following commands:</para>
|
---|
233 |
|
---|
234 | <screen><userinput><command>tar xjvf ../&mplayer-default-font;.tar.bz2 \
|
---|
235 | -C /usr/share/mplayer/font &&
|
---|
236 | chown -R root:root /usr/share/mplayer/font &&
|
---|
237 | cd /usr/share/mplayer/font &&
|
---|
238 | ln -sf &mplayer-default-font;/font-arial-<replaceable>[font size]</replaceable>-iso-8859-1/* .</command></userinput></screen>
|
---|
239 |
|
---|
240 | <para>Available font sizes are 14, 18, 24 or 28.</para>
|
---|
241 |
|
---|
242 | <para>Additional information as well as additional methods to set up an
|
---|
243 | <application>MPlayer</application> font package can be found at <ulink
|
---|
244 | url="http://www.mplayerhq.hu/DOCS/HTML/en/subosd.html#mpsub-install"/>.</para>
|
---|
245 | </sect3>
|
---|
246 |
|
---|
247 | <sect3>
|
---|
248 | <title>Installation for <acronym>DVD</acronym> playback (optional)</title>
|
---|
249 |
|
---|
250 | <para>If you want <acronym>DVD</acronym> playback with
|
---|
251 | <application>MPlayer</application>, you need to ensure a link exists
|
---|
252 | from your <acronym>DVD</acronym> drive to <filename>/dev/dvd</filename>. If
|
---|
253 | necessary, create the link using the following command:</para>
|
---|
254 |
|
---|
255 | <screen><userinput><command>ln -s /dev/<replaceable>[dvd drive]</replaceable> /dev/dvd</command></userinput></screen>
|
---|
256 |
|
---|
257 | <para>Replace <replaceable>[dvd drive]</replaceable> with whatever
|
---|
258 | device is appropriate, for example <filename>/dev/hdc</filename>. If
|
---|
259 | you don't know which device to choose, type:</para>
|
---|
260 |
|
---|
261 | <screen><userinput><command>dmesg | grep DVD</command></userinput></screen>
|
---|
262 |
|
---|
263 | <para>It should result in an output like:</para>
|
---|
264 |
|
---|
265 | <screen><userinput>hdc: Pioneer DVD-ROM ATAPIModel DVD-114 0110,
|
---|
266 | ATAPI CD/DVD-ROM drive</userinput></screen>
|
---|
267 |
|
---|
268 | <para>If you have <acronym>SCSI</acronym>-Emulation activated for the drives,
|
---|
269 | you'll need to get the right <acronym>SCSI</acronym>-device. Every
|
---|
270 | <acronym>CD</acronym>/<acronym>DVD</acronym>-<acronym>ROM</acronym> drive is
|
---|
271 | mapped in the same order as in <acronym>IDE</acronym> devices to the devices
|
---|
272 | named <filename>/dev/scd0</filename>, <filename>/dev/scd1</filename> and so on.
|
---|
273 | </para>
|
---|
274 |
|
---|
275 | </sect3>
|
---|
276 |
|
---|
277 | </sect2>
|
---|
278 |
|
---|
279 | <sect2>
|
---|
280 | <title>Command explanations</title>
|
---|
281 | <para><parameter>--enable-shared-pp</parameter>: This enables building the
|
---|
282 | shared <filename class="libraryfile">libpostproc</filename> library (for
|
---|
283 | post processing) which features filters such as sharpen.</para>
|
---|
284 |
|
---|
285 | </sect2>
|
---|
286 |
|
---|
287 | <sect2>
|
---|
288 | <title>Configuring MPlayer</title>
|
---|
289 |
|
---|
290 | <sect3><title>Config files</title>
|
---|
291 | <para><filename>/etc/mplayer/*</filename>,
|
---|
292 | <filename>~/.mplayer/*</filename></para>
|
---|
293 | </sect3>
|
---|
294 |
|
---|
295 | </sect2>
|
---|
296 |
|
---|
297 | <sect2>
|
---|
298 | <title>Contents</title>
|
---|
299 |
|
---|
300 | <para>The <application>MPlayer</application> package contains
|
---|
301 | <command>mplayer</command>,
|
---|
302 | <command>gmplayer</command> and
|
---|
303 | <command>mencoder</command>.</para>
|
---|
304 |
|
---|
305 | </sect2>
|
---|
306 |
|
---|
307 | <sect2><title>Description</title>
|
---|
308 |
|
---|
309 | <sect3><title>mplayer</title>
|
---|
310 | <para><command>mplayer</command> manages the input formats, the
|
---|
311 | <acronym>CODEC</acronym>s and the output formats to play video files,
|
---|
312 | <acronym>DVD</acronym>s, (S)<acronym>VCD</acronym>s or network streams
|
---|
313 | containing audio and/or video information on your system.</para>
|
---|
314 |
|
---|
315 | <para>Examples:</para>
|
---|
316 |
|
---|
317 | <screen><command>mplayer -fs blfs.avi
|
---|
318 | mplayer -vo fbdev -fb /dev/fb0 dvd://1 -aid 128 -sub en -framedrop
|
---|
319 | mplayer -fs vcd://1 # works both for VCDs and SVCDs
|
---|
320 | mplayer http://www.students.uni-marburg.de/~Klossa/hapkidofight_lo.mpg</command></screen>
|
---|
321 |
|
---|
322 | <para>For further information, look at the very good documentation included
|
---|
323 | with the package in the source tree subdirectory
|
---|
324 | <filename class="directory">DOCS</filename> (also installed at
|
---|
325 | <filename class='directory'>/usr/share/doc/mplayer</filename>).</para>
|
---|
326 | </sect3>
|
---|
327 |
|
---|
328 | <sect3><title>gmplayer</title>
|
---|
329 | <para><command>gmplayer</command> is <application>MPlayer</application> with a
|
---|
330 | graphical user interface.</para></sect3>
|
---|
331 |
|
---|
332 | <sect3><title>mencoder</title>
|
---|
333 | <para><command>mencoder</command> is used to encode any
|
---|
334 | <application>MPlayer</application> playable movie to DivX4,
|
---|
335 | <application>XviD</application> or any <acronym>CODEC</acronym> in
|
---|
336 | <filename class='libraryfile'>libavcodec</filename> with
|
---|
337 | <acronym>PCM</acronym>/MP3/VBRMP3 audio.</para>
|
---|
338 |
|
---|
339 | <para>Example:</para>
|
---|
340 |
|
---|
341 | <screen><userinput><command>rm frameno.avi
|
---|
342 | mencoder -dvd 1 -aid 128 -ovc frameno -oac mp3lame \
|
---|
343 | -lameopts vbr=3 -o frameno.avi</command>
|
---|
344 |
|
---|
345 | # mencoder should output bitrates for average encodings
|
---|
346 | # now, choose one you like best! In the following lines,
|
---|
347 | # replace <bitrate> and <name.avi> with statements of your
|
---|
348 | # personal liking.
|
---|
349 |
|
---|
350 | <command>mencoder -dvd 1 -aid 128 -oac copy -ovc lavc \
|
---|
351 | -lavcopts vcodec=mpeg4:vpass=1:vhq:vbitrate=<bitrate> -o <name.avi>
|
---|
352 | mencoder -dvd 1 -aid 128 -oac copy -ovc lavc \
|
---|
353 | -lavcopts vcodec=mpeg4:vpass=2:vhq:vbitrate=<bitrate> -o <name.avi>
|
---|
354 | mencoder -forceidx <name.avi></command></userinput></screen>
|
---|
355 | </sect3>
|
---|
356 |
|
---|
357 | </sect2>
|
---|
358 |
|
---|
359 | </sect1>
|
---|
360 |
|
---|