~ubuntu-branches/debian/sid/mplayer/sid

« back to all changes in this revision

Viewing changes to DOCS/HTML/zh_CN/tvout.html

  • Committer: Bazaar Package Importer
  • Author(s): A Mennucc1
  • Date: 2009-03-23 10:05:45 UTC
  • mfrom: (4.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20090323100545-x8h79obawnnte7kk
Tags: 1.0~rc2+svn20090303-5
debian/control : move docbook-xml,docbook-xsl,xsltproc from 
Build-Depends-Indep to Build-Depends, since they are needed to run
configure

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<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.71.0"><link rel="start" href="index.html" title="MPlayer - 电影播放器"><link rel="up" href="video.html" title="第 8 章 Video output devices"><link rel="prev" href="other.html" title="8.19. Other visualization hardware"><link rel="next" href="audio.html" title="第 9 章 音频输出设备"><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="cd-dvd.html" title="第 4 章 CD/DVD用法"><link rel="chapter" href="faq.html" title="第 5 章 Frequently Asked Questions"><link rel="chapter" href="containers.html" title="第 6 章 Containers"><link rel="chapter" href="codecs.html" title="第 7 章 Codecs"><link rel="chapter" href="video.html" title="第 8 章 Video output devices"><link rel="chapter" href="audio.html" title="第 9 章 音频输出设备"><link rel="chapter" href="tv.html" title="第 10 章 TV"><link rel="chapter" href="radio.html" title="第 11 章 广播电台"><link rel="chapter" href="ports.html" title="第 12 章 Ports"><link rel="chapter" href="mencoder.html" title="第 13 章 MEncoder的基础用法"><link rel="chapter" href="encoding-guide.html" title="第 14 章 Encoding with MEncoder"><link rel="appendix" href="bugreports.html" title="附录 A. 如何报告错误"><link rel="appendix" href="bugs.html" title="附录 B. 已知错误"><link rel="appendix" href="skin.html" title="附录 C. MPlayer skin format"><link rel="appendix" href="history.html" title="附录 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">上一页</a> </td><th width="60%" align="center">第 8 章 Video output devices</th><td width="20%" align="right"> <a accesskey="n" href="audio.html">下一页</a></td></tr></table><hr></div><div class="sect1" lang="zh-CN"><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="zh-CN"><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>
2
 
Under Linux you have two methods to get G400 TV out working:
3
 
</p><div class="important" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">重要</h3><p>
4
 
for Matrox G450/G550 TV-out instructions, please see the next section!
5
 
</p></div><div class="variablelist"><dl><dt><span class="term">XFree86</span></dt><dd><p>
6
 
    Using the driver and the HAL module, available from the <a href="http://www.matrox.com" target="_top">Matrox site</a>. This will give you X
7
 
    on the TV.
8
 
    </p><p>
9
 
    <span class="bold"><strong>This method doesn't give you accelerated playback</strong></span>
10
 
    as under Windows! The second head has only YUV framebuffer, the
11
 
    <span class="emphasis"><em>BES</em></span> (Back End Scaler, the YUV scaler on
12
 
    G200/G400/G450/G550 cards) doesn't work on it! The windows driver somehow
13
 
    workarounds this, probably by using the 3D engine to zoom, and the YUV
14
 
    framebuffer to display the zoomed image. If you really want to use X, use
15
 
    the <tt class="option">-vo x11 -fs -zoom</tt> options, but it will be
16
 
    <span class="bold"><strong>SLOW</strong></span>, and has
17
 
    <span class="bold"><strong>Macrovision</strong></span> copy protection enabled
18
 
    (you can "workaround" Macrovision using this
19
 
    <a href="http://avifile.sf.net/mgamacro.pl" target="_top">perl script</a>).
20
 
    </p></dd><dt><span class="term">Framebuffer</span></dt><dd><p>
21
 
    Using the <span class="bold"><strong>matroxfb modules</strong></span> in the 2.4
22
 
    kernels. 2.2 kernels don't have the TVout feature in them, thus unusable
23
 
    for this. You have to enable ALL matroxfb-specific feature during
24
 
    compilation (except MultiHead), and compile them into
25
 
    <span class="bold"><strong>modules</strong></span>!
26
 
    You'll also need I2C enabled.
27
 
    </p><div class="procedure"><ol type="1"><li><p>
28
 
      Enter <tt class="filename">TVout</tt> and type
29
 
      <span><strong class="command">./compile.sh</strong></span>. Install
30
 
      <tt class="filename">TVout/matroxset/matroxset</tt>
31
 
      somewhere into your <code class="envar">PATH</code>.
32
 
    </p></li><li><p>
33
 
      If you don't have <span><strong class="command">fbset</strong></span> installed, put
34
 
      <tt class="filename">TVout/fbset/fbset</tt>
35
 
      somewhere into your <code class="envar">PATH</code>.
36
 
    </p></li><li><p>
37
 
      If you don't have <span><strong class="command">con2fb</strong></span> installed, put
38
 
      <tt class="filename">TVout/con2fb/con2fb</tt>
39
 
      somewhere into your <code class="envar">PATH</code>.
40
 
    </p></li><li><p>
41
 
      Then enter into the <tt class="filename">TVout/</tt>
42
 
      directory in the <span class="application">MPlayer</span> source, and execute
43
 
      <tt class="filename">./modules</tt> as root. Your text-mode console will
44
 
      enter into framebuffer mode (no way back!).
45
 
    </p></li><li><p>
46
 
      Next, EDIT and run the <tt class="filename">./matroxtv</tt> script. This will
47
 
      present you to a very simple menu. Press <span class="keycap"><b>2</b></span> and
48
 
      <span class="keycap"><b>Enter</b></span>. Now you should have the same picture on your
49
 
      monitor, and TV. If the TV (PAL by default)
50
 
      picture has some weird stripes on it, the script wasn't able to set the
51
 
      resolution correctly (to 640x512 by default). Try other resolutions
52
 
      from the menu and/or experiment with fbset.
53
 
    </p></li><li><p>
54
 
      Yoh. Next task is to make the cursor on tty1 (or whatever) to
55
 
      disappear, and turn off screen blanking. Execute the following
56
 
      commands:
57
 
 
58
 
      </p><pre class="screen">
59
 
echo -e '\033[?25l'
60
 
setterm -blank 0</pre><p>
61
 
      or
62
 
      </p><pre class="screen">
63
 
setterm -cursor off
64
 
setterm -blank 0</pre><p>
65
 
 
66
 
      You possibly want to put the above into a script, and also clear the
67
 
      screen. To turn the cursor back:
68
 
      </p><pre class="screen">echo -e '\033[?25h'</pre><p> or
69
 
      </p><pre class="screen">setterm -cursor on</pre><p>
70
 
    </p></li><li><p>
71
 
      Yeah kewl. Start movie playing with
72
 
      </p><pre class="screen">
73
 
mplayer -vo mga -fs -screenw 640 -screenh 512 <em class="replaceable"><code>filename</code></em></pre><p>
74
 
 
75
 
      (If you use X, now change to matroxfb with for example
76
 
      <span class="keycap"><b>Ctrl</b></span>-<span class="keycap"><b>Alt</b></span>-<span class="keycap"><b>F1</b></span>.)
77
 
      Change <code class="literal">640</code> and <code class="literal">512</code> if you set
78
 
      the resolution to other...
79
 
    </p></li><li><p>
80
 
      <span class="bold"><strong>Enjoy the ultra-fast ultra-featured Matrox TV
81
 
      output (better than Xv)!</strong></span>
82
 
    </p></li></ol></div></dd></dl></div><p><b>Building a Matrox TV-out cable. </b>
83
 
No one takes any responsibility, nor guarantee for any damage caused
84
 
by this documentation.
85
 
</p><p><b>Cable for G400. </b>
86
 
The CRTC2 connector's fourth pin is the composite video signal. The
87
 
ground are the sixth, seventh and eighth pins. (info contributed
88
 
from Balázs Rácz)
89
 
</p><p><b>Cable for G450. </b>
90
 
The CRTC2 connector's first pin is the composite video signal. The
91
 
ground are the fifth, sixth, seventh, and fifteenth (5, 6, 7, 15)
92
 
pins. (info contributed from Balázs Kerekes)
93
 
</p></div><div class="sect2" lang="zh-CN"><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>
94
 
TV output support for these cards has only been recently introduced, and is
95
 
not yet in the mainstream kernel.
96
 
Currently the <span class="bold"><strong>mga_vid</strong></span> module can't be used
97
 
AFAIK, because the G450/G550 driver works only in one configuration: the first
98
 
CRTC chip (with much more features) on the first display (on monitor),
99
 
and the second CRTC (no <span class="bold"><strong>BES</strong></span> - for
100
 
explanation on BES, please see the G400 section above) on TV. So you can only
101
 
use <span class="application">MPlayer</span>'s <span class="emphasis"><em>fbdev</em></span> output
102
 
driver at the present.
103
 
</p><p>
104
 
The first CRTC can't be routed to the second head currently. The author of the
105
 
kernel matroxfb driver - Petr Vandrovec - will maybe make support for this, by
106
 
displaying the first CRTC's output onto both of the heads at once, as currently
107
 
recommended for G400, see the section above.
108
 
</p><p>
109
 
The necessary kernel patch and the detailed HOWTO is downloadable from
110
 
<a href="http://www.bglug.ca/matrox_tvout/" target="_top">http://www.bglug.ca/matrox_tvout/</a>
111
 
</p></div><div class="sect2" lang="zh-CN"><div class="titlepage"><div><div><h3 class="title"><a name="tvout-ati"></a>8.20.3. ATI cards</h3></div></div></div><p><b>PREAMBLE. </b>
112
 
Currently ATI doesn't want to support any of its TV-out chips under Linux,
113
 
because of their licensed Macrovision technology.
114
 
</p><div class="itemizedlist"><p class="title"><b>ATI CARDS TV-OUT STATUS ON LINUX</b></p><ul type="disc"><li><p>
115
 
  <span class="bold"><strong>ATI Mach64</strong></span>:
116
 
  supported by <a href="http://gatos.sf.net" target="_top">GATOS</a>.
117
 
</p></li><li><p>
118
 
  <span class="bold"><strong>ASIC Radeon VIVO</strong></span>:
119
 
  supported by <a href="http://gatos.sf.net" target="_top">GATOS</a>.
120
 
</p></li><li><p>
121
 
  <span class="bold"><strong>Radeon</strong></span> and <span class="bold"><strong>Rage128</strong></span>:
122
 
  supported by <span class="application">MPlayer</span>!
123
 
  Check <a href="vesa.html" title="8.13. VESA - output to VESA BIOS">VESA driver</a> and
124
 
  <a href="vidix.html" title="8.15. VIDIX">VIDIX</a> sections.
125
 
</p></li><li><p>
126
 
  <span class="bold"><strong>Rage Mobility P/M, Radeon, Rage 128, Mobility M3/M4</strong></span>:
127
 
  supported by
128
 
  <a href="http://www.stud.uni-hamburg.de/users/lennart/projects/atitvout/" target="_top">atitvout</a>.
129
 
</p></li></ul></div><p>
130
 
On other cards, just use the <a href="vesa.html" title="8.13. VESA - output to VESA BIOS">VESA</a> driver,
131
 
without VIDIX. Powerful CPU is needed, though.
132
 
</p><p>
133
 
Only thing you need to do - <span class="bold"><strong>Have the TV connector
134
 
plugged in before booting your PC</strong></span> since video BIOS initializes
135
 
itself only once during POST procedure.
136
 
</p></div><div class="sect2" lang="zh-CN"><div class="titlepage"><div><div><h3 class="title"><a name="tvout-nvidia"></a>8.20.4. nVidia</h3></div></div></div><p>
137
 
First, you MUST download the closed-source drivers from
138
 
<a href="http://nvidia.com" target="_top">http://nvidia.com</a>.
139
 
I will not describe the installation and configuration process because it does
140
 
not cover the scope of this documentation.
141
 
</p><p>
142
 
After XFree86, XVideo, and 3D acceleration is properly working, edit your
143
 
card's Device section in the <tt class="filename">XF86Config</tt> file, according
144
 
to the following example (adapt for your card/TV):
145
 
 
146
 
</p><pre class="programlisting">
147
 
Section "Device"
148
 
        Identifier      "GeForce"
149
 
        VendorName      "ASUS"
150
 
        BoardName       "nVidia GeForce2/MX 400"
151
 
        Driver          "nvidia"
152
 
        #Option         "NvAGP" "1"
153
 
        Option          "NoLogo"
154
 
        Option          "CursorShadow"  "on"
155
 
 
156
 
        Option          "TwinView"
157
 
        Option          "TwinViewOrientation" "Clone"
158
 
        Option          "MetaModes" "1024x768,640x480"
159
 
        Option          "ConnectedMonitor" "CRT, TV"
160
 
        Option          "TVStandard" "PAL-B"
161
 
        Option          "TVOutFormat" "Composite"
162
 
EndSection
163
 
</pre><p>
164
 
</p><p>
165
 
Of course the important thing is the TwinView part.
166
 
</p></div><div class="sect2" lang="zh-CN"><div class="titlepage"><div><div><h3 class="title"><a name="tvout-neomagic"></a>8.20.5. NeoMagic</h3></div></div></div><p>
167
 
The NeoMagic chip is found in a variety of laptops, some of them are equipped
168
 
with a simple analog TV encoder, some have a more advanced one.
169
 
</p><div class="itemizedlist"><ul type="disc"><li><p>
170
 
  <span class="bold"><strong>Analog encoder chip</strong></span>:
171
 
  It has been reported that reliable TV out can be obtained by using
172
 
  <tt class="option">-vo fbdev</tt> or <tt class="option">-vo fbdev2</tt>.
173
 
  You need to have vesafb compiled in your kernel and pass
174
 
  the following parameters on the kernel command line:
175
 
  <tt class="option">append="video=vesafb:ywrap,mtrr" vga=791</tt>.
176
 
  You should start <span class="application">X</span>, then switch to console mode
177
 
  with e.g.
178
 
  <span class="keycap"><b>Ctrl</b></span>-<span class="keycap"><b>Alt</b></span>-<span class="keycap"><b>F1</b></span>.
179
 
  If you fail to start <span class="application">X</span> before running
180
 
  <span class="application">MPlayer</span> from the console, the video
181
 
  becomes slow and choppy (explanations are welcome).
182
 
  Login to your console, then initiate the following command:
183
 
 
184
 
  </p><pre class="screen">clear; mplayer -vo fbdev -zoom -cache 8192 dvd://</pre><p>
185
 
 
186
 
  Now you should see the movie running in console mode filling up about
187
 
  half your laptop's LCD screen. To switch to TV hit
188
 
  <span class="keycap"><b>Fn</b></span>-<span class="keycap"><b>F5</b></span> three times.
189
 
  Tested on a Tecra 8000, 2.6.15 kernel with vesafb, ALSA v1.0.10.
190
 
</p></li><li><p>
191
 
  <span class="bold"><strong>Chrontel 70xx encoder chip</strong></span>:
192
 
  Found in IBM Thinkpad 390E and possibly other Thinkpads or notebooks.
193
 
  </p><p>
194
 
  You must use <tt class="option">-vo vesa:neotv_pal</tt> for PAL or
195
 
  <tt class="option">-vo vesa:neotv_ntsc</tt> for NTSC.
196
 
  It will provide TV output function in the following 16 bpp and 8 bpp modes:
197
 
  </p><div class="itemizedlist"><ul type="circle"><li><p>NTSC 320x240, 640x480 and maybe 800x600 too.</p></li><li><p>PAL  320x240, 400x300, 640x480, 800x600.</p></li></ul></div><p>Mode 512x384 is not supported in BIOS. You must scale the image
198
 
  to a different resolution to activate TV out. If you can see an image on the
199
 
  screen in 640x480 or in 800x600 but not in 320x240 or other smaller
200
 
  resolution you need to replace two tables in <tt class="filename">vbelib.c</tt>.
201
 
  See the vbeSetTV function for details. Please contact the author in this case.
202
 
  </p><p>
203
 
  Known issues: VESA-only, no other controls such as brightness, contrast,
204
 
  blacklevel, flickfilter are implemented.
205
 
  </p></li></ul></div><p>
206
 
</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="other.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="audio.html">下一页</a></td></tr><tr><td width="40%" align="left" valign="top">8.19. Other visualization hardware </td><td width="20%" align="center"><a accesskey="h" href="index.html">起始页</a></td><td width="40%" align="right" valign="top"> 第 9 章 音频输出设备</td></tr></table></div></body></html>