Sophie

Sophie

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

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>4.1. Xv</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="video.html" title="第 4 章 Video output devices"><link rel="prev" href="video.html" title="第 4 章 Video output devices"><link rel="next" href="dga.html" title="4.2. 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="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"></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">4.1. Xv</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="video.html">上一页</a> </td><th width="60%" align="center">第 4 章 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="4.1. Xv"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="xv"></a>4.1. 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><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="video.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">第 4 章 Video output devices </td><td width="20%" align="center"><a accesskey="h" href="index.html">起始页</a></td><td width="40%" align="right" valign="top"> 4.2. DGA</td></tr></table></div></body></html>