Sophie

Sophie

distrib > Mandriva > current > i586 > media > main-updates > by-pkgid > a42e22ddf1d70fb02e9f62289d71cafa > files > 889

mplayer-doc-1.0-1.rc4.0.r31086.3.1mdv2010.2.i586.rpm

<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>6.2. Xv</title><link rel="stylesheet" href="default.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.75.2"><link rel="home" href="index.html" title="MPlayer - 电影播放器"><link rel="up" href="video.html" title="第 6 章 Video output devices"><link rel="prev" href="mtrr.html" title="6.1. Setting up MTRR"><link rel="next" href="dga.html" title="6.3. DGA"><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="advaudio.html" title="第 4 章 Advanced audio usage"><link rel="chapter" href="cd-dvd.html" title="第 5 章 CD/DVD用法"><link rel="chapter" href="video.html" title="第 6 章 Video output devices"><link rel="chapter" href="tv.html" title="第 7 章 TV"><link rel="chapter" href="radio.html" title="第 8 章 广播电台"><link rel="chapter" href="ports.html" title="第 9 章 Ports"><link rel="chapter" href="mencoder.html" title="第 10 章 MEncoder的基础用法"><link rel="chapter" href="encoding-guide.html" title="第 11 章 Encoding with MEncoder"><link rel="chapter" href="faq.html" title="第 12 章 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="xv.html#tdfx" title="6.2.1. 3dfx cards"><link rel="subsection" href="xv.html#s3" title="6.2.2. S3 cards"><link rel="subsection" href="xv.html#nvidia" title="6.2.3. nVidia cards"><link rel="subsection" href="xv.html#ati" title="6.2.4. ATI cards"><link rel="subsection" href="xv.html#neomagic" title="6.2.5. NeoMagic cards"><link rel="subsection" href="xv.html#trident" title="6.2.6. Trident cards"><link rel="subsection" href="xv.html#kyro" title="6.2.7. Kyro/PowerVR cards"><link rel="subsection" href="xv.html#intel" title="6.2.8. Intel cards"></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">6.2. Xv</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="mtrr.html">上一页</a> </td><th width="60%" align="center">第 6 章 Video output devices</th><td width="20%" align="right"> <a accesskey="n" href="dga.html">下一页</a></td></tr></table><hr></div><div class="sect1" title="6.2. Xv"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="xv"></a>6.2. Xv</h2></div></div></div><p>
Under XFree86 4.0.2 or newer, you can use your card's hardware YUV routines
using the XVideo extension. This is what the option
<tt class="option">-vo xv</tt> uses. Also, this driver supports adjusting
brightness/contrast/hue/etc. (unless you use the old, slow DirectShow DivX
codec, which supports it everywhere), see the man page.
</p><p>
In order to make this work, be sure to check the following:

</p><div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"><p>
  You have to use XFree86 4.0.2 or newer (former versions don't have XVideo)
</p></li><li class="listitem"><p>
  Your card actually supports hardware acceleration (modern cards do)
</p></li><li class="listitem"><p>
  X loads the XVideo extension, it's something like this:
  </p><pre class="programlisting">(II) Loading extension XVideo</pre><p>
  in <tt class="filename">/var/log/XFree86.0.log</tt>
  </p><div class="note" title="注意" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">注意</h3><p>
   This loads only the XFree86's extension. In a good install, this is
   always loaded, and doesn't mean that the
   <span class="bold"><strong>card's</strong></span> XVideo support is loaded!
  </p></div><p>
</p></li><li class="listitem"><p>
  Your card has Xv support under Linux. To check, try
  <span class="command"><strong>xvinfo</strong></span>, it is the part of the XFree86 distribution. It
  should display a long text, similar to this:
  </p><pre class="screen">
X-Video Extension version 2.2
screen #0
  Adaptor #0: "Savage Streams Engine"
    number of ports: 1
    port base: 43
    operations supported: PutImage
    supported visuals:
      depth 16, visualID 0x22
      depth 16, visualID 0x23
    number of attributes: 5
(...)
    Number of image formats: 7
      id: 0x32595559 (YUY2)
        guid: 59555932-0000-0010-8000-00aa00389b71
        bits per pixel: 16
        number of planes: 1
        type: YUV (packed)
      id: 0x32315659 (YV12)
        guid: 59563132-0000-0010-8000-00aa00389b71
        bits per pixel: 12
        number of planes: 3
        type: YUV (planar)
(...etc...)</pre><p>
  It must support YUY2 packed, and YV12 planar pixel formats to be usable
  with <span class="application">MPlayer</span>.
</p></li><li class="listitem"><p>
  And finally, check if <span class="application">MPlayer</span> was compiled
  with 'xv' support. Do a <span class="command"><strong>mplayer -vo help | grep xv </strong></span>.
  If 'xv' support was built a line similar to this should appear:
  </p><pre class="screen">  xv      X11/Xv</pre><p>
</p></li></ol></div><p>
</p><div class="sect2" title="6.2.1. 3dfx cards"><div class="titlepage"><div><div><h3 class="title"><a name="tdfx"></a>6.2.1. 3dfx cards</h3></div></div></div><p>
Older 3dfx drivers were known to have problems with XVideo acceleration, it
didn't support YUY2 or YV12 colorspaces. Verify that you have XFree86
version 4.2.0 or later, it can handle YV12 and YUY2 while previous
versions, including 4.1.0, <span class="bold"><strong>crash with YV12</strong></span>.
If you experience strange effects using <tt class="option">-vo xv</tt>, try SDL
(it has XVideo, too) and see if it helps. Check the
<a class="link" href="sdl.html" title="6.4. SDL">SDL</a> section for details.
</p><p>
<span class="bold"><strong>OR</strong></span>, try the NEW
<tt class="option">-vo tdfxfb</tt> driver! See the <a class="link" href="tdfxfb.html" title="6.8. 3Dfx YUV support">tdfxfb</a>
section.
</p></div><div class="sect2" title="6.2.2. S3 cards"><div class="titlepage"><div><div><h3 class="title"><a name="s3"></a>6.2.2. S3 cards</h3></div></div></div><p>
S3 Savage3D's should work fine, but for Savage4, use XFree86 version 4.0.3
or greater (in case of image problems, try 16bpp). As for S3 Virge: there is
xv support, but the card itself is very slow, so you better sell it.
</p><p>
There is now a native framebuffer driver for S3 Virge cards similar to
tdfxfb. Set up your framebuffer (e.g. append
"<tt class="option">vga=792 video=vesa:mtrr</tt>" to your kernel command line) and use
<tt class="option">-vo s3fb</tt> (<tt class="option">-vf yuy2</tt> and <tt class="option">-dr</tt>
will also help).
</p><div class="note" title="注意" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">注意</h3><p>
It's currently unclear which Savage models lack YV12 support, and convert by
driver (slow). If you suspect your card, get a newer driver, or ask politely
on the MPlayer-users mailing list for an MMX/3DNow! enabled driver.
</p></div></div><div class="sect2" title="6.2.3. nVidia cards"><div class="titlepage"><div><div><h3 class="title"><a name="nvidia"></a>6.2.3. nVidia cards</h3></div></div></div><p>
nVidia isn't always a very good choice under Linux ... XFree86's
open-source driver supports most of these cards, but for some cases, you'll
have to use the binary closed-source nVidia driver, available at
<a class="ulink" href="http://www.nvidia.com/object/linux.html" target="_top">nVidia's web site</a>.
You'll always need this driver if you want 3D acceleration, too.
</p><p>
Riva128 cards don't have XVideo support with XFree86's nVidia driver :(
Complain to nVidia.
</p><p>
However, <span class="application">MPlayer</span> contains a
<a class="link" href="vidix.html" title="6.15. VIDIX">VIDIX</a> driver for most nVidia cards. Currently it
is in beta stage, and has some drawbacks. For more information, see
<a class="link" href="vidix.html#vidix-nvidia" title="6.15.6. nVidia cards">nVidia VIDIX</a> section.
</p></div><div class="sect2" title="6.2.4. ATI cards"><div class="titlepage"><div><div><h3 class="title"><a name="ati"></a>6.2.4. ATI cards</h3></div></div></div><p>
The <a class="ulink" href="http://gatos.sf.net" target="_top">GATOS driver</a>
(which you should use, unless you have Rage128 or Radeon) has VSYNC enabled
by default. It means that decoding speed (!) is synced to the monitor's
refresh rate. If playing seems to be slow, try disabling VSYNC somehow, or
set refresh rate to a n*(fps of the movie) Hz.
</p><p>
Radeon VE - if you need X, use XFree86 4.2.0 or greater for this card.
No TV out support. Of course with <span class="application">MPlayer</span> you can
happily get <span class="bold"><strong>accelerated</strong></span> display, with or
without <span class="bold"><strong>TV output</strong></span>, and no libraries or X are
needed.
Read the <a class="link" href="vidix.html" title="6.15. VIDIX">VIDIX</a> section.
</p></div><div class="sect2" title="6.2.5. NeoMagic cards"><div class="titlepage"><div><div><h3 class="title"><a name="neomagic"></a>6.2.5. NeoMagic cards</h3></div></div></div><p>
These cards can be found in many laptops. You must use XFree86 4.3.0 or
above, or else use Stefan Seyfried's
<a class="ulink" href="http://www.mplayerhq.hu/MPlayer/contrib/NeoMagic-driver/" target="_top">Xv-capable drivers</a>.
Just choose the one that applies to your version of XFree86.
</p><p>
XFree86 4.3.0 includes Xv support, yet Bohdan Horst sent a small
<a class="ulink" href="http://www.mplayerhq.hu/MPlayer/contrib/NeoMagic-driver/neo_driver.patch" target="_top">patch</a>
against the XFree86 sources that speeds up framebuffer operations (so XVideo)
up to four times. The patch has been included in XFree86 CVS and should be in
the next release after 4.3.0.
</p><p>
To allow playback of DVD sized content change your XF86Config like this:
</p><pre class="programlisting">
Section "Device"
    [...]
    Driver "neomagic"
    <span class="emphasis"><em>Option "OverlayMem" "829440"</em></span>
    [...]
EndSection</pre><p>
</p></div><div class="sect2" title="6.2.6. Trident cards"><div class="titlepage"><div><div><h3 class="title"><a name="trident"></a>6.2.6. Trident cards</h3></div></div></div><p>
If you want to use Xv with a Trident card, provided that it doesn't work
with 4.1.0, install XFree 4.2.0. 4.2.0 adds support for fullscreen Xv
support with the Cyberblade XP card.
</p><p>
Alternatively, <span class="application">MPlayer</span> contains a
<a class="link" href="vidix.html" title="6.15. VIDIX">VIDIX</a> driver for the Cyberblade/i1 card.
</p></div><div class="sect2" title="6.2.7. Kyro/PowerVR cards"><div class="titlepage"><div><div><h3 class="title"><a name="kyro"></a>6.2.7. Kyro/PowerVR cards</h3></div></div></div><p>
If you want to use Xv with a Kyro based card (for example Hercules
Prophet 4000XT), you should download the drivers from the
<a class="ulink" href="http://www.powervr.com/" target="_top">PowerVR site</a>.
</p></div><div class="sect2" title="6.2.8. Intel cards"><div class="titlepage"><div><div><h3 class="title"><a name="intel"></a>6.2.8. Intel cards</h3></div></div></div><p>
These cards can be found in many laptops. Recent Xorg is recommended.
</p><p>
To allow playback of DVD sized (and larger) content change your XF86Config/xorg.conf like this:
</p><pre class="programlisting">
Section "Device"
    [...]
    Driver "intel"
    <span class="emphasis"><em>Option "LinearAlloc" "6144"</em></span>
    [...]
EndSection
</pre><p>
Lack of this option usually results in an error like
</p><pre class="screen">X11 error: BadAlloc (insufficient resources for operation)</pre><p>
when attempting to use <tt class="option">-vo xv</tt>.
</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="mtrr.html">上一页</a> </td><td width="20%" align="center"><a accesskey="u" href="video.html">上一级</a></td><td width="40%" align="right"> <a accesskey="n" href="dga.html">下一页</a></td></tr><tr><td width="40%" align="left" valign="top">6.1. Setting up MTRR </td><td width="20%" align="center"><a accesskey="h" href="index.html">起始页</a></td><td width="40%" align="right" valign="top"> 6.3. DGA</td></tr></table></div></body></html>