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

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 9aa1897 was 9aa1897, checked in by Randy McMurchy <randy@…>, 19 years ago

Updated to MPlayer-1.0pre6

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

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