source: multimedia/videoutils/mplayer.xml@ 9a9df1f8

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 9a9df1f8 was 9a9df1f8, checked in by Randy McMurchy <randy@…>, 19 years ago

Updated to MPlayer-1.0pre7

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@3918 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 19.7 KB
Line 
1<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
2 "http://www.oasis-open.org/docbook/xml/4.4/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-md5sum "5fadd6957d3aab989cd760ff38fb8fdf">
9 <!ENTITY mplayer-size "6.8 MB">
10 <!ENTITY mplayer-buildsize "97 MB (additional 22 MB for essential CODECs)">
11 <!ENTITY mplayer-time "2.0 SBU">
12
13 <!ENTITY mplayer-codec "essential-20050412.tar.bz2">
14 <!ENTITY mplayer-codec-md5sum "5fe89bb095bdf9b4f9cda5479dbde906">
15 <!ENTITY mplayer-codec-size "9.3 MB">
16
17 <!ENTITY mplayer-skin "Blue-1.4.tar.bz2">
18 <!ENTITY mplayer-skin-md5sum "3006f514cf0c9a8f832cfb1abee276bf">
19 <!ENTITY mplayer-skin-size "221 KB">
20
21 <!ENTITY mplayer-font "font-arial-iso-8859-1">
22 <!ENTITY mplayer-font-md5sum "1ecd31d17b51f16332b1fcc7da36b312">
23 <!ENTITY mplayer-font-size "234 KB">
24]>
25
26<sect1 id="mplayer" xreflabel="MPlayer-&mplayer-version;">
27<sect1info>
28<othername>$LastChangedBy$</othername>
29<date>$Date$</date>
30</sect1info>
31<?dbhtml filename="mplayer.html"?>
32<title><application>MPlayer</application>-&mplayer-version;</title>
33<indexterm zone="mplayer">
34<primary sortas="a-MPlayer">MPlayer</primary></indexterm>
35
36<sect2>
37<title>Introduction to <application>MPlayer</application></title>
38
39<para>The <application>MPlayer</application> package contains an audio/video
40player controlled via the command line or a graphical interface which is
41able to play almost every popular audio and video file format
42and <acronym>CODEC</acronym> (COder/DECoder, also COmpressor/DECompressor).
43With supported video hardware and additional drivers,
44<application>MPlayer</application> can play video files without an
45<application>X</application> window system installed.</para>
46
47<para>For <application>MPlayer</application> general information and available
48features, including a full list of file formats, <acronym>CODEC</acronym>s and
49output devices supported by <application>MPlayer</application>, visit the
50<ulink url="http://www1.mplayerhq.hu/homepage/design7/info.html">
51<application>MPlayer</application> web site</ulink>.</para>
52
53<sect3><title>Package information</title>
54<itemizedlist spacing='compact'>
55<listitem><para>Download (HTTP):
56<ulink url="&mplayer-download-http;"/></para></listitem>
57<listitem><para>Download (FTP):
58<ulink url="&mplayer-download-ftp;"/></para></listitem>
59<listitem><para>Download MD5 sum: &mplayer-md5sum;</para></listitem>
60<listitem><para>Download size: &mplayer-size;</para></listitem>
61<listitem><para>Estimated disk space required:
62&mplayer-buildsize;</para></listitem>
63<listitem><para>Estimated build time:
64&mplayer-time;</para></listitem></itemizedlist>
65</sect3>
66
67<sect3><title>Additional downloads</title>
68<para><emphasis>Patches</emphasis></para>
69<itemizedlist spacing='compact'>
70<listitem><para>Required Patch (for fbdev driver support): <ulink
71url="&patch-root;/MPlayer-&mplayer-version;-kernel_2.6-1.patch"/></para>
72</listitem>
73</itemizedlist>
74
75<para><emphasis><acronym>CODEC</acronym>s</emphasis></para>
76<itemizedlist spacing='compact'>
77<listitem><para>Proprietary <acronym>CODEC</acronym>s: <ulink
78url="http://www.mplayerhq.hu/MPlayer/releases/codecs/&mplayer-codec;"/></para>
79</listitem>
80<listitem><para>Download MD5 sum: &mplayer-codec-md5sum;</para></listitem>
81<listitem><para>Download size: &mplayer-codec-size;</para></listitem>
82<listitem><para>Additional <acronym>CODEC</acronym>s: <ulink
83url="http://www.mplayerhq.hu/MPlayer/releases/codecs/"/></para>
84</listitem>
85</itemizedlist>
86
87<para><emphasis>Skins</emphasis></para>
88<itemizedlist spacing='compact'>
89<listitem><para>Default <acronym>GUI</acronym> skin: <ulink
90url="http://www1.mplayerhq.hu/MPlayer/Skin/&mplayer-skin;"/></para>
91</listitem>
92<listitem><para>Download MD5 sum: &mplayer-skin-md5sum;</para></listitem>
93<listitem><para>Download size: &mplayer-skin-size;</para></listitem>
94<listitem><para>Additional skins: <ulink
95url="http://www1.mplayerhq.hu/MPlayer/Skin/"/></para>
96</listitem></itemizedlist>
97
98<para><emphasis>Fonts</emphasis></para>
99<itemizedlist spacing='compact'>
100<listitem><para>Prerendered fonts: <ulink
101url="http://www1.mplayerhq.hu/MPlayer/releases/fonts/&mplayer-font;.tar.bz2"/>
102</para></listitem>
103<listitem><para>Download MD5 sum: &mplayer-font-md5sum;</para></listitem>
104<listitem><para>Download size: &mplayer-font-size;</para></listitem>
105<listitem><para>Additional fonts: <ulink
106url="http://www1.mplayerhq.hu/MPlayer/releases/fonts/"/></para>
107</listitem></itemizedlist>
108
109<note><para>The <acronym>CODEC</acronym>s, skins and fonts are not required to
110build and use <application>MPlayer</application>.</para></note>
111</sect3>
112
113<sect3><title><application>MPlayer</application> dependencies</title>
114<sect4><title>Optional input drivers and libraries</title>
115<para><xref linkend="cdparanoia"/>,
116<xref linkend="libdv"/>,
117<xref linkend="libdvdread"/>,
118<xref linkend="samba3"/>,
119<ulink url="http://www.live.com/mplayer/">LIVE.COM Streaming Media</ulink>,
120<ulink url="http://www.matroska.org/downloads/linux.html">libmatroska</ulink>
121(requires
122<ulink url="http://dl.matroska.org/downloads/libebml/">libebml</ulink>),
123<ulink url="http://www.linuxtv.org/">DVB drivers</ulink>
124and <ulink url="http://www.metzlerbros.org/dvb/">DVB</ulink></para>
125</sect4>
126
127<sect4><title>Optional audio output drivers and libraries</title>
128<para><xref linkend="alsa"/>,
129<xref linkend="arts"/>,
130<xref linkend="esound"/>,
131<xref linkend="nas"/>,
132<xref linkend="sdl"/> (also used for video output),
133<xref linkend="xmms"/>,
134<ulink url="http://0pointer.de/lennart/projects/polypaudio/">Polypaudio</ulink>,
135<ulink url="http://bio2jack.sourceforge.net/">bio2jack</ulink> (requires
136<ulink url="http://jackit.sourceforge.net/">JACK</ulink>)</para>
137</sect4>
138
139<sect4><title>Optional video output drivers and libraries</title>
140<para>X (<xref linkend="xfree86"/> or <xref linkend="xorg"/>),
141<xref linkend="libpng"/>,
142<xref linkend="libjpeg"/>,
143<xref linkend="libungif"/> or <xref linkend="giflib"/>,
144<xref linkend="GTK"/>,
145<xref linkend="freetype2"/>,
146<xref linkend="fontconfig"/>,
147<xref linkend="aalib"/>,
148<ulink url="http://www.directfb.org/">DirectFB</ulink>,
149<ulink url="http://www.svgalib.org/">SVGAlib</ulink>,
150<ulink url="http://www.ggi-project.org/">GGI</ulink>,
151<ulink url="http://sam.zoy.org/projects/libcaca/">libcaca</ulink>,
152<ulink url="http://www.ladspa.org/">LADSPA</ulink>,
153<ulink url="http://dxr2.sourceforge.net/">Dxr2</ulink>,
154<ulink url="http://dxr3.sourceforge.net/">libdxr3</ulink>,
155<ulink url="http://prdownloads.sourceforge.net/zapping/">MP1E</ulink>,
156<ulink url="http://freedesktop.org/Software/FriBidi">FriBidi</ulink> and
157<ulink url="http://trific.ath.cx/software/enca/">Enca</ulink></para>
158</sect4>
159
160<sect4><title>Optional <acronym>CODEC</acronym>s</title>
161<para><xref linkend="libvorbis"/>,
162<xref linkend="xvid"/>,
163<xref linkend="LZO"/>,
164<xref linkend="libmad"/>,
165<xref linkend="lame"/>,
166<xref linkend="libfame"/>,
167<ulink url="http://www.theora.org/">Theora</ulink>,
168<ulink url="http://www.xiph.org/ogg/vorbis/index.html">Tremor</ulink>,
169<ulink url="http://www.audiocoding.com/modules/mydownloads/">FAAD2</ulink>,
170<ulink url="http://www.divx.com/divx/linux/">DivX4Linux</ulink>,
171<ulink url="http://sourceforge.net/projects/toolame">TooLAME</ulink>,
172<ulink url="http://www.dolda2000.cjb.net/~fredrik/lirccd/">lirccd</ulink>
173and <ulink url="http://www.lirc.org/">LIRC</ulink></para>
174</sect4>
175</sect3>
176
177</sect2>
178
179<sect2>
180<title>Installation of <application>MPlayer</application></title>
181
182<sect3>
183<title><acronym>CODEC</acronym> installation (optional)</title>
184
185<para>If you downloaded any proprietary <acronym>CODEC</acronym>s
186(which can provide support for additional audio and video formats such as
187Real, Indeo and QuickTime), extract them to
188<filename class="directory">/usr/lib/mplayer/codecs</filename>
189using the following commands as the root user (substitute and/or add different
190<acronym>CODEC</acronym> filenames, if necessary):</para>
191
192<screen><userinput role='root'><command>install -v -d -m755 /usr/lib/mplayer/codecs &amp;&amp;
193tar -jvxf ../&mplayer-codec; \
194 -C /usr/lib/mplayer/codecs --strip-components=1 &amp;&amp;
195chown -v -R root:root /usr/lib/mplayer/codecs</command></userinput></screen>
196
197<para>If you installed any <acronym>CODEC</acronym>s, ensure you add
198<option>--with-codecsdir=/usr/lib/mplayer/codecs</option>
199to the <command>configure</command> script.</para>
200</sect3>
201
202<sect3>
203<title><acronym>GUI</acronym> installation (optional)</title>
204
205<para>To enable building the <acronym>GUI</acronym> version of
206<application>MPlayer</application> (requires <xref linkend="GTK"/>), add
207<option>--enable-gui</option> to the <command>configure</command>
208script. You'll also need to extract at least one skin. Extract the desired
209skin and create the default location (as the root user):</para>
210
211<screen><userinput role='root'><command>install -v -d -m755 /usr/share/mplayer/Skin &amp;&amp;
212tar -jvxf ../&mplayer-skin; \
213 -C /usr/share/mplayer/Skin &amp;&amp;
214chown -v -R root:root /usr/share/mplayer/Skin/Blue &amp;&amp;
215chmod -v 0755 /usr/share/mplayer/Skin/Blue{,/icons} &amp;&amp;
216ln -sfv Blue /usr/share/mplayer/Skin/default</command></userinput></screen>
217</sect3>
218
219<sect3>
220<title>Installing <acronym>OSD</acronym> and subtitles support
221(optional)</title>
222
223<para>To enable <acronym>OSD</acronym> (On Screen Display) and subtitles
224support, add <option>--enable-menu</option> to the
225<command>configure</command> script. You'll also need to set up at least one
226font (see font installation instructions a little later).</para>
227</sect3>
228
229<sect3>
230<title>Main <application>MPlayer</application> installation</title>
231
232<note><para>The package maintainers recommend building without any
233optimizations.</para></note>
234
235<para><application>MPlayer</application> can build a shared post-processing
236library from the internal <application>FFmpeg</application> package which other
237packages can link to. This requires <application>MPlayer</application> to link
238dynamically to this library instead of the default statically linked method.
239If you desire to build the shared library,
240add <option>--enable-shared-pp</option> to the <command>configure</command>
241script.</para>
242
243<para>You may wish to examine the output from
244<command>./configure --help</command> to find out what additional parameters
245to <command>configure</command> are needed to include the dependencies you
246have installed on your system.</para>
247
248<para>Install <application>MPlayer</application> by running the following
249commands:</para>
250
251<screen><userinput><command>patch -Np1 -i ../MPlayer-&mplayer-version;-kernel_2.6-1.patch &amp;&amp;
252./configure --prefix=/usr --confdir=/etc/mplayer \
253 --enable-largefiles &amp;&amp;
254make</command></userinput></screen>
255
256<para>This package does not come with a test suite.</para>
257
258<para>Now, as the root user:</para>
259
260<screen><userinput role='root'><command>make install &amp;&amp;
261install -v -m755 -d /usr/share/doc/mplayer-&mplayer-version; &amp;&amp;
262cp -v -R DOCS/* /usr/share/doc/mplayer-&mplayer-version;</command></userinput></screen>
263
264<para>Passing parameters to <command>configure</command> may result in the
265creation of <filename class='libraryfile'>libdha.so.1.0</filename>. If so,
266you may wish to create a symlink to this library in case other packages link
267to <filename class='libraryfile'>libdha.so</filename>. Use the following
268command as the root user to create the symlink:</para>
269
270<screen><userinput role='root'><command>ln -v -s libdha.so.1.0 /usr/lib/libdha.so</command></userinput></screen>
271
272<para>You will need <filename>codecs.conf</filename> only if you want to
273change its properties, as the main binary contains an internal copy of
274it. Ensure any changes you make to <filename>codecs.conf</filename> achieve
275the desired results, as incorrect entries in this file have been known to
276cause errors and render the player unusable. If necessary, create the file
277using the following command.</para>
278
279<screen><userinput role='root'><command>install -m644 etc/codecs.conf /etc/mplayer</command></userinput></screen>
280
281<para>You may also want to copy all the default configuration files to
282<filename class='directory'>/etc/mplayer</filename> for future reference or
283more customization ability.</para>
284
285<screen><userinput role='root'><command>install -m644 etc/*.conf /etc/mplayer</command></userinput></screen>
286</sect3>
287
288<sect3>
289<title><acronym>OSD</acronym> and subtitles font installation
290(required if <parameter>--enable-menu</parameter> was passed to
291<command>configure</command>)</title>
292
293<para>The recommended method to set up a font for
294<application>MPlayer</application> is to link a <acronym>TTF</acronym> file to
295your <filename class="directory">~/.mplayer</filename> directory. A link
296should be created in each user's home directory who may use
297<application>MPlayer</application>. For example:</para>
298
299<screen><userinput><command>install -v -m750 -d ~/.mplayer &amp;&amp;
300ln -v -sf /usr/X11R6/lib/X11/fonts/TTF/luxisri.ttf \
301 ~/.mplayer/subfont.ttf</command></userinput></screen>
302
303<para>There are several other ways to set up a font package. To use a
304prerendered <application>MPlayer</application> font package, extract and link
305one of the font tarballs using the following commands:</para>
306
307<screen><userinput role='root'><command>tar -jvxf ../&mplayer-font;.tar.bz2 \
308 -C /usr/share/mplayer/font &amp;&amp;
309chown -v -R root:root /usr/share/mplayer/font &amp;&amp;
310cd /usr/share/mplayer/font &amp;&amp;
311ln -v -sf &mplayer-font;/font-arial-<replaceable>[font size]</replaceable>-iso-8859-1/* .</command></userinput></screen>
312
313<para>Available font sizes are 14, 18, 24 or 28.</para>
314
315<para>Additional information as well as additional methods to set up an
316<application>MPlayer</application> font package can be found at <ulink
317url="http://www.mplayerhq.hu/DOCS/HTML/en/subosd.html#mpsub-install"/>.</para>
318</sect3>
319
320<sect3>
321<title>Installation for <acronym>DVD</acronym> playback (optional)</title>
322
323<para>If you want <acronym>DVD</acronym> playback with
324<application>MPlayer</application>, you need to ensure a link exists
325from your <acronym>DVD</acronym> drive to <filename>/dev/dvd</filename>. If
326necessary, create the link using the following commands:</para>
327
328<screen><userinput role='root'><command>cat &gt;&gt; /etc/udev/rules.d/24-dvd.rules &lt;&lt; "EOF"</command>
329# Create a /dev/dvd symlink
330
331KERNEL="<replaceable>[dvd drive]</replaceable>", SYMLINK="dvd"
332
333<command>EOF
334udevstart</command></userinput></screen>
335
336<para>Replace <replaceable>[dvd drive]</replaceable> with whatever
337device is appropriate, for example <filename>hdc</filename>. If
338you don't know which device to choose, type:</para>
339
340<screen><userinput><command>dmesg | grep DVD</command></userinput></screen>
341
342<para>It should result in an output like:</para>
343
344<screen><userinput>hdc: Pioneer DVD-ROM ATAPIModel DVD-114 0110,
345ATAPI CD/DVD-ROM drive</userinput></screen>
346</sect3>
347
348</sect2>
349
350<sect2>
351<title>Configuring <application>MPlayer</application></title>
352
353<sect3 id="mplayer-config"><title>Config files</title>
354<para><filename>/etc/mplayer/*</filename>,
355<filename>~/.mplayer/*</filename></para>
356<indexterm zone="mplayer mplayer-config">
357<primary sortas="e-AA.mplayer">~/.mplayer/*</primary></indexterm>
358<indexterm zone="mplayer mplayer-config">
359<primary sortas="e-etc-mplayer">/etc/mplayer/*</primary></indexterm>
360</sect3>
361
362<sect3><title>Configuration information</title>
363<para>Typically, there's no configuration required for the system-wide files
364in <filename class='directory'>/etc/mplayer</filename> (in fact, this
365directory is empty unless you copied the default files as mentioned above).
366Configuration can be accomplished by choosing the configuration button located
367on the <application>MPlayer</application> <acronym>GUI</acronym>. Any
368configuration changes made here will be copied to the user's
369<filename class='directory'>~/.mplayer</filename> directory.</para>
370</sect3>
371
372</sect2>
373
374<sect2>
375<title>Contents</title>
376
377<segmentedlist>
378<segtitle>Installed Programs</segtitle>
379<segtitle>Installed Libraries</segtitle>
380<segtitle>Installed Directories</segtitle>
381<seglistitem>
382<seg>gmplayer, mplayer and mencoder</seg>
383<seg>libdha.so and optionally, libpostproc.so</seg>
384<seg>~/.mplayer, /etc/mplayer, /usr/include/postproc, /usr/lib/mplayer,
385/usr/share/mplayer and /usr/share/doc/mplayer-&mplayer-version;</seg>
386</seglistitem>
387</segmentedlist>
388
389<variablelist>
390<bridgehead renderas="sect3">Short Descriptions</bridgehead>
391<?dbfo list-presentation="list"?>
392
393<varlistentry id="gmplayer">
394<term><command>gmplayer</command></term>
395<listitem><para>is a symlink to <command>mplayer</command> which brings up
396the graphical user interface component of
397<application>MPlayer</application>.</para>
398<indexterm zone="mplayer gmplayer">
399<primary sortas="b-gmplayer">gmplayer</primary></indexterm>
400</listitem>
401</varlistentry>
402
403<varlistentry id="mplayer-prog">
404<term><command>mplayer</command></term>
405<listitem><para> manages the input formats, the <acronym>CODEC</acronym>s and
406the output formats to play video files, <acronym>DVD</acronym>s,
407(S)<acronym>VCD</acronym>s or network streams containing audio and/or video
408information on your system.</para>
409<indexterm zone="mplayer mplayer-prog">
410<primary sortas="b-mplayer">mplayer</primary></indexterm>
411
412<para>Examples:</para>
413
414<screen><userinput><command>mplayer -fs blfs.avi
415mplayer -vo fbdev -fb /dev/fb0 dvd://1 -aid 128 -sub en -framedrop
416mplayer -fs vcd://1 # works both for VCDs and SVCDs
417mplayer http://www.students.uni-marburg.de/~Klossa/hapkidofight_lo.mpg</command></userinput></screen>
418
419<para>For further information, look at the very good documentation included
420with the package in the source tree subdirectory
421<filename class="directory">DOCS</filename> (also installed at
422<filename class='directory'>/usr/share/doc/mplayer</filename>).</para>
423</listitem>
424</varlistentry>
425
426<varlistentry id="mencoder">
427<term><command>mencoder</command></term>
428<listitem><para>is used to encode any <application>MPlayer</application>
429playable movie to DivX4, <application>XviD</application> or any
430<acronym>CODEC</acronym> in
431<filename class='libraryfile'>libavcodec</filename> with
432<acronym>PCM</acronym>/MP3/VBRMP3 audio.</para>
433<indexterm zone="mplayer mencoder">
434<primary sortas="b-mencoder">mencoder</primary></indexterm>
435
436<para>Example:</para>
437
438<screen><userinput><command>rm frameno.avi
439mencoder -dvd 1 -aid 128 -ovc frameno -oac mp3lame \
440-lameopts vbr=3 -o frameno.avi</command>
441
442# mencoder should output bitrates for average encodings
443# now, choose one you like best! In the following lines,
444# replace &lt;bitrate&gt; and &lt;name.avi&gt; with statements of your
445# personal liking.
446
447<command>mencoder -dvd 1 -aid 128 -oac copy -ovc lavc \
448-lavcopts vcodec=mpeg4:vpass=1:vhq:vbitrate=&lt;bitrate&gt; -o &lt;name.avi&gt;
449mencoder -dvd 1 -aid 128 -oac copy -ovc lavc \
450-lavcopts vcodec=mpeg4:vpass=2:vhq:vbitrate=&lt;bitrate&gt; -o &lt;name.avi&gt;
451mencoder -forceidx &lt;name.avi&gt;</command></userinput></screen>
452</listitem>
453</varlistentry>
454
455<varlistentry id="libdha">
456<term><filename class='libraryfile'>libdha.so</filename></term>
457<listitem><para>contains functions used by the
458<application>MPlayer</application> programs.</para>
459<indexterm zone="mplayer libdha">
460<primary sortas="c-libdha">libdha.so</primary></indexterm>
461</listitem>
462</varlistentry>
463
464<varlistentry id="libpostproc">
465<term><filename class='libraryfile'>libpostproc.so</filename></term>
466<listitem><para>is a post-processing filter library used by the
467<application>MPlayer</application> programs and other packages.</para>
468<indexterm zone="mplayer libpostproc">
469<primary sortas="c-libpostproc">libpostproc.so</primary></indexterm>
470</listitem>
471</varlistentry>
472</variablelist>
473
474</sect2>
475
476</sect1>
Note: See TracBrowser for help on using the repository browser.