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