~ubuntu-dev/mplayer/ubuntu-feisty

« back to all changes in this revision

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

  • Committer: Reinhard Tartler
  • Date: 2006-07-08 08:45:33 UTC
  • Revision ID: siretart@tauware.de-20060708084533-dbc155bde7122e78
imported mplayer_0.99+1.0pre7try2+cvs20060117

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>8.5.�TV-out support</title><link rel="stylesheet" href="default.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.68.1"><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.4.�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="ports.html" title="Chapter�11.�Ports"><link rel="chapter" href="mencoder.html" title="Chapter�12.�Basic usage of MEncoder"><link rel="chapter" href="encoding-guide.html" title="Chapter�13.�Encoding with MEncoder"><link rel="appendix" href="mailinglists.html" title="Appendix�A.�Mailing lists"><link rel="appendix" href="bugreports.html" title="Appendix�B.�How to report bugs"><link rel="appendix" href="bugs.html" title="Appendix�C.�Known bugs"><link rel="appendix" href="skin.html" title="Appendix�D.�MPlayer skin format"><link rel="appendix" href="users-vs-dev.html" title="Appendix�E.�Developer cries"><link rel="subsection" href="tvout.html#tvout-mga-g400" title="8.5.1.�Matrox G400 cards"><link rel="subsection" href="tvout.html#tv-out_matrox_g450" title="8.5.2.�Matrox G450/G550 cards"><link rel="subsection" href="tvout.html#tvout-ati" title="8.5.3.�ATI cards"><link rel="subsection" href="tvout.html#tvout-voodoo" title="8.5.4.�Voodoo 3"><link rel="subsection" href="tvout.html#tvout-nvidia" title="8.5.5.�nVidia"><link rel="subsection" href="tvout.html#tvout-neomagic" title="8.5.6.�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.5.�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.5.�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.5.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">Important</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 <span class="emphasis"><em>BES</em></span>
 
11
    (Back End Scaler, the YUV scaler on G200/G400/G450/G550 cards) doesn't
 
12
    work on it! The windows driver somehow workarounds this, probably by
 
13
    using the 3D engine to zoom, and the YUV framebuffer to display the
 
14
    zoomed image. If you really want to use X, use the <tt class="option">-vo x11 -fs
 
15
    -zoom</tt> options, but it will be <span class="bold"><strong>SLOW</strong></span>,
 
16
    and has <span class="bold"><strong>Macrovision</strong></span> copy protection enabled
 
17
    (you can "workaround" Macrovision using this
 
18
    <a href="http://avifile.sf.net/mgamacro.pl" target="_top">perl script</a>).
 
19
    </p></dd><dt><span class="term">Framebuffer</span></dt><dd><p>
 
20
    Using the <span class="bold"><strong>matroxfb modules</strong></span> in the 2.4
 
21
    kernels. 2.2 kernels don't have the TVout feature in them, thus unusable
 
22
    for this. You have to enable ALL matroxfb-specific feature during compilation
 
23
    (except MultiHead), and compile them into <span class="bold"><strong>modules</strong></span>!
 
24
    You'll also need I2C enabled.
 
25
    </p><div class="procedure"><ol type="1"><li><p>
 
26
      Enter <tt class="filename">TVout</tt> and type
 
27
      <span><strong class="command">./compile.sh</strong></span>. Install
 
28
      <tt class="filename">TVout/matroxset/matroxset</tt>
 
29
      somewhere into your <code class="envar">PATH</code>.
 
30
      </p></li><li><p>
 
31
      If you don't have <span><strong class="command">fbset</strong></span> installed, put
 
32
      <tt class="filename">TVout/fbset/fbset</tt>
 
33
      somewhere into your <code class="envar">PATH</code>.
 
34
      </p></li><li><p>
 
35
      If you don't have <span><strong class="command">con2fb</strong></span> installed, put
 
36
      <tt class="filename">TVout/con2fb/con2fb</tt>
 
37
      somewhere into your <code class="envar">PATH</code>.
 
38
      </p></li><li><p>
 
39
      Then enter into the <tt class="filename">TVout/</tt> directory
 
40
      in the <span class="application">MPlayer</span> source, and execute
 
41
      <tt class="filename">./modules</tt> as root. Your text-mode console will
 
42
      enter into framebuffer mode (no way back!).
 
43
      </p></li><li><p>
 
44
      Next, EDIT and run the <tt class="filename">./matroxtv</tt> script. This will
 
45
      present you to a very simple menu. Press <span class="keycap"><b>2</b></span> and
 
46
      <span class="keycap"><b>Enter</b></span>. Now you should have the same picture on your
 
47
      monitor, and TV. If the TV (PAL by default)
 
48
      picture has some weird stripes on it, the script wasn't able to set the
 
49
      resolution correctly (to 640x512 by default). Try other resolutions
 
50
      from the menu and/or experiment with fbset.
 
51
      </p></li><li><p>
 
52
      Yoh. Next task is to make the cursor on tty1 (or whatever) to
 
53
      disappear, and turn off screen blanking. Execute the following
 
54
      commands:
 
55
 
 
56
      </p><pre class="screen">
 
57
echo -e '\033[?25l'
 
58
setterm -blank 0</pre><p>
 
59
      or
 
60
      </p><pre class="screen">
 
61
setterm -cursor off
 
62
setterm -blank 0</pre><p>
 
63
 
 
64
      You possibly want to put the above into a script, and also clear the
 
65
      screen. To turn the cursor back:
 
66
      </p><pre class="screen">echo -e '\033[?25h'</pre><p> or
 
67
      </p><pre class="screen">setterm -cursor on</pre><p>
 
68
      </p></li><li><p>
 
69
      Yeah kewl. Start movie playing with
 
70
      </p><pre class="screen">
 
71
mplayer -vo mga -fs -screenw 640 -screenh 512 <em class="replaceable"><code>filename</code></em></pre><p>
 
72
 
 
73
      (If you use X, now change to matroxfb with for example
 
74
      <span class="keycap"><b>Ctrl</b></span>+<span class="keycap"><b>Alt</b></span>+<span class="keycap"><b>F1</b></span>.)
 
75
      Change <code class="literal">640</code> and <code class="literal">512</code> if you set
 
76
      the resolution to other...
 
77
      </p></li><li><p>
 
78
      <span class="bold"><strong>Enjoy the ultra-fast ultra-featured Matrox TV
 
79
      output (better than Xv)!</strong></span>
 
80
      </p></li></ol></div></dd></dl></div><p><b>Building a Matrox TV-out cable.�</b>
 
81
No one takes any responsibility, nor guarantee for any damage caused
 
82
by this documentation.
 
83
</p><p><b>Cable for G400.�</b>
 
84
The CRTC2 connector's fourth pin is the composite video signal. The
 
85
ground are the sixth, seventh and eighth pins. (info contributed
 
86
from Bal�zs R�cz)
 
87
</p><p><b>Cable for G450.�</b>
 
88
The CRTC2 connector's first pin is the composite video signal. The
 
89
ground are the fifth, sixth, seventh, and fifteenth (5, 6, 7, 15)
 
90
pins. (info contributed from Bal�zs Kerekes)
 
91
</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="tv-out_matrox_g450"></a>8.5.2.�Matrox G450/G550 cards</h3></div></div></div><p>
 
92
TV output support for these cards has only been recently introduced, and is
 
93
not yet in the mainstream kernel. Currently the <span class="bold"><strong>mga_vid</strong></span>
 
94
module can't be used AFAIK, because the G450/G550 driver works only in one
 
95
configuration: the first CRTC chip (with much more features) on the first display
 
96
(on monitor), and the second CRTC (no <span class="bold"><strong>BES</strong></span> - for
 
97
explanation on BES, please see the G400 section above) on TV. So you can only
 
98
use <span class="application">MPlayer</span>'s <span class="emphasis"><em>fbdev</em></span> output driver
 
99
at the present.
 
100
</p><p>
 
101
The first CRTC can't be routed to the second head currently. The author of the
 
102
kernel matroxfb driver - Petr Vandrovec - will maybe make support for this, by
 
103
displaying the first CRTC's output onto both of the heads at once, as currently
 
104
recommended for G400, see the section above.
 
105
</p><p>
 
106
The necessary kernel patch and the detailed HOWTO is downloadable from
 
107
<a href="http://www.bglug.ca/matrox_tvout/" target="_top">http://www.bglug.ca/matrox_tvout/</a>
 
108
</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="tvout-ati"></a>8.5.3.�ATI cards</h3></div></div></div><p><b>PREAMBLE.�</b>
 
109
Currently ATI doesn't want to support any of its TV-out chips under Linux,
 
110
because of their licensed Macrovision technology.
 
111
</p><div class="itemizedlist"><p class="title"><b>ATI CARDS TV-OUT STATUS ON LINUX</b></p><ul type="disc"><li>
 
112
  <span class="bold"><strong>ATI Mach64</strong></span>:
 
113
  supported by <a href="http://gatos.sf.net" target="_top">GATOS</a>.
 
114
  </li><li>
 
115
  <span class="bold"><strong>ASIC Radeon VIVO</strong></span>:
 
116
  supported by <a href="http://gatos.sf.net" target="_top">GATOS</a>.
 
117
  </li><li>
 
118
  <span class="bold"><strong>Radeon</strong></span> and <span class="bold"><strong>Rage128</strong></span>:
 
119
  supported by <span class="application">MPlayer</span>!
 
120
  Check <a href="output-trad.html#vesa" title="8.2.11.�VESA - output to VESA BIOS">VESA driver</a> and
 
121
  <a href="output-trad.html#vidix" title="8.2.13.�VIDIX">VIDIX</a> sections.
 
122
  </li><li>
 
123
  <span class="bold"><strong>Rage Mobility P/M, Radeon, Rage 128, Mobility M3/M4</strong></span>:
 
124
  supported by <a href="http://www.stud.uni-hamburg.de/users/lennart/projects/atitvout/" target="_top">atitvout</a>.
 
125
  </li></ul></div><p>
 
126
On other cards, just use the <a href="output-trad.html#vesa" title="8.2.11.�VESA - output to VESA BIOS">VESA</a> driver,
 
127
without VIDIX. Powerful CPU is needed, though.
 
128
</p><p>
 
129
Only thing you need to do - <span class="bold"><strong>Have the TV connector
 
130
plugged in before booting your PC</strong></span> since video BIOS initializes
 
131
itself only once during POST procedure.
 
132
</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="tvout-voodoo"></a>8.5.4.�Voodoo 3</h3></div></div></div><p>
 
133
Check <a href="http://www.iki.fi/too/tvout-voodoo3-3000-xfree" target="_top">this URL</a>.
 
134
</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="tvout-nvidia"></a>8.5.5.�nVidia</h3></div></div></div><p>
 
135
First, you MUST download the closed-source drivers from <a href="http://nvidia.com" target="_top">http://nvidia.com</a>.
 
136
I will not describe the installation and configuration process because it does not cover
 
137
the scope of this documentation.
 
138
</p><p>
 
139
After XFree86, XVideo, and 3D acceleration is properly working, edit your
 
140
card's Device section in the <tt class="filename">XF86Config</tt> file, according
 
141
to the following example (adapt for your card/TV):
 
142
 
 
143
</p><pre class="programlisting">
 
144
Section "Device"
 
145
        Identifier      "GeForce"
 
146
        VendorName      "ASUS"
 
147
        BoardName       "nVidia GeForce2/MX 400"
 
148
        Driver          "nvidia"
 
149
        #Option         "NvAGP" "1"
 
150
        Option          "NoLogo"
 
151
        Option          "CursorShadow"  "on"
 
152
 
 
153
        Option          "TwinView"
 
154
        Option          "TwinViewOrientation" "Clone"
 
155
        Option          "MetaModes" "1024x768,640x480"
 
156
        Option          "ConnectedMonitor" "CRT, TV"
 
157
        Option          "TVStandard" "PAL-B"
 
158
        Option          "TVOutFormat" "Composite"
 
159
 
 
160
EndSection
 
161
</pre><p>
 
162
</p><p>
 
163
Of course the important thing is the TwinView part.
 
164
</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="tvout-neomagic"></a>8.5.6.�NeoMagic</h3></div></div></div><p>
 
165
The NeoMagic chip is found in a variety of laptops, some of them are equipped
 
166
with a simple analog TV encoder, some have a more advanced one.
 
167
</p><div class="itemizedlist"><ul type="disc"><li><p>
 
168
  <span class="bold"><strong>Analog encoder chip</strong></span>:
 
169
  Tested on a Toshiba Tecra 8000. Its TV output chip is miserable crap. Avoid
 
170
  if possible.
 
171
  </p><p>
 
172
  You must use <tt class="option">-vo vesa</tt>. The tested chip was capable of
 
173
  1.333333 aspect ratio only, so be sure to use the <tt class="option">-x</tt>,
 
174
  <tt class="option">-y</tt> options and/or the
 
175
  <tt class="option">-vf scale,crop,expand</tt> filters if the box doesn't let
 
176
  you enable TV output. Maximum resolution was 720*576 at 16bpp.
 
177
  </p><p>
 
178
  Known issues: VESA-only, 1.33333 limitation, image isn't always centered,
 
179
  movie becomes 4bpp in every 10 minutes, and stays that way. Frequent hard
 
180
  freezes, LCD display problems.
 
181
  </p></li><li><p>
 
182
  <span class="bold"><strong>Chrontel 70xx encoder chip</strong></span>:
 
183
  Found in IBM Thinkpad 390E and possibly other Thinkpads or notebooks.
 
184
  </p><p>
 
185
  You must use <tt class="option">-vo vesa:neotv_pal</tt> for PAL or
 
186
  <tt class="option">-vo vesa:neotv_ntsc</tt> for NTSC.
 
187
  It will provide TV output function in the following 16 bpp and 8 bpp modes:
 
188
  </p><div class="itemizedlist"><ul type="circle"><li>NTSC 320x240, 640x480 and maybe 800x600 too.</li><li>PAL  320x240, 400x300, 640x480, 800x600.</li></ul></div><p>Mode 512x384 is not supported in BIOS. You must scale the image
 
189
  to a different resolution to activate TV out. If you can see an image on the
 
190
  screen in 640x480 or in 800x600 but not in 320x240 or other smaller
 
191
  resolution you need to replace two tables in <tt class="filename">vbelib.c</tt>.
 
192
  See the vbeSetTV function for details. Please contact the author in this case.
 
193
  </p><p>
 
194
  Known issues: VESA-only, no other controls such as brightness, contrast,
 
195
  blacklevel, flickfilter are implemented.
 
196
  </p></li></ul></div><p>
 
197
</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">Prev</a>�</td><td width="20%" align="center"><a accesskey="u" href="video.html">Up</a></td><td width="40%" align="right">�<a accesskey="n" href="audio.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">8.4.�Other visualization hardware�</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">�Chapter�9.�Audio output devices</td></tr></table></div></body></html>