2003-03-23 23:35:12 +00:00
|
|
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
2003-09-21 13:05:42 +00:00
|
|
|
<!-- $Revision$ -->
|
2006-01-05 23:32:18 +00:00
|
|
|
<chapter id="install">
|
2003-03-23 23:35:12 +00:00
|
|
|
<title>Installation</title>
|
|
|
|
|
2003-10-29 00:22:07 +00:00
|
|
|
<para>
|
|
|
|
A quick installation guide can be found in the <filename>README</filename>
|
|
|
|
file. Please read it first and then come back here for the rest of the gory
|
|
|
|
details.
|
|
|
|
</para>
|
|
|
|
|
2003-03-23 23:35:12 +00:00
|
|
|
<para>
|
|
|
|
In this section I'll try to guide you through the compiling and configuring
|
|
|
|
process of <application>MPlayer</application>. It's not easy, but it won't
|
|
|
|
necessarily be hard. If you experience a different behavior than what I
|
|
|
|
explain, please search through this documentation and you'll find your
|
|
|
|
answers. If you see links, please follow them and read carefully what they
|
2003-03-24 17:24:25 +00:00
|
|
|
contain. It will take some time, but it IS worth it.
|
2003-03-23 23:35:12 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
You need a fairly recent system. On Linux, 2.4.x kernels are recommended.
|
|
|
|
</para>
|
|
|
|
|
2006-01-05 23:32:18 +00:00
|
|
|
<sect1 id="softreq">
|
2003-03-23 23:35:12 +00:00
|
|
|
<title>Software requirements</title>
|
|
|
|
|
|
|
|
<itemizedlist>
|
|
|
|
<listitem><para>
|
|
|
|
<emphasis role="bold">binutils</emphasis> - suggested version is <emphasis role="bold">2.11.x</emphasis>.
|
|
|
|
This program is responsible for generating MMX/ 3DNow!/etc instructions,
|
|
|
|
thus very important.
|
|
|
|
</para></listitem>
|
|
|
|
<listitem><para>
|
|
|
|
<emphasis role="bold">gcc</emphasis> - suggested versions are: <emphasis role="bold">2.95.3</emphasis>
|
|
|
|
(maybe <emphasis role="bold">2.95.4</emphasis>) and <emphasis role="bold">3.2+</emphasis>.
|
|
|
|
<emphasis role="bold">Never</emphasis> use 2.96 or 3.0.x! They generate faulty code for
|
2003-05-19 17:18:05 +00:00
|
|
|
<application>MPlayer</application>. If you decide to change gcc from
|
|
|
|
2.96, then don't decide in favor of 3.x just because it's newer! Early
|
|
|
|
releases of 3.x were even more buggy than 2.96. So downgrade to 2.95.x
|
2003-03-23 23:35:12 +00:00
|
|
|
(downgrade <systemitem class="library">libstdc++</systemitem> too, other
|
|
|
|
programs may need it) or don't up/downgrade at all (but in this case, be
|
2003-05-19 17:18:05 +00:00
|
|
|
prepared for runtime problems). If you vote for 3.x, try to use the
|
2003-03-23 23:35:12 +00:00
|
|
|
latest version, early releases had various bugs, so be sure you use at
|
|
|
|
least 3.1, it's tested and working. For detailed information about gcc 2.96's
|
|
|
|
bugs (that are still NOT fixed, they have been WORKED AROUND in
|
|
|
|
<application>MPlayer</application>!),see the <link linkend="gcc-296">gcc 2.96</link>
|
|
|
|
section and the <xref linkend="faq"/>.
|
|
|
|
</para></listitem>
|
|
|
|
<listitem><para>
|
|
|
|
<emphasis role="bold">XFree86</emphasis> - suggested version is <emphasis role="bold">always the
|
2003-05-19 17:18:05 +00:00
|
|
|
newest</emphasis> (4.3). Normally, everyone wants this, as starting
|
2003-03-23 23:35:12 +00:00
|
|
|
with XFree86 4.0.2, it contains the <link linkend="xv">XVideo</link>
|
|
|
|
extension (somewhere referred to as <emphasis role="bold">Xv</emphasis>)
|
|
|
|
which is needed to enable the hardware YUV acceleration (fast image display)
|
|
|
|
on cards that support it.
|
|
|
|
Make sure its <emphasis role="bold">development package</emphasis> is installed,
|
|
|
|
too, otherwise it won't work.
|
|
|
|
For some video cards you don't need XFree86. See list below.
|
|
|
|
</para></listitem>
|
|
|
|
<listitem><para>
|
|
|
|
<emphasis role="bold">make</emphasis> - suggested version is
|
|
|
|
<emphasis role="bold">always the newest</emphasis> (at least 3.79.x). This
|
|
|
|
usually isn't important.
|
|
|
|
</para></listitem>
|
|
|
|
<listitem><para>
|
|
|
|
<emphasis role="bold">SDL</emphasis> - it's not mandatory, but can help in
|
|
|
|
some cases (bad audio, video cards that lag strangely with the xv driver).
|
|
|
|
Always use the newest (beginning from 1.2.x).
|
|
|
|
</para></listitem>
|
|
|
|
<listitem><para>
|
|
|
|
<emphasis role="bold">libjpeg</emphasis> - optional JPEG decoder, used by the <option>-mf</option>
|
2003-10-30 00:21:31 +00:00
|
|
|
option and some QT MOV files. Useful for both <application>MPlayer</application>
|
|
|
|
and <application>MEncoder</application> if
|
2003-03-23 23:35:12 +00:00
|
|
|
you plan to work with jpeg files.
|
|
|
|
</para></listitem>
|
|
|
|
<listitem><para>
|
|
|
|
<emphasis role="bold">libpng</emphasis> - recommended and default (M)PNG decoder. Required for GUI.
|
|
|
|
Useful for both <application>MPlayer</application> and
|
|
|
|
<application>MEncoder</application>.
|
|
|
|
</para></listitem>
|
|
|
|
<listitem><para>
|
|
|
|
<emphasis role="bold">lame</emphasis> - recommended, needed for encoding MP3 audio with
|
|
|
|
<application>MEncoder</application>, suggested version is
|
|
|
|
<emphasis>always the newest</emphasis> (at least 3.90).
|
|
|
|
</para></listitem>
|
2003-10-30 00:21:31 +00:00
|
|
|
<listitem><para>
|
|
|
|
<emphasis role="bold">zlib</emphasis> - recommended, necessary for compressed
|
|
|
|
MOV header and PNG support.
|
|
|
|
</para></listitem>
|
2003-03-23 23:35:12 +00:00
|
|
|
<listitem><para>
|
|
|
|
<emphasis role="bold">libogg</emphasis> - optional, needed for playing OGG file format.
|
|
|
|
</para></listitem>
|
|
|
|
<listitem><para>
|
|
|
|
<emphasis role="bold">libvorbis</emphasis> - optional, needed for playing OGG Vorbis audio.
|
|
|
|
</para></listitem>
|
|
|
|
<listitem><para>
|
2006-01-22 16:26:42 +00:00
|
|
|
<emphasis role="bold"><ulink url="http://www.live555.com/mplayer/">LIVE555 Streaming Media</ulink></emphasis>
|
2003-03-23 23:35:12 +00:00
|
|
|
- optional, needed for playing RTSP/RTP streams.
|
|
|
|
</para></listitem>
|
|
|
|
<listitem><para>
|
|
|
|
<emphasis role="bold">directfb</emphasis> - optional, from
|
2004-11-26 05:37:27 +00:00
|
|
|
<ulink url="http://www.directfb.org"/>. At least 0.9.13 is required.
|
2003-03-23 23:35:12 +00:00
|
|
|
</para></listitem>
|
|
|
|
<listitem><para>
|
|
|
|
<emphasis role="bold">cdparanoia</emphasis> - optional, for CDDA support
|
|
|
|
</para></listitem>
|
|
|
|
<listitem><para>
|
|
|
|
<emphasis role="bold">libfreetype</emphasis> - optional, for TTF fonts
|
|
|
|
support. At least 2.0.9 is required.
|
|
|
|
</para></listitem>
|
|
|
|
<listitem><para>
|
|
|
|
<emphasis role="bold">libxmms</emphasis> - optional, for XMMS input plugin
|
|
|
|
support. At least 1.2.7 is required.
|
|
|
|
</para></listitem>
|
2003-05-19 17:18:05 +00:00
|
|
|
<listitem><para>
|
|
|
|
<emphasis role="bold">libsmb</emphasis> - optional, for Samba support.
|
|
|
|
</para></listitem>
|
2005-01-02 22:44:35 +00:00
|
|
|
<listitem><para>
|
|
|
|
<emphasis role="bold">ALSA</emphasis> - optional, for ALSA audio output
|
|
|
|
support. At least 0.9.0rc4 is required.
|
|
|
|
</para></listitem>
|
2004-06-25 18:11:15 +00:00
|
|
|
<listitem><para>
|
|
|
|
<emphasis role="bold">bio2jack</emphasis> - optional, for JACK audio output
|
2004-07-14 09:05:47 +00:00
|
|
|
support, needed only in compile time. You can obtain it from
|
2004-06-25 18:11:15 +00:00
|
|
|
<ulink url="http://bio2jack.sf.net/">http://bio2jack.sf.net</ulink>. Since it
|
2004-07-14 09:05:47 +00:00
|
|
|
doesn't have install option you have to manually put the file
|
|
|
|
<filename>libbio2jack.a</filename> somewhere in your library path
|
|
|
|
(e.g. <filename>/usr/local/lib</filename>) or use the
|
|
|
|
<option>--with-bio2jack=DIR</option> switch to tell
|
2004-06-25 18:11:15 +00:00
|
|
|
<filename>./configure</filename> where that file is.
|
|
|
|
</para></listitem>
|
2003-03-23 23:35:12 +00:00
|
|
|
</itemizedlist>
|
2006-01-05 23:32:18 +00:00
|
|
|
</sect1>
|
2003-03-23 23:35:12 +00:00
|
|
|
|
|
|
|
|
2006-01-05 23:32:18 +00:00
|
|
|
<sect1 id="installation_codecs">
|
2003-03-23 23:35:12 +00:00
|
|
|
<title>Codecs</title>
|
|
|
|
|
|
|
|
<itemizedlist>
|
|
|
|
<listitem><para>
|
2004-01-21 19:25:18 +00:00
|
|
|
<emphasis role="bold"><systemitem class="library">libavcodec</systemitem></emphasis>:
|
|
|
|
This codec package is capable
|
2004-08-24 11:10:40 +00:00
|
|
|
of decoding H.263/MJPEG/RV10/DivX3/DivX4/DivX5/MP41/MP42/WMV1/WMV2/SVQ1/SVQ3 encoded video
|
2003-03-23 23:35:12 +00:00
|
|
|
streams and WMA (Windows Media Audio) v1/v2 audio streams, on multiple
|
2003-03-29 23:17:46 +00:00
|
|
|
platforms. It is also known to be the fastest for this task. See
|
2003-11-17 17:36:22 +00:00
|
|
|
<link linkend="ffmpeg">FFmpeg</link> section for details. Features:
|
2003-03-23 23:35:12 +00:00
|
|
|
<itemizedlist>
|
|
|
|
<listitem><simpara>
|
|
|
|
gain decoding of videos mentioned above, on non-x86 machines
|
|
|
|
</simpara></listitem>
|
|
|
|
<listitem><simpara>
|
|
|
|
encoding with most of the mentioned codecs
|
|
|
|
</simpara></listitem>
|
|
|
|
<listitem><simpara>
|
|
|
|
this codec is the <emphasis role="bold">fastest codec available</emphasis> for
|
2004-11-24 11:23:21 +00:00
|
|
|
DivX/3/4/5 and other MPEG-4 types. Recommended!
|
2003-03-23 23:35:12 +00:00
|
|
|
</simpara></listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
</para></listitem>
|
|
|
|
<listitem><para>
|
|
|
|
<emphasis role="bold">Win32 codecs</emphasis>: If you plan to use
|
|
|
|
<application>MPlayer</application> on x86 architecture, you will possibly need
|
2005-01-15 01:30:31 +00:00
|
|
|
them. Download a codec package from our
|
2006-03-01 10:01:43 +00:00
|
|
|
<ulink url="http://www.mplayerhq.hu/design7/codecs.html">codecs page</ulink>
|
2005-01-15 01:30:31 +00:00
|
|
|
and put the codecs in <filename class="directory">/usr/local/lib/codecs</filename>
|
2003-03-23 23:35:12 +00:00
|
|
|
<emphasis role="bold">BEFORE</emphasis> compiling <application>MPlayer</application>,
|
|
|
|
otherwise no Win32 support will be compiled!
|
|
|
|
<note><para>The avifile project has similar codecs package, but it
|
|
|
|
differs from ours, so if you want to use all supported codecs, then use
|
|
|
|
our package (do not worry, avifile works with it without problems).</para>
|
|
|
|
</note>
|
|
|
|
Features:
|
|
|
|
<itemizedlist>
|
|
|
|
<listitem><simpara>
|
|
|
|
you need this if you want to play or encode for example movies recorded
|
|
|
|
with various hardware compressors, like tuner cards, digital cameras
|
|
|
|
(example: DV, ATI VCR, MJPEG)
|
|
|
|
</simpara></listitem>
|
|
|
|
<listitem><simpara>
|
2003-05-19 17:18:05 +00:00
|
|
|
needed if you want to play <emphasis role="bold">WMV9/WMA9 movies</emphasis>.
|
2003-03-23 23:35:12 +00:00
|
|
|
</simpara></listitem>
|
|
|
|
<listitem><simpara>
|
|
|
|
Not needed for old ASF's with MP41 or MP42 video (though VoxWare audio is
|
|
|
|
frequent for these files - it's done by the Win32 codec), or WMV7. Also not
|
2004-01-21 19:25:18 +00:00
|
|
|
needed for WMA (Windows Media Audio),
|
|
|
|
<systemitem class="library">libavcodec</systemitem> has open source decoder
|
|
|
|
for that.
|
2003-03-23 23:35:12 +00:00
|
|
|
</simpara></listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
</para></listitem>
|
|
|
|
<listitem><para>
|
|
|
|
<emphasis role="bold">QuickTime codecs</emphasis>: on x86 platforms these
|
2003-05-19 17:18:05 +00:00
|
|
|
codecs can be used to decode RPZA, and other QuickTime video,
|
2003-03-23 23:35:12 +00:00
|
|
|
and QDesign audio streams. Installation instructions can be found in the
|
|
|
|
<link linkend="sorenson">Sorenson video codec</link> section.
|
|
|
|
</para></listitem>
|
|
|
|
<listitem><para>
|
|
|
|
<emphasis role="bold">DivX4/DivX5</emphasis>: information about this codec is
|
2003-11-16 19:55:53 +00:00
|
|
|
available in the <link linkend="divx4-5">DivX4/DivX5</link> section. You possibly
|
2004-01-21 19:25:18 +00:00
|
|
|
don't want this codec as
|
|
|
|
<emphasis role="bold"><systemitem class="library">libavcodec</systemitem></emphasis>
|
|
|
|
(see above) is much faster and has better quality than this, for both decoding
|
2003-03-23 23:35:12 +00:00
|
|
|
and encoding. Features:
|
|
|
|
<itemizedlist>
|
|
|
|
<listitem><simpara>
|
2005-01-07 22:33:01 +00:00
|
|
|
one pass or two pass encoding with
|
2003-11-30 13:07:40 +00:00
|
|
|
<link linkend="mencoder"><application>MEncoder</application></link>
|
2003-03-23 23:35:12 +00:00
|
|
|
</simpara></listitem>
|
|
|
|
<listitem><simpara>
|
|
|
|
can play old <emphasis role="bold">DivX3</emphasis> movies much faster than
|
2004-01-21 19:25:18 +00:00
|
|
|
the Win32 DLL but slower than
|
|
|
|
<emphasis role="bold"><systemitem class="library">libavcodec</systemitem></emphasis>!
|
2003-03-23 23:35:12 +00:00
|
|
|
</simpara></listitem>
|
|
|
|
<listitem><simpara>
|
|
|
|
it's closed-source, and only a x86 version is available.
|
|
|
|
</simpara></listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
</para></listitem>
|
|
|
|
<listitem><para>
|
|
|
|
<emphasis role="bold">XviD</emphasis>: Open source encoding alternative to
|
2004-01-06 22:19:12 +00:00
|
|
|
DivX4Linux. Features:
|
2003-03-23 23:35:12 +00:00
|
|
|
<itemizedlist>
|
|
|
|
<listitem><simpara>
|
2005-01-07 22:33:01 +00:00
|
|
|
one pass or two pass encoding with
|
2003-11-30 13:07:40 +00:00
|
|
|
<link linkend="mencoder"><application>MEncoder</application></link>
|
2003-03-23 23:35:12 +00:00
|
|
|
</simpara></listitem>
|
|
|
|
<listitem><simpara>
|
|
|
|
it's open-source, so it's multiplatform.
|
|
|
|
</simpara></listitem>
|
|
|
|
<listitem><simpara>
|
2004-01-06 22:19:12 +00:00
|
|
|
it's about 2 times faster than divX4 when encoding - about the same
|
2003-03-23 23:35:12 +00:00
|
|
|
quality
|
|
|
|
</simpara></listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
</para></listitem>
|
|
|
|
<listitem><para>
|
|
|
|
The <emphasis role="bold"><link linkend="xanim">XAnim codecs</link></emphasis>
|
|
|
|
are the best (full screen, hardware YUV zoom) for decoding
|
|
|
|
<emphasis role="bold">3ivx</emphasis> and Indeo 3/4/5 movies, and some old
|
|
|
|
formats. And they are multiplatform, so this is the only way to play Indeo on
|
|
|
|
non-x86 platforms (well, apart from using XAnim:). But for example Cinepak movies
|
|
|
|
are best played with <application>MPlayer</application>'s own Cinepak decoder!
|
|
|
|
</para></listitem>
|
|
|
|
<listitem><para>
|
|
|
|
For <emphasis role="bold">Ogg Vorbis</emphasis> audio decoding you need to
|
2004-12-07 00:16:42 +00:00
|
|
|
install <systemitem class="library">libvorbis</systemitem> properly.
|
|
|
|
You can get binary packages and source code from the
|
|
|
|
<ulink url="http://www.vorbis.com/download.psp">Ogg Vorbis site</ulink>.
|
2003-03-23 23:35:12 +00:00
|
|
|
</para></listitem>
|
|
|
|
<listitem><para>
|
|
|
|
<application>MPlayer</application> can use the libraries of RealPlayer 8
|
2004-06-10 23:39:08 +00:00
|
|
|
or RealONE to play files with
|
|
|
|
<emphasis role="bold">RealVideo 3.0 and 4.0</emphasis>
|
|
|
|
video, and Sipro/Cook audio. See the
|
|
|
|
<link linkend="realmedia">RealMedia file format</link>
|
2003-03-23 23:35:12 +00:00
|
|
|
section for installation instructions and more information.
|
|
|
|
</para></listitem>
|
|
|
|
</itemizedlist>
|
2006-01-05 23:32:18 +00:00
|
|
|
</sect1>
|
2003-03-23 23:35:12 +00:00
|
|
|
|
|
|
|
|
2006-01-05 23:32:18 +00:00
|
|
|
<sect1 id="video-cards">
|
2003-03-23 23:35:12 +00:00
|
|
|
<title>Video cards</title>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
There are generally two kind of video cards. One kind (the newer cards) has
|
|
|
|
<emphasis role="bold">hardware scaling and YUV acceleration</emphasis> support,
|
|
|
|
the other cards don't.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
|
2006-01-05 23:32:18 +00:00
|
|
|
<sect2 id="yuv-cards">
|
2003-03-23 23:35:12 +00:00
|
|
|
<title>YUV cards</title>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
They can display and scale (zoom) the picture to any size that fits in
|
|
|
|
their memory, with <emphasis role="bold">small CPU usage</emphasis> (even when
|
|
|
|
zooming), thus fullscreen is nice and very fast.
|
2004-07-14 09:05:47 +00:00
|
|
|
|
2003-03-23 23:35:12 +00:00
|
|
|
<itemizedlist>
|
|
|
|
<listitem><para>
|
|
|
|
<emphasis role="bold">Matrox G200/G400/G450/G550 cards</emphasis>: although a
|
|
|
|
<link linkend="vidix">Vidix driver</link> is provided, it is recommended to
|
|
|
|
use the mga_vid module instead, for it works much better.
|
|
|
|
Please see the <link linkend="mga_vid">mga_vid</link> section about its
|
|
|
|
installation and usage. It is important to do these steps
|
|
|
|
<emphasis>before</emphasis> compiling <application>MPlayer</application>,
|
|
|
|
otherwise no mga_vid support will be built. Also check out the
|
2003-11-05 15:59:07 +00:00
|
|
|
<link linkend="tvout-mga-g400">Matrox TV-out</link> section.
|
2003-03-23 23:35:12 +00:00
|
|
|
<emphasis role="bold"> If you don't use Linux</emphasis>, your only
|
2003-03-24 21:36:20 +00:00
|
|
|
possibility is the VIDIX driver: read the <link linkend="vidix">VIDIX</link> section.
|
2003-03-23 23:35:12 +00:00
|
|
|
</para></listitem>
|
|
|
|
<listitem><para>
|
|
|
|
<emphasis role="bold">3Dfx Voodoo3/Banshee cards</emphasis>: please see
|
|
|
|
<link linkend="tdfxfb">tdfxfb</link> section in order to gain big speedup.
|
|
|
|
It is important to do these steps <emphasis role="bold">before</emphasis>
|
|
|
|
compiling <application>MPlayer</application>, otherwise no 3Dfx support will be
|
2003-11-16 19:55:53 +00:00
|
|
|
built. Also see the <link linkend="tvout-voodoo">3dfx TV-out</link> section.
|
2003-03-23 23:35:12 +00:00
|
|
|
If you use X, use at least <emphasis role="bold">4.2.0</emphasis>, as 3dfx Xv
|
|
|
|
driver was broken in 4.1.0, and earlier releases.
|
|
|
|
</para></listitem>
|
|
|
|
<listitem><para>
|
|
|
|
<emphasis role="bold">ATI cards</emphasis>: <link linkend="vidix">VIDIX</link>
|
|
|
|
driver is provided for the following cards:
|
|
|
|
<emphasis role="bold">Radeon, Rage128, Mach64</emphasis> (Rage XL/Mobility, Xpert98).
|
2003-11-16 19:55:53 +00:00
|
|
|
Also see the <link linkend="tvout-ati">ATI cards</link> section of the TV-out documentation,
|
2003-03-23 23:35:12 +00:00
|
|
|
to know if you card's TV-out is supported under Linux/<application>MPlayer</application>.
|
|
|
|
</para></listitem>
|
|
|
|
<listitem><para>
|
|
|
|
<emphasis role="bold">S3 cards</emphasis>: the Savage and Virge/DX chips have
|
|
|
|
hardware acceleration. Use as new XFree86 version as possible, older drivers are
|
2003-11-16 19:55:53 +00:00
|
|
|
buggy. Savage chips have problems with YV12 display, see <link linkend="s3">S3 Xv</link>
|
|
|
|
section for details. Older, Trio cards have no, or slow hardware support.
|
2003-03-23 23:35:12 +00:00
|
|
|
</para></listitem>
|
|
|
|
<listitem><para>
|
2003-03-24 21:36:20 +00:00
|
|
|
<emphasis role="bold">nVidia cards</emphasis>: may or may not be good choice for video playing.
|
2003-03-23 23:35:12 +00:00
|
|
|
If you do not have a GeForce2 (or newer) card, it's not likely to work without bugs.
|
2003-03-24 21:36:20 +00:00
|
|
|
<emphasis role="bold">the built-in nVidia driver in XFree86 does not support
|
|
|
|
hardware YUV acceleration on all nVidia cards.</emphasis> You have
|
2004-07-14 09:05:47 +00:00
|
|
|
to download nVidia's closed-source drivers from <ulink url="http://nvidia.com">nVidia.com</ulink>.
|
2003-11-15 00:51:35 +00:00
|
|
|
See the <link linkend="nvidia">nVidia Xv driver</link> section for details. Please also check
|
2003-11-16 19:55:53 +00:00
|
|
|
the <link linkend="tvout-nvidia">nVidia TV-out</link> section if you wish to
|
2003-03-23 23:35:12 +00:00
|
|
|
use a TV.
|
|
|
|
</para></listitem>
|
|
|
|
<listitem><para>
|
|
|
|
<emphasis role="bold">3DLabs GLINT R3 and Permedia3</emphasis>: a VIDIX driver
|
|
|
|
is provided (pm3_vid). Please see the <link linkend="vidix">VIDIX</link> section
|
|
|
|
for details.
|
|
|
|
</para></listitem>
|
|
|
|
<listitem><para>
|
|
|
|
<emphasis role="bold">Other cards</emphasis>: none of the above?
|
|
|
|
<itemizedlist>
|
|
|
|
<listitem><simpara>
|
|
|
|
Try if the XFree86 driver (and your card) supports hardware
|
2003-11-16 19:55:53 +00:00
|
|
|
acceleration. See the <link linkend="xv">Xv</link> section for details.
|
2003-03-23 23:35:12 +00:00
|
|
|
</simpara></listitem>
|
|
|
|
<listitem><simpara>
|
|
|
|
If it doesn't, then your card's video features aren't supported under
|
2003-03-24 21:36:20 +00:00
|
|
|
your operating system :( If hardware scaling works under Windows, it
|
|
|
|
doesn't mean it will work under Linux or other operating system, it depends on
|
|
|
|
the drivers. Most manufacturers neither make Linux drivers nor release
|
|
|
|
specifications of their chips - so you are unlucky if using their cards.
|
2003-03-23 23:35:12 +00:00
|
|
|
See <xref linkend="non-yuv-cards"/>.
|
|
|
|
</simpara></listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
</para></listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
</para>
|
2006-01-05 23:32:18 +00:00
|
|
|
</sect2>
|
2003-03-23 23:35:12 +00:00
|
|
|
|
|
|
|
|
2006-01-05 23:32:18 +00:00
|
|
|
<sect2 id="non-yuv-cards" xreflabel="Non-YUV cards">
|
2003-03-23 23:35:12 +00:00
|
|
|
<title>Non-YUV cards</title>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Fullscreen playing can be achieved by either enabling <emphasis role="bold">
|
2003-03-24 21:36:20 +00:00
|
|
|
software scaling</emphasis> (use the <option>-zoom</option> or <option>-vf</option> option,
|
2003-11-20 18:15:47 +00:00
|
|
|
but I warn you: this is slow), or switching to a smaller video mode, for example
|
2003-03-23 23:35:12 +00:00
|
|
|
352x288. If you don't have YUV acceleration, this latter method is recommended.
|
|
|
|
Video mode switching can be enabled by using the <option>-vm</option> option and
|
|
|
|
it works with the following drivers:
|
|
|
|
<itemizedlist>
|
|
|
|
<listitem><simpara>
|
|
|
|
<emphasis role="bold">using</emphasis> XFree86: see details in <link linkend="dga">DGA driver</link> and
|
|
|
|
<link linkend="x11">X11 driver</link> sections. DGA is recommended! Also
|
|
|
|
try DGA via SDL, sometimes it's better.
|
|
|
|
</simpara></listitem>
|
|
|
|
<listitem><simpara>
|
|
|
|
<emphasis role="bold">not using</emphasis> XFree86: try the drivers in the
|
|
|
|
following order:
|
|
|
|
<link linkend="vesa">vesa</link>,
|
|
|
|
<link linkend="fbdev">fbdev</link>,
|
|
|
|
<link linkend="svgalib">svgalib</link>,
|
|
|
|
<link linkend="aalib">aalib</link>.
|
|
|
|
</simpara></listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
</para>
|
2006-01-05 23:32:18 +00:00
|
|
|
</sect2>
|
2003-03-23 23:35:12 +00:00
|
|
|
|
|
|
|
<!-- FIXME: find a more logical organization for this section -->
|
2006-01-05 23:32:18 +00:00
|
|
|
<sect2 id="cirrus-logic-cards" xreflabel="Cirrus-Logic cards">
|
2003-03-23 23:35:12 +00:00
|
|
|
<title>Cirrus-Logic cards</title>
|
|
|
|
<itemizedlist>
|
|
|
|
<listitem><para>
|
|
|
|
GD 7548: present on-board and tested in Compaq Armada 41xx notebook series.
|
|
|
|
<itemizedlist>
|
|
|
|
<listitem><simpara>
|
|
|
|
XFree86 3: works in 8/16bpp modes. However, the driver is dramatically slow
|
|
|
|
and buggy in 800x600@16bpp. <emphasis role="bold">Recommended: 640x480@16bpp</emphasis>
|
|
|
|
</simpara></listitem>
|
|
|
|
<listitem><simpara>
|
|
|
|
XFree86 4: the Xserver freezes soon after start unless acceleration is
|
|
|
|
disabled, but then the whole thing gets slower than XFree86 3. No XVideo.
|
|
|
|
</simpara></listitem>
|
|
|
|
<listitem><simpara>
|
|
|
|
FBdev: framebuffer can be turned on with the <systemitem>clgenfb</systemitem>
|
|
|
|
driver in the kernel, though for me it worked only in 8bpp, thus unusable.
|
|
|
|
The clgenfb source had to be extended with the 7548 ID before compilation.
|
|
|
|
</simpara></listitem>
|
|
|
|
<listitem><simpara>
|
|
|
|
VESA: the card is only VBE 1.2 capable, so VESA output can't be used. Can't
|
|
|
|
be workarounded with UniVBE.
|
|
|
|
</simpara></listitem>
|
|
|
|
<listitem><simpara>
|
|
|
|
SVGAlib: detects an older Cirrus chip. Usable but slow with
|
|
|
|
<option>-bpp 8</option>.
|
|
|
|
</simpara></listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
</para></listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
</sect2>
|
2006-01-05 23:32:18 +00:00
|
|
|
</sect1>
|
2003-03-23 23:35:12 +00:00
|
|
|
|
|
|
|
|
2006-01-05 23:32:18 +00:00
|
|
|
<sect1 id="sound-cards">
|
2003-03-23 23:35:12 +00:00
|
|
|
<title>Sound cards</title>
|
|
|
|
|
|
|
|
<itemizedlist>
|
|
|
|
<listitem><simpara>
|
|
|
|
<emphasis role="bold">Soundblaster Live!</emphasis>: with this card you can use
|
2003-03-24 21:36:20 +00:00
|
|
|
4 or 6 (<emphasis role="bold">5.1</emphasis>) channels AC3 decoding instead of 2. Read the
|
2003-03-23 23:35:12 +00:00
|
|
|
<link linkend="swac3">Software AC3 decoding</link> section. For hardware AC3
|
2003-03-24 21:36:20 +00:00
|
|
|
passthrough you <emphasis role="bold">must</emphasis> use ALSA 0.9 with OSS emulation!
|
2003-03-23 23:35:12 +00:00
|
|
|
</simpara></listitem>
|
|
|
|
<listitem><simpara>
|
2004-05-01 12:03:03 +00:00
|
|
|
<emphasis role="bold">C-Media with S/PDIF out</emphasis>: hardware AC3
|
2003-03-23 23:35:12 +00:00
|
|
|
passthrough is possible with these cards, see
|
|
|
|
<link linkend="hwac3">Hardware AC3 decoding</link> section.
|
|
|
|
</simpara></listitem>
|
|
|
|
<listitem><simpara>
|
|
|
|
Features of <emphasis role="bold">other cards</emphasis> aren't supported by
|
|
|
|
<application>MPlayer</application>. <emphasis role="bold">It's very recommended
|
2004-11-11 02:09:15 +00:00
|
|
|
to read the <link linkend="audio">sound card</link> section!</emphasis>
|
2003-03-23 23:35:12 +00:00
|
|
|
</simpara></listitem>
|
|
|
|
</itemizedlist>
|
2006-01-05 23:32:18 +00:00
|
|
|
</sect1>
|
2003-03-23 23:35:12 +00:00
|
|
|
|
|
|
|
|
2006-01-05 23:32:18 +00:00
|
|
|
<sect1 id="features">
|
2003-03-23 23:35:12 +00:00
|
|
|
<title>Features</title>
|
|
|
|
|
|
|
|
<itemizedlist>
|
|
|
|
<listitem><para>
|
2003-11-16 19:55:53 +00:00
|
|
|
Decide if you need GUI. If you do, see the <link linkend="gui">GUI</link>
|
|
|
|
section before compiling.
|
2003-03-23 23:35:12 +00:00
|
|
|
</para></listitem>
|
|
|
|
<listitem><para>
|
|
|
|
If you want to install <application>MEncoder</application> (our great
|
2003-11-30 13:07:40 +00:00
|
|
|
all-purpose encoder), see the
|
|
|
|
<link linkend="mencoder"><application>MEncoder</application></link> section.
|
2003-03-23 23:35:12 +00:00
|
|
|
</para></listitem>
|
|
|
|
<listitem><para>
|
|
|
|
If you have a V4L compatible <emphasis role="bold">TV tuner</emphasis> card,
|
|
|
|
and wish to watch/grab and encode movies with <application>MPlayer</application>,
|
|
|
|
read the <link linkend="tv-input">TV input</link> section.
|
|
|
|
</para></listitem>
|
|
|
|
<listitem><para>
|
|
|
|
There is a neat <emphasis role="bold">OSD Menu</emphasis> support ready to be
|
|
|
|
used. Check the <link linkend="subosd">OSD menu</link> section.
|
|
|
|
</para></listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Then build <application>MPlayer</application>:
|
|
|
|
<screen>
|
|
|
|
./configure
|
|
|
|
make
|
|
|
|
make install</screen>
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
At this point, <application>MPlayer</application> is ready to use. The
|
|
|
|
directory <filename class="directory">$PREFIX/share/mplayer</filename>
|
|
|
|
contains the <filename>codecs.conf</filename> file, which is used to tell
|
2003-05-19 17:18:05 +00:00
|
|
|
the program all the codecs and their capabilities. This file is needed only
|
|
|
|
when you want to change its properties, as the main binary contains an internal
|
|
|
|
copy of it. Check if you have
|
2003-03-23 23:35:12 +00:00
|
|
|
<filename>codecs.conf</filename> in your home directory
|
|
|
|
(<filename>~/.mplayer/codecs.conf</filename>) left from old
|
|
|
|
<application>MPlayer</application> versions, and remove it.
|
|
|
|
</para>
|
|
|
|
|
2003-07-09 17:35:34 +00:00
|
|
|
<para>
|
|
|
|
Note that if you have a <filename>codecs.conf</filename> in
|
|
|
|
<filename>~/.mplayer/</filename>, the builtin and system
|
|
|
|
<filename>codecs.conf</filename> will be ignored completely.
|
2003-11-30 13:07:40 +00:00
|
|
|
Do not do this unless you want to fiddle with <application>MPlayer</application>
|
|
|
|
internals as this can can cause many problems. If you want to change the codecs
|
|
|
|
search order, use the <option>-vc</option>, <option>-ac</option>, <option>-vfm</option>,
|
2003-07-09 17:35:34 +00:00
|
|
|
or <option>-afm</option> options either on the command line or in your
|
|
|
|
config file (see the manual page).
|
|
|
|
</para>
|
|
|
|
|
|
|
|
|
2003-03-23 23:35:12 +00:00
|
|
|
<para>
|
|
|
|
Debian users can build a .deb package for themselves, it's very simple.
|
|
|
|
Just exec
|
|
|
|
<screen>fakeroot debian/rules binary</screen>
|
|
|
|
in <application>MPlayer</application>'s root directory. See
|
2003-10-26 14:58:17 +00:00
|
|
|
<link linkend="debian">Debian packaging</link> for detailed instructions.
|
2003-03-23 23:35:12 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
<emphasis role="bold">Always browse the output of</emphasis>
|
|
|
|
<filename>./configure</filename>, and the
|
|
|
|
<filename>configure.log</filename> file, they contain information about
|
|
|
|
what will be built, and what will not. You may also want to view
|
|
|
|
<filename>config.h</filename> and <filename>config.mak</filename> files.
|
|
|
|
If you have some libraries installed, but not detected by
|
|
|
|
<filename>./configure</filename>, then check if you also have the proper
|
|
|
|
header files (usually the -dev packages) and their version matches. The
|
|
|
|
<filename>configure.log</filename> file usually tells you what is missing.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Though not mandatory, the fonts should be installed in order to gain OSD,
|
|
|
|
and subtitle functionality. The recommended method is installing a TTF
|
2003-11-30 13:07:40 +00:00
|
|
|
font file and telling <application>MPlayer</application> to use it.
|
|
|
|
See the <link linkend="subosd">Subtitles and OSD</link> section for details.
|
2003-03-23 23:35:12 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
</sect1>
|
|
|
|
|
|
|
|
<!-- ********** -->
|
|
|
|
|
|
|
|
<sect1 id="gui">
|
|
|
|
<title>What about the GUI?</title>
|
|
|
|
|
|
|
|
<para>
|
2005-10-04 21:43:29 +00:00
|
|
|
The GUI needs GTK 1.2.x or GTK 2.0 (it isn't fully GTK, but the panels are).
|
|
|
|
The skins are stored in PNG format, so GTK, <systemitem class="library">libpng</systemitem>
|
2003-10-26 14:58:17 +00:00
|
|
|
(and their devel stuff, usually called <systemitem class="library">gtk-dev</systemitem>
|
2003-03-23 23:35:12 +00:00
|
|
|
and <systemitem class="library">libpng-dev</systemitem>) has to be installed.
|
|
|
|
You can build it by specifying <option>--enable-gui</option> during
|
2003-04-26 22:52:46 +00:00
|
|
|
<filename>./configure</filename>. Then, to turn on GUI mode, you have to
|
|
|
|
execute the <command>gmplayer</command> binary.
|
2003-03-23 23:35:12 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Currently you can't use the <option>-gui</option> option on the command
|
|
|
|
line, due to technical reasons.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
As <application>MPlayer</application> doesn't have a skin included, you
|
|
|
|
have to download them if you want to use the GUI. See the <ulink
|
2006-03-01 10:01:43 +00:00
|
|
|
url="http://www.mplayerhq.hu/dload.html">download page</ulink>.
|
2003-03-23 23:35:12 +00:00
|
|
|
They should be extracted to the usual system-wide directory (<filename
|
2006-03-27 11:39:27 +00:00
|
|
|
class="directory">$PREFIX/share/mplayer/skins</filename>), or to <filename
|
|
|
|
class="directory">$HOME/.mplayer/skins</filename>.
|
2003-03-23 23:35:12 +00:00
|
|
|
<application>MPlayer</application> by default looks in these directories
|
|
|
|
for a directory named <filename class="directory">default</filename>, but
|
|
|
|
you can use the <option>-skin <replaceable>newskin</replaceable></option>
|
|
|
|
option, or the <literal>skin=newskin</literal> config file directive to use
|
2006-03-27 11:39:27 +00:00
|
|
|
the skin in <filename class="directory">*/skins/newskin</filename>
|
2003-03-23 23:35:12 +00:00
|
|
|
directory.
|
|
|
|
</para>
|
|
|
|
</sect1>
|
|
|
|
|
|
|
|
<!-- ********** -->
|
|
|
|
|
|
|
|
<sect1 id="subosd">
|
|
|
|
<title>Subtitles and OSD</title>
|
|
|
|
|
|
|
|
<para>
|
2003-11-30 13:07:40 +00:00
|
|
|
<application>MPlayer</application> can display subtitles along with movie files.
|
|
|
|
Currently the following formats are supported:
|
2003-03-23 23:35:12 +00:00
|
|
|
<itemizedlist>
|
2004-06-21 12:47:41 +00:00
|
|
|
<listitem><para>VOBsub</para></listitem>
|
2003-03-23 23:35:12 +00:00
|
|
|
<listitem><para>OGM</para></listitem>
|
|
|
|
<listitem><para>CC (closed caption)</para></listitem>
|
2003-12-26 15:06:04 +00:00
|
|
|
<listitem><para>MicroDVD</para></listitem>
|
2003-03-23 23:35:12 +00:00
|
|
|
<listitem><para>SubRip</para></listitem>
|
|
|
|
<listitem><para>SubViewer</para></listitem>
|
|
|
|
<listitem><para>Sami</para></listitem>
|
|
|
|
<listitem><para>VPlayer</para></listitem>
|
|
|
|
<listitem><para>RT</para></listitem>
|
|
|
|
<listitem><para>SSA</para></listitem>
|
2004-01-16 18:04:42 +00:00
|
|
|
<listitem><para>PJS (Phoenix Japanimation Society)</para></listitem>
|
2003-03-23 23:35:12 +00:00
|
|
|
<listitem><para><link linkend="mpsub">MPsub</link></para></listitem>
|
|
|
|
<listitem><para>AQTitle</para></listitem>
|
2003-06-11 00:39:50 +00:00
|
|
|
<listitem><para><ulink url="http://unicorn.us.com/jacosub/">JACOsub</ulink></para></listitem>
|
2003-03-23 23:35:12 +00:00
|
|
|
</itemizedlist>
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
2003-11-30 13:07:40 +00:00
|
|
|
<application>MPlayer</application> can dump the previously listed subtitle formats
|
2003-03-23 23:35:12 +00:00
|
|
|
(<emphasis role="bold">except the three first</emphasis>) into the following
|
|
|
|
destination formats, with the given options:
|
|
|
|
<itemizedlist>
|
|
|
|
<listitem><para>MPsub: <option>-dumpmpsub</option></para></listitem>
|
|
|
|
<listitem><para>SubRip: <option>-dumpsrtsub</option></para></listitem>
|
2003-12-26 15:06:04 +00:00
|
|
|
<listitem><para>MicroDVD: <option>-dumpmicrodvdsub</option></para></listitem>
|
2003-03-23 23:35:12 +00:00
|
|
|
<listitem><para>JACOsub: <option>-dumpjacosub</option></para></listitem>
|
|
|
|
<listitem><para>Sami: <option>-dumpsami</option></para></listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
</para>
|
|
|
|
|
2003-05-19 17:18:05 +00:00
|
|
|
<para>
|
2003-11-30 13:07:40 +00:00
|
|
|
<application>MEncoder</application> can dump DVD subtitles into
|
2004-06-21 12:47:41 +00:00
|
|
|
<link linkend="menc-feat-extractsub">VOBsub</link> format.
|
2003-05-19 17:18:05 +00:00
|
|
|
</para>
|
|
|
|
|
2003-03-23 23:35:12 +00:00
|
|
|
<para>
|
|
|
|
The command line options differ slightly for the different formats:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<formalpara>
|
2004-06-21 12:47:41 +00:00
|
|
|
<title>VOBsub subtitles</title>
|
2003-03-23 23:35:12 +00:00
|
|
|
<para>
|
2004-06-21 12:47:41 +00:00
|
|
|
VOBsub subtitles consist of a big (some megabytes) <filename>.SUB</filename> file,
|
2003-03-23 23:35:12 +00:00
|
|
|
and optional <filename>.IDX</filename> and/or <filename>.IFO</filename>
|
2004-01-01 17:44:41 +00:00
|
|
|
files. If you have files like
|
|
|
|
<filename><replaceable>sample.sub</replaceable></filename>,
|
|
|
|
<filename><replaceable>sample.ifo</replaceable></filename> (optional),
|
|
|
|
<filename><replaceable>sample.idx</replaceable></filename> - you have to pass
|
|
|
|
<application>MPlayer</application> the <option>-vobsub sample
|
|
|
|
[-vobsubid <replaceable>id</replaceable>]</option> options
|
2003-03-23 23:35:12 +00:00
|
|
|
(full path optional). The <option>-vobsubid</option> option is like
|
|
|
|
<option>-sid</option> for DVDs, you can choose between subtitle tracks
|
|
|
|
(languages) with it. In case that <option>-vobsubid</option> is omitted,
|
|
|
|
<application>MPLayer</application> will try to use the languages given by the
|
|
|
|
<option>-slang</option> option and fall back to the <systemitem>langidx</systemitem>
|
|
|
|
in the <filename>.IDX</filename> file to set the subtitle language. If it fails,
|
|
|
|
there will be no subtitles.
|
|
|
|
</para>
|
|
|
|
</formalpara>
|
|
|
|
|
|
|
|
<formalpara>
|
|
|
|
<title>Other subtitles</title>
|
|
|
|
<para>
|
|
|
|
The other formats consist of a single text file containing timing,
|
|
|
|
placement and text information. Usage: If you have a file like
|
2004-01-01 17:44:41 +00:00
|
|
|
<filename><replaceable>sample.txt</replaceable></filename>,
|
|
|
|
you have to pass the option <option>-sub
|
|
|
|
<replaceable>sample.txt</replaceable></option> (full path optional).
|
2003-03-23 23:35:12 +00:00
|
|
|
</para>
|
|
|
|
</formalpara>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<title>Adjusting subtitle timing and placement:</title>
|
|
|
|
<varlistentry>
|
|
|
|
<term><option>-subdelay <replaceable>sec</replaceable></option></term>
|
|
|
|
<listitem><simpara>
|
|
|
|
Delays subtitles by <option><replaceable>sec</replaceable></option> seconds.
|
2005-01-12 09:29:56 +00:00
|
|
|
Can be negative. The value is added to movie's time position counter.
|
2003-03-23 23:35:12 +00:00
|
|
|
</simpara></listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term><option>-subfps <replaceable>RATE</replaceable></option></term>
|
|
|
|
<listitem><simpara>
|
|
|
|
Specify frame/sec rate of subtitle file (float number).
|
|
|
|
</simpara></listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term><option>-subpos <replaceable>0-100</replaceable></option></term>
|
|
|
|
<listitem><simpara>
|
|
|
|
Specify the position of subtitles.
|
|
|
|
</simpara></listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
If you experience a growing delay between the movie and the subtitles when
|
2005-07-19 00:21:18 +00:00
|
|
|
using a MicroDVD subtitle file, most likely the framerate of the movie and
|
2003-03-23 23:35:12 +00:00
|
|
|
the subtitle file are different. Please note that the MicroDVD subtitle
|
2005-01-12 12:28:35 +00:00
|
|
|
format uses absolute frame numbers for its timing, but there is no fps
|
|
|
|
information in it, and therefore the <option>-subfps</option> option should
|
|
|
|
be used with this format. If you like to solve this problem permanently,
|
|
|
|
you have to manually convert the subtitle file framerate.
|
|
|
|
<application>MPlayer</application> can do this
|
2005-01-12 09:29:56 +00:00
|
|
|
conversion for you:
|
|
|
|
|
2005-02-05 12:53:34 +00:00
|
|
|
<screen>mplayer -dumpmicrodvdsub -fps <replaceable>subtitles_fps</replaceable> -subfps <replaceable>avi_fps</replaceable> -sub <replaceable>subtitle_filename</replaceable> <replaceable>dummy.avi</replaceable></screen>
|
2003-03-23 23:35:12 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
2003-11-16 19:55:53 +00:00
|
|
|
About DVD subtitles, read the <link linkend="dvd">DVD</link> section.
|
2003-03-23 23:35:12 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
|
|
|
|
<sect2 id="mpsub">
|
2004-06-13 17:46:07 +00:00
|
|
|
<title><application>MPlayer</application>'s own subtitle format (MPsub)</title>
|
2003-03-23 23:35:12 +00:00
|
|
|
|
|
|
|
<para>
|
|
|
|
<application>MPlayer</application> introduces a new subtitle format called
|
|
|
|
<emphasis role="bold">MPsub</emphasis>. It was designed by Gabucino. Basically
|
|
|
|
its main feature is being <emphasis>dynamically</emphasis> time-based (although
|
|
|
|
it has frame-based mode too). Example (from <ulink
|
|
|
|
url="../../tech/mpsub.sub">DOCS/tech/mpsub.sub</ulink>):
|
|
|
|
<programlisting>
|
2003-05-19 17:18:05 +00:00
|
|
|
FORMAT=TIME
|
2003-03-23 23:35:12 +00:00
|
|
|
# first number : wait this much after previous subtitle disappeared
|
|
|
|
# second number : display the current subtitle for this many seconds
|
|
|
|
|
|
|
|
15 3
|
|
|
|
A long long, time ago...
|
|
|
|
|
|
|
|
0 3
|
|
|
|
in a galaxy far away...
|
|
|
|
|
|
|
|
0 3
|
|
|
|
Naboo was under an attack.<!--
|
|
|
|
--></programlisting>
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
So you see, the main goal was to <emphasis role="bold">make subtitle
|
|
|
|
editing/timing/joining/cutting easy</emphasis>. And, if you - say - get an
|
|
|
|
SSA subtitle but it's badly timed/delayed to your version of the movie, you
|
|
|
|
simply do a
|
2004-01-01 17:44:41 +00:00
|
|
|
<screen>mplayer <replaceable>dummy.avi</replaceable> -sub source.ssa -dumpmpsub</screen>
|
2003-03-23 23:35:12 +00:00
|
|
|
A <filename>dump.mpsub</filename> file will be created in the
|
|
|
|
current directory, which will contain the source subtitle's text, but in
|
|
|
|
<emphasis role="bold">MPsub</emphasis> format. Then you can freely add/subtract
|
|
|
|
seconds to/from the subtitle.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Subtitles are displayed with a technique called <emphasis role="bold">'OSD',
|
2005-02-05 15:18:47 +00:00
|
|
|
On Screen Display</emphasis>. OSD is used to display current time, volume bar,
|
2003-03-23 23:35:12 +00:00
|
|
|
seek bar etc.
|
|
|
|
</para>
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
|
|
|
|
<sect2 id="mpsub-install">
|
|
|
|
<title>Installing OSD and subtitles</title>
|
|
|
|
|
|
|
|
<para>
|
2003-11-30 13:07:40 +00:00
|
|
|
You need an <application>MPlayer</application> font package to be able to use
|
|
|
|
OSD/SUB feature. There are many ways to get it:
|
2003-03-23 23:35:12 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<itemizedlist>
|
2003-12-08 17:40:41 +00:00
|
|
|
<listitem><para>
|
|
|
|
Use the font generator tool at <filename
|
|
|
|
class="directory">TOOLS/subfont-c</filename>. It's a complete tool to
|
|
|
|
convert from TTF/Type1/etc font to mplayer font pkg (read
|
|
|
|
<filename>TOOLS/subfont-c/README</filename> for details).
|
|
|
|
</para></listitem>
|
|
|
|
<listitem><para>
|
2003-12-15 20:06:26 +00:00
|
|
|
Use the font generator <application>GIMP</application> plugin at <filename
|
2003-12-08 17:40:41 +00:00
|
|
|
class="directory">TOOLS/subfont-GIMP</filename> (note: you must have HSI
|
2004-12-07 00:16:42 +00:00
|
|
|
RAW plugin too, see <ulink url="http://realtime.ssu.ac.kr/~lethean/index.php?pagename=MplayerKoreanFonts" />).
|
2004-07-14 09:05:47 +00:00
|
|
|
</para></listitem>
|
2003-05-19 17:18:05 +00:00
|
|
|
<listitem><para>
|
|
|
|
using a TrueType (TTF) font, by the means of the <systemitem class="library">freetype</systemitem>
|
2003-12-08 17:40:41 +00:00
|
|
|
library. Version 2.0.9 or greater is mandatory! Then you have two methods:
|
2003-05-19 17:18:05 +00:00
|
|
|
<itemizedlist>
|
|
|
|
<listitem><para>
|
2003-12-16 22:57:34 +00:00
|
|
|
use the <option>-font <replaceable>/path/to/sample_font.ttf</replaceable></option>
|
2003-12-15 20:06:26 +00:00
|
|
|
option to specify a TrueType font file on every occasion
|
2003-05-19 17:18:05 +00:00
|
|
|
</para></listitem>
|
|
|
|
<listitem><para>
|
2003-12-15 20:06:26 +00:00
|
|
|
create a symlink:
|
2003-12-16 22:57:34 +00:00
|
|
|
<screen>ln -s <replaceable>/path/to/sample_font.ttf</replaceable> ~/.mplayer/subfont.ttf</screen>
|
2003-05-19 17:18:05 +00:00
|
|
|
</para></listitem>
|
|
|
|
</itemizedlist>
|
2003-12-08 17:40:41 +00:00
|
|
|
If <application>MPlayer</application> was compiled with
|
|
|
|
<systemitem class="library">fontconfig</systemitem> support, the above methods
|
2003-12-16 22:57:34 +00:00
|
|
|
won't work, instead the <option>-font</option> expects a
|
|
|
|
<systemitem class="library">fontconfig</systemitem> font name
|
2004-07-14 09:05:47 +00:00
|
|
|
and defaults to the sans-serif font. To get a list of fonts known to
|
2003-12-16 23:03:19 +00:00
|
|
|
<systemitem class="library">fontconfig</systemitem>,
|
2004-01-01 17:44:41 +00:00
|
|
|
use <command>fc-list</command>. Example: <option>-font
|
|
|
|
<replaceable>'Bitstream Vera Sans'</replaceable></option>
|
2003-05-19 17:18:05 +00:00
|
|
|
</para></listitem>
|
2003-03-23 23:35:12 +00:00
|
|
|
<listitem><para>
|
2003-11-30 13:07:40 +00:00
|
|
|
Download ready-to-use font packages from <application>MPlayer</application>
|
|
|
|
site. Note: currently available fonts are limited for ISO 8859-1/2 support,
|
|
|
|
but there are some other (including Korean, Russian, ISO 8859-8 etc) fonts at
|
|
|
|
contrib/font section of FTP, made by users.
|
2003-03-23 23:35:12 +00:00
|
|
|
</para><para>
|
|
|
|
<!-- FIXME: this para should be before the list -->
|
|
|
|
Font should have appropriate <filename>font.desc</filename> file which
|
|
|
|
maps unicode font positions to the actual code page of the subtitles
|
2004-08-11 19:40:23 +00:00
|
|
|
text. Other solution is to have subtitles encoded in UTF-8 encoding and
|
2003-03-23 23:35:12 +00:00
|
|
|
use <option>-utf8</option> option or just name the subtitles file
|
|
|
|
<filename><video_name>.utf</filename> and have it in the same dir
|
2004-08-11 19:40:23 +00:00
|
|
|
as the video file. Recoding from different codepages to UTF-8 could be
|
2003-12-20 20:25:18 +00:00
|
|
|
done by using <command>konwert</command> or <command>iconv</command> programs.
|
2003-03-23 23:35:12 +00:00
|
|
|
</para><para>
|
2004-07-14 09:05:47 +00:00
|
|
|
|
2003-03-23 23:35:12 +00:00
|
|
|
<table>
|
|
|
|
<title>Some URLs</title>
|
|
|
|
<tgroup cols="2">
|
|
|
|
<thead>
|
|
|
|
<row><entry>URL</entry><entry>Comment</entry></row>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<row><entry>
|
2003-03-24 21:36:20 +00:00
|
|
|
<ulink url="ftp://ftp.mplayerhq.hu/MPlayer/releases/fonts/"></ulink>
|
2003-03-23 23:35:12 +00:00
|
|
|
</entry><entry>
|
|
|
|
ISO fonts
|
|
|
|
</entry></row>
|
|
|
|
<row><entry>
|
|
|
|
<ulink url="ftp://ftp.mplayerhq.hu/MPlayer/contrib/fonts/"></ulink>
|
|
|
|
</entry><entry>
|
|
|
|
various fonts by users
|
|
|
|
</entry></row>
|
|
|
|
<row><entry>
|
2004-12-07 00:16:42 +00:00
|
|
|
<ulink url="http://realtime.ssu.ac.kr/~lethean/index.php?pagename=MplayerKoreanFonts"></ulink>
|
2003-03-23 23:35:12 +00:00
|
|
|
</entry><entry>
|
|
|
|
Korean fonts and RAW plugin
|
|
|
|
</entry></row>
|
|
|
|
</tbody>
|
|
|
|
</tgroup>
|
|
|
|
</table>
|
2003-05-19 17:18:05 +00:00
|
|
|
|
2003-03-23 23:35:12 +00:00
|
|
|
</para></listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
<para>
|
|
|
|
If you chose non-TTF fonts, UNZIP the file you downloaded to <filename
|
|
|
|
class="directory">~/.mplayer</filename> or <filename
|
|
|
|
class="directory">$PREFIX/share/mplayer</filename>. Then rename or symlink
|
2003-12-19 21:39:05 +00:00
|
|
|
one of the extracted directories to <filename class="directory">font</filename>,
|
|
|
|
for example:
|
2003-03-23 23:35:12 +00:00
|
|
|
|
2004-01-01 17:44:41 +00:00
|
|
|
<screen>ln -s <replaceable>~/.mplayer/arial-24</replaceable> ~/.mplayer/font</screen>
|
2003-03-23 23:35:12 +00:00
|
|
|
|
|
|
|
Now you have to see a timer at the upper left corner of the movie (switch
|
|
|
|
it off with the <keycap>o</keycap> key).
|
|
|
|
</para>
|
|
|
|
|
2003-03-29 23:17:46 +00:00
|
|
|
<para>
|
|
|
|
(subtitles are <emphasis>always enabled</emphasis>, for disabling them please
|
|
|
|
read the man page)
|
2003-03-30 13:47:11 +00:00
|
|
|
</para>
|
|
|
|
|
2003-03-23 23:35:12 +00:00
|
|
|
<para>
|
|
|
|
OSD has 4 states (switch with <keycap>o</keycap>):
|
|
|
|
|
|
|
|
<orderedlist>
|
|
|
|
<listitem><simpara>
|
|
|
|
volume bar + seek bar (default)
|
|
|
|
</simpara></listitem>
|
|
|
|
<listitem><simpara>
|
|
|
|
volume bar + seek bar + timer + file position percentage on seeking
|
|
|
|
</simpara></listitem>
|
|
|
|
<listitem><simpara>
|
|
|
|
volume bar + seek bar + timer + total duration of the media
|
|
|
|
</simpara></listitem>
|
|
|
|
<listitem><simpara>
|
|
|
|
subtitles only
|
|
|
|
</simpara></listitem>
|
|
|
|
</orderedlist>
|
|
|
|
|
|
|
|
You can change default behaviour by setting <varname>osdlevel</varname>
|
|
|
|
variable in config file, or the <option>-osdlevel</option> command line option.
|
|
|
|
|
|
|
|
</para>
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
|
|
|
|
<sect2 id="osdmenu">
|
|
|
|
<title>OSD menu</title>
|
|
|
|
|
|
|
|
<para>
|
2003-11-30 13:07:40 +00:00
|
|
|
<application>MPlayer</application> has a completely user definiable OSD Menu interface.
|
2003-03-23 23:35:12 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<note><simpara>
|
|
|
|
the Preferences menu is currently UNIMPLEMENTED!
|
|
|
|
</simpara></note>
|
|
|
|
|
|
|
|
<orderedlist>
|
|
|
|
<title>Installation</title>
|
|
|
|
<listitem><simpara>
|
|
|
|
compile <application>MPlayer</application> by passing the <option>--enable-menu</option>
|
|
|
|
to <filename>./configure</filename>
|
|
|
|
</simpara></listitem>
|
|
|
|
<listitem><simpara>
|
|
|
|
make sure you have an OSD font installed
|
|
|
|
</simpara></listitem>
|
|
|
|
<listitem><simpara>
|
|
|
|
copy <filename>etc/menu.conf</filename> to your
|
|
|
|
<filename class="directory">.mplayer</filename> directory
|
|
|
|
</simpara></listitem>
|
|
|
|
<listitem><simpara>
|
|
|
|
copy <filename>etc/input.conf</filename> to your
|
|
|
|
<filename class="directory">.mplayer</filename> directory, or to the system-wide
|
|
|
|
<application>MPlayer</application> config dir (default:
|
|
|
|
<filename class="directory">/usr/local/etc/mplayer</filename>)
|
|
|
|
</simpara></listitem>
|
|
|
|
<listitem><simpara>
|
|
|
|
check and edit <filename>input.conf</filename> to enable menu movement keys
|
|
|
|
(it is described there).
|
|
|
|
</simpara></listitem>
|
|
|
|
<listitem><para>
|
|
|
|
start <application>MPlayer</application> by the following example:
|
2004-01-01 17:44:41 +00:00
|
|
|
<screen>$ mplayer -menu <replaceable>file.avi</replaceable></screen>
|
2003-03-23 23:35:12 +00:00
|
|
|
</para></listitem>
|
|
|
|
<listitem><simpara>
|
|
|
|
push any menu key you defined
|
|
|
|
</simpara></listitem>
|
|
|
|
</orderedlist>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|
|
|
|
|
|
|
|
<!-- ********** -->
|
|
|
|
|
|
|
|
<sect1 id="rtc">
|
|
|
|
<title>RTC</title>
|
|
|
|
<para>
|
2003-11-30 13:07:40 +00:00
|
|
|
There are three timing methods in <application>MPlayer</application>.
|
2003-03-23 23:35:12 +00:00
|
|
|
|
|
|
|
<itemizedlist>
|
|
|
|
<listitem><simpara>
|
|
|
|
<emphasis role="bold">To use the old method</emphasis>, you don't have to do
|
|
|
|
anything. It uses <systemitem>usleep()</systemitem> to tune
|
|
|
|
A/V sync, with +/- 10ms accuracy. However sometimes the sync has to be
|
|
|
|
tuned even finer.
|
|
|
|
</simpara></listitem>
|
|
|
|
<listitem><para>
|
2004-07-09 15:19:47 +00:00
|
|
|
<emphasis role="bold">The new timer</emphasis> code uses the RTC (RealTime Clock)
|
2003-03-23 23:35:12 +00:00
|
|
|
for this task, because it has precise 1ms timers. It is automagically enabled
|
|
|
|
when available, but requires root privileges, a <emphasis>setuid root</emphasis>
|
|
|
|
<application>MPlayer</application> binary or a properly set up kernel.
|
|
|
|
If you are running kernel 2.4.19pre8 or later you can adjust the maximum RTC
|
2003-12-22 15:23:16 +00:00
|
|
|
frequency for normal users through the <systemitem class="systemname">/proc
|
|
|
|
</systemitem> filesystem. Use this command to
|
2003-03-23 23:35:12 +00:00
|
|
|
enable RTC for normal users:
|
|
|
|
<screen>echo 1024 > /proc/sys/dev/rtc/max-user-freq</screen>
|
|
|
|
If you do not have such a new kernel, you can also change one line in
|
|
|
|
<filename>drivers/char/rtc.c</filename> and recompile your kernel.
|
|
|
|
Find the section that reads
|
|
|
|
<programlisting>
|
|
|
|
* We don't really want Joe User enabling more
|
|
|
|
* than 64Hz of interrupts on a multi-user machine.
|
|
|
|
*/
|
|
|
|
if ((rtc_freq > 64) && (!capable(CAP_SYS_RESOURCE)))
|
|
|
|
</programlisting>
|
|
|
|
and change the 64 to 1024. You should really know what you are doing, though.
|
|
|
|
You can see the new timer's efficiency in the status line.
|
|
|
|
The power management functions of some notebook BIOSes with speedstep CPUs
|
|
|
|
interact badly with RTC. Audio and video may get out of sync. Plugging the
|
|
|
|
external power connector in before you power up your notebook seems to help.
|
|
|
|
You can always turn off RTC support with the <option>-nortc</option> option.
|
|
|
|
In some hardware combinations (confirmed during usage of non-DMA DVD drive
|
|
|
|
on an ALi1541 board) usage of the RTC timer causes skippy playback. It's
|
|
|
|
recommended to use the third method in these cases.
|
|
|
|
</para></listitem>
|
|
|
|
<listitem><simpara>
|
|
|
|
<emphasis role="bold">The third timer code</emphasis> is turned on with the
|
|
|
|
<option>-softsleep</option> option. It has the efficiency of the RTC, but it
|
|
|
|
doesn't use RTC. On the other hand, it requires more CPU.
|
|
|
|
</simpara></listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
<note><para><emphasis role="bold">NEVER install a setuid root
|
|
|
|
<application>MPlayer</application> binary on a multiuser system!</emphasis>
|
|
|
|
It's a clear way for everyone to become root.
|
|
|
|
</para></note>
|
|
|
|
</para>
|
|
|
|
</sect1>
|
2006-01-05 23:32:18 +00:00
|
|
|
|
|
|
|
</chapter>
|