Mercurial > mplayer.hg
comparison DOCS/video.html @ 6599:f20184a10258
1001 typos as found by ispell.
author | diego |
---|---|
date | Sat, 29 Jun 2002 11:10:47 +0000 |
parents | 4b7d097a9c69 |
children | 62b33bad8fca |
comparison
equal
deleted
inserted
replaced
6598:ea9418aec756 | 6599:f20184a10258 |
---|---|
23 --($:~)-- cat /proc/mtrr<BR> | 23 --($:~)-- cat /proc/mtrr<BR> |
24 reg00: base=0xe4000000 (3648MB), size= 16MB: write-combining, count=9<BR> | 24 reg00: base=0xe4000000 (3648MB), size= 16MB: write-combining, count=9<BR> |
25 reg01: base=0xd8000000 (3456MB), size= 128MB: write-combining, count=1<BR> | 25 reg01: base=0xd8000000 (3456MB), size= 128MB: write-combining, count=1<BR> |
26 </CODE></P> | 26 </CODE></P> |
27 | 27 |
28 <P>It's right, shows my Matrox G400 with 16Mb memory. I did this from | 28 <P>It's right, shows my Matrox G400 with 16MB memory. I did this from |
29 XFree 4.x.x , which sets up MTRR registers automatically.</P> | 29 XFree 4.x.x , which sets up MTRR registers automatically.</P> |
30 | 30 |
31 <P>If nothing worked, you have to do it manually. First, you have to find the base | 31 <P>If nothing worked, you have to do it manually. First, you have to find the base |
32 address. | 32 address. |
33 You have 3 ways to find it:</P> | 33 You have 3 ways to find it:</P> |
56 <TR><TD></TD><TD>16 MB</TD><TD></TD><TD>0x1000000</TD></TR> | 56 <TR><TD></TD><TD>16 MB</TD><TD></TD><TD>0x1000000</TD></TR> |
57 <TR><TD></TD><TD>32 MB</TD><TD></TD><TD>0x2000000</TD></TR> | 57 <TR><TD></TD><TD>32 MB</TD><TD></TD><TD>0x2000000</TD></TR> |
58 </TABLE> | 58 </TABLE> |
59 | 59 |
60 | 60 |
61 <P>You know base address and memory size, let's setup mtrr registers! | 61 <P>You know base address and memory size, let's setup MTRR registers! |
62 For example, for the Matrox card above (base=0xd8000000) with 32MB | 62 For example, for the Matrox card above (base=0xd8000000) with 32MB |
63 ram (size=0x2000000) just execute:</P> | 63 ram (size=0x2000000) just execute:</P> |
64 | 64 |
65 | 65 |
66 <P><CODE> echo "base=0xd8000000 size=0x2000000 type=write-combining" >| /proc/mtrr</CODE></P> | 66 <P><CODE> echo "base=0xd8000000 size=0x2000000 type=write-combining" >| /proc/mtrr</CODE></P> |
67 | 67 |
68 | 68 |
69 <P>Not all CPUs support MTRRs. For example older K6-2's [around 266Mhz, | 69 <P>Not all CPUs support MTRRs. For example older K6-2's [around 266MHz, |
70 stepping 0] doesn't support MTRR, but stepping 12's do ('<CODE>cat /proc/cpuinfo</CODE>' | 70 stepping 0] doesn't support MTRR, but stepping 12's do ('<CODE>cat /proc/cpuinfo</CODE>' |
71 to check it').</P> | 71 to check it').</P> |
72 | 72 |
73 <P><B><A NAME=2.3.1.2>2.3.1.2. Xv</A></B></P> | 73 <P><B><A NAME=2.3.1.2>2.3.1.2. Xv</A></B></P> |
74 | 74 |
130 | 130 |
131 <P><B><A NAME=2.3.1.2.1>2.3.1.2.1. 3dfx cards</A></B></P> | 131 <P><B><A NAME=2.3.1.2.1>2.3.1.2.1. 3dfx cards</A></B></P> |
132 | 132 |
133 <P>Older 3dfx drivers were known to have problems with XVideo acceleration, | 133 <P>Older 3dfx drivers were known to have problems with XVideo acceleration, |
134 it didn't support either YUY2 or YV12, and so. Verify that you have | 134 it didn't support either YUY2 or YV12, and so. Verify that you have |
135 XFree86 version 4.2.0 or greater, it works ok with YV12 and YUY2. Previous | 135 XFree86 version 4.2.0 or greater, it works OK with YV12 and YUY2. Previous |
136 versions, including 4.1.0 <B>crashes with YV12</B>! | 136 versions, including 4.1.0 <B>crashes with YV12</B>! |
137 If you experience strange effects using -vo xv, try SDL (it has XVideo too) | 137 If you experience strange effects using -vo xv, try SDL (it has XVideo too) |
138 and see if it helps. Check the <A HREF="#2.3.1.4">SDL section</A> for details.</P> | 138 and see if it helps. Check the <A HREF="#2.3.1.4">SDL section</A> for details.</P> |
139 | 139 |
140 <P><B>OR</B>, try the NEW -vo tdfxfb driver! See the <A HREF="#2.3.1.9">2.3.1.9</A> | 140 <P><B>OR</B>, try the NEW -vo tdfxfb driver! See the <A HREF="#2.3.1.9">2.3.1.9</A> |
154 driver</A>, it uses MMX2 for this task and is faster than the native X driver.</P> | 154 driver</A>, it uses MMX2 for this task and is faster than the native X driver.</P> |
155 | 155 |
156 | 156 |
157 <P><B><A NAME=2.3.1.2.3>2.3.1.2.3. nVidia cards</A></B></P> | 157 <P><B><A NAME=2.3.1.2.3>2.3.1.2.3. nVidia cards</A></B></P> |
158 | 158 |
159 <P>nVidia isn't a very good choice under Linux (according to NVidia, this | 159 <P>nVidia isn't a very good choice under Linux (according to nVidia, this |
160 is <A HREF="users_against_developers.html#nvidia">not true</A>).. You'll have to use the | 160 is <A HREF="users_against_developers.html#nvidia">not true</A>).. You'll have to use the |
161 binary closed-source nVidia driver, available at nVidia's website. The standard XFree86 | 161 binary closed-source nVidia driver, available at nVidia's web site. The standard XFree86 |
162 driver doesn't support XVideo for these cards, due to nVidia's closed | 162 driver doesn't support XVideo for these cards, due to nVidia's closed |
163 sources/specifications.</P> | 163 sources/specifications.</P> |
164 | 164 |
165 <P>As far as I know the latest XFree86 driver contains XVideo support for | 165 <P>As far as I know the latest XFree86 driver contains XVideo support for |
166 Geforce 2 and 3.</P> | 166 GeForce 2 and 3.</P> |
167 | 167 |
168 <P>Riva128 cards don't have XVideo support even with the nvidia driver :( | 168 <P>Riva128 cards don't have XVideo support even with the nVidia driver :( |
169 Complain to NVidia.</P> | 169 Complain to nVidia.</P> |
170 | 170 |
171 | 171 |
172 <P><B><A NAME=2.3.1.2.4>2.3.1.2.4. ATI cards</A></B></P> | 172 <P><B><A NAME=2.3.1.2.4>2.3.1.2.4. ATI cards</A></B></P> |
173 | 173 |
174 <UL> | 174 <UL> |
205 | 205 |
206 | 206 |
207 <P><B><A NAME=2.3.1.2.6>2.3.1.2.6. Trident cards</A></B></P> | 207 <P><B><A NAME=2.3.1.2.6>2.3.1.2.6. Trident cards</A></B></P> |
208 | 208 |
209 <P>If you want to use xv with a trident card, provided that it doesn't | 209 <P>If you want to use xv with a trident card, provided that it doesn't |
210 work with 4.1.0, try the latest cvs of Xfree or wait for Xfree 4.2.0. | 210 work with 4.1.0, try the latest CVS of XFree or wait for XFree 4.2.0. |
211 The latest cvs adds support for fullscreen xv support with the | 211 The latest CVS adds support for fullscreen xv support with the |
212 Cyberblade XP card.</P> | 212 Cyberblade XP card.</P> |
213 | 213 |
214 <P><B><A NAME=2.3.1.3>2.3.1.3. DGA</A></B></P> | 214 <P><B><A NAME=2.3.1.3>2.3.1.3. DGA</A></B></P> |
215 | 215 |
216 <P><B><A NAME=2.3.1.3.1>2.3.1.3.1. Summary</A></B></P> | 216 <P><B><A NAME=2.3.1.3.1>2.3.1.3.1. Summary</A></B></P> |
217 | 217 |
218 <P>This document tries to explain in some words what DGA is in general and | 218 <P>This document tries to explain in some words what DGA is in general and |
219 what the DGA video output driver for mplayer can do (and what it can't).</P> | 219 what the DGA video output driver for <B>MPlayer</B> can do (and what it can't).</P> |
220 | 220 |
221 | 221 |
222 <P><B><A NAME=2.3.1.3.2>2.3.1.3.2. What is DGA</A></B></P> | 222 <P><B><A NAME=2.3.1.3.2>2.3.1.3.2. What is DGA</A></B></P> |
223 | 223 |
224 <P>DGA is short for Direct Graphics Access and is a means for a program to | 224 <P>DGA is short for Direct Graphics Access and is a means for a program to |
225 bypass the X-Server and directly modifying the framebuffer memory. | 225 bypass the X-Server and directly modifying the framebuffer memory. |
226 Technically spoken this happens by mapping the framebuffer memory into | 226 Technically spoken this happens by mapping the framebuffer memory into |
227 the memory range of your process. This is allowed by the kernel only | 227 the memory range of your process. This is allowed by the kernel only |
228 if you have superuser privileges. You can get these either by logging in | 228 if you have superuser privileges. You can get these either by logging in |
229 as root or by setting the suid bit on the mplayer excecutable (NOT | 229 as root or by setting the SUID bit on the <B>MPlayer</B> executable (NOT |
230 recommended!).</P> | 230 recommended!).</P> |
231 | 231 |
232 <P>There are two versions of DGA: DGA1 is used by XFree 3.x.x and DGA2 was | 232 <P>There are two versions of DGA: DGA1 is used by XFree 3.x.x and DGA2 was |
233 introduced with XFree 4.0.1.</P> | 233 introduced with XFree 4.0.1.</P> |
234 | 234 |
236 switching the resolution of the video signal you have to rely on the | 236 switching the resolution of the video signal you have to rely on the |
237 XVidMode extension.</P> | 237 XVidMode extension.</P> |
238 | 238 |
239 <P>DGA2 incorporates the features of XVidMode extension and also allows | 239 <P>DGA2 incorporates the features of XVidMode extension and also allows |
240 switching the depth of the display. So you may, although basically | 240 switching the depth of the display. So you may, although basically |
241 running a 32 bit depth XServer, switch to a depth of 15 bits and vice | 241 running a 32 bit depth X server, switch to a depth of 15 bits and vice |
242 versa. </P> | 242 versa. </P> |
243 | 243 |
244 <P>However DGA has some drawbacks. It seems it is somewhat dependent on the | 244 <P>However DGA has some drawbacks. It seems it is somewhat dependent on the |
245 graphics chip you use and on the implementation of the XServer's video | 245 graphics chip you use and on the implementation of the X server's video |
246 driver that controls this chip. So it does not work on every system ...</P> | 246 driver that controls this chip. So it does not work on every system ...</P> |
247 | 247 |
248 | 248 |
249 <P><B><A NAME=2.3.1.3.3>2.3.1.3.3. Installing DGA support for MPlayer</A></B></P> | 249 <P><B><A NAME=2.3.1.3.3>2.3.1.3.3. Installing DGA support for MPlayer</A></B></P> |
250 | 250 |
273 | 273 |
274 | 274 |
275 <P><B>!!!! BUT STAY TUNED !!!!</B><BR> | 275 <P><B>!!!! BUT STAY TUNED !!!!</B><BR> |
276 This is a <B>BIG</B> security risk! Never do this on a server or on a computer | 276 This is a <B>BIG</B> security risk! Never do this on a server or on a computer |
277 can be accessed by more people than only you because they can gain root | 277 can be accessed by more people than only you because they can gain root |
278 privilegies through suid root mplayer.<BR> | 278 privileges through SUID root <B>MPlayer</B>.<BR> |
279 <B>!!!! SO YOU HAVE BEEN WARNED ... !!!!</B></P> | 279 <B>!!!! SO YOU HAVE BEEN WARNED ... !!!!</B></P> |
280 | 280 |
281 <P>Now use '-vo dga' option, and there you go! (hope so:) | 281 <P>Now use '-vo dga' option, and there you go! (hope so:) |
282 You should also try if the '-vo sdl:dga' option works for you! It's much | 282 You should also try if the '-vo sdl:dga' option works for you! It's much |
283 faster!!!</P> | 283 faster!!!</P> |
285 <P><B><A NAME=2.3.1.3.4>2.3.1.3.4. Resolution switching</A></B></P> | 285 <P><B><A NAME=2.3.1.3.4>2.3.1.3.4. Resolution switching</A></B></P> |
286 | 286 |
287 <P>The DGA driver allows for switching the resolution of the output signal. | 287 <P>The DGA driver allows for switching the resolution of the output signal. |
288 This avoids the need for doing (slow) software scaling and at the same | 288 This avoids the need for doing (slow) software scaling and at the same |
289 time provides a fullscreen image. Ideally it would switch to the exact | 289 time provides a fullscreen image. Ideally it would switch to the exact |
290 resolution (except for honouring aspect ratio) of the video data, but the | 290 resolution (except for honoring aspect ratio) of the video data, but the |
291 XServer only allows switching to resolutions predefined in | 291 X server only allows switching to resolutions predefined in |
292 <CODE>/etc/X11/XF86Config</CODE> (<CODE>/etc/X11/XF86Config-4</CODE> for XFree 4.0.X respectively). | 292 <CODE>/etc/X11/XF86Config</CODE> (<CODE>/etc/X11/XF86Config-4</CODE> for XFree 4.0.X respectively). |
293 Those are defined by so-called modelines and depend on the capabilites | 293 Those are defined by so-called modelines and depend on the capabilities |
294 of your video hardware. The XServer scans this config file on startup and | 294 of your video hardware. The X server scans this config file on startup and |
295 disables the modelines not suitable for your hardware. You can find | 295 disables the modelines not suitable for your hardware. You can find |
296 out which modes survive with the X11 log file. It can be found at: | 296 out which modes survive with the X11 log file. It can be found at: |
297 <CODE>/var/log/XFree86.0.log</CODE>.</P> | 297 <CODE>/var/log/XFree86.0.log</CODE>.</P> |
298 <P>See appendix A for some sample modeline definitions.</P> | 298 <P>See appendix A for some sample modeline definitions.</P> |
299 | 299 |
305 how the DGA driver for <B>MPlayer</B> works.</P> | 305 how the DGA driver for <B>MPlayer</B> works.</P> |
306 | 306 |
307 <P><B><A NAME=2.3.1.3.6>2.3.1.3.6. Features of the DGA driver</A></B></P> | 307 <P><B><A NAME=2.3.1.3.6>2.3.1.3.6. Features of the DGA driver</A></B></P> |
308 | 308 |
309 <P>The DGA driver is invoked by specifying -vo dga at the command line. | 309 <P>The DGA driver is invoked by specifying -vo dga at the command line. |
310 The default behaviour is to switch to a resolution matching the original | 310 The default behavior is to switch to a resolution matching the original |
311 resolution of the video as close as possible. It deliberately ignores the | 311 resolution of the video as close as possible. It deliberately ignores the |
312 -vm and -fs switches (enabling of video mode switching and fullscreen) - | 312 -vm and -fs switches (enabling of video mode switching and fullscreen) - |
313 it always tries to cover as much area of your screen as possible by switching | 313 it always tries to cover as much area of your screen as possible by switching |
314 the video mode, thus refraining to use a single additional cycle of your CPU | 314 the video mode, thus refraining to use a single additional cycle of your CPU |
315 to scale the image. | 315 to scale the image. |
345 | 345 |
346 <P><B><A NAME=2.3.1.3.7>2.3.1.3.7. Speed issues</A></B></P> | 346 <P><B><A NAME=2.3.1.3.7>2.3.1.3.7. Speed issues</A></B></P> |
347 | 347 |
348 <P>Generally spoken, DGA framebuffer access should be at least as fast as using | 348 <P>Generally spoken, DGA framebuffer access should be at least as fast as using |
349 the X11 driver with the additional benefit of getting a fullscreen image. | 349 the X11 driver with the additional benefit of getting a fullscreen image. |
350 The percentage speed values printed by mplayer have to be interpreted with | 350 The percentage speed values printed by <B>MPlayer</B> have to be interpreted with |
351 some care, as for example, with the X11 driver they do not include the time | 351 some care, as for example, with the X11 driver they do not include the time |
352 used by the X-Server needed for the actual drawing. Hook a terminal to a | 352 used by the X-Server needed for the actual drawing. Hook a terminal to a |
353 serial line of your box and start top to see what is really going on in your | 353 serial line of your box and start top to see what is really going on in your |
354 box ...</P> | 354 box ...</P> |
355 | 355 |
361 only half the memory bandwidth of a 32 bit display.</P> | 361 only half the memory bandwidth of a 32 bit display.</P> |
362 | 362 |
363 <P>Using a depth of 24bit is even a good idea if your card natively just supports | 363 <P>Using a depth of 24bit is even a good idea if your card natively just supports |
364 32 bit depth since it transfers 25% less data compared to the 32/32 mode.</P> | 364 32 bit depth since it transfers 25% less data compared to the 32/32 mode.</P> |
365 | 365 |
366 <P>I've seen some avi files already be replayed on a Pentium MMX 266. AMD K6-2 | 366 <P>I've seen some AVI files already be replayed on a Pentium MMX 266. AMD K6-2 |
367 CPUs might work at 400 MHZ and above.</P> | 367 CPUs might work at 400 MHZ and above.</P> |
368 | 368 |
369 <P><B><A NAME=2.3.1.3.8>2.3.1.3.8. Known bugs</A></B></P> | 369 <P><B><A NAME=2.3.1.3.8>2.3.1.3.8. Known bugs</A></B></P> |
370 | 370 |
371 <P>Well, according to some developpers of XFree, DGA is quite a beast. They | 371 <P>Well, according to some developers of XFree, DGA is quite a beast. They |
372 tell you better not to use it. Its implementation is not always flawless | 372 tell you better not to use it. Its implementation is not always flawless |
373 with every chipset driver for XFree out there.</P> | 373 with every chipset driver for XFree out there.</P> |
374 | 374 |
375 <UL> | 375 <UL> |
376 <LI>With XFree 4.0.3 and nv.o there is a bug resulting in strange colors.</LI> | 376 <LI>With XFree 4.0.3 and nv.o there is a bug resulting in strange colors.</LI> |
408 Modeline "352x240" 15.750 352 368 416 432 240 244 246 262 Doublescan | 408 Modeline "352x240" 15.750 352 368 416 432 240 244 246 262 Doublescan |
409 Modeline "320x240" 12.588 320 336 384 400 240 245 246 262 Doublescan | 409 Modeline "320x240" 12.588 320 336 384 400 240 245 246 262 Doublescan |
410 EndSection | 410 EndSection |
411 </PRE> | 411 </PRE> |
412 | 412 |
413 <P>These entries work fine with my Riva128 chip, using nv.o XServer driver | 413 <P>These entries work fine with my Riva128 chip, using nv.o X server driver |
414 module.</P> | 414 module.</P> |
415 | 415 |
416 | 416 |
417 <P><B><A NAME=2.3.1.3.B>2.3.1.3.B. Bug Reports</A></B></P> | 417 <P><B><A NAME=2.3.1.3.B>2.3.1.3.B. Bug Reports</A></B></P> |
418 | 418 |
419 <P>If you experience troubles with the DGA driver please feel free to file | 419 <P>If you experience troubles with the DGA driver please feel free to file |
420 a bug report to me (e-mail address below). Please start mplayer with the | 420 a bug report to me (e-mail address below). Please start <B>MPlayer</B> with the |
421 -v option and include all lines in the bug report that start with vo_dga:</P> | 421 -v option and include all lines in the bug report that start with vo_dga:</P> |
422 | 422 |
423 <P>Please do also include the version of X11 you are using, the graphics card | 423 <P>Please do also include the version of X11 you are using, the graphics card |
424 and your CPU type. The X11 driver module (defined in XF86-Config) might | 424 and your CPU type. The X11 driver module (defined in XF86-Config) might |
425 also help. Thanks!</P> | 425 also help. Thanks!</P> |
452 <P>Here are some notes about SDL out in <B>MPlayer</B>.</P> | 452 <P>Here are some notes about SDL out in <B>MPlayer</B>.</P> |
453 | 453 |
454 | 454 |
455 | 455 |
456 <TABLE BORDER=0> | 456 <TABLE BORDER=0> |
457 <TR><TD COLSPAN=4><P><B>There are several commandline switches for SDL:</B></P></TD></TR> | 457 <TR><TD COLSPAN=4><P><B>There are several command line switches for SDL:</B></P></TD></TR> |
458 <TR><TD> </TD><TD>-vo sdl:name</TD><TD> </TD><TD> | 458 <TR><TD> </TD><TD>-vo sdl:name</TD><TD> </TD><TD> |
459 specifies sdl video driver to use (ie. aalib, dga, x11)</TD></TR> | 459 specifies sdl video driver to use (i.e.. aalib, dga, x11)</TD></TR> |
460 <TR><TD></TD><TD>-ao sdl:name</TD><TD></TD><TD>specifies sdl audio driver to use (ie. dsp, | 460 <TR><TD></TD><TD>-ao sdl:name</TD><TD></TD><TD>specifies sdl audio driver to use (i.e.. dsp, |
461 esd, arts)</TD></TR> | 461 esd, arts)</TD></TR> |
462 <TR><TD></TD><TD>-noxv</TD><TD></TD><TD>disables Xvideo hardware acceleration</TD></TR> | 462 <TR><TD></TD><TD>-noxv</TD><TD></TD><TD>disables XVideo hardware acceleration</TD></TR> |
463 <TR><TD></TD><TD>-forcexv</TD><TD></TD><TD>tries to force Xvideo acceleration</TD></TR> | 463 <TR><TD></TD><TD>-forcexv</TD><TD></TD><TD>tries to force XVideo acceleration</TD></TR> |
464 | 464 |
465 <TR><TD COLSPAN=4><P><B>SDL Keys:</B></P></TD></TR> | 465 <TR><TD COLSPAN=4><P><B>SDL Keys:</B></P></TD></TR> |
466 | 466 |
467 <TR><TD></TD><TD>F</TD><TD></TD><TD>toggles fullscreen/windowed mode</TD></TR> | 467 <TR><TD></TD><TD>F</TD><TD></TD><TD>toggles fullscreen/windowed mode</TD></TR> |
468 <TR><TD></TD><TD>C</TD><TD></TD><TD>cycles available fullscreen modes</TD></TR> | 468 <TR><TD></TD><TD>C</TD><TD></TD><TD>cycles available fullscreen modes</TD></TR> |
640 | 640 |
641 <P><B><A NAME=2.3.1.11>2.3.1.11. AAlib - text mode displaying</A></B></P> | 641 <P><B><A NAME=2.3.1.11>2.3.1.11. AAlib - text mode displaying</A></B></P> |
642 | 642 |
643 <P><B>AAlib</B> is a library for displaying graphics in text mode, using powerful | 643 <P><B>AAlib</B> is a library for displaying graphics in text mode, using powerful |
644 ASCII renderer. There are LOTS of programs already supporting it, like Doom, | 644 ASCII renderer. There are LOTS of programs already supporting it, like Doom, |
645 Quake, etc. MPlayer contains a very usable driver for it. | 645 Quake, etc. <B>MPlayer</B> contains a very usable driver for it. |
646 If ./configure detects aalib installed, the aalib libvo driver will be built.</P> | 646 If ./configure detects aalib installed, the aalib libvo driver will be built.</P> |
647 | 647 |
648 <TABLE BORDER=0> | 648 <TABLE BORDER=0> |
649 <TR><TD COLSPAN=4><P><B>You can use some keys in the AA Window to change rendering options:</B></P></TD></TR> | 649 <TR><TD COLSPAN=4><P><B>You can use some keys in the AA Window to change rendering options:</B></P></TD></TR> |
650 <TR><TD> </TD><TD>1</TD><TD> </TD><TD>decrease contrast</TD></TR> | 650 <TR><TD> </TD><TD>1</TD><TD> </TD><TD>decrease contrast</TD></TR> |
651 <TR><TD></TD><TD>2</TD><TD></TD><TD>increase contrast</TD></TR> | 651 <TR><TD></TD><TD>2</TD><TD></TD><TD>increase contrast</TD></TR> |
652 <TR><TD></TD><TD>3</TD><TD></TD><TD>decrease brightness</TD></TR> | 652 <TR><TD></TD><TD>3</TD><TD></TD><TD>decrease brightness</TD></TR> |
653 <TR><TD></TD><TD>4</TD><TD></TD><TD>increase brightness</TD></TR> | 653 <TR><TD></TD><TD>4</TD><TD></TD><TD>increase brightness</TD></TR> |
654 <TR><TD></TD><TD>5</TD><TD></TD><TD>switch fast rendering on/off</TD></TR> | 654 <TR><TD></TD><TD>5</TD><TD></TD><TD>switch fast rendering on/off</TD></TR> |
655 <TR><TD></TD><TD>6</TD><TD></TD><TD>set dithering mode (none, error distribution, floyd steinberg)</TD></TR> | 655 <TR><TD></TD><TD>6</TD><TD></TD><TD>set dithering mode (none, error distribution, Floyd Steinberg)</TD></TR> |
656 <TR><TD></TD><TD>7</TD><TD></TD><TD>invert image</TD></TR> | 656 <TR><TD></TD><TD>7</TD><TD></TD><TD>invert image</TD></TR> |
657 <TR><TD></TD><TD>a</TD><TD></TD><TD>toggles between aa and mplayer control)</TD></TR> | 657 <TR><TD></TD><TD>a</TD><TD></TD><TD>toggles between aa and <B>MPlayer</B> control)</TD></TR> |
658 | 658 |
659 <TR><TD COLSPAN=4><P><B>The following command line options can be used:</B></P></TD></TR> | 659 <TR><TD COLSPAN=4><P><B>The following command line options can be used:</B></P></TD></TR> |
660 | 660 |
661 <TR><TD></TD><TD>-aaosdcolor=V</TD><TD></TD><TD>change osd color</TD></TR> | 661 <TR><TD></TD><TD>-aaosdcolor=V</TD><TD></TD><TD>change OSD color</TD></TR> |
662 <TR><TD></TD><TD>-aasubcolor=V</TD><TD></TD><TD>change subtitle color</TD></TR> | 662 <TR><TD></TD><TD>-aasubcolor=V</TD><TD></TD><TD>change subtitle color</TD></TR> |
663 <TR><TD COLSPAN=3></TD><TD><P><I>where V can be: (0/normal, 1/dark, 2/bold, 3/boldfont, 4/reverse, 5/special)</I></P></TD></TR> | 663 <TR><TD COLSPAN=3></TD><TD><P><I>where V can be: (0/normal, 1/dark, 2/bold, 3/bold font, 4/reverse, 5/special)</I></P></TD></TR> |
664 | 664 |
665 <TR><TD COLSPAN=4><P><B>AAlib itselves provides a large sum of options. | 665 <TR><TD COLSPAN=4><P><B>AAlib itself provides a large sum of options. |
666 Here are some important:</B></P></TD></TR> | 666 Here are some important:</B></P></TD></TR> |
667 | 667 |
668 <TR><TD></TD><TD>-aadriver</TD><TD></TD><TD>set recommended aa driver (X11, curses, linux)</TD></TR> | 668 <TR><TD></TD><TD>-aadriver</TD><TD></TD><TD>set recommended aa driver (X11, curses, Linux)</TD></TR> |
669 <TR><TD></TD><TD>-aaextended</TD><TD></TD><TD>use all 256 characters</TD></TR> | 669 <TR><TD></TD><TD>-aaextended</TD><TD></TD><TD>use all 256 characters</TD></TR> |
670 <TR><TD></TD><TD>-aaeight</TD><TD></TD><TD>use eight bit ascii</TD></TR> | 670 <TR><TD></TD><TD>-aaeight</TD><TD></TD><TD>use eight bit ASCII</TD></TR> |
671 <TR><TD></TD><TD>-aahelp</TD><TD></TD><TD>prints out all aalib options</TD></TR> | 671 <TR><TD></TD><TD>-aahelp</TD><TD></TD><TD>prints out all aalib options</TD></TR> |
672 </TABLE> | 672 </TABLE> |
673 | 673 |
674 <P>NOTE: the rendering is very CPU intensive, especially when using AA-on-X | 674 <P>NOTE: the rendering is very CPU intensive, especially when using AA-on-X |
675 (using aalib on X), and it's least CPU intensive on standard, | 675 (using aalib on X), and it's least CPU intensive on standard, |
676 non-framebuffer console. Use SVGATextMode to set up a big textmode, | 676 non-framebuffer console. Use SVGATextMode to set up a big textmode, |
677 then enjoy! (secondary head Hercules cards rock :)) (anyone can enhance | 677 then enjoy! (secondary head Hercules cards rock :)) (anyone can enhance |
678 bdev to do conversion/dithering to hgafb? Would be neat :)</P> | 678 fbdev to do conversion/dithering to hgafb? Would be neat :)</P> |
679 | 679 |
680 <P>Use the -framedrop option if your comp isn't fast enough to render all frames!</P> | 680 <P>Use the -framedrop option if your computer isn't fast enough to render all frames!</P> |
681 | 681 |
682 <P>Playing on terminal you'll get better speed and quality using the linux driver, not | 682 <P>Playing on terminal you'll get better speed and quality using the Linux driver, not |
683 curses (-aadriver linux). But therefore you need write access on /dev/vcsa<terminal>! | 683 curses (-aadriver linux). But therefore you need write access on /dev/vcsa<terminal>! |
684 That isn't autodetected by aalib, bu vo_aa tries to find the best mode. | 684 That isn't autodetected by aalib, but vo_aa tries to find the best mode. |
685 See <A HREF="http://aa-project.sourceforge.net/tune/">http://aa-project.sourceforge.net/tune/</A> for further tuning issues.</P> | 685 See <A HREF="http://aa-project.sourceforge.net/tune/">http://aa-project.sourceforge.net/tune/</A> for further tuning issues.</P> |
686 | 686 |
687 | 687 |
688 <P><B><A NAME=2.3.1.12>2.3.1.12. VESA - output to VESA BIOS</A></B></P> | 688 <P><B><A NAME=2.3.1.12>2.3.1.12. VESA - output to VESA BIOS</A></B></P> |
689 <P> | 689 <P> |
749 </TABLE> | 749 </TABLE> |
750 | 750 |
751 <P> | 751 <P> |
752 <B>Known problems and workaround:</B><BR> | 752 <B>Known problems and workaround:</B><BR> |
753 - If you have installed <B>NLS</B> font on your Linux box and run VESA driver | 753 - If you have installed <B>NLS</B> font on your Linux box and run VESA driver |
754 from text-mode then after terminating mplayer you will have <B>ROM font</B> loaded instead | 754 from text-mode then after terminating <B>MPlayer</B> you will have <B>ROM font</B> loaded instead |
755 of national. You can load national font again by using <B><I>setsysfont</I></B> utility | 755 of national. You can load national font again by using <B><I>setsysfont</I></B> utility |
756 from for example Mandrake distribution.<BR> | 756 from for example Mandrake distribution.<BR> |
757 (<B>Hint</B>: The same utility is used for localizating fbdev).<BR> | 757 (<B>Hint</B>: The same utility is used for localization of fbdev).<BR> |
758 - Some <B>Linux graphics drivers</B> don't update active <B>BIOS mode</B> in DOS memory. So if you have such | 758 - Some <B>Linux graphics drivers</B> don't update active <B>BIOS mode</B> in DOS memory. So if you have such |
759 problem - always use VESA driver only from <B>text-mode</B>. Otherwise text-mode (#03) will be | 759 problem - always use VESA driver only from <B>text-mode</B>. Otherwise text-mode (#03) will be |
760 activated anyway and you will need restart your computer.<BR> | 760 activated anyway and you will need restart your computer.<BR> |
761 - Often after terminating VESA driver you get <B>black screen</B>. To return your screen | 761 - Often after terminating VESA driver you get <B>black screen</B>. To return your screen |
762 to original state - simply switch to other console (by pressing <B>Alt-Fx</B>) then switch | 762 to original state - simply switch to other console (by pressing <B>Alt-Fx</B>) then switch |
763 to your previous console by the same way.<BR> | 763 to your previous console by the same way.<BR> |
764 - To get <B>working TV-out</B> you need have plugged tv-connector in before booting | 764 - To get <B>working TV-out</B> you need have plugged TV-connector in before booting |
765 your PC since video BIOS initializes itself only once during POST procedure. | 765 your PC since video BIOS initializes itself only once during POST procedure. |
766 </P> | 766 </P> |
767 | 767 |
768 | 768 |
769 <P><B><A NAME=2.3.1.13>2.3.1.13. X11</A></B></P> | 769 <P><B><A NAME=2.3.1.13>2.3.1.13. X11</A></B></P> |
774 hardware scaling support, use the <CODE>-vo xv</CODE> output for them, or | 774 hardware scaling support, use the <CODE>-vo xv</CODE> output for them, or |
775 <CODE>-vo xmga</CODE> for Matroxes.</P> | 775 <CODE>-vo xmga</CODE> for Matroxes.</P> |
776 | 776 |
777 <P>The problem is that most cards' driver doesn't support | 777 <P>The problem is that most cards' driver doesn't support |
778 hardware acceleration on the second head/TV. In those cases, you see green/blue | 778 hardware acceleration on the second head/TV. In those cases, you see green/blue |
779 coloured window instead of the movie. This is where this driver comes in | 779 colored window instead of the movie. This is where this driver comes in |
780 handy, but you need powerful CPU to use software scaling. Don't use the | 780 handy, but you need powerful CPU to use software scaling. Don't use the |
781 SDL driver's software output+scaler, it has worse image quality !</P> | 781 SDL driver's software output+scaler, it has worse image quality !</P> |
782 | 782 |
783 <P>Software scaling is very slow, you better try changing video modes instead. | 783 <P>Software scaling is very slow, you better try changing video modes instead. |
784 It's very simple. See the <A HREF="#2.3.1.3.A">DGA section's modelines</A>, and | 784 It's very simple. See the <A HREF="#2.3.1.3.A">DGA section's modelines</A>, and |
817 <P><B>USAGE</B></P> | 817 <P><B>USAGE</B></P> |
818 | 818 |
819 <UL> | 819 <UL> |
820 <LI>You can use standalone video output driver: <CODE>-vo xvidix</CODE><BR> | 820 <LI>You can use standalone video output driver: <CODE>-vo xvidix</CODE><BR> |
821 This driver was developed as X11's front end to VIDIX technology. It | 821 This driver was developed as X11's front end to VIDIX technology. It |
822 requires XServer and can work only under XServer.</LI> | 822 requires X server and can work only under X server.</LI> |
823 <LI>You can use VIDIX subdevice which was applied to several video output | 823 <LI>You can use VIDIX subdevice which was applied to several video output |
824 drivers, such as:<BR> | 824 drivers, such as:<BR> |
825 <CODE>-vo vesa:vidix</CODE> (<B>LINUX ONLY</B>) and <CODE>-vo fbdev:vidix</CODE></LI> | 825 <CODE>-vo vesa:vidix</CODE> (<B>LINUX ONLY</B>) and <CODE>-vo fbdev:vidix</CODE></LI> |
826 </UL> | 826 </UL> |
827 Indeed it doesn't matter which video output driver is used with <B>VIDIX</B>. | 827 Indeed it doesn't matter which video output driver is used with <B>VIDIX</B>. |
876 where X11 does. | 876 where X11 does. |
877 </P> | 877 </P> |
878 | 878 |
879 <P>And the last <B>WARNING</B>: (un)fortunately you <B>MUST</B> have | 879 <P>And the last <B>WARNING</B>: (un)fortunately you <B>MUST</B> have |
880 <B>ROOT</B> privileges to use VIDIX due to direct hardware access. At least | 880 <B>ROOT</B> privileges to use VIDIX due to direct hardware access. At least |
881 set the <B>suid</B> bit on the <B>MPlayer</B> excecutable. | 881 set the <B>SUID</B> bit on the <B>MPlayer</B> executable. |
882 </P> | 882 </P> |
883 | 883 |
884 <P><B>VIDEO EQUALIZER</B></P> | 884 <P><B>VIDEO EQUALIZER</B></P> |
885 | 885 |
886 <P> | 886 <P> |
912 Each parameter can accept values from <B>-1000</B> to <B>+1000</B>.<BR> | 912 Each parameter can accept values from <B>-1000</B> to <B>+1000</B>.<BR> |
913 Default value for each parameter is <B>0</B>. | 913 Default value for each parameter is <B>0</B>. |
914 </P> | 914 </P> |
915 <P> | 915 <P> |
916 <B>Note:</B> Not every driver provides support for each of those parameters. | 916 <B>Note:</B> Not every driver provides support for each of those parameters. |
917 Currently only <B>radeon_vid.so</B> provides full support for video eqalizing. | 917 Currently only <B>radeon_vid.so</B> provides full support for video equalizing. |
918 Other drivers only partly support these options. | 918 Other drivers only partly support these options. |
919 </P> | 919 </P> |
920 <P><B>Examples:</B><BR> | 920 <P><B>Examples:</B><BR> |
921 <CODE>mplayer -vo vesa:vidix -brightness -300 -contrast 200 | 921 <CODE>mplayer -vo vesa:vidix -brightness -300 -contrast 200 |
922 filename.avi</CODE><BR> | 922 filename.avi</CODE><BR> |
943 <UL> | 943 <UL> |
944 <LI>don't start or stop XawTV on the playback device during playback, | 944 <LI>don't start or stop XawTV on the playback device during playback, |
945 it will crash your computer. It is, however, fine to <B>FIRST</B> start | 945 it will crash your computer. It is, however, fine to <B>FIRST</B> start |
946 XawTV, <B>THEN</B> start <B>MPlayer</B>, wait for <B>MPlayer</B> to finish | 946 XawTV, <B>THEN</B> start <B>MPlayer</B>, wait for <B>MPlayer</B> to finish |
947 and <B>THEN</B> stop XawTV.</LI> | 947 and <B>THEN</B> stop XawTV.</LI> |
948 <LI>this driver adds <CODE>-zr*</CODE> commandline options. The explanation | 948 <LI>this driver adds <CODE>-zr*</CODE> command line options. The explanation |
949 of these options can be viewed with <CODE>-zrhelp</CODE>. It is possible to | 949 of these options can be viewed with <CODE>-zrhelp</CODE>. It is possible to |
950 crop the input frame (cut borders to make it fit or to enhance performace) | 950 crop the input frame (cut borders to make it fit or to enhance performance) |
951 and to do other things.</LI> | 951 and to do other things.</LI> |
952 <LI>the driver takes data in YV12 and YUY2 format, this means that some | 952 <LI>the driver takes data in YV12 and YUY2 format, this means that some |
953 codecs won't work. Some old VfW (Video for Windows) codecs, for example, | 953 codecs won't work. Some old VfW (Video for Windows) codecs, for example, |
954 are incompatible with this driver. The errormessage that you will see is: | 954 are incompatible with this driver. The error message that you will see is: |
955 <CODE>Sorry, selected video_out device is incompatible with this codec. | 955 <CODE>Sorry, selected video_out device is incompatible with this codec. |
956 </CODE></LI> | 956 </CODE></LI> |
957 <LI>OSD is currently not supported, so you won't see | 957 <LI>OSD is currently not supported, so you won't see |
958 subtitles.</LI> | 958 subtitles.</LI> |
959 </UL> | 959 </UL> |
975 under Windoze! The second head has only YUV framebuffer, the <I>BES</I> | 975 under Windoze! The second head has only YUV framebuffer, the <I>BES</I> |
976 (Back End Scaler, the YUV scaler on G200/G400/G450/G550 cards) doesn't work | 976 (Back End Scaler, the YUV scaler on G200/G400/G450/G550 cards) doesn't work |
977 on it! The windows driver somehow workarounds this, probably by using the | 977 on it! The windows driver somehow workarounds this, probably by using the |
978 3D engine to zoom, and the YUV framebuffer to display the zoomed | 978 3D engine to zoom, and the YUV framebuffer to display the zoomed |
979 image. If you really want to use X, use the <CODE>-vo x11 -fs -zoom</CODE> | 979 image. If you really want to use X, use the <CODE>-vo x11 -fs -zoom</CODE> |
980 options, but it will be <B>SLOW</B>, and has <B>Macrovision</B> copyprotection | 980 options, but it will be <B>SLOW</B>, and has <B>Macrovision</B> copy protection |
981 enabled (you can "workaround" Macrovision using | 981 enabled (you can "workaround" Macrovision using |
982 <A HREF="http://avifile.sourceforge.net/mgamacro.pl">this</A> perl | 982 <A HREF="http://avifile.sourceforge.net/mgamacro.pl">this</A> perl |
983 script.</LI> | 983 script.</LI> |
984 <LI><B>Framebuffer</B>: using the <B>matroxfb modules</B> in the 2.4 kernels. | 984 <LI><B>Framebuffer</B>: using the <B>matroxfb modules</B> in the 2.4 kernels. |
985 2.2 kernels don't have the TVout feature in them, thus unusable for this. | 985 2.2 kernels don't have the TVout feature in them, thus unusable for this. |