Mercurial > mplayer.hg
annotate DOCS/xml/en/video.xml @ 11323:c6758363a238
A-V sync fix by Timo Kanera <timo@kanera.de>.
author | diego |
---|---|
date | Thu, 30 Oct 2003 00:08:06 +0000 |
parents | 5fde9e4e1d17 |
children | 7d120a00fcf7 |
rev | line source |
---|---|
9675 | 1 <?xml version="1.0" encoding="iso-8859-1"?> |
10913
49b1a67e7381
Add revision keyword to english xml files, to ease translation synchronization
lumag
parents:
10869
diff
changeset
|
2 <!-- $Revision$ --> |
9675 | 3 <sect2 id="video-dev"> |
4 <title>Video output devices</title> | |
5 | |
6 <sect3 id="mtrr"> | |
7 <title>Setting up MTRR</title> | |
8 | |
9 <para> | |
10 It is VERY recommended to check if the MTRR registers | |
11 are set up properly, because they can give a big performance boost. | |
12 </para> | |
13 | |
14 <para> | |
15 Do a <command>/proc/mtrr</command>: | |
16 <screen> | |
17 <prompt>--($:~)--</prompt> cat /proc/mtrr | |
18 reg00: base=0xe4000000 (3648MB), size= 16MB: write-combining, count=9 | |
19 reg01: base=0xd8000000 (3456MB), size= 128MB: write-combining, count=1<!-- | |
20 --></screen> | |
21 </para> | |
22 | |
23 <para> | |
24 It's right, shows my Matrox G400 with 16MB memory. I did this from | |
25 XFree 4.x.x , which sets up MTRR registers automatically. | |
26 </para> | |
27 | |
28 <para> | |
29 If nothing worked, you have to do it manually. First, you have to find the | |
30 base address. You have 3 ways to find it: | |
31 | |
32 <orderedlist> | |
33 <listitem><para> | |
34 from X11 startup messages, for example: | |
35 <screen> | |
36 (--) SVGA: PCI: Matrox MGA G400 AGP rev 4, Memory @ 0xd8000000, 0xd4000000 | |
37 (--) SVGA: Linear framebuffer at 0xD8000000<!-- | |
38 --></screen> | |
39 </para></listitem> | |
40 <listitem><para> | |
41 from <filename>/proc/pci</filename> (use <command>lspci -v</command> | |
42 command): | |
43 <screen> | |
44 01:00.0 VGA compatible controller: Matrox Graphics, Inc.: Unknown device 0525 | |
45 Memory at d8000000 (32-bit, prefetchable) | |
46 </screen> | |
47 </para></listitem> | |
48 <listitem><para> | |
49 from mga_vid kernel driver messages (use <command>dmesg</command>): | |
50 <screen>mga_mem_base = d8000000</screen> | |
51 </para></listitem> | |
52 </orderedlist> | |
53 </para> | |
54 | |
55 <para> | |
56 Then let's find the memory size. This is very easy, just convert video RAM | |
57 size to hexadecimal, or use this table: | |
58 <informaltable frame="none"> | |
59 <tgroup cols="2"> | |
60 <tbody> | |
61 <row><entry>1 MB</entry><entry>0x100000</entry></row> | |
62 <row><entry>2 MB</entry><entry>0x200000</entry></row> | |
63 <row><entry>4 MB</entry><entry>0x400000</entry></row> | |
64 <row><entry>8 MB</entry><entry>0x800000</entry></row> | |
65 <row><entry>16 MB</entry><entry>0x1000000</entry></row> | |
66 <row><entry>32 MB</entry><entry>0x2000000</entry></row> | |
67 </tbody> | |
68 </tgroup> | |
69 </informaltable> | |
70 </para> | |
71 | |
72 <para> | |
73 You know base address and memory size, let's setup MTRR registers! | |
74 For example, for the Matrox card above (<literal>base=0xd8000000</literal>) | |
75 with 32MB ram (<literal>size=0x2000000</literal>) just execute: | |
76 <screen> | |
77 echo "base=0xd8000000 size=0x2000000 type=write-combining" >| /proc/mtrr | |
78 </screen> | |
79 </para> | |
80 | |
81 <para> | |
82 Not all CPUs support MTRRs. For example older K6-2's (around 266MHz, | |
83 stepping 0) doesn't support MTRR, but stepping 12's do (<command>cat /proc/cpuinfo | |
84 </command> to check it). | |
85 </para> | |
86 </sect3> | |
87 | |
88 <sect3 id="output-trad"> | |
89 <title>Video outputs for traditional video cards</title> | |
90 <sect4 id="xv"> | |
91 <title>Xv</title> | |
92 | |
93 <para> | |
94 Under XFree86 4.0.2 or newer, you can use your card's hardware YUV routines | |
95 using the XVideo extension. This is what the option '<option>-vo | |
96 xv</option>' uses. Also, this is driver supports adjusting | |
97 brightness/contrast/hue/etc (unless you use the old, slow DirectShow DivX | |
98 codec, which supports it everywhere), see the man page. | |
99 </para> | |
100 | |
101 <para> | |
102 In order to make this work, be sure to check the following: | |
103 | |
104 <orderedlist> | |
105 <listitem><para> | |
106 You have to use XFree86 4.0.2 or newer (former versions don't have XVideo) | |
107 </para></listitem> | |
108 <listitem><para> | |
109 Your card actually supports hardware acceleration (modern cards do) | |
110 </para></listitem> | |
111 <listitem><para> | |
112 X loads the XVideo extension, it's something like this: | |
113 <programlisting>(II) Loading extension XVideo</programlisting> | |
114 in <filename>/var/log/XFree86.0.log</filename> | |
115 <note><para> | |
116 This loads only the XFree86's extension. In a good install, this is | |
117 always loaded, and doesn't mean that the <emphasis role="bold">card's</emphasis> | |
118 XVideo support is loaded! | |
119 </para></note> | |
120 </para></listitem> | |
121 <listitem><para> | |
122 Your card has Xv support under Linux. To check, try | |
123 <command>xvinfo</command>, it is the part of the XFree86 distribution. It | |
124 should display a long text, similar to this: | |
125 <screen> | |
126 X-Video Extension version 2.2 | |
127 screen #0 | |
128 Adaptor #0: "Savage Streams Engine" | |
129 number of ports: 1 | |
130 port base: 43 | |
131 operations supported: PutImage | |
132 supported visuals: | |
133 depth 16, visualID 0x22 | |
134 depth 16, visualID 0x23 | |
135 number of attributes: 5 | |
136 (...) | |
137 Number of image formats: 7 | |
138 id: 0x32595559 (YUY2) | |
139 guid: 59555932-0000-0010-8000-00aa00389b71 | |
140 bits per pixel: 16 | |
141 number of planes: 1 | |
142 type: YUV (packed) | |
143 id: 0x32315659 (YV12) | |
144 guid: 59563132-0000-0010-8000-00aa00389b71 | |
145 bits per pixel: 12 | |
146 number of planes: 3 | |
147 type: YUV (planar) | |
148 (...etc...)<!-- | |
149 --></screen> | |
150 It must support YUY2 packed, and YV12 planar pixel formats to be usable | |
151 with <application>MPlayer</application>. | |
152 </para></listitem> | |
153 <listitem><para> | |
154 And finally, check if <application>MPlayer</application> was compiled | |
155 with 'xv' support. <filename>./configure</filename> prints this. | |
156 </para></listitem> | |
157 </orderedlist> | |
158 </para> | |
159 | |
160 <sect5 id="tdfx"> | |
161 <title>3dfx cards</title> | |
162 | |
163 <para> | |
164 Older 3dfx drivers were known to have problems with XVideo acceleration, it | |
165 didn't support either YUY2 or YV12, and so. Verify that you have XFree86 | |
166 version 4.2.0 or greater, it works OK with YV12 and YUY2. Previous | |
167 versions, including 4.1.0, <emphasis role="bold">crashes with YV12</emphasis>. | |
11136 | 168 If you experience strange effects using <option>-vo xv</option>, try SDL |
169 (it has XVideo, too) and see if it helps. Check the | |
170 <link linkend="sdl">SDL section</link> for details. | |
9675 | 171 </para> |
172 | |
173 <para> | |
174 <emphasis role="bold">OR</emphasis>, try the NEW | |
175 <option>-vo tdfxfb</option> driver! See the <link linkend="tdfxfb">tdfxfb</link> | |
176 section. | |
177 </para> | |
178 </sect5> | |
179 | |
180 | |
181 <sect5 id="s3"> | |
182 <title>S3 cards</title> | |
183 | |
184 <para> | |
185 S3 Savage3D's should work fine, but for Savage4, use XFree86 version 4.0.3 | |
186 or greater (in case of image problems, try 16bpp). As for S3 Virge: there is | |
187 xv support, but the card itself is very slow, so you better sell it. | |
188 </para> | |
189 | |
190 <note> | |
191 <para> | |
192 It's currently unclear which Savage models lack YV12 support, and convert by | |
193 driver (slow). If you suspect your card, get a newer driver, or ask politely | |
194 on the mplayer-users mailing list for an MMX/3DNow enabled driver. | |
195 </para> | |
196 </note> | |
197 </sect5> | |
198 | |
199 | |
200 <sect5 id="nvidia"> | |
201 <title>nVidia cards</title> | |
202 | |
203 <para> | |
11065 | 204 nVidia isn't always a very good choice under Linux (according to nVidia, this |
205 is <link linkend="nvidia-opinions">not true</link>)... XFree86's | |
206 open-source driver supports most of these cards, but for some cases, you'll | |
207 have to use the binary closed-source nVidia driver, available at nVidia's web | |
11136 | 208 site. You'll always need this driver if you want 3D acceleration, too. |
9675 | 209 </para> |
210 | |
211 <para> | |
11065 | 212 Riva128 cards don't have XVideo support with XFree86's nVidia driver :( |
213 Complain to nVidia. | |
9675 | 214 </para> |
215 | |
216 <para> | |
11136 | 217 However, MPlayer contains a <link linkend="vidix">VIDIX</link> driver |
11065 | 218 (<link linkend="vidix-nvidia">nvidia_vid</link>) for most nVidia cards. |
219 Currently it is in beta stage, and has some drawbacks. For more information, | |
220 <link linkend="vidix-nvidia">click here</link>. | |
9675 | 221 </para> |
222 </sect5> | |
223 | |
224 | |
225 <sect5 id="ati"> | |
226 <title>ATI cards</title> | |
227 | |
228 <para> | |
229 The <ulink url="http://www.linuxvideo.org/gatos">GATOS driver</ulink> | |
230 (which you should use, unless you have Rage128 or Radeon) has VSYNC enabled | |
231 by default. It means that decoding speed (!) is synced to the monitor's | |
232 refresh rate. If playing seems to be slow, try disabling VSYNC somehow, or | |
233 set refresh rate to a n*(fps of the movie) Hz. | |
234 </para> | |
235 | |
236 <para> | |
10132 | 237 Radeon VE - if you need X, use XFree86 4.2.0 or greater for this card. |
238 No TV out support. Of course with <application>MPlayer</application> you can | |
9675 | 239 happily get <emphasis role="bold">accelerated</emphasis> display, with or without |
240 <emphasis role="bold">TV output</emphasis>, and no libraries or X are needed. | |
241 Read the <link linkend="vidix">VIDIX</link> section. | |
242 </para> | |
243 </sect5> | |
244 | |
245 | |
246 <sect5 id="neomagic"> | |
247 <title>NeoMagic cards</title> | |
248 | |
249 <para> | |
10132 | 250 These cards can be found in many laptops. You must use XFree86 4.3.0 or |
251 above, or else use Stefan Seyfried's | |
10068 | 252 <ulink url="http://www.mplayerhq.hu/MPlayer/contrib/NeoMagic-driver/">Xv-capable drivers</ulink>. |
10132 | 253 Just choose the one that applies to your version of XFree86. |
10068 | 254 </para> |
255 | |
256 <para> | |
257 XFree86 4.3.0 includes Xv support, yet Bohdan Horst sent a small | |
258 <ulink url="http://www.mplayerhq.hu/MPlayer/contrib/NeoMagic-driver/neo_driver.patch">patch</ulink> | |
10132 | 259 against the XFree86 sources that speeds up framebuffer operations (so XVideo) |
260 up to four times. The patch has been included in XFree86 CVS and should be in the | |
261 next release after 4.3.0. | |
9675 | 262 </para> |
263 | |
264 <para> | |
265 To allow playback of DVD sized content change your XF86Config like this: | |
266 <programlisting> | |
267 Section "Device" | |
268 [...] | |
269 Driver "neomagic" | |
270 <emphasis>Option "OverlayMem" "829440"</emphasis> | |
271 [...] | |
272 EndSection<!-- | |
273 --></programlisting> | |
274 </para> | |
275 </sect5> | |
276 | |
277 | |
278 <sect5 id="trident"> | |
279 <title>Trident cards</title> | |
280 <para> | |
281 If you want to use xv with a trident card, provided that it doesn't work | |
282 with 4.1.0, install XFree 4.2.0. 4.2.0 adds support for fullscreen xv | |
283 support with the Cyberblade XP card. | |
284 </para> | |
11079
d4df1e5e5e49
the author's homepage points to us as the latest driver's source, so we
gabucino
parents:
11067
diff
changeset
|
285 |
d4df1e5e5e49
the author's homepage points to us as the latest driver's source, so we
gabucino
parents:
11067
diff
changeset
|
286 <para> |
11136 | 287 Alternatively, MPlayer contains a <link linkend="vidix">VIDIX</link> driver |
11079
d4df1e5e5e49
the author's homepage points to us as the latest driver's source, so we
gabucino
parents:
11067
diff
changeset
|
288 for the Cyberblade/i1 card. |
d4df1e5e5e49
the author's homepage points to us as the latest driver's source, so we
gabucino
parents:
11067
diff
changeset
|
289 </para> |
d4df1e5e5e49
the author's homepage points to us as the latest driver's source, so we
gabucino
parents:
11067
diff
changeset
|
290 |
9675 | 291 </sect5> |
292 | |
293 | |
294 <sect5 id="kyro"> | |
295 <title>Kyro/PowerVR cards</title> | |
296 <para> | |
297 If you want to use Xv with a Kyro based card (for example Hercules | |
298 Prophet 4000XT), you should download the drivers from the | |
299 <ulink url="http://www.powervr.com/">PowerVR site</ulink> | |
300 </para> | |
301 </sect5> | |
302 </sect4> | |
303 | |
304 <!-- ********** --> | |
305 | |
306 <sect4 id="dga"> | |
307 <title>DGA</title> | |
308 | |
309 <formalpara> | |
310 <title>PREAMBLE</title> | |
311 <para> | |
312 This document tries to explain in some words what DGA is in general and | |
313 what the DGA video output driver for <application>MPlayer</application> | |
314 can do (and what it can't). | |
315 </para> | |
316 </formalpara> | |
317 | |
318 <formalpara> | |
319 <title>WHAT IS DGA</title> | |
320 <para> | |
321 <acronym>DGA</acronym> is short for <emphasis>Direct Graphics | |
322 Access</emphasis> and is a means for a program to bypass the X server and | |
323 directly modifying the framebuffer memory. Technically spoken this happens | |
324 by mapping the framebuffer memory into the memory range of your process. | |
325 This is allowed by the kernel only if you have superuser privileges. You | |
326 can get these either by logging in as <systemitem | |
327 class="username">root</systemitem> or by setting the SUID bit on the | |
328 <application>MPlayer</application> executable (<emphasis role="bold">not | |
329 recommended</emphasis>). | |
330 </para> | |
331 </formalpara> | |
332 <para> | |
333 There are two versions of DGA: DGA1 is used by XFree 3.x.x and DGA2 was | |
334 introduced with XFree 4.0.1. | |
335 </para> | |
336 | |
337 <para> | |
338 DGA1 provides only direct framebuffer access as described above. For | |
339 switching the resolution of the video signal you have to rely on the | |
340 XVidMode extension. | |
341 </para> | |
342 | |
343 <para> | |
344 DGA2 incorporates the features of XVidMode extension and also allows | |
345 switching the depth of the display. So you may, although basically | |
346 running a 32 bit depth X server, switch to a depth of 15 bits and vice | |
347 versa. | |
348 </para> | |
349 | |
350 <para> | |
351 However DGA has some drawbacks. It seems it is somewhat dependent on the | |
352 graphics chip you use and on the implementation of the X server's video | |
353 driver that controls this chip. So it does not work on every system... | |
354 </para> | |
355 | |
356 <formalpara> | |
357 <title>INSTALLING DGA SUPPORT FOR MPLAYER</title> | |
358 | |
359 <para> | |
360 First make sure X loads the DGA extension, see in | |
361 <filename>/var/log/XFree86.0.log</filename>: | |
362 | |
363 <programlisting>(II) Loading extension XFree86-DGA</programlisting> | |
364 | |
365 See, XFree86 4.0.x or greater is VERY RECOMMENDED! | |
366 <application>MPlayer</application>'s DGA driver is autodetected by | |
367 <filename>./configure</filename>, or you can force it | |
368 with <option>--enable-dga</option>. | |
369 </para> | |
370 </formalpara> | |
371 | |
372 <para> | |
373 If the driver couldn't switch to a smaller resolution, experiment with | |
374 options <option>-vm</option> (only with X 3.3.x), <option>-fs</option>, | |
375 <option>-bpp</option>, <option>-zoom</option> to find a video mode that | |
376 the movie fits in. There is no converter right now :( | |
377 </para> | |
378 | |
379 <para> | |
380 Become <systemitem class="username">root</systemitem>. DGA needs root | |
381 access to be able to write directly video memory. If you want to run it as | |
382 user, then install <application>MPlayer</application> SUID root: | |
383 | |
384 <screen> | |
385 chown root /usr/local/bin/mplayer | |
386 chmod 750 /usr/local/bin/mplayer | |
387 chmod +s /usr/local/bin/mplayer | |
388 </screen> | |
389 | |
390 Now it works as a simple user, too. | |
391 </para> | |
392 | |
393 <caution> | |
394 <title>Security risk</title> | |
395 <para> | |
10111 | 396 This is a <emphasis role="bold">big</emphasis> security risk! |
397 <emphasis role="bold">Never</emphasis> do this on a server or on a computer can be | |
398 accessed by other people because they can gain root privileges through SUID root | |
9675 | 399 <application>MPlayer</application>. |
400 </para> | |
401 </caution> | |
402 | |
403 <para> | |
404 Now use <option>-vo dga</option> option, and there you go! (hope so:) You | |
405 should also try if the <option>-vo sdl:dga</option> option works for you! | |
406 It's much faster! | |
407 </para> | |
408 | |
409 | |
410 <formalpara id="dga-modelines"> | |
411 <title>RESOLUTION SWITCHING</title> | |
412 | |
413 <para> | |
414 The DGA driver allows for switching the resolution of the output signal. | |
415 This avoids the need for doing (slow) software scaling and at the same time | |
416 provides a fullscreen image. Ideally it would switch to the exact | |
417 resolution (except for honoring aspect ratio) of the video data, but the X | |
418 server only allows switching to resolutions predefined in | |
419 <filename>/etc/X11/XF86Config</filename> | |
420 (<filename>/etc/X11/XF86Config-4</filename> for XFree 4.X.X respectively). | |
421 Those are defined by so-called modelines and depend on | |
422 the capabilities of your video hardware. The X server scans this config | |
423 file on startup and disables the modelines not suitable for your hardware. | |
424 You can find out which modes survive with the X11 log file. It can be found | |
425 at: <filename>/var/log/XFree86.0.log</filename>. | |
426 </para> | |
427 </formalpara> | |
428 | |
429 <para> | |
430 These entries are known to work fine with a Riva128 chip, using the nv.o X | |
431 server driver module. | |
432 </para> | |
433 | |
434 | |
435 <para><programlisting> | |
436 Section "Modes" | |
437 Identifier "Modes[0]" | |
438 Modeline "800x600" 40 800 840 968 1056 600 601 605 628 | |
439 Modeline "712x600" 35.0 712 740 850 900 400 410 412 425 | |
440 Modeline "640x480" 25.175 640 664 760 800 480 491 493 525 | |
441 Modeline "400x300" 20 400 416 480 528 300 301 303 314 Doublescan | |
442 Modeline "352x288" 25.10 352 368 416 432 288 296 290 310 | |
443 Modeline "352x240" 15.750 352 368 416 432 240 244 246 262 Doublescan | |
444 Modeline "320x240" 12.588 320 336 384 400 240 245 246 262 Doublescan | |
445 EndSection | |
446 </programlisting></para> | |
447 | |
448 | |
449 <formalpara> | |
450 <title>DGA & MPLAYER</title> | |
451 <para> | |
452 DGA is used in two places with <application>MPlayer</application>: The SDL | |
453 driver can be made to make use of it (<option>-vo sdl:dga</option>) and | |
454 within the DGA driver (<option>-vo dga</option>). The above said is true | |
455 for both; in the following sections I'll explain how the DGA driver for | |
456 <application>MPlayer</application> works. | |
457 </para> | |
458 </formalpara> | |
459 | |
460 | |
461 <formalpara> | |
462 <title>FEATURES</title> | |
463 | |
464 <para> | |
465 The DGA driver is invoked by specifying <option>-vo dga</option> at the | |
466 command line. The default behavior is to switch to a resolution matching | |
467 the original resolution of the video as close as possible. It deliberately | |
468 ignores the <option>-vm</option> and <option>-fs</option> options | |
469 (enabling of video mode switching and fullscreen) - it always tries to | |
470 cover as much area of your screen as possible by switching the video mode, | |
471 thus refraining to use a single additional cycle of your CPU to scale the | |
472 image. If you don't like the mode it chooses you may force it to choose | |
473 the mode matching closest the resolution you specify by <option>-x</option> | |
474 and <option>-y</option>. By providing the <option>-v</option> option, the | |
475 DGA driver will print, among a lot of other things, a list of all | |
476 resolutions supported by your current <filename>XF86Config</filename> file. | |
477 Having DGA2 you may also force it to use a certain depth by using the | |
478 <option>-bpp</option> option. Valid depths are 15, 16, 24 and 32. It | |
479 depends on your hardware whether these depths are natively supported or if | |
480 a (possibly slow) conversion has to be done. | |
481 </para> | |
482 </formalpara> | |
483 <para> | |
484 If you should be lucky enough to have enough offscreen memory left to | |
485 put a whole image there, the DGA driver will use doublebuffering, which | |
486 results in much smoother movie replaying. It will tell you whether | |
487 double-buffering is enabled or not. | |
488 </para> | |
489 | |
490 <para> | |
491 Doublebuffering means that the next frame of your video is being drawn in | |
492 some offscreen memory while the current frame is being displayed. When the | |
493 next frame is ready, the graphics chip is just told the location in memory | |
494 of the new frame and simply fetches the data to be displayed from there. | |
495 In the meantime the other buffer in memory will be filled again with new | |
496 video data. | |
497 </para> | |
498 | |
499 <para> | |
500 Doublebuffering may be switched on by using the option | |
501 <option>-double</option> and may be disabled with | |
502 <option>-nodouble</option>. Current default option is to disable | |
503 doublebuffering. When using the DGA driver, onscreen display (OSD) only | |
504 works with doublebuffering enabled. However, enabling doublebuffering may | |
505 result in a big speed penalty (on my K6-II+ 525 it used an additional 20% | |
506 of CPU time!) depending on the implementation of DGA for your hardware. | |
507 </para> | |
508 | |
509 | |
510 <formalpara> | |
511 <title>SPEED ISSUES</title> | |
512 | |
513 <para> | |
514 Generally spoken, DGA framebuffer access should be at least as fast as | |
515 using the X11 driver with the additional benefit of getting a fullscreen | |
516 image. The percentage speed values printed by | |
517 <application>MPlayer</application> have to be interpreted with some care, | |
518 as for example, with the X11 driver they do not include the time used by | |
519 the X server needed for the actual drawing. Hook a terminal to a serial | |
520 line of your box and start <command>top</command> to see what is really | |
521 going on in your box. | |
522 </para> | |
523 </formalpara> | |
524 | |
525 <para> | |
526 Generally spoken, the speedup done by using DGA against 'normal' use of X11 | |
527 highly depends on your graphics card and how well the X server module for it | |
528 is optimized. | |
529 </para> | |
530 | |
531 <para> | |
532 If you have a slow system, better use 15 or 16 bit depth since they require | |
533 only half the memory bandwidth of a 32 bit display. | |
534 </para> | |
535 | |
536 <para> | |
537 Using a depth of 24 bit is even a good idea if your card natively just supports | |
538 32 bit depth since it transfers 25% less data compared to the 32/32 mode. | |
539 </para> | |
540 | |
541 <para> | |
542 I've seen some AVI files already be replayed on a Pentium MMX 266. AMD K6-2 | |
543 CPUs might work at 400 MHZ and above. | |
544 </para> | |
545 | |
546 | |
547 <formalpara> | |
548 <title>KNOWN BUGS</title> | |
549 | |
550 <para> | |
551 Well, according to some developers of XFree, DGA is quite a beast. They | |
552 tell you better not to use it. Its implementation is not always flawless | |
553 with every chipset driver for XFree out there. | |
554 </para> | |
555 </formalpara> | |
556 | |
557 <itemizedlist> | |
558 <listitem><simpara> | |
559 With XFree 4.0.3 and <filename>nv.o</filename> there is a bug resulting | |
560 in strange colors. | |
561 </simpara></listitem> | |
562 <listitem><simpara> | |
563 ATI driver requires to switch mode back more than once after finishing | |
564 using of DGA. | |
565 </simpara></listitem> | |
566 <listitem><simpara> | |
567 Some drivers simply fail to switch back to normal resolution (use | |
568 <keycap>Ctrl</keycap>+<keycap>Alt</keycap>+<keycap>Keypad +</keycap> and | |
569 <keycap>Ctrl</keycap>+<keycap>Alt</keycap>+<keycap>Keypad -</keycap> | |
570 to switch back manually). | |
571 </simpara></listitem> | |
572 <listitem><simpara> | |
573 Some drivers simply display strange colors. | |
574 </simpara></listitem> | |
575 <listitem><simpara> | |
576 Some drivers lie about the amount of memory they map into the process's | |
577 address space, thus vo_dga won't use doublebuffering (SIS?). | |
578 </simpara></listitem> | |
579 <listitem><simpara> | |
580 Some drivers seem to fail to report even a single valid mode. In this | |
581 case the DGA driver will crash telling you about a nonsense mode of | |
582 100000x100000 or something like that. | |
583 </simpara></listitem> | |
584 <listitem><simpara> | |
585 OSD only works with doublebuffering enabled (else it flickers). | |
586 </simpara></listitem> | |
587 </itemizedlist> | |
588 | |
589 </sect4> | |
590 <!--</sect3>--> | |
591 | |
592 <!-- ********** --> | |
593 | |
594 <sect4 id="sdl"> | |
595 <title>SDL</title> | |
596 | |
597 <para> | |
10111 | 598 <acronym>SDL</acronym> (Simple Directmedia Layer) is basically a unified |
9675 | 599 video/audio interface. Programs that use it know only about SDL, and not |
600 about what video or audio driver does SDL actually use. For example a Doom | |
601 port using SDL can run on svgalib, aalib, X, fbdev, and others, you only | |
602 have to specify the (for example) video driver to use with the | |
603 <envar>SDL_VIDEODRIVER</envar> environment variable. Well, in theory. | |
604 </para> | |
605 | |
606 <para> | |
607 With <application>MPlayer</application>, we used its X11 driver's software | |
608 scaler ability for cards/drivers that doesn't support XVideo, until we made | |
609 our own (faster, nicer) software scaler. Also we used its aalib output, but | |
610 now we have ours which is more comfortable. Its DGA mode was better than | |
611 ours, until recently. Get it now? :) | |
612 </para> | |
613 | |
614 <para> | |
615 It also helps with some buggy drivers/cards if the video is jerky (not slow | |
616 system problem), or audio is lagging. | |
617 </para> | |
618 | |
619 <para> | |
620 SDL video output supports displaying subtitles under the movie, on the (if | |
621 present) black bar. | |
622 </para> | |
623 | |
624 <variablelist> | |
625 <title>There are several command line switches for SDL:</title> | |
626 <varlistentry> | |
627 <term><option>-vo sdl:<replaceable>name</replaceable></option></term> | |
628 <listitem><simpara> | |
629 specifies SDL video driver to use (i.e. <literal>aalib</literal>, | |
630 <literal>dga</literal>, <literal>x11</literal>) | |
631 </simpara></listitem> | |
632 </varlistentry> | |
633 <varlistentry> | |
634 <term><option>-ao sdl:<replaceable>name</replaceable></option></term> | |
635 <listitem><simpara> | |
636 specifies SDL audio driver to use (i.e. <literal>dsp</literal>, | |
637 <literal>esd</literal>, <literal>arts</literal>) | |
638 </simpara></listitem> | |
639 </varlistentry> | |
640 <varlistentry> | |
641 <term><option>-noxv</option></term> | |
642 <listitem><simpara> | |
643 disables XVideo hardware acceleration | |
644 </simpara></listitem> | |
645 </varlistentry> | |
646 <varlistentry> | |
647 <term><option>-forcexv</option></term> | |
648 <listitem><simpara> | |
649 tries to force XVideo acceleration | |
650 </simpara></listitem> | |
651 </varlistentry> | |
652 </variablelist> | |
653 | |
654 <table> | |
10869 | 655 <title>SDL only keys</title> |
9675 | 656 <tgroup cols="2"> |
657 <thead> | |
658 <row><entry>Key</entry><entry>Action</entry></row> | |
659 </thead> | |
660 <tbody> | |
10869 | 661 <row><entry><keycap>c</keycap></entry><entry> |
9675 | 662 cycles available fullscreen modes |
663 </entry></row> | |
10869 | 664 <row><entry><keycap>n</keycap></entry><entry> |
665 changes back to normal mode | |
9675 | 666 </entry></row> |
667 </tbody> | |
668 </tgroup> | |
669 </table> | |
670 | |
671 <itemizedlist> | |
672 <title>Known bugs:</title> | |
673 <listitem><simpara> | |
674 Keys pressed under sdl:aalib console driver repeat forever. (use | |
675 <option>-vo aa</option>!) It's bug in SDL, I can't change it (tested with | |
676 SDL 1.2.1). | |
677 </simpara></listitem> | |
678 <listitem><simpara> | |
679 DO NOT USE SDL with GUI! It won't work as it should. | |
680 </simpara></listitem> | |
681 </itemizedlist> | |
682 </sect4> | |
683 | |
684 | |
685 <sect4 id="svgalib"> | |
686 <title>SVGAlib</title> | |
687 | |
688 <formalpara> | |
689 <title>INSTALLATION</title> | |
690 <para> | |
691 You'll have to install svgalib and its development package in order for | |
692 <application>MPlayer</application> build its SVGAlib driver (autodetected, | |
693 but can be forced), and don't forget to edit | |
694 <filename>/etc/vga/libvga.config</filename> to suit your card and monitor. | |
695 </para> | |
696 </formalpara> | |
697 | |
698 <note> | |
699 <para> | |
700 Be sure not to use the <option>-fs</option> switch, since it toggles the | |
701 usage of the software scaler, and it's slow. If you really need it, use the | |
702 <option>-sws 4</option> option which will produce bad quality, but is | |
703 somewhat faster. | |
704 </para> | |
705 </note> | |
706 | |
707 <formalpara><title>EGA (4BPP) SUPPORT</title> | |
708 <para> | |
709 SVGAlib incorporates EGAlib, and <application>MPlayer</application> has the | |
710 possibility to display any movie in 16 colors, thus usable in the following | |
711 sets: | |
712 </para> | |
713 </formalpara> | |
714 | |
715 <itemizedlist> | |
716 <listitem><simpara> | |
717 EGA card with EGA monitor: 320x200x4bpp, 640x200x4bpp, 640x350x4bpp | |
718 </simpara></listitem> | |
719 <listitem><simpara> | |
720 EGA card with CGA monitor: 320x200x4bpp, 640x200x4bpp | |
721 </simpara></listitem> | |
722 </itemizedlist> | |
723 | |
724 <para> | |
725 The bpp (bits per pixel) value must be set to 4 by hand: | |
726 <option>-bpp 4</option> | |
727 </para> | |
728 | |
729 <para> | |
730 The movie probably must be scaled down to fit in EGA mode: | |
9677 | 731 <screen>-vf scale=640:350</screen> |
9675 | 732 or |
9677 | 733 <screen>-vf scale=320:200</screen> |
9675 | 734 </para> |
735 | |
736 <para> | |
737 For that we need fast but bad quality scaling routine: | |
738 <screen>-sws 4</screen> | |
739 </para> | |
740 | |
741 <para> | |
742 Maybe automatic aspect correction has to be shut off: | |
743 <screen>-noaspect</screen> | |
744 </para> | |
745 | |
746 <note><para> | |
9683 | 747 According to my experience the best image quality on |
9675 | 748 EGA screens can be achieved by decreasing the brightness a bit: |
9677 | 749 <option>-vf eq=-20:0</option>. I also needed to lower the audio |
9675 | 750 samplerate on my box, because the sound was broken on 44kHz: |
751 <option>-srate 22050</option>. | |
752 </para></note> | |
753 | |
754 <para> | |
11214 | 755 You can turn on OSD and subtitles only with the <option>expand</option> |
9675 | 756 filter, see the man page for exact parameters. |
757 </para> | |
758 </sect4> | |
759 | |
760 | |
761 <sect4 id="fbdev"> | |
762 <title>Framebuffer output (FBdev)</title> | |
763 | |
764 <para> | |
765 Whether to build the FBdev target is autodetected during | |
10111 | 766 <filename>./configure</filename>. Read the framebuffer documentation in |
9675 | 767 the kernel sources (<filename>Documentation/fb/*</filename>) for more |
768 information. | |
769 </para> | |
770 | |
771 <para> | |
772 If your card doesn't support VBE 2.0 standard (older ISA/PCI cards, such as | |
773 S3 Trio64), only VBE 1.2 (or older?): Well, VESAfb is still available, but | |
774 you'll have to load SciTech Display Doctor (formerly UniVBE) before booting | |
775 Linux. Use a DOS boot disk or whatever. And don't forget to register your | |
776 UniVBE ;)) | |
777 </para> | |
778 | |
779 <para> | |
780 The FBdev output takes some additional parameters above the others: | |
781 </para> | |
782 | |
783 <variablelist> | |
784 <varlistentry> | |
785 <term><option>-fb</option></term> | |
786 <listitem><simpara> | |
787 specify the framebuffer device to use (<filename>/dev/fb0</filename>) | |
788 </simpara></listitem> | |
789 </varlistentry> | |
790 <varlistentry> | |
791 <term><option>-fbmode</option></term> | |
792 <listitem><simpara> | |
793 mode name to use (according to <filename>/etc/fb.modes</filename>) | |
794 </simpara></listitem> | |
795 </varlistentry> | |
796 <varlistentry> | |
797 <term><option>-fbmodeconfig</option></term> | |
798 <listitem><simpara> | |
799 config file of modes (default <filename>/etc/fb.modes</filename>) | |
800 </simpara></listitem> | |
801 </varlistentry> | |
802 <varlistentry> | |
11287 | 803 <term><option>-monitor-hfreq</option></term> |
804 <term><option>-monitor-vfreq</option></term> | |
805 <term><option>-monitor-dotclock</option></term> | |
9675 | 806 <listitem><simpara> |
807 <emphasis role="bold">important</emphasis> values, see | |
808 <filename>example.conf</filename> | |
809 </simpara></listitem> | |
810 </varlistentry> | |
811 </variablelist> | |
812 | |
813 <para> | |
814 If you want to change to a specific mode, then use | |
815 <screen>mplayer -vm -fbmode <replaceable>name_of_mode</replaceable> <replaceable>filename</replaceable></screen> | |
816 </para> | |
817 | |
818 <itemizedlist> | |
819 <listitem><para> | |
820 <option>-vm</option> alone will choose the most suitable mode from | |
821 <filename>/etc/fb.modes</filename>. Can be used together with | |
822 <option>-x</option> and <option>-y</option> options too. The | |
823 <option>-flip</option> option is supported only if the movie's pixel | |
10132 | 824 format matches the video mode's pixel format. Pay attention to the bpp |
9675 | 825 value, fbdev driver tries to use the current, or if you specify the |
826 <option>-bpp</option> option, then that. | |
827 </para></listitem> | |
828 <listitem><para> | |
10132 | 829 <option>-zoom</option> option isn't supported (use <option>-vf scale</option>). |
830 You can't use 8bpp (or less) modes. | |
9675 | 831 </para></listitem> |
832 <listitem><para> | |
833 You possibly want to turn the cursor off: | |
834 <screen>echo -e '\033[?25l'</screen> | |
835 or | |
836 <screen>setterm -cursor off</screen> | |
837 and the screen saver: | |
838 <screen>setterm -blank 0</screen> | |
839 To turn the cursor back on: | |
840 <screen>echo -e '\033[?25h'</screen> | |
841 or | |
842 <screen>setterm -cursor on</screen> | |
843 </para></listitem> | |
844 </itemizedlist> | |
845 | |
846 <note> | |
847 <para> | |
848 FBdev video mode changing <emphasis>does not work</emphasis> with the VESA | |
849 framebuffer, and don't ask for it, since it's not an | |
850 <application>MPlayer</application> limitation. | |
851 </para> | |
852 </note> | |
853 </sect4> | |
854 | |
855 | |
856 <sect4 id="mga_vid"> | |
857 <title>Matrox framebuffer (mga_vid)</title> | |
858 | |
859 <para> | |
860 This section is about the Matrox G200/G400/G450/G550 BES (Back-End Scaler) | |
861 support, the mga_vid kernel driver. It's actively developed by A'rpi, and | |
862 it has hardware VSYNC support with triple buffering. It works on both | |
863 framebuffer console and under X. | |
864 </para> | |
865 | |
866 <warning> | |
867 <para> | |
868 This is Linux only! On non-Linux (tested on FreeBSD) systems, you can use | |
869 <link linkend="vidix">VIDIX</link> instead! | |
870 </para> | |
871 </warning> | |
872 | |
873 <procedure> | |
874 <title>Installation:</title> | |
875 <step><para> | |
876 To use it, you first have to compile <filename>mga_vid.o</filename>: | |
877 <screen> | |
878 cd drivers | |
879 make<!-- | |
880 --></screen> | |
881 </para></step> | |
882 <step><para> | |
883 Then create <filename>/dev/mga_vid</filename> device: | |
884 <screen>mknod /dev/mga_vid c 178 0</screen> | |
885 and load the driver with | |
886 <screen>insmod mga_vid.o</screen> | |
887 </para></step> | |
888 <step><para> | |
889 You should verify the memory size detection using the | |
890 <command>dmesg</command> command. If it's bad, use the | |
891 <option>mga_ram_size</option> option | |
892 (<command>rmmod mga_vid</command> first), | |
893 specify card's memory size in MB: | |
894 <screen>insmod mga_vid.o mga_ram_size=16</screen> | |
895 </para></step> | |
896 <step><para> | |
897 To make it load/unload automatically when needed, first insert the | |
898 following line at the end of <filename>/etc/modules.conf</filename>: | |
899 | |
900 <programlisting>alias char-major-178 mga_vid</programlisting> | |
901 | |
902 Then copy the <filename>mga_vid.o</filename> module to the appropriate | |
903 place under <filename>/lib/modules/<replaceable>kernel | |
904 version</replaceable>/<replaceable>somewhere</replaceable></filename>. | |
905 </para><para> | |
906 Then run | |
907 <screen>depmod -a</screen> | |
908 </para></step> | |
909 <step><para> | |
910 Now you have to (re)compile <application>MPlayer</application>, | |
911 <filename>./configure</filename> will detect | |
912 <filename>/dev/mga_vid</filename> and build the 'mga' driver. Using it | |
913 from <application>MPlayer</application> goes by <option>-vo mga</option> | |
914 if you have matroxfb console, or <option>-vo xmga</option> under XFree86 | |
915 3.x.x or 4.x.x. | |
916 </para></step> | |
917 </procedure> | |
918 | |
919 <para> | |
920 The mga_vid driver cooperates with Xv. | |
921 </para> | |
922 | |
923 <para> | |
924 The <filename>/dev/mga_vid</filename> device file can be read for some | |
925 info, for example by | |
926 <screen>cat /dev/mga_vid</screen> | |
927 and can be written for brightness change: | |
928 <screen>echo "brightness=120" > /dev/mga_vid</screen> | |
929 </para> | |
930 </sect4> | |
931 | |
932 | |
933 <sect4 id="tdfxfb" xreflabel="3Dfx YUV support (tdfxfb)"> | |
934 <title>3Dfx YUV support</title> | |
935 <para> | |
936 This driver uses the kernel's tdfx framebuffer driver to play movies with | |
937 YUV acceleration. You'll need a kernel with tdfxfb support, and recompile | |
938 with | |
939 <screen>./configure --enable-tdfxfb</screen> | |
940 </para> | |
941 </sect4> | |
942 | |
943 | |
944 <sect4 id="opengl"> | |
945 <title>OpenGL output</title> | |
946 | |
947 <para> | |
948 <application>MPlayer</application> supports displaying movies using OpenGL, | |
949 but if your platform/driver supports xv as should be the case on a PC with | |
950 Linux, use xv instead, OpenGL performance is considerably worse. If you | |
951 have an X11 implementation without xv support, OpenGL is a viable | |
952 alternative. | |
953 </para> | |
954 | |
955 <para> | |
956 Unfortunately not all drivers support this feature. The Utah-GLX drivers | |
957 (for XFree86 3.3.6) support it for all cards. | |
958 See <ulink url="http://utah-glx.sourceforge.net"/> for details about how to | |
959 install it. | |
960 </para> | |
961 | |
962 <para> | |
963 XFree86(DRI) 4.0.3 or later supports OpenGL with Matrox and Radeon cards, | |
964 4.2.0 or later supports Rage128. | |
965 See <ulink url="http://dri.sourceforge.net"/> for download and installation | |
966 instructions. | |
967 </para> | |
10526 | 968 |
969 <para> | |
970 A hint from one of our users: the GL video output can be used to get | |
971 vsynced TV output. You'll have to set an environment variable (at | |
972 least on nVidia): | |
973 </para> | |
974 | |
975 <para> | |
976 <command>export $__GL_SYNC_TO_VBLANK=1</command> | |
977 </para> | |
978 | |
9675 | 979 </sect4> |
980 | |
981 | |
982 <sect4 id="aalib"> | |
983 <title>AAlib - text mode displaying</title> | |
984 | |
985 <para> | |
986 AAlib is a library for displaying graphics in text mode, using powerful | |
987 ASCII renderer. There are <emphasis>lots</emphasis> of programs already | |
988 supporting it, like Doom, Quake, etc. <application>MPlayer</application> | |
10111 | 989 contains a very usable driver for it. If <filename>./configure</filename> |
9675 | 990 detects aalib installed, the aalib libvo driver will be built. |
991 </para> | |
992 | |
993 <para> | |
994 You can use some keys in the AA Window to change rendering options: | |
995 </para> | |
996 | |
997 <informaltable> | |
998 <tgroup cols="2"> | |
999 <thead> | |
1000 <row><entry>Key</entry><entry>Action</entry></row> | |
1001 </thead> | |
1002 <tbody> | |
1003 <row><entry><keycap>1</keycap></entry><entry> | |
1004 decrease contrast | |
1005 </entry></row> | |
1006 <row><entry><keycap>2</keycap></entry><entry> | |
1007 increase contrast | |
1008 </entry></row> | |
1009 <row><entry><keycap>3</keycap></entry><entry> | |
1010 decrease brightness | |
1011 </entry></row> | |
1012 <row><entry><keycap>4</keycap></entry><entry> | |
1013 increase brightness | |
1014 </entry></row> | |
1015 <row><entry><keycap>5</keycap></entry><entry> | |
1016 switch fast rendering on/off | |
1017 </entry></row> | |
1018 <row><entry><keycap>6</keycap></entry><entry> | |
1019 set dithering mode (none, error distribution, Floyd Steinberg) | |
1020 </entry></row> | |
1021 <row><entry><keycap>7</keycap></entry><entry> | |
1022 invert image | |
1023 </entry></row> | |
1024 <row><entry><keycap>8</keycap></entry><entry> | |
1025 toggles between aa and <application>MPlayer</application> control | |
1026 </entry></row> | |
1027 </tbody> | |
1028 </tgroup> | |
1029 </informaltable> | |
1030 | |
1031 <variablelist> | |
1032 <title>The following command line options can be used:</title> | |
1033 <varlistentry> | |
1034 <term><option>-aaosdcolor=<replaceable>V</replaceable></option></term> | |
1035 <listitem><para> | |
1036 change OSD color | |
1037 </para></listitem> | |
1038 </varlistentry> | |
1039 <varlistentry> | |
1040 <term><option>-aasubcolor=<replaceable>V</replaceable></option></term> | |
1041 <listitem><para> | |
1042 change subtitle color | |
1043 </para><para> | |
1044 where <replaceable>V</replaceable> can be: | |
1045 <literal>0</literal> (normal), | |
1046 <literal>1</literal> (dark), | |
1047 <literal>2</literal> (bold), | |
1048 <literal>3</literal> (bold font), | |
1049 <literal>4</literal> (reverse), | |
1050 <literal>5</literal> (special). | |
1051 </para></listitem> | |
1052 </varlistentry> | |
1053 </variablelist> | |
1054 | |
1055 <variablelist> | |
1056 <title>AAlib itself provides a large sum of options. Here are some | |
1057 important:</title> | |
1058 <varlistentry> | |
1059 <term><option>-aadriver</option></term> | |
1060 <listitem><simpara> | |
1061 set recommended aa driver (X11, curses, Linux) | |
1062 </simpara></listitem> | |
1063 </varlistentry> | |
1064 <varlistentry> | |
1065 <term><option>-aaextended</option></term> | |
1066 <listitem><simpara> | |
1067 use all 256 characters | |
1068 </simpara></listitem> | |
1069 </varlistentry> | |
1070 <varlistentry> | |
1071 <term><option>-aaeight</option></term> | |
1072 <listitem><simpara> | |
1073 use eight bit ASCII | |
1074 </simpara></listitem> | |
1075 </varlistentry> | |
1076 <varlistentry> | |
1077 <term><option>-aahelp</option></term> | |
1078 <listitem><simpara> | |
1079 prints out all aalib options | |
1080 </simpara></listitem> | |
1081 </varlistentry> | |
1082 </variablelist> | |
1083 | |
1084 <note> | |
1085 <para> | |
1086 The rendering is very CPU intensive, especially when using AA-on-X | |
1087 (using aalib on X), and it's least CPU intensive on standard, | |
1088 non-framebuffer console. Use SVGATextMode to set up a big textmode, | |
1089 then enjoy! (secondary head Hercules cards rock :)) (but imho you | |
10111 | 1090 can use <option>-vf 1bpp</option> option to get graphics on hgafb:) |
9675 | 1091 </para> |
1092 </note> | |
1093 | |
1094 <para> | |
1095 Use the <option>-framedrop</option> option if your computer isn't fast | |
1096 enough to render all frames! | |
1097 </para> | |
1098 | |
1099 <para> | |
1100 Playing on terminal you'll get better speed and quality using the Linux | |
1101 driver, not curses (<option>-aadriver linux</option>). But therefore you | |
1102 need write access on | |
1103 <filename>/dev/vcsa<replaceable><terminal></replaceable></filename>! | |
1104 That isn't autodetected by aalib, but vo_aa tries to find the best mode. | |
1105 See <ulink url="http://aa-project.sourceforge.net/tune"/> for further | |
1106 tuning issues. | |
1107 </para> | |
1108 </sect4> | |
1109 | |
1110 | |
1111 <sect4 id="vesa"> | |
1112 <title>VESA - output to VESA BIOS</title> | |
1113 | |
1114 <para> | |
1115 This driver was designed and introduced as a <emphasis role="bold">generic | |
1116 driver</emphasis> for any video card which has VESA VBE 2.0 compatible | |
1117 BIOS. Another advantage of this driver is that it tries to force TV output | |
1118 on. | |
1119 <citetitle>VESA BIOS EXTENSION (VBE) Version 3.0 Date: September 16, | |
1120 1998</citetitle> (Page 70) says: | |
1121 </para> | |
1122 | |
1123 <blockquote> | |
1124 <formalpara><title>Dual-Controller Designs</title> | |
1125 <para> | |
1126 VBE 3.0 supports the dual-controller design by assuming that since both | |
1127 controllers are typically provided by the same OEM, under control of a | |
1128 single BIOS ROM on the same graphics card, it is possible to hide the fact | |
1129 that two controllers are indeed present from the application. This has the | |
1130 limitation of preventing simultaneous use of the independent controllers, | |
1131 but allows applications released before VBE 3.0 to operate normally. The | |
1132 VBE Function 00h (Return Controller Information) returns the combined | |
1133 information of both controllers, including the combined list of available | |
1134 modes. When the application selects a mode, the appropriate controller is | |
1135 activated. Each of the remaining VBE functions then operates on the active | |
1136 controller. | |
1137 </para> | |
1138 </formalpara> | |
1139 </blockquote> | |
1140 | |
1141 <para> | |
1142 So you have chances to get working TV-out by using this driver. | |
1143 (I guess that TV-out frequently is standalone head or standalone output | |
1144 at least.) | |
1145 </para> | |
1146 | |
1147 <itemizedlist spacing="compact"> | |
1148 <title>ADVANTAGES</title> | |
1149 <listitem><simpara> | |
1150 You have chances to watch movies <emphasis role="bold">if Linux even doesn't | |
1151 know</emphasis> your video hardware. | |
1152 </simpara></listitem> | |
1153 <listitem><simpara> | |
1154 You don't need to have installed any graphics' related things on your | |
1155 Linux (like X11 (aka XFree86), fbdev and so on). This driver can be run | |
1156 from <emphasis role="bold">text-mode</emphasis>. | |
1157 </simpara></listitem> | |
1158 <listitem><simpara> | |
1159 You have chances to get <emphasis role="bold">working TV-out</emphasis>. | |
1160 (It's known at least for ATI's cards). | |
1161 </simpara></listitem> | |
1162 <listitem><simpara> | |
1163 This driver calls <function>int 10h</function> handler thus it's not | |
1164 an emulator - it calls <emphasis role="bold">real</emphasis> things of | |
10971
12315a6590a1
Clumsy wording improved byRuben Garcia <ruben@ugr.es> and
diego
parents:
10965
diff
changeset
|
1165 <emphasis>real</emphasis> BIOS in <emphasis>real-mode</emphasis> |
12315a6590a1
Clumsy wording improved byRuben Garcia <ruben@ugr.es> and
diego
parents:
10965
diff
changeset
|
1166 (actually in vm86 mode). |
9675 | 1167 </simpara></listitem> |
1168 <listitem><simpara> | |
1169 You can use VIDIX with it, thus getting accelerated video display | |
1170 <emphasis role="bold">and</emphasis> TV output at the same time! | |
1171 (Recommended for ATI cards.) | |
1172 </simpara></listitem> | |
10111 | 1173 <listitem><simpara> |
1174 If you have VESA VBE 3.0+, and you had specified | |
11287 | 1175 <option>monitor-hfreq, monitor-vfreq, monitor-dotclock</option> somewhere |
10111 | 1176 (config file, or commandline) you will get the highest possible refresh rate. |
1177 (Using General Timing Formula). To enable this feature you have to specify | |
1178 <emphasis role="bold">all</emphasis> your monitor options. | |
1179 </simpara></listitem> | |
9675 | 1180 </itemizedlist> |
1181 | |
1182 <itemizedlist spacing="compact"> | |
1183 <title>DISADVANTAGES</title> | |
1184 <listitem><simpara> | |
1185 It works only on <emphasis role="bold">x86 systems</emphasis>. | |
1186 </simpara></listitem> | |
1187 <listitem><simpara> | |
1188 It can be used only by <systemitem class="username">root</systemitem>. | |
1189 </simpara></listitem> | |
1190 <listitem><simpara> | |
1191 Currently it's available only for <emphasis role="bold">Linux</emphasis>. | |
1192 </simpara></listitem> | |
1193 </itemizedlist> | |
1194 | |
1195 <important> | |
1196 <para> | |
1197 Don't use this driver with <emphasis role="bold">GCC 2.96</emphasis>! | |
1198 It won't work! | |
1199 </para> | |
1200 </important> | |
1201 | |
1202 <variablelist> | |
1203 <title>COMMAND LINE OPTIONS AVAILABLE FOR VESA</title> | |
1204 <varlistentry> | |
1205 <term><option>-vo vesa:<replaceable>opts</replaceable></option></term> | |
1206 <listitem><simpara> | |
1207 currently recognized: <literal>dga</literal> to force dga mode and | |
1208 <literal>nodga</literal> to disable dga mode. In dga mode you can enable | |
10111 | 1209 double buffering via the <option>-double</option> option. Note: you may omit |
1210 these parameters to enable <emphasis role="bold">autodetection</emphasis> of | |
1211 dga mode. | |
9675 | 1212 </simpara></listitem> |
1213 </varlistentry> | |
1214 </variablelist> | |
1215 | |
1216 <itemizedlist spacing="compact"> | |
1217 <title>KNOWN PROBLEMS AND WORKAROUNDS</title> | |
1218 <listitem><simpara> | |
1219 If you have installed <emphasis role="bold">NLS</emphasis> font on your | |
1220 Linux box and run VESA driver from text-mode then after terminating | |
1221 <application>MPlayer</application> you will have | |
1222 <emphasis role="bold">ROM font</emphasis> loaded instead of national. | |
1223 You can load national font again by using <command>setsysfont</command> | |
10965 | 1224 utility from the Mandrake distribution for example. |
9675 | 1225 (<emphasis role="bold">Hint</emphasis>: The same utility is used for |
1226 localization of fbdev). | |
1227 </simpara></listitem> | |
1228 <listitem><simpara> | |
1229 Some <emphasis role="bold">Linux graphics drivers</emphasis> don't update | |
1230 active <emphasis role="bold">BIOS mode</emphasis> in DOS memory. | |
1231 So if you have such problem - always use VESA driver only from | |
1232 <emphasis role="bold">text-mode</emphasis>. Otherwise text-mode (#03) will | |
1233 be activated anyway and you will need restart your computer. | |
1234 </simpara></listitem> | |
1235 <listitem><simpara> | |
10111 | 1236 Often after terminating VESA driver you get <emphasis role="bold">black</emphasis> |
1237 screen. To return your screen to original state - simply switch to other console | |
1238 (by pressing <keycap>Alt</keycap>+<keycap>F<x></keycap>) | |
9675 | 1239 then switch to your previous console by the same way. |
1240 </simpara></listitem> | |
1241 <listitem><simpara> | |
1242 To get <emphasis role="bold">working TV-out</emphasis> you need have plugged | |
1243 TV-connector in before booting your PC since video BIOS initializes | |
1244 itself only once during POST procedure. | |
1245 </simpara></listitem> | |
1246 </itemizedlist> | |
1247 </sect4> | |
1248 | |
1249 | |
1250 <sect4 id="x11"> | |
1251 <title>X11</title> | |
1252 | |
1253 <para> | |
1254 Avoid if possible. Outputs to X11 (uses shared memory extension), with no | |
1255 hardware acceleration at all. Supports (MMX/3DNow/SSE accelerated, but | |
1256 still slow) software scaling, use the options <option>-fs -zoom</option>. | |
1257 Most cards have hardware scaling support, use the <option>-vo xv</option> | |
1258 output for them, or <option>-vo xmga</option> for Matroxes. | |
1259 </para> | |
1260 | |
1261 <para> | |
1262 The problem is that most cards' driver doesn't support hardware | |
1263 acceleration on the second head/TV. In those cases, you see green/blue | |
1264 colored window instead of the movie. This is where this driver comes in | |
1265 handy, but you need powerful CPU to use software scaling. Don't use the SDL | |
1266 driver's software output+scaler, it has worse image quality! | |
1267 </para> | |
1268 | |
1269 <para> | |
1270 Software scaling is very slow, you better try changing video modes instead. | |
1271 It's very simple. See the <link linkend="dga-modelines">DGA section's | |
1272 modelines</link>, and insert them into your <filename>XF86Config</filename>. | |
1273 | |
1274 <itemizedlist spacing="compact"> | |
1275 <listitem><simpara> | |
1276 If you have XFree86 4.x.x: use the <option>-vm</option> option. It will | |
1277 change to a resolution your movie fits in. If it doesn't: | |
1278 </simpara></listitem> | |
1279 <listitem><simpara> | |
1280 With XFree86 3.x.x: you have to cycle through available resolutions | |
1281 with the | |
1282 <keycap>Ctrl</keycap>+<keycap>Alt</keycap>+<keycap>plus</keycap> | |
1283 and | |
1284 <keycap>Ctrl</keycap>+<keycap>Alt</keycap>+<keycap>minus</keycap> | |
1285 keys. | |
1286 </simpara></listitem> | |
1287 </itemizedlist> | |
1288 </para> | |
1289 | |
1290 <para> | |
1291 If you can't find the modes you inserted, browse XFree86's output. Some | |
1292 drivers can't use low pixelclocks that are needed for low resolution | |
1293 video modes. | |
1294 </para> | |
1295 </sect4> | |
1296 | |
1297 | |
1298 <sect4 id="vidix"> | |
1299 <title>VIDIX</title> | |
1300 | |
1301 <formalpara> | |
1302 <title>PREAMBLE</title> | |
1303 <para> | |
10111 | 1304 <acronym>VIDIX</acronym> is the abbreviation for <emphasis role="bold">VID</emphasis>eo |
9675 | 1305 <emphasis role="bold">I</emphasis>nterface for *ni<emphasis role="bold">X</emphasis>. |
1306 VIDIX was designed and introduced as an interface for fast user-space drivers | |
1307 providing such video performance as mga_vid does for Matrox cards. It's also very | |
1308 portable. | |
1309 </para> | |
1310 </formalpara> | |
1311 <para> | |
1312 This interface was designed as an attempt to fit existing video | |
1313 acceleration interfaces (known as mga_vid, rage128_vid, radeon_vid, | |
1314 pm3_vid) into a fixed scheme. It provides highlevel interface to chips | |
1315 which are known as BES (BackEnd scalers) or OV (Video Overlays). It doesn't | |
1316 provide lowlevel interface to things which are known as graphics servers. | |
1317 (I don't want to compete with X11 team in graphics mode switching). I.e. | |
1318 main goal of this interface is to maximize the speed of video playback. | |
1319 </para> | |
1320 | |
1321 <itemizedlist spacing="compact"> | |
1322 <title>USAGE</title> | |
1323 <listitem><simpara> | |
1324 You can use standalone video output driver: <option>-vo xvidix</option>. | |
1325 This driver was developed as X11's front end to VIDIX technology. It | |
1326 requires X server and can work only under X server.Note that, as it directly | |
1327 accesses the hardware and circumvents the X driver, pixmaps cached in the | |
1328 graphics card's memory may be corrupted. You can prevent this by limiting | |
1329 the amount of video memory used by X with the XF86Config option "VideoRam" | |
1330 in the device section. You should set this to the amount of memory installed | |
1331 on your card minus 4MB. If you have less than 8MB of video ram, you can use | |
1332 the option "XaaNoPixmapCache" in the screen section instead. | |
1333 </simpara></listitem> | |
1334 <listitem><simpara> | |
11136 | 1335 There is a console VIDIX driver: <option>-vo cvidix</option>. |
11067
2340e006992f
updated Vidix section to reflect newest developments
gabucino
parents:
11065
diff
changeset
|
1336 This requires a working and initialized framebuffer for most cards (or else |
2340e006992f
updated Vidix section to reflect newest developments
gabucino
parents:
11065
diff
changeset
|
1337 you'll just mess up the screen), and you'll have a similar effect as with |
2340e006992f
updated Vidix section to reflect newest developments
gabucino
parents:
11065
diff
changeset
|
1338 <option>-vo mga</option> or <option>-vo fbdev</option>. nVidia cards however |
2340e006992f
updated Vidix section to reflect newest developments
gabucino
parents:
11065
diff
changeset
|
1339 are able to output truly graphical video on a real text console. See the |
2340e006992f
updated Vidix section to reflect newest developments
gabucino
parents:
11065
diff
changeset
|
1340 <link linkend="vidix-nvidia">nvidia_vid section</link> for more information. |
2340e006992f
updated Vidix section to reflect newest developments
gabucino
parents:
11065
diff
changeset
|
1341 </simpara></listitem> |
2340e006992f
updated Vidix section to reflect newest developments
gabucino
parents:
11065
diff
changeset
|
1342 <listitem><simpara> |
9675 | 1343 You can use VIDIX subdevice which was applied to several video output |
1344 drivers, such as: <option>-vo vesa:vidix</option> | |
1345 (<emphasis role="bold">Linux only</emphasis>) and | |
1346 <option>-vo fbdev:vidix</option>. | |
1347 </simpara></listitem> | |
1348 </itemizedlist> | |
1349 | |
1350 <para> | |
1351 Indeed it doesn't matter which video output driver is used with | |
1352 <emphasis role="bold">VIDIX</emphasis>. | |
1353 </para> | |
1354 | |
1355 <itemizedlist spacing="compact"> | |
1356 <title>REQUIREMENTS</title> | |
1357 <listitem><simpara> | |
11067
2340e006992f
updated Vidix section to reflect newest developments
gabucino
parents:
11065
diff
changeset
|
1358 Video card should be in graphics mode (except nVidia cards with the |
2340e006992f
updated Vidix section to reflect newest developments
gabucino
parents:
11065
diff
changeset
|
1359 <option>-vo cvidix</option> output driver). |
9675 | 1360 </simpara></listitem> |
1361 <listitem><simpara> | |
1362 <application>MPlayer</application>'s video output driver should know | |
1363 active video mode and be able to tell to VIDIX subdevice some video | |
1364 characteristics of server. | |
1365 </simpara></listitem> | |
1366 </itemizedlist> | |
1367 | |
1368 <formalpara> | |
1369 <title>USAGE METHODS</title> | |
1370 <para> | |
10111 | 1371 When VIDIX is used as <emphasis role="bold">subdevice</emphasis> (<option>-vo |
9675 | 1372 vesa:vidix</option>) then video mode configuration is performed by video |
10111 | 1373 output device (<emphasis role="bold">vo_server</emphasis> in short). Therefore you can |
9675 | 1374 pass into command line of <application>MPlayer</application> the same keys |
1375 as for vo_server. In addition it understands <option>-double</option> key | |
1376 as globally visible parameter. (I recommend using this key with VIDIX at | |
11136 | 1377 least for ATI's card). As for <option>-vo xvidix</option>, currently it |
9675 | 1378 recognizes the following options: <option>-fs -zoom -x -y -double</option>. |
1379 </para> | |
1380 </formalpara> | |
1381 <para> | |
1382 Also you can specify VIDIX's driver directly as third subargument in | |
1383 command line: | |
1384 | |
1385 <screen>mplayer -vo xvidix:mga_vid.so -fs -zoom -double file.avi</screen> | |
1386 or | |
1387 <screen>mplayer -vo vesa:vidix:radeon_vid.so -fs -zoom -double -bpp 32 file.avi</screen> | |
1388 | |
1389 But it's dangerous, and you shouldn't do that. In this case given driver | |
1390 will be forced and result is unpredictable (it may | |
1391 <emphasis role="bold">freeze</emphasis> your computer). You should do that | |
1392 ONLY if you are absolutely sure it will work, and | |
1393 <application>MPlayer</application> doesn't do it automatically. Please tell | |
1394 about it to the developers. The right way is to use VIDIX without arguments | |
1395 to enable driver autodetection. | |
1396 </para> | |
1397 | |
1398 <para> | |
1399 VIDIX is new technology and it's extremely possible that on your | |
1400 system it won't work. In this case only solution for you | |
1401 it's port it (mainly libdha). But there is hope that it will work on those | |
1402 systems where X11 does. | |
1403 </para> | |
1404 | |
1405 <para> | |
1406 Since VIDIX requires direct hardware access you can either run it as root | |
1407 or set the SUID bit on the <application>MPlayer</application> binary | |
10111 | 1408 (<emphasis role="bold">Warning: This is a security risk!</emphasis>). |
9675 | 1409 Alternatively, you can use a special kernel module, like this: |
1410 </para> | |
1411 | |
1412 <procedure> | |
1413 <step><para> | |
1414 Download the <ulink url="http://www.arava.co.il/matan/svgalib/">development version</ulink> | |
1415 of svgalib (for example 1.9.17), <emphasis role="bold">OR</emphasis> | |
1416 download a version made by Alex especially for usage with <application>MPlayer</application> | |
1417 (it doesn't need the svgalib source to compile) from | |
1418 <ulink url="http://www.mplayerhq.hu/~alex/svgalib_helper-1.9.17-mplayer.tar.bz2">here</ulink>. | |
1419 </para></step> | |
1420 <step><para> | |
1421 Compile the module in the <filename class="directory">svgalib_helper</filename> | |
10111 | 1422 directory (it can be found inside the <filename class="directory">svgalib-1.9.17/kernel/</filename> |
9675 | 1423 directory if you've downloaded the source from the svgalib site) and insmod it. |
1424 </para></step> | |
1425 <step><para> | |
11022 | 1426 To create the neccessary devices in the <filename class="directory">/dev</filename> |
1427 directory, do a <screen>make device</screen> in the <filename class="directory">svgalib_helper</filename> | |
1428 dir, as root. | |
1429 </para></step> | |
1430 <step><para> | |
9675 | 1431 Move the <filename class="directory">svgalib_helper</filename> directory to |
1432 <filename class="directory">mplayer/main/libdha/svgalib_helper</filename>. | |
1433 </para></step> | |
1434 <step><para> | |
1435 Required if you download the source from the svgalib site: Remove the comment before the | |
1436 CFLAGS line containing "svgalib_helper" string from the | |
1437 <filename class="directory">libdha/Makefile</filename>. | |
1438 </para></step> | |
1439 <step><para> | |
1440 Recompile and install libdha. | |
1441 </para></step> | |
1442 </procedure> | |
1443 | |
1444 <sect5 id="vidix-ati"> | |
1445 <title>ATI cards</title> | |
1446 <para> | |
1447 Currently most ATI cards are supported natively, from Mach64 to the | |
1448 newest Radeons. | |
1449 </para> | |
1450 | |
1451 <para> | |
1452 There are two compiled binaries: <filename>radeon_vid</filename> for Radeon and | |
1453 <filename>rage128_vid</filename> for Rage 128 cards. You may force one or let | |
1454 the VIDIX system autoprobe all available drivers. | |
1455 </para> | |
1456 </sect5> | |
1457 | |
1458 <sect5 id="vidix-mga"> | |
1459 <title>Matrox cards</title> | |
1460 <para> | |
1461 Matrox G200,G400,G450 and G550 have been reported to work. | |
1462 </para> | |
1463 | |
1464 <para> | |
1465 The driver supports video equalizers and should be nearly as fast as the | |
1466 <link linkend="mga_vid">Matrox framebuffer</link> | |
1467 </para> | |
1468 </sect5> | |
1469 | |
1470 <sect5 id="vidix-trident"> | |
1471 <title>Trident cards</title> | |
1472 <para> | |
1473 There is a driver available for the Trident Cyberblade/i1 chipset, which | |
1474 can be found on VIA Epia motherboards. | |
1475 </para> | |
1476 | |
1477 <para> | |
11079
d4df1e5e5e49
the author's homepage points to us as the latest driver's source, so we
gabucino
parents:
11067
diff
changeset
|
1478 The driver was written and is maintained by |
d4df1e5e5e49
the author's homepage points to us as the latest driver's source, so we
gabucino
parents:
11067
diff
changeset
|
1479 <ulink url="http://www.blackfiveservices.co.uk/EPIAVidix.shtml">Alastair M. Robinson</ulink> |
9675 | 1480 </para> |
1481 </sect5> | |
1482 | |
1483 <sect5 id="vidix-3dlabs"> | |
1484 <title>3DLabs cards</title> | |
1485 <para> | |
1486 Although there is a driver for the 3DLabs GLINT R3 and Permedia3 chips, no one | |
1487 has tested it, so reports are welcome. | |
1488 </para> | |
1489 </sect5> | |
11040 | 1490 |
1491 <sect5 id="vidix-nvidia"> | |
1492 <title>nVidia cards</title> | |
1493 <para> | |
1494 There's a relatively new nVidia driver out there, it's known to work on Riva | |
1495 128, TNT and GeForce2 chipsets, also others have been reported working. | |
1496 </para> | |
1497 | |
11065 | 1498 <itemizedlist spacing="compact"> |
1499 <title>LIMITATIONS</title> | |
1500 <listitem><para> | |
1501 It's recommended to use the binary nVidia drivers for X before using this | |
1502 VIDIX driver, because some of the registers which need to be initialized | |
1503 haven't been discovered yet, so it will probably fail with the Open Source | |
1504 XFree86 <filename>nv.o</filename> driver. | |
1505 </para></listitem> | |
1506 <listitem><para> | |
11136 | 1507 Currently only codecs capable of UYVY colorspace output |
1508 can work in conjunction with this driver. Unfortunately, this excludes | |
11065 | 1509 every single decoder from the libavcodec family. This leaves us with the |
1510 following usable popular codecs: <systemitem>cvid, divxds, xvid, divx4, | |
1511 wmv7, wmv8</systemitem> and some others. Please note that this is only | |
11136 | 1512 a temporal inconvenience. The usage syntax is as follows: |
11065 | 1513 <screen> |
11271
252fb0cf331a
spelling fixes, mostly by <ismail.donmez@boun.edu.tr>
diego
parents:
11265
diff
changeset
|
1514 mplayer -vf format=uyvy -vc divxds divx3file.avi |
11065 | 1515 </screen> |
1516 </para></listitem> | |
1517 </itemizedlist> | |
1518 | |
11040 | 1519 <para> |
11065 | 1520 An unique feature of the nvidia_vid driver is its ability to display video on |
1521 <emphasis role="bold">plain, pure, text-only console</emphasis> - with no | |
1522 framebuffer or X magic whatsoever. For this purpose, we'll have to use the | |
1523 <option>cvidix</option> video output, as the following example shows: | |
1524 <screen> | |
11271
252fb0cf331a
spelling fixes, mostly by <ismail.donmez@boun.edu.tr>
diego
parents:
11265
diff
changeset
|
1525 mplayer -vf format=uyvy -vc divxds -vo cvidix example.avi |
11065 | 1526 </screen> |
11040 | 1527 </para> |
1528 | |
1529 <para> | |
1530 Reports awaited! | |
1531 </para> | |
1532 </sect5> | |
1533 | |
1534 <sect5 id="vidix-sis"> | |
1535 <title>SiS cards</title> | |
1536 <para> | |
1537 This is very experimental code, just like nvidia_vid. | |
1538 </para> | |
1539 | |
1540 <para> | |
1541 It's been tested on SiS 650/651/740 (the most common chipsets used in the | |
1542 SiS versions of the "Shuttle XPC" barebones boxes out there) | |
1543 </para> | |
1544 | |
1545 <para> | |
1546 Reports awaited! | |
1547 </para> | |
1548 </sect5> | |
9675 | 1549 </sect4> |
1550 | |
1551 <sect4 id="directfb"> | |
1552 <title>DirectFB</title> | |
1553 <blockquote><para> | |
1554 "DirectFB is a graphics library which was designed with embedded systems | |
1555 in mind. It offers maximum hardware accelerated performance at a minimum | |
1556 of resource usage and overhead." - quoted from <ulink url="http://www.directfb.org"/> | |
1557 </para></blockquote> | |
1558 | |
1559 <para>I'll exclude DirectFB features from this section.</para> | |
1560 | |
1561 <para> | |
10111 | 1562 Though <application>MPlayer</application> is not supported as a "video |
1563 provider" in DirectFB, this output driver will enable video playback through | |
1564 DirectFB. It will - of course - be accelerated, on my Matrox G400 DirectFB's speed | |
1565 was the same as XVideo. | |
9675 | 1566 </para> |
1567 | |
1568 <para> | |
1569 Always try to use the newest version of DirectFB. You can use DirectFB options on | |
1570 the command line, using the <option>-dfbopts</option> option. Layer selection can | |
1571 be done by the subdevice method, e.g.: <option>-vo directfb:2</option> | |
1572 (layer -1 is default: autodetect) | |
1573 </para> | |
1574 </sect4> | |
1575 | |
1576 <sect4 id="dfbmga"> | |
1577 <title>DirectFB/Matrox (dfbmga)</title> | |
1578 <para> | |
1579 Please read the <link linkend="directfb">main DirectFB section</link> or general | |
1580 informations. | |
1581 </para> | |
1582 | |
1583 <para>This video output driver will enable CRTC2 (on the second head) on the | |
9683 | 1584 Matrox G400/G450/G550 card, displaying video <emphasis role="bold">independently</emphasis> |
9675 | 1585 of the first head. |
1586 </para> | |
1587 | |
1588 <para> | |
1589 Instructions on how to make it work can be found in the | |
1590 <ulink url="../../tech/directfb.txt">tech section</ulink> | |
1591 or directly on Ville Syrjala's | |
9677 | 1592 <ulink url="http://www.sci.fi/~syrjala/directfb/Matrox_TV-out_README.txt">home page</ulink>. |
9675 | 1593 </para> |
1594 | |
1595 <note><para> | |
10132 | 1596 the first DirectFB version with which we could kick this working was |
1597 0.9.17 (it's buggy, needs that <systemitem>surfacemanager</systemitem> patch from | |
1598 the URL above). Anyway, porting of the CRTC2 code to <emphasis role="bold">mga_vid</emphasis> | |
1599 is underway. | |
9675 | 1600 </para></note> |
1601 </sect4> | |
1602 </sect3> | |
1603 | |
1604 <sect3 id="mpeg_decoders"> | |
1605 <title>MPEG decoders</title> | |
1606 | |
1607 <sect4 id="dvb"> | |
1608 <title>DVB</title> | |
1609 <para> | |
1610 <application>MPlayer</application> supports cards with the Siemens DVB chipset | |
1611 from vendors like Siemens, Technotrend, Galaxis or Hauppauge. The latest DVB | |
1612 drivers are available from the <ulink url="http://www.linuxtv.org">Linux TV site</ulink>. | |
1613 If you want to do software transcoding you should have at least a 1GHz CPU. | |
1614 </para> | |
1615 | |
1616 <para> | |
1617 Configure should detect your DVB card. If it did not, force detection with | |
1618 </para> | |
1619 | |
1620 <para><screen>./configure --enable-dvb</screen></para> | |
1621 | |
1622 <para>If you have ost headers at a non-standard path, set the path with</para> | |
1623 | |
10111 | 1624 <para><screen>./configure --with-extraincdir=<replaceable>DVB source directory</replaceable>/ost/include |
9675 | 1625 </screen></para> |
1626 | |
1627 <para>Then compile and install as usual.</para> | |
1628 | |
1629 <formalpara> | |
1630 <title>USAGE</title> | |
1631 <para> | |
1632 Hardware decoding (playing standard MPEG1/2 files) can be done with this command: | |
1633 </para> | |
1634 </formalpara> | |
1635 <para><screen>mplayer -ao mpegpes -vo mpegpes file.mpg|vob</screen></para> | |
1636 | |
1637 <para> | |
1638 Software decoding or transcoding different formats to MPEG1 can be achieved using | |
1639 a command like this: | |
1640 </para> | |
1641 <para><screen> | |
1642 mplayer -ao mpegpes -vo mpegpes yourfile.ext | |
9677 | 1643 mplayer -ao mpegpes -vo mpegpes -vf expand yourfile.ext |
9675 | 1644 </screen></para> |
1645 | |
1646 <para> | |
1647 Note that DVB cards only support heights 288 and 576 for PAL or 240 and 480 for | |
10938 | 1648 NTSC. You <emphasis role="bold">must</emphasis> rescale for other heights by adding |
9675 | 1649 <option>scale=width:height</option> with the width and height you want to the |
9677 | 1650 <option>-vf</option> option. DVB cards accept various widths, like 720, 704, |
9675 | 1651 640, 512, 480, 352 etc and do hardware scaling in horizontal direction, so you |
1652 do not need to scale horizontally in most cases. For a 512x384 (aspect 4:3) | |
1653 DivX try: | |
1654 </para> | |
1655 | |
9677 | 1656 <para><screen>mplayer -ao mpegpes -vo mpegpes -vf scale=512:576</screen></para> |
9675 | 1657 |
1658 <para>If you have a widescreen movie and you do not want to scale it to full height, | |
1659 you can use the <option>expand=w:h</option> filter to add black bands. To view a | |
1660 640x384 DivX, try: | |
1661 </para> | |
1662 | |
9677 | 1663 <para><screen>mplayer -ao mpegpes -vo mpegpes -vf expand=640:576 file.avi |
9675 | 1664 </screen></para> |
1665 | |
1666 <para>If your CPU is too slow for a full size 720x576 DivX, try downscaling:</para> | |
1667 | |
9677 | 1668 <para><screen>mplayer -ao mpegpes -vo mpegpes -vf scale=352:576 file.avi |
9675 | 1669 </screen></para> |
1670 | |
1671 <para>If speed does not improve, try vertical downscaling, too:</para> | |
1672 | |
9677 | 1673 <para><screen>mplayer -ao mpegpes -vo mpegpes -vf scale=352:288 file.avi |
9675 | 1674 </screen></para> |
1675 | |
1676 <para> | |
1677 For OSD and subtitles use the OSD feature of the expand filter. So, instead of | |
1678 <option>expand=w:h</option> or <option>expand=w:h:x:y</option>, use | |
1679 <option>expand=w:h:x:y:1</option> (the 5th parameter <option>:1</option> | |
1680 at the end will enable OSD rendering). You may want to move the image up a bit | |
1681 to get a bigger black zone for subtitles. You may also want to move subtitles up, | |
1682 if they are outside your TV screen, use the <option>-subpos <0-100></option> | |
1683 option to adjust this (<option>-subpos 80</option> is a good choice). | |
1684 </para> | |
1685 | |
1686 <para> | |
1687 In order to play non-25fps movies on a PAL TV or with a slow CPU, add the | |
1688 <option>-framedrop</option> option. | |
1689 </para> | |
1690 | |
1691 <para> | |
1692 To keep the aspect ratio of DivX files and get the optimal scaling | |
1693 parameters (hardware horizontal scaling and software vertical scaling | |
1694 while keeping the right aspect ratio), use the new dvbscale filter: | |
1695 </para> | |
1696 | |
1697 <para><screen> | |
10682 | 1698 for a 4:3 TV: -vf dvbscale,scale=-1:0,expand=-1:576:-1:-1:1 |
1699 for a 16:9 TV: -vf dvbscale=1024,scale=-1:0,expand=-1:576:-1:-1:1 | |
9675 | 1700 </screen></para> |
1701 | |
1702 <formalpara> | |
1703 <title>FUTURE</title> | |
1704 <para> | |
1705 If you have questions or want to hear feature announcements and take part in | |
1706 discussions on this subject, join our | |
1707 <ulink url="http://mplayerhq.hu/mailman/listinfo/mplayer-dvb">MPlayer-DVB</ulink> | |
1708 mailing list. Please remember that the list language is English. | |
1709 </para> | |
1710 </formalpara> | |
1711 | |
1712 <para> | |
1713 In the future you may expect the ability to display OSD and subtitles using | |
1714 the native OSD feature of DVB cards, as well as more fluent playback of | |
1715 non-25fps movies and realtime transcoding between MPEG2 and MPEG4 (partial | |
1716 decompression). | |
1717 </para> | |
1718 </sect4> | |
1719 | |
1720 <sect4 id="dxr2"> | |
1721 <title>DXR2</title> | |
1722 <para>MPlayer supports hardware accelerated playback with the Creative DXR2 card.</para> | |
1723 <para> | |
1724 First of all you will need properly installed DXR2 drivers. You can find | |
1725 the drivers and installation instructions at the | |
1726 <ulink url="http://dxr2.sourceforge.net/">DXR2 Resource Center</ulink> site. | |
1727 </para> | |
1728 | |
1729 <variablelist> | |
1730 <title>USAGE</title> | |
1731 <varlistentry> | |
1732 <term><option>-vo dxr2</option></term> | |
1733 <listitem><para>enable TV output</para></listitem> | |
1734 </varlistentry> | |
1735 | |
1736 <varlistentry> | |
1737 <term><option>-vo dxr2:x11</option> or <option>-vo dxr2:xv</option></term> | |
1738 <listitem><para>enable Overlay output in X11</para></listitem> | |
1739 </varlistentry> | |
1740 | |
1741 <varlistentry> | |
1742 <term><option>-dxr2 <option1:option2:...></option></term> | |
1743 <listitem><para>This option is used to control the DXR2 driver.</para></listitem> | |
1744 </varlistentry> | |
1745 </variablelist> | |
1746 | |
1747 <para> | |
1748 The overlay chipset used on the DXR2 is of pretty bad quality but the | |
1749 default settings should work for everybody. The OSD may be usable with the | |
1750 overlay (not on TV) by drawing it in the colorkey. With the default colorkey | |
1751 settings you may get variable results, usually you will see the colorkey | |
1752 around the characters or some other funny effect. But if you properly adjust | |
1753 the colorkey settings you should be able to get acceptable results. | |
1754 </para> | |
1755 | |
1756 <para>Please see the manpage for available options.</para> | |
1757 </sect4> | |
1758 | |
1759 <sect4 id="dxr3"> | |
1760 <title>DXR3/Hollywood+</title> | |
1761 <para> | |
1762 <application>MPlayer</application> supports hardware accelerated playback | |
1763 with the Creative DXR3 and Sigma Designs Hollywood Plus cards. These cards | |
1764 both use the em8300 MPEG decoder chip from Sigma Designs. | |
1765 </para> | |
1766 | |
1767 <para> | |
1768 First of all you will need properly installed DXR3/H+ drivers, version 0.12.0 | |
1769 or later. You can find the drivers and installation instructions at the | |
1770 <ulink url="http://dxr3.sourceforge.net/">DXR3 & Hollywood Plus for Linux</ulink> | |
10111 | 1771 site. <filename>configure</filename> should detect your card automatically, |
1772 compilation should go without problems. | |
9675 | 1773 </para> |
1774 | |
1775 <!-- FIXME: find a more clear presentation --> | |
1776 <variablelist> | |
1777 <title>USAGE</title> | |
1778 <varlistentry> | |
10111 | 1779 <term><option>-vo dxr3:prebuf:sync:norm=x:<replaceable>device</replaceable></option></term> |
9675 | 1780 <listitem><para> |
1781 <option>overlay</option> activates the overlay instead of TVOut. It requires | |
1782 that you have a properly configured overlay setup to work right. The easiest | |
1783 way to configure the overlay is to first run autocal. Then run mplayer with | |
1784 dxr3 output and without overlay turned on, run dxr3view. In dxr3view you can | |
1785 tweak the overlay settings and see the effects in realtime, perhaps this feature | |
1786 will be supported by the MPlayer GUI in the future. When overlay is properly set | |
10111 | 1787 up you will no longer need to use dxr3view. |
9675 | 1788 <option>prebuf</option> turns on prebuffering. Prebuffering is a feature of the |
1789 em8300 chip that enables it to hold more than one frame of video at a time. This | |
1790 means that when you are running with prebuffering MPlayer will try to keep the | |
1791 video buffer filled with data at all times. If you are on a slow machine MPlayer | |
1792 will probably use close to, or precisely 100% of CPU. This is especially common | |
1793 if you play pure MPEG streams (like DVDs, SVCDs a.s.o.) since MPlayer will not | |
1794 have to reencode it to MPEG it will fill the buffer very fast. | |
1795 With prebuffering video playback is <emphasis role="bold">much</emphasis> | |
1796 less sensitive to other programs hogging the CPU, it will not drop frames unless | |
1797 applications hog the CPU for a long time. | |
1798 When running without prebuffering the em8300 is much more sensitive to CPU load, | |
1799 so it is highly suggested that you turn on MPlayer's <option>-framedrop</option> | |
1800 option to avoid further loss of sync. | |
1801 <option>sync</option> will turn on the new sync-engine. This is currently an | |
1802 experimental feature. With the sync feature turned on the em8300's internal clock | |
1803 will be monitored at all times, if it starts to deviate from MPlayer's clock it | |
1804 will be reset causing the em8300 to drop any frames that are lagging behind. | |
1805 <option>norm=x</option> will set the TV norm of the DXR3 card without the need | |
1806 for external tools like em8300setup. Valid norms are 5 = NTSC, 4 = PAL-60, | |
1807 3 = PAL. Special norms are 2 (auto-adjust using PAL/PAL-60) and 1 (auto-adjust | |
1808 using PAL/NTSC) because they decide which norm to use by looking at the frame | |
1809 rate of the movie. norm = 0 (default) does not change the current norm. | |
10111 | 1810 <option><replaceable>device</replaceable></option> = device number to use if you have more than one em8300 |
9675 | 1811 card. |
1812 Any of these options may be left out. | |
1813 <option>:prebuf:sync</option> seems to work great when playing DivX movies. People | |
1814 have reported problems using the prebuf option when playing MPEG1/2 files. You | |
1815 might want to try running without any options first, if you have sync problems, | |
1816 or DVD subtitle problems, give <option>:sync</option> a try. | |
1817 </para></listitem> | |
1818 </varlistentry> | |
1819 | |
1820 <varlistentry> | |
1821 <term><option>-ao oss:/dev/em8300_ma-<replaceable>X</replaceable></option></term> | |
1822 <listitem><para> | |
1823 For audio output, where <replaceable>X</replaceable> is the device number (0 if one card). | |
1824 </para></listitem> | |
1825 </varlistentry> | |
1826 | |
1827 <varlistentry> | |
1828 <term><option>-aop list=resample:fout=<replaceable>xxxxx</replaceable></option></term> | |
1829 <listitem><para> | |
1830 The em8300 cannot play back samplerates lower than 44100Hz. If the sample | |
1831 rate is below 44100Hz select either 44100Hz or 48000Hz depending on which | |
1832 one matches closest. I.e. if the movie uses 22050Hz use 44100Hz as | |
1833 44100 / 2 = 22050, if it is 24000Hz use 48000Hz as 48000 / 2 = 24000 and so on. | |
1834 This does not work with digital audio output (<option>-ac hwac3</option>). | |
1835 </para></listitem> | |
1836 </varlistentry> | |
1837 | |
1838 <varlistentry> | |
9677 | 1839 <term><option>-vf lavc/fame</option></term> |
9675 | 1840 <listitem><para> |
1841 To watch non-MPEG content on the em8300 (i.e. DivX or RealVideo) you have to | |
1842 specify an MPEG1 video filter such as libavcodec (lavc) or libfame (fame). At | |
1843 the moment lavc is both faster and gives better image quality, it is suggested | |
1844 that you use that unless you have problems with it. See the man page for further | |
9677 | 1845 info about <option>-vf lavc/fame</option>. |
9675 | 1846 Using lavc is highly recommended. Currently there is no way of setting the fps |
1847 of the em8300 which means that it is fixed to 29.97fps. Because of this it is | |
10111 | 1848 highly recommended that you use <option>-vf lavc=<replaceable>quality</replaceable>:25</option> |
9675 | 1849 especially if you are using prebuffering. Then why 25 and not 29.97? Well, the |
1850 thing is that when you use 29.97 the picture becomes a bit jumpy. The reason for | |
1851 this is unknown to us. If you set it to somewhere between 25 and 27 the picture | |
1852 becomes stable. For now all we can do is accept this for a fact. | |
1853 </para></listitem> | |
1854 </varlistentry> | |
1855 | |
1856 <varlistentry> | |
9677 | 1857 <term><option>-vf expand=-1:-1:-1:-1:1</option></term> |
9675 | 1858 <listitem><para> |
1859 Although the DXR3 driver can put some OSD onto the MPEG1/2/4 video, it has | |
1860 much lower quality than MPlayer's traditional OSD, and has several refresh | |
1861 problems as well. The command line above will firstly convert the input | |
1862 video to MPEG4 (this is mandatory, sorry), then apply an expand filter which | |
1863 won't expand anything (-1: default), but apply the normal OSD onto the picture | |
1864 (that's what the "1" at the end does). | |
1865 </para></listitem> | |
1866 </varlistentry> | |
1867 | |
1868 <varlistentry> | |
1869 <term><option>-ac hwac3</option></term> | |
1870 <listitem><para> | |
1871 The em8300 supports playing back AC3 audio (surround sound) through the | |
1872 digital audio output of the card. See the <option>-ao oss</option> option above, | |
1873 it must be used to specify the DXR3's output instead of a soundcard. | |
1874 </para></listitem> | |
1875 </varlistentry> | |
1876 </variablelist> | |
1877 </sect4> | |
1878 | |
1879 </sect3> | |
1880 | |
1881 <sect3 id="other"> | |
1882 <title>Other visualization hardware</title> | |
1883 | |
1884 <sect4 id="zr"> | |
1885 <title>Zr</title> | |
1886 | |
1887 <para> | |
1888 This is a display-driver (<option>-vo zr</option>) for a number of MJPEG | |
1889 capture/playback cards (tested for DC10+ and Buz, and it should work for the | |
1890 LML33, the DC10). The driver works by encoding the frame to JPEG and then | |
1891 sending it to the card. For the JPEG encoding <systemitem>libavcodec</systemitem> | |
1892 is used, and required. With the special <emphasis>cinerama</emphasis> mode, | |
1893 you can watch movies in true wide screen provided that you have two beamers | |
1894 and two MJPEG cards. Depending on resolution and quality settings, this driver | |
1895 may require a lot of CPU power, remember to specify <option>-framedrop</option> | |
1896 if your machine is too slow. Note: My AMD K6-2 350MHz is (with | |
1897 <option>-framedrop</option>) quite adequate for watching VCD sized material and | |
1898 downscaled movies. | |
1899 </para> | |
1900 | |
1901 <para> | |
1902 This driver talks to the kernel driver available at | |
1903 <ulink url="http://mjpeg.sourceforge.net"/>, so | |
1904 you must get it working first. The presence of an MJPEG card is autodetected by the | |
1905 <filename>configure</filename> script, if autodetection fails, force detection with | |
1906 <screen>./configure --enable-zr</screen> | |
1907 </para> | |
1908 <para> | |
1909 The output can be controlled by several options, a long description of the | |
1910 options can be found in the man page, a short list of options can be viewed | |
1911 by running | |
1912 <screen>mplayer -zrhelp</screen> | |
1913 </para> | |
1914 | |
1915 <para> | |
1916 Things like scaling and the OSD (on screen display) are not handled by | |
1917 this driver but can be done using the video filters. For example, suppose | |
1918 that you have a movie with a resolution of 512x272 and you want to view it | |
1919 fullscreen on your DC10+. There are three main possibilities, you may scale | |
1920 the movie to a width of 768, 384 or 192. For performance and quality reasons, | |
1921 I would choose to scale the movie to 384x204 using the fast bilinear software | |
1922 scaler. The commandline is | |
9677 | 1923 <screen>mplayer -vo zr -sws 0 -vf scale=384:204 movie.avi</screen> |
9675 | 1924 </para> |
1925 | |
1926 <para> | |
11214 | 1927 Cropping can be done by the <option>crop</option> filter and by this |
9675 | 1928 driver itself. Suppose that a movie is too wide for display on your Buz and |
1929 that you want to use <option>-zrcrop</option> to make the movie less wide, | |
9784
286ac03ce5c5
Typos, noticed by Roberto Togni <r_togni@libero.it>.
diego
parents:
9683
diff
changeset
|
1930 then you would issue the following command |
9675 | 1931 <screen>mplayer -vo zr -zrcrop 720x320+80+0 benhur.avi</screen> |
1932 </para> | |
1933 | |
1934 <para> | |
10111 | 1935 if you want to use the <option>crop</option> filter, you would do |
9677 | 1936 <screen>mplayer -vo zr -vf crop=720:320:80:0 benhur.avi</screen> |
9675 | 1937 </para> |
1938 | |
1939 <para> | |
10975
96cd8d4e98d4
Typos and some confusion noticed by Lukasz frogu Proszek <l_j_p@wp.pl>.
diego
parents:
10971
diff
changeset
|
1940 Extra occurrences of <option>-zrcrop</option> invoke <emphasis>cinerama</emphasis> |
96cd8d4e98d4
Typos and some confusion noticed by Lukasz frogu Proszek <l_j_p@wp.pl>.
diego
parents:
10971
diff
changeset
|
1941 mode, i.e. you can distribute the movie over several TV's or beamers to create a |
9675 | 1942 larger screen. Suppose you have two beamers. The left one is connected to your |
1943 Buz at <systemitem>/dev/video1</systemitem> and the right one is connected to | |
1944 your DC10+ at <systemitem>/dev/video0</systemitem>. The movie has a resolution | |
1945 of 704x288. Suppose also that you want the right beamer in black and white and | |
10975
96cd8d4e98d4
Typos and some confusion noticed by Lukasz frogu Proszek <l_j_p@wp.pl>.
diego
parents:
10971
diff
changeset
|
1946 that the left beamer should have JPEG frames at quality 10, then you would |
9675 | 1947 issue the following command |
1948 <screen> | |
1949 mplayer -vo zr -zrdev /dev/video0 -zrcrop 352x288+352+0 -zrxdoff 0 -zrbw \ | |
1950 -zrcrop 352x288+0+0 -zrdev /dev/video1 -zrquality 10 movie.avi | |
1951 </screen> | |
1952 </para> | |
1953 | |
1954 <para> | |
1955 You see that the options appearing before the second <option>-zrcrop</option> | |
1956 only apply to the DC10+ and that the options after the second | |
1957 <option>-zrcrop</option> apply to the Buz. The maximum number of MJPEG cards | |
9784
286ac03ce5c5
Typos, noticed by Roberto Togni <r_togni@libero.it>.
diego
parents:
9683
diff
changeset
|
1958 participating in <emphasis>cinerama</emphasis> is four, so you can build a |
9675 | 1959 2x2 vidiwall. |
1960 </para> | |
1961 | |
1962 <para> | |
10111 | 1963 Finally an important remark: Do not start or stop XawTV on the playback device |
9675 | 1964 during playback, it will crash your computer. It is, however, fine to |
1965 <emphasis role="bold">FIRST</emphasis> start XawTV, <emphasis role="bold">THEN</emphasis> | |
1966 start MPlayer, wait for MPlayer to finish and <emphasis role="bold">THEN</emphasis> | |
1967 stop XawTV. | |
1968 </para> | |
1969 </sect4> | |
1970 | |
1971 <sect4 id="blinkenlights"> | |
1972 <title>Blinkenlights</title> | |
1973 <para> | |
1974 This driver is capable of playback using the Blinkenlights UDP protocol. If you | |
1975 don't know what <ulink url="http://www.blinkenlights.de/">Blinkenlights</ulink> | |
1976 is, you don't need this driver. | |
1977 </para> | |
1978 </sect4> | |
1979 </sect3> | |
1980 | |
1981 <sect3 id="tvout"> | |
1982 <title>TV-out support</title> | |
1983 | |
1984 <sect4 id="tvout-mga-g400"> | |
1985 <title>Matrox G400 cards</title> | |
1986 | |
1987 <para> | |
1988 Under Linux you have two methods to get G400 TV out working: | |
1989 </para> | |
1990 | |
1991 <important> | |
1992 <para> | |
1993 for Matrox G450/G550 TV-out instructions, please see the next section! | |
1994 </para> | |
1995 </important> | |
1996 | |
1997 <variablelist> | |
1998 <varlistentry> | |
1999 <term>XFree86</term> | |
2000 <listitem><para> | |
2001 Using the driver and the HAL module, available from <ulink | |
2002 url="http://www.matrox.com">Matrox's site</ulink>. This will give you X | |
2003 on the TV. | |
2004 </para><para> | |
2005 <emphasis role="bold">This method doesn't give you accelerated playback</emphasis> | |
2006 as under Windows! The second head has only YUV framebuffer, the <emphasis>BES</emphasis> | |
2007 (Back End Scaler, the YUV scaler on G200/G400/G450/G550 cards) doesn't | |
2008 work on it! The windows driver somehow workarounds this, probably by | |
2009 using the 3D engine to zoom, and the YUV framebuffer to display the | |
2010 zoomed image. If you really want to use X, use the <option>-vo x11 -fs | |
2011 -zoom</option> options, but it will be <emphasis role="bold">SLOW</emphasis>, | |
2012 and has <emphasis role="bold">Macrovision</emphasis> copy protection enabled | |
2013 (you can "workaround" Macrovision using this | |
10111 | 2014 <ulink url="http://avifile.sourceforge.net/mgamacro.pl">perl script</ulink>). |
9675 | 2015 </para></listitem> |
2016 </varlistentry> | |
2017 <varlistentry> | |
2018 <term>Framebuffer</term> | |
2019 <listitem><para> | |
2020 Using the <emphasis role="bold">matroxfb modules</emphasis> in the 2.4 | |
2021 kernels. 2.2 kernels don't have the TVout feature in them, thus unusable | |
2022 for this. You have to enable ALL matroxfb-specific feature during compilation | |
10254 | 2023 (except MultiHead), and compile them into <emphasis role="bold">modules</emphasis>! |
9675 | 2024 You'll also need I2C enabled. |
2025 </para> | |
2026 | |
2027 <procedure> | |
2028 <step><para> | |
2029 Enter <filename class="directory">TVout/matroxset</filename> and type | |
2030 <command>make</command>. Install <filename class="directory">matroxset</filename> into | |
2031 somewhere in your <envar>PATH</envar>. | |
2032 </para></step> | |
2033 <step><para> | |
2034 If you don't have <command>fbset</command> installed, enter | |
2035 <filename class="directory">TVout/fbset</filename> and type <command>make</command>. | |
2036 Install <filename class="directory">fbset</filename> into somewhere in your | |
2037 <envar>PATH</envar>. | |
2038 </para></step> | |
2039 <step><para> | |
10254 | 2040 If you don't have <command>con2fb</command> installed, enter |
2041 <filename class="directory">TVout/con2fb</filename> and type <command>make</command>. | |
2042 Install <filename class="directory">con2fb</filename> into somewhere in your | |
2043 <envar>PATH</envar>. | |
2044 </para></step> | |
2045 <step><para> | |
9675 | 2046 Then enter into the <filename class="directory">TVout/</filename> directory |
2047 in the <application>MPlayer</application> source, and execute | |
2048 <filename>./modules</filename> as root. Your text-mode console will | |
2049 enter into framebuffer mode (no way back!). | |
2050 </para></step> | |
2051 <step><para> | |
2052 Next, EDIT and run the <filename>./matroxtv</filename> script. This will | |
2053 present you to a very simple menu. Press <keycap>2</keycap> and | |
2054 <keycap>Enter</keycap>. Now you should have the same picture on your | |
10111 | 2055 monitor, and TV. If the TV (PAL by default) |
9675 | 2056 picture has some weird stripes on it, the script wasn't able to set the |
2057 resolution correctly (to 640x512 by default). Try other resolutions | |
2058 from the menu and/or experiment with fbset. | |
2059 </para></step> | |
2060 <step><para> | |
2061 Yoh. Next task is to make the cursor on tty1 (or whatever) to | |
2062 disappear, and turn off screen blanking. Execute the following | |
2063 commands: | |
2064 | |
2065 <screen> | |
2066 echo -e '\033[?25l' | |
2067 setterm -blank 0<!-- | |
2068 --></screen> | |
2069 or | |
2070 <screen> | |
2071 setterm -cursor off | |
2072 setterm -blank 0<!-- | |
2073 --></screen> | |
2074 | |
2075 You possibly want to put the above into a script, and also clear the | |
2076 screen. To turn the cursor back: | |
2077 <screen>echo -e '\033[?25h'</screen> or | |
2078 <screen>setterm -cursor on</screen> | |
2079 </para></step> | |
2080 <step><para> | |
2081 Yeah kewl. Start movie playing with | |
2082 <screen> | |
2083 mplayer -vo mga -fs -screenw 640 -screenh 512 <replaceable>filename</replaceable><!-- | |
2084 --></screen> | |
2085 | |
2086 (If you use X, now change to matroxfb with for example | |
2087 <keycap>Ctrl</keycap>+<keycap>Alt</keycap>+<keycap>F1</keycap>.) | |
2088 Change <literal>640</literal> and <literal>512</literal> if you set | |
2089 the resolution to other... | |
2090 </para></step> | |
2091 <step><para> | |
2092 <emphasis role="bold">Enjoy the ultra-fast ultra-featured Matrox TV | |
2093 output (better than Xv)!</emphasis> | |
2094 </para></step> | |
2095 </procedure> | |
2096 </listitem> | |
2097 </varlistentry> | |
2098 </variablelist> | |
2099 | |
2100 <formalpara> | |
2101 <title>Building a Matrox TV-out cable</title> | |
2102 <para> | |
2103 No one takes any responsibility, nor guarantee for any damage caused | |
2104 by this documentation. | |
2105 </para> | |
2106 </formalpara> | |
2107 | |
2108 <formalpara> | |
2109 <title>Cable for G400</title> | |
2110 <para> | |
2111 The CRTC2 connector's fourth pin is the composite video signal. The | |
2112 ground are the sixth, seventh and eighth pins. (info contributed | |
2113 from Balázs Rácz) | |
2114 </para> | |
2115 </formalpara> | |
2116 | |
2117 <formalpara> | |
2118 <title>Cable for G450</title> | |
2119 <para> | |
2120 The CRTC2 connector's first pin is the composite video signal. The | |
2121 ground are the fifth, sixth, seventh, and fifteenth (5, 6, 7, 15) | |
2122 pins. (info contributed from Balázs Kerekes) | |
2123 </para> | |
2124 </formalpara> | |
2125 </sect4> | |
2126 | |
2127 <sect4 id="tv-out_matrox_g450"> | |
2128 <title>Matrox G450/G550 cards</title> | |
2129 <para> | |
2130 TV output support for these cards has only been recently introduced, and is | |
2131 not yet in the mainstream kernel. Currently the <emphasis role="bold">mga_vid</emphasis> | |
2132 module can't be used AFAIK, because the G450/G550 driver works only in one | |
2133 configuration: the first CRTC chip (with much more features) on the first display | |
2134 (on monitor), and the second CRTC (no <emphasis role="bold">BES</emphasis> - for | |
2135 explanation on BES, please see the G400 section above) on TV. So you can only | |
2136 use <application>MPlayer</application>'s <emphasis>fbdev</emphasis> output driver | |
2137 at the present. | |
2138 </para> | |
2139 | |
2140 <para> | |
2141 The first CRTC can't be routed to the second head currently. The author of the | |
2142 kernel matroxfb driver - Petr Vandrovec - will maybe make support for this, by | |
2143 displaying the first CRTC's output onto both of the heads at once, as currently | |
2144 recommended for G400, see the section above. | |
2145 </para> | |
2146 | |
2147 <para> | |
2148 The necessary kernel patch and the detailed howto is downloadable from | |
9948 | 2149 <ulink url="http://www.bglug.ca/matrox_tvout/"/> |
9675 | 2150 </para> |
2151 </sect4> | |
2152 | |
2153 | |
2154 <sect4 id="tvout-ati"> | |
2155 <title>ATI cards</title> | |
2156 | |
2157 <formalpara> | |
2158 <title>PREAMBLE</title> | |
2159 <para> | |
2160 Currently ATI doesn't want to support any of its TV-out chips under Linux, | |
2161 because of their licensed Macrovision technology. | |
2162 </para> | |
2163 </formalpara> | |
2164 | |
2165 <itemizedlist> | |
2166 <title>ATI CARDS TV-OUT STATUS ON LINUX</title> | |
2167 <listitem><simpara> | |
2168 <emphasis role="bold">ATI Mach64</emphasis>: | |
2169 supported by <ulink url="http://gatos.sf.net">gatos</ulink>. | |
2170 </simpara></listitem> | |
2171 <listitem><simpara> | |
2172 <emphasis role="bold">ASIC Radeon VIVO</emphasis>: | |
2173 supported by <ulink url="http://gatos.sf.net">gatos</ulink>. | |
2174 </simpara></listitem> | |
2175 <listitem><simpara> | |
2176 <emphasis role="bold">Radeon</emphasis> and <emphasis role="bold">Rage128</emphasis>: | |
2177 supported by <application>MPlayer</application>! | |
2178 Check <link linkend="vesa">VESA driver</link> and | |
2179 <link linkend="vidix">VIDIX</link> sections. | |
2180 </simpara></listitem> | |
2181 <listitem><simpara> | |
2182 <emphasis role="bold">Rage Mobility P/M, Radeon, Rage 128, Mobility M3/M4</emphasis>: | |
2183 supported by <ulink url="http://www.stud.uni-hamburg.de/users/lennart/projects/atitvout/">atitvout</ulink>. | |
2184 </simpara></listitem> | |
2185 </itemizedlist> | |
2186 | |
2187 <para> | |
2188 On other cards, just use the <link linkend="vesa">VESA</link> driver, | |
2189 without VIDIX. Powerful CPU is needed, though. | |
2190 </para> | |
2191 | |
2192 <para> | |
2193 Only thing you need to do - <emphasis role="bold">Have the TV connector | |
2194 plugged in before booting your PC</emphasis> since video BIOS initializes | |
2195 itself only once during POST procedure. | |
2196 </para> | |
2197 </sect4> | |
2198 | |
2199 | |
2200 <sect4 id="tvout-voodoo"> | |
2201 <title>Voodoo 3</title> | |
2202 <para> | |
2203 Check <ulink url="http://www.iki.fi/too/tvout-voodoo3-3000-xfree">this URL</ulink>. | |
2204 </para> | |
2205 </sect4> | |
2206 | |
2207 <sect4 id="tvout-nvidia"> | |
10111 | 2208 <title>nVidia</title> |
9675 | 2209 <para> |
2210 First, you MUST download the closed-source drivers from <ulink url="http://nvidia.com"/>. | |
2211 I will not describe the installation and configuration process because it does not cover | |
2212 the scope of this documentation. | |
2213 </para> | |
2214 | |
2215 <para> | |
2216 After XFree86, XVideo, and 3D acceleration is properly working, edit your | |
2217 card's Device section in the <filename>XF86Config</filename> file, according | |
2218 to the following example (adapt for your card/TV): | |
2219 | |
2220 <programlisting> | |
2221 Section "Device" | |
2222 Identifier "GeForce" | |
2223 VendorName "ASUS" | |
2224 BoardName "nVidia GeForce2/MX 400" | |
2225 Driver "nvidia" | |
2226 #Option "NvAGP" "1" | |
2227 Option "NoLogo" | |
2228 Option "CursorShadow" "on" | |
2229 | |
2230 Option "TwinView" | |
2231 Option "TwinViewOrientation" "Clone" | |
2232 Option "MetaModes" "1024x768,640x480" | |
2233 Option "ConnectedMonitor" "CRT, TV" | |
2234 Option "TVStandard" "PAL-B" | |
2235 Option "TVOutFormat" "Composite" | |
2236 | |
2237 EndSection | |
2238 </programlisting> | |
2239 </para> | |
2240 | |
2241 <para> | |
2242 Of course the important thing is the TwinView part. | |
2243 </para> | |
2244 </sect4> | |
11264 | 2245 |
2246 <sect4 id="tvout-neomagic"> | |
2247 <title>Neomagic</title> | |
2248 <para> | |
2249 Tested on a Toshiba Tecra 8000. Its TV output chip is a miserable crap. Avoid | |
2250 if possible. | |
2251 </para> | |
2252 <para> | |
2253 You must use <option>-vo vesa</option>. The tested chip was capable of 1.333333 | |
11275 | 2254 aspect ratio only, so be sure to use the <option>-x</option>, <option>-y</option> options and/or the |
11264 | 2255 <option>-vf scale,crop,expand</option> filters if the box doesn't let you |
2256 enable TV output. Maximum resolution was 720*576 at 16bpp. | |
2257 </para> | |
2258 <para> | |
2259 Known issues: VESA-only, 1.33333 limitation, image isn't always centered, | |
2260 movie becomes 4bpp in every 10 minutes, and stays that way. Frequent hard | |
2261 freezes, LCD display problems. | |
2262 </para> | |
2263 </sect4> | |
9675 | 2264 </sect3> |
2265 </sect2> |