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