⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tvout.html

📁 MPlayer-mingw32-1.0rc2.zip 经典播放器源码
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>8.20.聽TV-out support</title><link rel="stylesheet" href="default.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.73.2"><link rel="start" href="index.html" title="MPlayer - The Movie Player"><link rel="up" href="video.html" title="Chapter聽8.聽Video output devices"><link rel="prev" href="other.html" title="8.19.聽Other visualization hardware"><link rel="next" href="audio.html" title="Chapter聽9.聽Audio output devices"><link rel="preface" href="howtoread.html" title="How to read this documentation"><link rel="chapter" href="intro.html" title="Chapter聽1.聽Introduction"><link rel="chapter" href="install.html" title="Chapter聽2.聽Installation"><link rel="chapter" href="usage.html" title="Chapter聽3.聽Usage"><link rel="chapter" href="cd-dvd.html" title="Chapter聽4.聽CD/DVD usage"><link rel="chapter" href="faq.html" title="Chapter聽5.聽Frequently Asked Questions"><link rel="chapter" href="containers.html" title="Chapter聽6.聽Containers"><link rel="chapter" href="codecs.html" title="Chapter聽7.聽Codecs"><link rel="chapter" href="video.html" title="Chapter聽8.聽Video output devices"><link rel="chapter" href="audio.html" title="Chapter聽9.聽Audio output devices"><link rel="chapter" href="tv.html" title="Chapter聽10.聽TV"><link rel="chapter" href="radio.html" title="Chapter聽11.聽Radio"><link rel="chapter" href="ports.html" title="Chapter聽12.聽Ports"><link rel="chapter" href="mencoder.html" title="Chapter聽13.聽Basic usage of MEncoder"><link rel="chapter" href="encoding-guide.html" title="Chapter聽14.聽Encoding with MEncoder"><link rel="appendix" href="bugreports.html" title="Appendix聽A.聽How to report bugs"><link rel="appendix" href="bugs.html" title="Appendix聽B.聽Known bugs"><link rel="appendix" href="skin.html" title="Appendix聽C.聽MPlayer skin format"><link rel="appendix" href="history.html" title="Appendix聽D.聽History"><link rel="subsection" href="tvout.html#tvout-mga-g400" title="8.20.1.聽Matrox G400 cards"><link rel="subsection" href="tvout.html#tv-out_matrox_g450" title="8.20.2.聽Matrox G450/G550 cards"><link rel="subsection" href="tvout.html#tvout-ati" title="8.20.3.聽ATI cards"><link rel="subsection" href="tvout.html#tvout-nvidia" title="8.20.4.聽nVidia"><link rel="subsection" href="tvout.html#tvout-neomagic" title="8.20.5.聽NeoMagic"></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">8.20.聽TV-out support</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="other.html">Prev</a>聽</td><th width="60%" align="center">Chapter聽8.聽Video output devices</th><td width="20%" align="right">聽<a accesskey="n" href="audio.html">Next</a></td></tr></table><hr></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="tvout"></a>8.20.聽TV-out support</h2></div></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="tvout-mga-g400"></a>8.20.1.聽Matrox G400 cards</h3></div></div></div><p>
Under Linux you have two methods to get G400 TV out working:
</p><div class="important" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Important</h3><p>
for Matrox G450/G550 TV-out instructions, please see the next section!
</p></div><div class="variablelist"><dl><dt><span class="term">XFree86</span></dt><dd><p>
    Using the driver and the HAL module, available from the <a class="ulink" href="http://www.matrox.com" target="_top">Matrox site</a>. This will give you X
    on the TV.
    </p><p>
    <span class="bold"><strong>This method doesn't give you accelerated playback</strong></span>
    as under Windows! The second head has only YUV framebuffer, the
    <span class="emphasis"><em>BES</em></span> (Back End Scaler, the YUV scaler on
    G200/G400/G450/G550 cards) doesn't work on it! The windows driver somehow
    workarounds this, probably by using the 3D engine to zoom, and the YUV
    framebuffer to display the zoomed image. If you really want to use X, use
    the <tt class="option">-vo x11 -fs -zoom</tt> options, but it will be
    <span class="bold"><strong>SLOW</strong></span>, and has
    <span class="bold"><strong>Macrovision</strong></span> copy protection enabled
    (you can "workaround" Macrovision using this
    <a class="ulink" href="http://avifile.sf.net/mgamacro.pl" target="_top">perl script</a>).
    </p></dd><dt><span class="term">Framebuffer</span></dt><dd><p>
    Using the <span class="bold"><strong>matroxfb modules</strong></span> in the 2.4
    kernels. 2.2 kernels don't have the TVout feature in them, thus unusable
    for this. You have to enable ALL matroxfb-specific feature during
    compilation (except MultiHead), and compile them into
    <span class="bold"><strong>modules</strong></span>!
    You'll also need I2C enabled.
    </p><div class="procedure"><ol type="1"><li><p>
      Enter <tt class="filename">TVout</tt> and type
      <span class="command"><strong>./compile.sh</strong></span>. Install
      <tt class="filename">TVout/matroxset/matroxset</tt>
      somewhere into your <code class="envar">PATH</code>.
    </p></li><li><p>
      If you don't have <span class="command"><strong>fbset</strong></span> installed, put
      <tt class="filename">TVout/fbset/fbset</tt>
      somewhere into your <code class="envar">PATH</code>.
    </p></li><li><p>
      If you don't have <span class="command"><strong>con2fb</strong></span> installed, put
      <tt class="filename">TVout/con2fb/con2fb</tt>
      somewhere into your <code class="envar">PATH</code>.
    </p></li><li><p>
      Then enter into the <tt class="filename">TVout/</tt>
      directory in the <span class="application">MPlayer</span> source, and execute
      <tt class="filename">./modules</tt> as root. Your text-mode console will
      enter into framebuffer mode (no way back!).
    </p></li><li><p>
      Next, EDIT and run the <tt class="filename">./matroxtv</tt> script. This will
      present you to a very simple menu. Press <span class="keycap"><b>2</b></span> and
      <span class="keycap"><b>Enter</b></span>. Now you should have the same picture on your
      monitor, and TV. If the TV (PAL by default)
      picture has some weird stripes on it, the script wasn't able to set the
      resolution correctly (to 640x512 by default). Try other resolutions
      from the menu and/or experiment with fbset.
    </p></li><li><p>
      Yoh. Next task is to make the cursor on tty1 (or whatever) to
      disappear, and turn off screen blanking. Execute the following
      commands:

      </p><pre class="screen">
echo -e '\033[?25l'
setterm -blank 0</pre><p>
      or
      </p><pre class="screen">
setterm -cursor off
setterm -blank 0</pre><p>

      You possibly want to put the above into a script, and also clear the
      screen. To turn the cursor back:
      </p><pre class="screen">echo -e '\033[?25h'</pre><p> or
      </p><pre class="screen">setterm -cursor on</pre><p>
    </p></li><li><p>
      Yeah kewl. Start movie playing with
      </p><pre class="screen">
mplayer -vo mga -fs -screenw 640 -screenh 512 <em class="replaceable"><code>filename</code></em></pre><p>

      (If you use X, now change to matroxfb with for example
      <span class="keycap"><b>Ctrl</b></span>+<span class="keycap"><b>Alt</b></span>+<span class="keycap"><b>F1</b></span>.)
      Change <code class="literal">640</code> and <code class="literal">512</code> if you set
      the resolution to other...
    </p></li><li><p>
      <span class="bold"><strong>Enjoy the ultra-fast ultra-featured Matrox TV
      output (better than Xv)!</strong></span>
    </p></li></ol></div></dd></dl></div><p><b>Building a Matrox TV-out cable.聽</b>
No one takes any responsibility, nor guarantee for any damage caused
by this documentation.
</p><p><b>Cable for G400.聽</b>
The CRTC2 connector's fourth pin is the composite video signal. The
ground are the sixth, seventh and eighth pins. (info contributed
from Bal谩zs R谩cz)
</p><p><b>Cable for G450.聽</b>
The CRTC2 connector's first pin is the composite video signal. The
ground are the fifth, sixth, seventh, and fifteenth (5, 6, 7, 15)
pins. (info contributed from Bal谩zs Kerekes)
</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="tv-out_matrox_g450"></a>8.20.2.聽Matrox G450/G550 cards</h3></div></div></div><p>
TV output support for these cards has only been recently introduced, and is
not yet in the mainstream kernel.
Currently the <span class="bold"><strong>mga_vid</strong></span> module can't be used
AFAIK, because the G450/G550 driver works only in one configuration: the first
CRTC chip (with much more features) on the first display (on monitor),
and the second CRTC (no <span class="bold"><strong>BES</strong></span> - for
explanation on BES, please see the G400 section above) on TV. So you can only
use <span class="application">MPlayer</span>'s <span class="emphasis"><em>fbdev</em></span> output
driver at the present.
</p><p>
The first CRTC can't be routed to the second head currently. The author of the

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -