Sophie

Sophie

distrib > Mageia > 1 > i586 > by-pkgid > 53da5a507f675e1d2d2c0e9c3268abfb > files > 788

mplayer-doc-1.0-1.rc4.0.r32713.5.3.mga1.i586.rpm

<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>2.5. Codec installation</title><link rel="stylesheet" type="text/css" href="default.css"><meta name="generator" content="DocBook XSL Stylesheets V1.76.1"><link rel="home" href="index.html" title="MPlayer - 电影播放器"><link rel="up" href="install.html" title="第 2 章 Installation"><link rel="prev" href="fonts-osd.html" title="2.4. Fonts and OSD"><link rel="next" href="rtc.html" title="2.6. RTC"><link rel="preface" href="howtoread.html" title="如何阅读此文档"><link rel="chapter" href="intro.html" title="第 1 章 介绍"><link rel="chapter" href="install.html" title="第 2 章 Installation"><link rel="chapter" href="usage.html" title="第 3 章 Usage"><link rel="chapter" href="video.html" title="第 4 章 Video output devices"><link rel="chapter" href="ports.html" title="第 5 章 Ports"><link rel="chapter" href="mencoder.html" title="第 6 章 MEncoder的基础用法"><link rel="chapter" href="encoding-guide.html" title="第 7 章 Encoding with MEncoder"><link rel="chapter" href="faq.html" title="第 8 章 Frequently Asked Questions"><link rel="appendix" href="bugreports.html" title="附录 A. 如何报告错误"><link rel="appendix" href="skin.html" title="附录 B. MPlayer skin format"><link rel="subsection" href="codec-installation.html#xvid" title="2.5.1. Xvid"><link rel="subsection" href="codec-installation.html#x264" title="2.5.2. x264"><link rel="subsection" href="codec-installation.html#aac" title="2.5.3. AAC"><link rel="subsection" href="codec-installation.html#amr" title="2.5.4. AMR"><link rel="subsection" href="codec-installation.html#xmms" title="2.5.5. XMMS"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">2.5. Codec installation</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="fonts-osd.html">上一页</a> </td><th width="60%" align="center">第 2 章 Installation</th><td width="20%" align="right"> <a accesskey="n" href="rtc.html">下一页</a></td></tr></table><hr></div><div class="sect1" title="2.5. Codec installation"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="codec-installation"></a>2.5. Codec installation</h2></div></div></div><div class="sect2" title="2.5.1. Xvid"><div class="titlepage"><div><div><h3 class="title"><a name="xvid"></a>2.5.1. Xvid</h3></div></div></div><p>
<a class="ulink" href="http://www.xvid.org" target="_top">Xvid</a> is a free software MPEG-4 ASP
compliant video codec. Note that Xvid is not necessary to decode Xvid-encoded
video. <code class="systemitem">libavcodec</code> is used by
default as it offers better speed.
</p><div class="procedure" title="Installing Xvid"><a name="id2795190"></a><p class="title"><b>Installing <code class="systemitem">Xvid</code></b></p><p>
  Like most open source software, it is available in two flavors:
  <a class="ulink" href="http://www.xvid.org/downloads.html" target="_top">official releases</a>
  and the CVS version.
  The CVS version is usually stable enough to use, as most of the time it
  features fixes for bugs that exist in releases.
  Here is what to do to make <code class="systemitem">Xvid</code>
  CVS work with <span class="application">MEncoder</span>:
</p><ol class="procedure" type="1"><li class="step" title="步骤 1"><p>
  </p><pre class="screen">cvs -z3 -d:pserver:anonymous@cvs.xvid.org:/xvid login</pre><p>
</p></li><li class="step" title="步骤 2"><p>
  </p><pre class="screen">cvs -z3 -d:pserver:anonymous@cvs.xvid.org:/xvid co xvidcore</pre><p>
</p></li><li class="step" title="步骤 3"><p>
  </p><pre class="screen">cd xvidcore/build/generic</pre><p>
</p></li><li class="step" title="步骤 4"><p>
  </p><pre class="screen">./bootstrap.sh &amp;&amp; ./configure</pre><p>
  You may have to add some options (examine the output of
  <span class="command"><strong>./configure --help</strong></span>).
</p></li><li class="step" title="步骤 5"><p>
  </p><pre class="screen">make &amp;&amp; make install</pre><p>
</p></li><li class="step" title="步骤 6"><p>
  Recompile <span class="application">MPlayer</span>.
</p></li></ol></div></div><div class="sect2" title="2.5.2. x264"><div class="titlepage"><div><div><h3 class="title"><a name="x264"></a>2.5.2. <code class="systemitem">x264</code></h3></div></div></div><p>
<a class="ulink" href="http://developers.videolan.org/x264.html" target="_top"><code class="systemitem">x264</code></a>
is a library for creating H.264 video.
<span class="application">MPlayer</span> sources are updated whenever
an <code class="systemitem">x264</code> API change
occurs, so it is always suggested to use
<span class="application">MPlayer</span> from Subversion.
</p><p>
If you have a GIT client installed, the latest x264
sources can be gotten with this command:
</p><pre class="screen">git clone git://git.videolan.org/x264.git</pre><p>

Then build and install in the standard way:
</p><pre class="screen">./configure &amp;&amp; make &amp;&amp; make install</pre><p>

Now rerun <tt class="filename">./configure</tt> for
<span class="application">MPlayer</span> to pick up
<code class="systemitem">x264</code> support.
</p></div><div class="sect2" title="2.5.3. AAC"><div class="titlepage"><div><div><h3 class="title"><a name="aac"></a>2.5.3. AAC</h3></div></div></div><p>
An open source AAC decoder called FAAD2 is available from
<a class="ulink" href="http://www.audiocoding.com/downloads.html" target="_top">http://www.audiocoding.com/downloads.html</a>.
<span class="application">MPlayer</span> includes a copy of it in its source tree.
If you want to use the external library instead, install it and pass
<tt class="option">--enable-faad-external</tt> to <tt class="filename">./configure</tt>.
</p><p>
FAAD2 binaries are not available from audiocoding.com, but you can (apt-)get
Debian packages from
<a class="ulink" href="http://www.debian-multimedia.org/" target="_top">Christian Marillat</a>,
Mandrake/Mandriva RPMs from the <a class="ulink" href="http://plf.zarb.org" target="_top">P.L.F</a>
and Fedora/CentOS/RHEL RPMs from <a class="ulink" href="http://rpmfusion.org/" target="_top">RPMFusion</a>.
</p><p>
If you choose to build from source, you do not need all of FAAD2 to decode
AAC files, libfaad is enough. Build it like this:
</p><pre class="screen">
cd faad2/
sh bootstrap
./configure
cd libfaad
make
make install
</pre><p>
</p></div><div class="sect2" title="2.5.4. AMR"><div class="titlepage"><div><div><h3 class="title"><a name="amr"></a>2.5.4. AMR</h3></div></div></div><p>
MPlayer can use the OpenCORE AMR libraries through FFmpeg.
Download the libraries for AMR-NB and AMR-WB from the
<a class="ulink" href="http://sourceforge.net/projects/opencore-amr/" target="_top">opencore-amr</a>
project and install them according to the instructions on that page.
</p></div><div class="sect2" title="2.5.5. XMMS"><div class="titlepage"><div><div><h3 class="title"><a name="xmms"></a>2.5.5. XMMS</h3></div></div></div><p>
<span class="application">MPlayer</span> can use <span class="application">XMMS</span> input
plugins to play many file formats. There are plugins for SNES game tunes, SID
tunes (from Commodore 64), many Amiga formats, .xm, .it, VQF, Musepack, Bonk,
shorten and many others. You can find them at the
<a class="ulink" href="http://www.xmms.org/plugins.php?category=input" target="_top">XMMS input plugin page</a>.
</p><p>
For this feature you need to have <span class="application">XMMS</span> and compile
<span class="application">MPlayer</span> with
<tt class="filename">./configure --enable-xmms</tt>.
</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="fonts-osd.html">上一页</a> </td><td width="20%" align="center"><a accesskey="u" href="install.html">上一级</a></td><td width="40%" align="right"> <a accesskey="n" href="rtc.html">下一页</a></td></tr><tr><td width="40%" align="left" valign="top">2.4. Fonts and OSD </td><td width="20%" align="center"><a accesskey="h" href="index.html">起始页</a></td><td width="40%" align="right" valign="top"> 2.6. RTC</td></tr></table></div></body></html>