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