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
|
---|
25 | play almost every audio and video <acronym>CODEC</acronym> and can be
|
---|
26 | controlled via the command
|
---|
27 | line 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
|
---|
41 | url="http://www1.mplayerhq.hu/MPlayer/releases/codecs/extralite.tar.bz2"/></para></listitem>
|
---|
42 | <listitem><para>Default <acronym>GUI</acronym> skin: <ulink
|
---|
43 | url="http://www1.mplayerhq.hu/MPlayer/Skin/default-1.8.tar.bz2"/></para></listitem>
|
---|
44 | <listitem><para>Prerendered fonts: <ulink
|
---|
45 | url="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
|
---|
50 | find many more <acronym>CODEC</acronym>s, skins and fonts at <ulink
|
---|
51 | url="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>
|
---|
58 | X (<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,
|
---|
104 | extract them at some system-wide location (like <filename
|
---|
105 | class="directory">/usr/lib/mplayer/codecs</filename>) and add
|
---|
106 | <parameter>--with-codecsdir=<replaceable>[location]</replaceable></parameter>
|
---|
107 | option to the configure script.</para>
|
---|
108 |
|
---|
109 | <note><para>The package maintainers recommend building without any
|
---|
110 | optimizations.</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 &&
|
---|
116 | make &&
|
---|
117 | make install &&
|
---|
118 | make -C libavcodec/libpostproc install</command></userinput></screen>
|
---|
119 |
|
---|
120 | <para>You will need <filename>codecs.conf</filename> only if you want to
|
---|
121 | change its properties, as the main binary contains an internal copy of
|
---|
122 | it:</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
|
---|
128 | one to the recommended location:</para>
|
---|
129 |
|
---|
130 | <screen><userinput><command>install -d /usr/share/mplayer/Skin &&
|
---|
131 | tar 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
|
---|
138 | from 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
|
---|
143 | device is appropriate, for example <filename>/dev/hdc</filename>. If
|
---|
144 | you 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,
|
---|
151 | ATAPI CD/DVD-ROM drive</userinput></screen>
|
---|
152 |
|
---|
153 | <para>If you have SCSI-Emulation activated for the drives, you'll need
|
---|
154 | to get the right SCSI-device. Every CD/DVD-ROM drive is mapped in the
|
---|
155 | same 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
|
---|
167 | building of a shared <filename
|
---|
168 | class="libraryfile">libpostproc</filename> (library for post processing, featuring
|
---|
169 | filters like sharpen).</para>
|
---|
170 |
|
---|
171 | <para><option>--enable-gui</option>: This switch tells
|
---|
172 | <application>MPlayer</application> to compile the <acronym>GUI</acronym>
|
---|
173 | code (requires <xref linkend="GTK"/>).</para>
|
---|
174 |
|
---|
175 | <para><option>--enable-menu</option>: This
|
---|
176 | switch enables the new menu support. It's like an
|
---|
177 | <acronym>OSD</acronym>, but you can
|
---|
178 | also 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,
|
---|
193 | you need to link a <acronym>TTF</acronym>
|
---|
194 | file 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>
|
---|
197 | otherwise
|
---|
198 | <screen><userinput><command>tar xjvf ../font-arial-iso-8859-1.tar.bz2 -C /usr/share/mplayer/font &&
|
---|
199 | cd /usr/share/mplayer/font &&
|
---|
200 | ln -sf font-arial-iso-8859-1/font-arial-<replaceable>[font size]</replaceable>-iso-8859-1/* .</command></userinput></screen>
|
---|
201 | You 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> &&
|
---|
207 | chown -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 > /etc/mplayer/mplayer.conf << "EOF"</command>
|
---|
212 | gui = yes
|
---|
213 | skin = default
|
---|
214 | <command>EOF</command></userinput></screen>
|
---|
215 |
|
---|
216 | <para>The first line, <userinput>gui = yes</userinput>, will make
|
---|
217 | MPlayer start in <acronym>GUI</acronym> mode automatically. If you want to decide whether to start
|
---|
218 | in <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.,
|
---|
221 | when starting from a Window Manager menu or command prompt). Note that
|
---|
222 | the main configuration file is called <filename>config</filename> if it
|
---|
223 | is 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
|
---|
242 | formats to play video files, <acronym>DVD</acronym>s,
|
---|
243 | (S)<acronym>VCD</acronym>s or network streams containing
|
---|
244 | audio and/or video information on your system.</para>
|
---|
245 | <para>Examples:</para>
|
---|
246 |
|
---|
247 | <screen><command>mplayer -fs blfs.avi
|
---|
248 | mplayer -vo fbdev -fb /dev/fb0 dvd://1 -aid 128 -sub en -framedrop
|
---|
249 | mplayer -fs vcd://1 # works both for VCDs and SVCDs
|
---|
250 | mplayer http://www.students.uni-marburg.de/~Klossa/hapkidofight_lo.mpg</command></screen>
|
---|
251 |
|
---|
252 | <para>For further information, look at the very good
|
---|
253 | documentation included with the package in the source tree subdirectory <filename
|
---|
254 | class="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
|
---|
269 | mencoder -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 <bitrate> and <name.avi> 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=<bitrate> -o <name.avi>
|
---|
279 | mencoder -dvd 1 -aid 128 -oac copy -ovc lavc \
|
---|
280 | -lavcopts vcodec=mpeg4:vpass=2:vhq:vbitrate=<bitrate> -o <name.avi>
|
---|
281 | mencoder -forceidx <name.avi></command></userinput></screen>
|
---|
282 | </sect3>
|
---|
283 |
|
---|
284 | </sect2>
|
---|
285 |
|
---|
286 | </sect1>
|
---|
287 |
|
---|