source: multimedia/videoutils/mplayer.xml@ a0f03b0

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 a0f03b0 was a0f03b0, checked in by Archaic <archaic@…>, 20 years ago

Inserting sect1info

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

  • Property mode set to 100644
File size: 10.8 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 "4.7 MB">
9 <!ENTITY mplayer-buildsize "51 MB">
10 <!ENTITY mplayer-time "1.80 SBU">
11]>
12
13<sect1 id="mplayer" xreflabel="MPlayer-&mplayer-version;">
14<sect1info>
15<othername>$LastChangedBy: $</othername>
16<date>$Date: $</date>
17</sect1info>
18<?dbhtml filename="mplayer.html"?>
19<title>MPlayer-&mplayer-version;</title>
20
21<sect2>
22<title>Introduction to <application>MPlayer</application></title>
23
24<para>The <application>MPlayer</application> package contains an audio/video player that is able to
25play almost every audio and video <acronym>CODEC</acronym> and can be
26controlled via the command
27line or a <acronym>GUI</acronym>.</para>
28
29<sect3><title>Package information</title>
30<itemizedlist spacing='compact'>
31<listitem><para>Download (HTTP): <ulink url="&mplayer-download-http;"/></para></listitem>
32<listitem><para>Download (FTP): <ulink url="&mplayer-download-ftp;"/></para></listitem>
33<listitem><para>Download size: &mplayer-size;</para></listitem>
34<listitem><para>Estimated Disk space required: &mplayer-buildsize;</para></listitem>
35<listitem><para>Estimated build time: &mplayer-time;</para></listitem></itemizedlist>
36</sect3>
37
38<sect3><title>Additional downloads</title>
39<itemizedlist spacing='compact'>
40<listitem><para>Proprietary <acronym>CODEC</acronym>s: <ulink
41url="http://www1.mplayerhq.hu/MPlayer/releases/codecs/extralite.tar.bz2"/></para></listitem>
42<listitem><para>Default <acronym>GUI</acronym> skin: <ulink
43url="http://www1.mplayerhq.hu/MPlayer/Skin/default-1.8.tar.bz2"/></para></listitem>
44<listitem><para>Prerendered fonts: <ulink
45url="http://www1.mplayerhq.hu/MPlayer/releases/fonts/font-arial-iso-8859-1.tar.bz2"/></para>
46</listitem>
47</itemizedlist>
48
49<note><para>The additional downloads are not required to build and use MPlayer. You can
50find many more <acronym>CODEC</acronym>s, skins and fonts at <ulink
51url="http://www.mplayerhq.hu/">MPlayer's homepage</ulink>.</para></note>
52
53</sect3>
54
55<sect3><title><application>MPlayer</application> dependencies</title>
56<sect4><title>Optional</title>
57<para>
58X (<xref linkend="xfree86"/> or <xref linkend="xorg"/>),
59<xref linkend="libpng"/>,
60<xref linkend="libjpeg"/>,
61<xref linkend="GTK"/>,
62<xref linkend="DirectFB"/>,
63<xref linkend="SVGAlib"/>,
64<xref linkend="freetype2"/>,
65<xref linkend="fontconfig"/>,
66<xref linkend="libungif"/>,
67<xref linkend="libogg"/>
68<xref linkend="libvorbis"/>,
69<xref linkend="aalib"/>,
70<xref linkend="SDL"/>,
71<xref linkend="xvid"/>,
72<xref linkend="arts"/>,
73<xref linkend="alsa"/>,
74<xref linkend="esound"/>,
75<xref linkend="LZO"/>,
76<xref linkend="libmad"/>,
77<xref linkend="CDParanoia"/>,
78<xref linkend="libdv"/>,
79<xref linkend="libdvdread"/>,
80<xref linkend="nas"/>,
81<xref linkend="samba3"/>,
82<xref linkend="lame"/>,
83<xref linkend="xmms"/>,
84<xref linkend="flac"/>,
85<xref linkend="libfame"/>,
86<ulink url="http://www.theora.org/">Theora</ulink>,
87<ulink url="http://prdownloads.sourceforge.net/zapping/mp1e-1.9.3.tar.bz2">MP1E</ulink>,
88<ulink url="http://faac.sourceforge.net/">FAAD2</ulink>,
89<ulink url="http://www.ggi-project.org/">GGI</ulink>,
90<ulink url="http://fribidi.sourceforge.net/">FriBidi</ulink>,
91<ulink url="http://www.unrarlib.org/">unrarlib</ulink>,
92<ulink url="http://www.lirc.org/">LIRC</ulink>,
93<ulink url="http://www.dolda2000.cjb.net/~fredrik/lirccd/">lirccd</ulink> and
94<ulink url="http://www.live.com/mplayer/">LIVE.COM Streaming Media</ulink>
95</para></sect4>
96</sect3>
97
98</sect2>
99
100<sect2>
101<title>Installation of <application>MPlayer</application></title>
102
103<para>If you downloaded any proprietary <acronym>CODEC</acronym>s,
104extract them at some system-wide location (like <filename
105class="directory">/usr/lib/mplayer/codecs</filename>) and add
106<parameter>--with-codecsdir=<replaceable>[location]</replaceable></parameter>
107option to the configure script.</para>
108
109<note><para>The package maintainers recommend building without any
110optimizations.</para></note>
111
112<para>Install <application>MPlayer</application> by running the following commands:</para>
113
114<screen><userinput><command>./configure --prefix=/usr --confdir=/etc/mplayer \
115 --enable-largefiles --enable-shared-pp &amp;&amp;
116make &amp;&amp;
117make install &amp;&amp;
118make -C libavcodec/libpostproc install</command></userinput></screen>
119
120<para>You will need <filename>codecs.conf</filename> only if you want to
121change its properties, as the main binary contains an internal copy of
122it:</para>
123
124<screen><userinput><command>cp etc/codecs.conf /etc/mplayer</command></userinput></screen>
125
126<para>The <acronym>GUI</acronym> version of
127<application>MPlayer</application> requires a skin. Extract the default
128one to the recommended location:</para>
129
130<screen><userinput><command>install -d /usr/share/mplayer/Skin &amp;&amp;
131tar xjvf ../default-1.8.tar.bz2 -C /usr/share/mplayer/Skin</command></userinput></screen>
132
133<sect3>
134<title>Installation for <acronym>DVD</acronym> playback</title>
135
136<para>If you want <acronym>DVD</acronym> playback with
137<application>MPlayer</application>, you need to make a link
138from your <acronym>DVD</acronym> drive to <filename>/dev/dvd</filename>:</para>
139
140<screen><userinput><command>ln -s /dev/<replaceable>[dvd drive]</replaceable> /dev/dvd</command></userinput></screen>
141
142<para>Replace <replaceable>[dvd drive]</replaceable> with whatever
143device is appropriate, for example <filename>/dev/hdc</filename>. If
144you don't know which device to choose, type:</para>
145
146<screen><userinput><command>dmesg | grep DVD</command></userinput></screen>
147
148<para>It should result in an output like:</para>
149
150<screen><userinput>hdc: Pioneer DVD-ROM ATAPIModel DVD-114 0110,
151ATAPI CD/DVD-ROM drive</userinput></screen>
152
153<para>If you have SCSI-Emulation activated for the drives, you'll need
154to get the right SCSI-device. Every CD/DVD-ROM drive is mapped in the
155same order as in <acronym>IDE</acronym> devices to the devices named
156<filename>/dev/scd0</filename>,
157<filename>/dev/scd1</filename> and so on.</para>
158
159</sect3>
160
161</sect2>
162
163<sect2>
164<title>Command explanations</title>
165
166<para><option>--enable-shared-pp</option>: This enables the
167building of a shared <filename
168class="libraryfile">libpostproc</filename> (library for post processing, featuring
169filters like sharpen).</para>
170
171<para><option>--enable-gui</option>: This switch tells
172<application>MPlayer</application> to compile the <acronym>GUI</acronym>
173code (requires <xref linkend="GTK"/>).</para>
174
175<para><option>--enable-menu</option>: This
176switch enables the new menu support. It's like an
177<acronym>OSD</acronym>, but you can
178also run a shell with it.</para>
179
180</sect2>
181
182<sect2>
183<title>Configuring MPlayer</title>
184
185<sect3><title>Config files</title>
186<para><filename>/etc/mplayer/*</filename>, <filename>~/.mplayer/*</filename></para>
187</sect3>
188
189<sect3><title>Configuration Information</title>
190
191
192<para>If you wish to utilize a <application>FreeType</application> font,
193you need to link a <acronym>TTF</acronym>
194file to your <filename class="directory">~/.mplayer</filename> directory. For example:
195<screen><userinput><command>ln -sf /usr/X11R6/lib/X11/fonts/TTF/luxisri.ttf ~/.mplayer/subfont.ttf
196</command></userinput></screen>
197otherwise
198<screen><userinput><command>tar xjvf ../font-arial-iso-8859-1.tar.bz2 -C /usr/share/mplayer/font &amp;&amp;
199cd /usr/share/mplayer/font &amp;&amp;
200ln -sf font-arial-iso-8859-1/font-arial-<replaceable>[font size]</replaceable>-iso-8859-1/* .</command></userinput></screen>
201You can chose your font size of 14, 18, 24 or 28.
202</para>
203
204<para>Set the proper ownership for <acronym>CODEC</acronym>s, skins and fonts:</para>
205
206<screen><userinput><command>chown -R root:root <replaceable>[CODECs location]</replaceable> &amp;&amp;
207chown -R root:root /usr/share/mplayer</command></userinput></screen>
208
209<para>Optionally, set up the <acronym>GUI</acronym> with the following commands:</para>
210
211<screen><userinput><command>cat &gt; /etc/mplayer/mplayer.conf &lt;&lt; "EOF"</command>
212gui = yes
213skin = default
214<command>EOF</command></userinput></screen>
215
216<para>The first line, <userinput>gui = yes</userinput>, will make
217MPlayer start in <acronym>GUI</acronym> mode automatically. If you want to decide whether to start
218in <acronym>GUI</acronym> mode or not, leave that line out and start
219<command>mplayer</command> with
220<option>-gui</option> or as <command>gmplayer</command> (e.g.,
221when starting from a Window Manager menu or command prompt). Note that
222the main configuration file is called <filename>config</filename> if it
223is placed in the <filename class="directory">~/.mplayer</filename> directory.</para>
224
225</sect3>
226
227</sect2>
228
229<sect2>
230<title>Contents</title>
231
232<para>The <application>MPlayer</application> package contains <command>mplayer</command>,
233<command>gmplayer</command> and <command>mencoder</command>.</para>
234
235</sect2>
236
237<sect2><title>Description</title>
238
239<sect3><title>mplayer</title>
240<para><command>mplayer</command> manages the input formats, the
241<acronym>CODEC</acronym>s and the output
242formats to play video files, <acronym>DVD</acronym>s,
243(S)<acronym>VCD</acronym>s or network streams containing
244audio and/or video information on your system.</para>
245<para>Examples:</para>
246
247<screen><command>mplayer -fs blfs.avi
248mplayer -vo fbdev -fb /dev/fb0 dvd://1 -aid 128 -sub en -framedrop
249mplayer -fs vcd://1 # works both for VCDs and SVCDs
250mplayer http://www.students.uni-marburg.de/~Klossa/hapkidofight_lo.mpg</command></screen>
251
252<para>For further information, look at the very good
253documentation included with the package in the source tree subdirectory <filename
254class="directory">DOCS/</filename>.
255</para></sect3>
256
257<sect3><title>gmplayer</title>
258<para><command>gmplayer</command> is <application>MPlayer</application> with a graphical user interface.</para></sect3>
259
260<sect3><title>mencoder</title>
261<para><command>mencoder</command> is used to encode any
262<application>MPlayer</application> playable movie to DivX4,
263<application>XviD</application> or any <acronym>CODEC</acronym> in libavcodec with
264<acronym>PCM</acronym>/MP3/VBRMP3 audio.</para>
265
266<para>Example:</para>
267
268<screen><userinput><command>rm frameno.avi
269mencoder -dvd 1 -aid 128 -ovc frameno -oac mp3lame \
270-lameopts vbr=3 -o frameno.avi</command>
271
272# mencoder should output bitrates for average encodings
273# now, choose one you like best! In the following lines,
274# replace &lt;bitrate&gt; and &lt;name.avi&gt; with statements of your
275# personal liking.
276
277<command>mencoder -dvd 1 -aid 128 -oac copy -ovc lavc \
278-lavcopts vcodec=mpeg4:vpass=1:vhq:vbitrate=&lt;bitrate&gt; -o &lt;name.avi&gt;
279mencoder -dvd 1 -aid 128 -oac copy -ovc lavc \
280-lavcopts vcodec=mpeg4:vpass=2:vhq:vbitrate=&lt;bitrate&gt; -o &lt;name.avi&gt;
281mencoder -forceidx &lt;name.avi&gt;</command></userinput></screen>
282</sect3>
283
284</sect2>
285
286</sect1>
287
Note: See TracBrowser for help on using the repository browser.