source: multimedia/videoutils/mplayer.xml@ ec2270f

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.0 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 ec2270f was ec2270f, checked in by Randy McMurchy <randy@…>, 19 years ago

Updated to MPlayer-1.0pre6a, also added indexing tags to package instructions

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

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