Mercurial > mplayer.hg
comparison DOCS/video.html @ 2848:33c32f3d9f1f
many small updates, fixes (some/more to be completed soon)
author | gabucino |
---|---|
date | Sun, 11 Nov 2001 22:30:31 +0000 |
parents | d94e94466dde |
children | 72c750bbc249 |
comparison
equal
deleted
inserted
replaced
2847:1d92268eb8fc | 2848:33c32f3d9f1f |
---|---|
7 | 7 |
8 <TABLE BORDER=0> | 8 <TABLE BORDER=0> |
9 | 9 |
10 <TD COLSPAN=4><P><B><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>General:</B></P></TD><TR> | 10 <TD COLSPAN=4><P><B><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>General:</B></P></TD><TR> |
11 | 11 |
12 <TD> </TD><TD VALIGN=top><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>x11</TD><TD> </TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>X11 with optional SHM extension</TD><TR> | 12 <TD> </TD><TD VALIGN=top><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2><A HREF=#2.3.1.13>x11</A></TD><TD> </TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>X11 with optional SHM extension</TD><TR> |
13 <TD></TD><TD VALIGN=top><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>xv</TD><TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>X11 using overlays with the Xvideo extension (hardware YUV & scaling)</TD><TR> | 13 <TD></TD><TD VALIGN=top><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2><A HREF=#2.3.1.2>xv</A></TD><TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>X11 using overlays with the Xvideo extension (hardware YUV & scaling)</TD><TR> |
14 <TD></TD><TD VALIGN=top><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>gl</TD><TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>OpenGL renderer, so far works only with: | 14 <TD></TD><TD VALIGN=top><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2><A HREF=#2.3.1.10</A></TD><TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>OpenGL renderer, so far works only with: |
15 <UL><LI>all cards with Utah-GLX | 15 <UL><LI>all cards with Utah-GLX |
16 <LI>Matrox cards with X/DRI >=4.0.3 | 16 <LI>Matrox cards with X/DRI >=4.0.3 |
17 <LI>Radeon with X/DRI CVS</UL></TD><TR> | 17 <LI>Radeon with X/DRI CVS</UL></TD><TR> |
18 <TD></TD><TD VALIGN=top><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>dga</TD><TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>X11 DGA extension</TD><TR> | 18 <TD></TD><TD VALIGN=top><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2><A HREF=#2.3.1.3>dga</A></TD><TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>X11 DGA extension</TD><TR> |
19 <TD></TD><TD VALIGN=top><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>fbdev</TD><TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>Output to general framebuffers</TD><TR> | 19 <TD></TD><TD VALIGN=top><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2><A HREF=#2.3.1.6>fbdev</A></TD><TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>Output to general framebuffers</TD><TR> |
20 <TD></TD><TD VALIGN=top><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>svga</TD><TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>Output to SVGAlib</TD><TR> | 20 <TD></TD><TD VALIGN=top><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2><A HREF=#2.3.1.5>svga</A></TD><TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>Output to SVGAlib</TD><TR> |
21 <TD></TD><TD VALIGN=top><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>sdl</TD><TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> | 21 <TD></TD><TD VALIGN=top><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2><A HREF=#2.3.1.4>sdl</A></TD><TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> |
22 <CODE>1.1.7:</CODE> supports software scaling<BR> | 22 <CODE>1.1.7:</CODE> supports software scaling<BR> |
23 <CODE>1.1.8:</CODE> supports Xvideo (hardware scaling/fullscreen)<BR> | 23 <CODE>1.1.8:</CODE> supports Xvideo (hardware scaling/fullscreen)<BR> |
24 <CODE>1.2.0:</CODE> supports AAlib (-vo aa is very recommended, see below!)</TD><TR> | 24 <CODE>1.2.0:</CODE> supports AAlib (-vo aa is very recommended, see below!)</TD><TR> |
25 <TD></TD><TD VALIGN=top><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>ggi</TD><TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>similar to SDL</TD><TR> | 25 <TD></TD><TD VALIGN=top><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2><A HREF=#2.3.1.14-TODO>ggi</A></TD><TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>similar to SDL</TD><TR> |
26 <TD></TD><TD VALIGN=top><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>aa</TD><TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>textmode rendering with AAlib</TD><TR> | 26 <TD></TD><TD VALIGN=top><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2><A HREF=#2.3.1.11>aa</A></TD><TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>textmode rendering with AAlib</TD><TR> |
27 <TD></TD><TD VALIGN=top><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2><a href="video.html#2.3.1.12">vesa</a></TD><TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>Output to VESA BIOS.</TD><TR> | 27 <TD></TD><TD VALIGN=top><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2><a href=#2.3.1.12>vesa</a></TD><TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>Output to VESA BIOS.</TD><TR> |
28 | 28 |
29 <TD COLSPAN=4><P><B><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>Card specific:</B></P></TD><TR> | 29 <TD COLSPAN=4><P><B><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>Card specific:</B></P></TD><TR> |
30 | 30 |
31 <TD> </TD><TD VALIGN=top><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>mga</TD><TD> </TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>Matrox G200/G400 hardware YUV overlay via the mga_vid device</TD><TR> | 31 <TD> </TD><TD VALIGN=top><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2><A HREF=#2.3.1.7>mga</A></TD><TD> </TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>Matrox G200/G400 hardware YUV overlay via the mga_vid device</TD><TR> |
32 <TD></TD><TD VALIGN=top><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>xmga</TD><TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>Matrox G200/G400 overlay (mga_vid) in X11 window<BR> | 32 <TD></TD><TD VALIGN=top><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2><A HREF=#2.3.1.7>xmga</A></TD><TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>Matrox G200/G400 overlay (mga_vid) in X11 window<BR> |
33 (<I>Xv emulation on X 3.3.x!</I>)</TD><TR> | 33 (<I>Xv emulation on X 3.3.x!</I>)</TD><TR> |
34 <TD></TD><TD VALIGN=top><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>syncfb</TD><TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>Matrox G400 YUV support on framebuffer (obsoleted, use mga/xmga)</TD><TR> | 34 <TD></TD><TD VALIGN=top><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>syncfb</TD><TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>Matrox G400 YUV support on framebuffer (obsoleted, use mga/xmga)</TD><TR> |
35 <TD></TD><TD VALIGN=top><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>3dfx</TD><TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>Voodoo3/Banshee hardware YUV (/dev/3dfx) support (not yet tested, maybe | 35 <TD></TD><TD VALIGN=top><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>3dfx</TD><TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>Voodoo3/Banshee hardware YUV (/dev/3dfx) support (not yet tested, maybe |
36 broken)</TD><TR> | 36 broken)</TD><TR> |
37 <TD></TD><TD VALIGN=top><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>tdfxfb</TD><TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>Voodoo3/Banshee hardware YUV support on tdfx framebuffer (works!)</TD><TR> | 37 <TD></TD><TD VALIGN=top><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2><A HREF=#2.3.1.9>tdfxfb</A></TD><TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>Voodoo3/Banshee hardware YUV support on tdfx framebuffer (works!)</TD><TR> |
38 | 38 |
39 <TD COLSPAN=4><P><B><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>Special:</B></P></TD><TR> | 39 <TD COLSPAN=4><P><B><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>Special:</B></P></TD><TR> |
40 | 40 |
41 <TD> </TD><TD VALIGN=top><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>png</TD><TD> </TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>PNG files output (use -z switch to set compression)</TD><TR> | 41 <TD> </TD><TD VALIGN=top><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>png</TD><TD> </TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>PNG files output (use -z switch to set compression)</TD><TR> |
42 <TD></TD><TD VALIGN=top><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>pgm</TD><TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>PGM files output (for testing purposes or ffmpeg encoding)</TD><TR> | 42 <TD></TD><TD VALIGN=top><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>pgm</TD><TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>PGM files output (for testing purposes or ffmpeg encoding)</TD><TR> |
43 <TD></TD><TD VALIGN=top><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>md5</TD><TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>MD5sum output (for MPEG conformance tests)</TD><TR> | 43 <TD></TD><TD VALIGN=top><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>md5</TD><TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>MD5sum output (for MPEG conformance tests)</TD><TR> |
44 <TD></TD><TD VALIGN=top><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>odivx</TD><TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>OpenDivX AVI File writer (use -br to set encoding bitrate) (<B>WITHOUT SOUND</B>!)</TD><TR> | |
45 <TD></TD><TD VALIGN=top><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>null</TD><TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>Null output (for speed tests/benchmarking)</TD><TR> | 44 <TD></TD><TD VALIGN=top><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>null</TD><TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>Null output (for speed tests/benchmarking)</TD><TR> |
46 </TABLE> | 45 </TABLE> |
47 | 46 |
48 <P>NOTE: <I>check the following subsections for details and requirements!</I></P> | 47 <P>NOTE: <I>check the following subsections for details and requirements!</I></P> |
49 | 48 |
62 </CODE></P> | 61 </CODE></P> |
63 | 62 |
64 <P>It's right, shows my Matrox G400 with 16Mb memory. I did this from | 63 <P>It's right, shows my Matrox G400 with 16Mb memory. I did this from |
65 XFree 4.x.x , which sets up MTRR registers automatically.</P> | 64 XFree 4.x.x , which sets up MTRR registers automatically.</P> |
66 | 65 |
67 If nothing worked, you have to do it manually. First, you have to find the base | 66 <P>If nothing worked, you have to do it manually. First, you have to find the base |
68 address. | 67 address. |
69 You have 3 ways to find it:</P> | 68 You have 3 ways to find it:</P> |
70 | 69 |
71 <P><UL> | 70 <P><UL> |
72 <LI>from X11 startup messages, for example: | 71 <LI>from X11 startup messages, for example: |
73 <P><CODE>(--) SVGA: PCI: Matrox MGA G400 AGP rev 4, Memory @ 0xd8000000, 0xd4000000<BR> | 72 <P><CODE>(--) SVGA: PCI: Matrox MGA G400 AGP rev 4, Memory @ 0xd8000000, 0xd4000000<BR> |
74 (--) SVGA: Linear framebuffer at 0xD8000000</CODE></P> | 73 (--) SVGA: Linear framebuffer at 0xD8000000</CODE></P></LI> |
75 <LI>from /proc/pci (use lspci -v command): | 74 <LI>from /proc/pci (use lspci -v command): |
76 <P><TABLE> | 75 <P> |
77 <TD VALIGN=top><CODE>01:00.0</CODE></TD><TD><CODE>VGA compatible controller: Matrox Graphics, Inc.: Unknown device 0525</CODE></TD><TR> | 76 <CODE>01:00.0 VGA compatible controller: Matrox Graphics, Inc.: Unknown device 0525</CODE> |
78 <TD></TD><TD><CODE>Memory at d8000000 (32-bit, prefetchable)</CODE></TD><TR> | 77 <CODE>Memory at d8000000 (32-bit, prefetchable)</CODE> |
79 </TABLE></P></CODE> | 78 </P> |
80 <LI>from mga_vid kernel driver messages (use dmesg): | 79 <LI>from mga_vid kernel driver messages (use dmesg): |
81 <P><CODE>mga_mem_base = d8000000</CODE></P> | 80 <P><CODE>mga_mem_base = d8000000</CODE></P> |
82 </UL></P> | 81 </UL></P> |
83 | 82 |
84 <P>Then let's find the memory size. This is very easy, just convert video ram | 83 <P>Then let's find the memory size. This is very easy, just convert video ram |
102 <P><CODE> echo "base=0xd8000000 size=0x2000000 type=write-combining" >| /proc/mtrr</CODE></P> | 101 <P><CODE> echo "base=0xd8000000 size=0x2000000 type=write-combining" >| /proc/mtrr</CODE></P> |
103 | 102 |
104 | 103 |
105 <P>Not all CPUs support MTRRs. For example older K6-2's [around 266Mhz, | 104 <P>Not all CPUs support MTRRs. For example older K6-2's [around 266Mhz, |
106 stepping 0] doesn't support MTRR, but stepping 12's do ('<CODE>cat /proc/cpuinfo</CODE>' | 105 stepping 0] doesn't support MTRR, but stepping 12's do ('<CODE>cat /proc/cpuinfo</CODE>' |
107 to check it</CODE>').</P> | 106 to check it').</P> |
108 | 107 |
109 <P><B><A NAME=2.3.1.2>2.3.1.2. Xv</A></B></P> | 108 <P><B><A NAME=2.3.1.2>2.3.1.2. Xv</A></B></P> |
110 | 109 |
111 <P>Under XFree86 4.0.2 or newer, you can use your card's hardware YUV routines | 110 <P>Under XFree86 4.0.2 or newer, you can use your card's hardware YUV routines |
112 using the XVideo extension. This is what the option '-vo xv' uses. | 111 using the XVideo extension. This is what the option '-vo xv' uses. |
113 In order to make this work, be sure to check the following:</P> | 112 In order to make this work, be sure to check the following:</P> |
114 <P><UL> | 113 <P><UL> |
115 <LI>You have to use XFree86 4.0.2 or newer (former versions don't have XVideo) | 114 <LI>You have to use XFree86 4.0.2 or newer (former versions don't have XVideo) |
116 <LI>Your card actually supports harware acceleration (modern cards do) | 115 <LI>Your card actually supports hardware acceleration (modern cards do) |
117 <LI>X loads the XVideo extension, it's something like this: | 116 <LI>X loads the XVideo extension, it's something like this: |
118 | 117 |
119 <P><CODE> (II) Loading extension XVideo</CODE></P> | 118 <P><CODE> (II) Loading extension XVideo</CODE></P> |
120 <P>in /var/log/XFree86.0.log</P> | 119 <P>in /var/log/XFree86.0.log</P> |
121 | 120 |
129 X-Video Extension version 2.2 | 128 X-Video Extension version 2.2 |
130 screen #0 | 129 screen #0 |
131 Adaptor #0: "Savage Streams Engine" | 130 Adaptor #0: "Savage Streams Engine" |
132 number of ports: 1 | 131 number of ports: 1 |
133 port base: 43 | 132 port base: 43 |
134 operations supported: PutImage | 133 operations supported: PutImage |
135 supported visuals: | 134 supported visuals: |
136 depth 16, visualID 0x22 | 135 depth 16, visualID 0x22 |
137 depth 16, visualID 0x23 | 136 depth 16, visualID 0x23 |
138 number of attributes: 5 | 137 number of attributes: 5 |
139 (...) | 138 (...) |
220 | 219 |
221 | 220 |
222 <P><B><A NAME=2.3.1.3.2>2.3.1.3.2. What is DGA</A></B></P> | 221 <P><B><A NAME=2.3.1.3.2>2.3.1.3.2. What is DGA</A></B></P> |
223 | 222 |
224 <P>DGA is short for Direct Graphics Access and is a means for a program to | 223 <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. | 224 bypass the X-Server and directly modifying the framebuffer memory. |
226 Technically spoken this happens by mapping the framebuffer memory into | 225 Technically spoken this happens by mapping the framebuffer memory into |
227 the memory range of your process. This is allowed by the kernel only | 226 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 | 227 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 | 228 as root or by setting the suid bit on the mplayer excecutable (NOT |
230 recommended!).</P> | 229 recommended!).</P> |
231 | 230 |
232 <P>There are two versions of DGA: DGA1 is used by XFree 3.x.x and DGA2 was | 231 <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> | 232 introduced with XFree 4.0.1.</P> |
234 | 233 |
235 <P>DGA1 provides only direct framebuffer access as described above. For | 234 <P>DGA1 provides only direct framebuffer access as described above. For |
236 switching the resolution of the video signal you have to rely on the | 235 switching the resolution of the video signal you have to rely on the |
237 XVidMode extension.</P> | 236 XVidMode extension.</P> |
238 | 237 |
239 <P>DGA2 incorporates the features of XVidMode extension and also allows | 238 <P>DGA2 incorporates the features of XVidMode extension and also allows |
240 switching the depth of the display. So you may, although basically | 239 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 | 240 running a 32 bit depth XServer, switch to a depth of 15 bits and vice |
242 versa. </P> | 241 versa. </P> |
243 | 242 |
244 <P>However DGA has some drawbacks. It seems it is somewhat dependent on the | 243 <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 | 244 graphics chip you use and on the implementation of the XServer's video |
246 driver that controls this chip. So it does not work on every system ...</P> | 245 driver that controls this chip. So it does not work on every system ...</P> |
247 | 246 |
248 | 247 |
249 <P><B><A NAME=2.3.1.3.3>2.3.1.3.3. Installing DGA support for MPlayer</A></B></P> | 248 <P><B><A NAME=2.3.1.3.3>2.3.1.3.3. Installing DGA support for MPlayer</A></B></P> |
250 | 249 |
263 <P>Become ROOT. DGA needs root access to be able to write directly video memory. | 262 <P>Become ROOT. DGA needs root access to be able to write directly video memory. |
264 If you want to run it as user, then install <B>MPlayer</B> SUID root:</P> | 263 If you want to run it as user, then install <B>MPlayer</B> SUID root:</P> |
265 | 264 |
266 <P><CODE> | 265 <P><CODE> |
267 chown root /usr/local/bin/mplayer<BR> | 266 chown root /usr/local/bin/mplayer<BR> |
268 chmod 750 /usr/local/bin/mplayer<BR> | 267 chmod 750 /usr/local/bin/mplayer<BR> |
269 chmod +s /usr/local/bin/mplayer</CODE></P> | 268 chmod +s /usr/local/bin/mplayer</CODE></P> |
270 | 269 |
271 | 270 |
272 <P>Now it works as a simple user, too.</P> | 271 <P>Now it works as a simple user, too.</P> |
273 | 272 |
290 resolution (except for honouring aspect ratio) of the video data, but the | 289 resolution (except for honouring aspect ratio) of the video data, but the |
291 XServer only allows switching to resolutions predefined in | 290 XServer 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). | 291 <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 | 292 Those are defined by so-called modelines and depend on the capabilites |
294 of your video hardware. The XServer scans this config file on startup and | 293 of your video hardware. The XServer scans this config file on startup and |
295 disables the modelines not suitable for your hardware. You can find | 294 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: | 295 out which modes survive with the X11 log file. It can be found at: |
297 <CODE>/var/log/XFree86.0.log</CODE>.</P> | 296 <CODE>/var/log/XFree86.0.log</CODE>.</P> |
298 <P>See appendix A for some sample modeline definitions.</P> | 297 <P>See appendix A for some sample modeline definitions.</P> |
299 | 298 |
300 <P><B><A NAME=2.3.1.3.5>2.3.1.3.5. DGA & MPlayer</A></B></P> | 299 <P><B><A NAME=2.3.1.3.5>2.3.1.3.5. DGA & MPlayer</A></B></P> |
303 use of it (-vo sdl:dga) and within the DGA driver (-vo dga). | 302 use of it (-vo sdl:dga) and within the DGA driver (-vo dga). |
304 The above said is true for both; in the following sections I'll explain | 303 The above said is true for both; in the following sections I'll explain |
305 how the DGA driver for <B>MPlayer</B> works.</P> | 304 how the DGA driver for <B>MPlayer</B> works.</P> |
306 | 305 |
307 <P><B><A NAME=2.3.1.3.6>2.3.1.3.6. Features of the DGA driver</A></B></P> | 306 <P><B><A NAME=2.3.1.3.6>2.3.1.3.6. Features of the DGA driver</A></B></P> |
308 | 307 |
309 <P>The DGA driver is invoked by specifying -vo dga at the command line. | 308 <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 | 309 The default behaviour is to switch to a resolution matching the original |
311 resolution of the video as close as possible. It deliberately ignores the | 310 resolution of the video as close as possible. It deliberately ignores the |
312 -vm and -fs switches (enabling of video mode switching and fullscreen) - | 311 -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 | 312 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 | 313 the video mode, thus refraining to use a single additional cycle of your CPU |
315 to scale the image. | 314 to scale the image. |
316 If you don't like the mode it chooses you may force it to choose the mode | 315 If you don't like the mode it chooses you may force it to choose the mode |
317 matching closest the resolution you specify by -x and -y. | 316 matching closest the resolution you specify by -x and -y. |
318 By providing the -v option, the DGA driver will print, among a lot of other | 317 By providing the -v option, the DGA driver will print, among a lot of other |
319 things, a list of all resolutions supported by your current XF86-Config | 318 things, a list of all resolutions supported by your current XF86-Config |
320 file. | 319 file. |
321 Having DGA2 you may also force it to use a certain depth by using the -bpp | 320 Having DGA2 you may also force it to use a certain depth by using the -bpp |
322 option. Valid depths are 15, 16, 24 and 32. It depends on your hardware | 321 option. Valid depths are 15, 16, 24 and 32. It depends on your hardware |
323 whether these depths are natively supported or if a (possibly slow) | 322 whether these depths are natively supported or if a (possibly slow) |
324 conversion has to be done.</P> | 323 conversion has to be done.</P> |
325 | 324 |
326 <P>If you should be lucky enough to have enough offscreen memory left to | 325 <P>If you should be lucky enough to have enough offscreen memory left to |
327 put a whole image there, the DGA driver will use doublebuffering, which | 326 put a whole image there, the DGA driver will use doublebuffering, which |
328 results in much smoother movie replaying. It will tell you whether double- | 327 results in much smoother movie replaying. It will tell you whether double- |
329 buffering is enabled or not.</P> | 328 buffering is enabled or not.</P> |
330 | 329 |
331 <P>Doublebuffering means that the next frame of your video is being drawn in | 330 <P>Doublebuffering means that the next frame of your video is being drawn in |
332 some offscreen memory while the current frame is being displayed. When the | 331 some offscreen memory while the current frame is being displayed. When the |
333 next frame is ready, the graphics chip is just told the location in memory | 332 next frame is ready, the graphics chip is just told the location in memory |
334 of the new frame and simply fetches the data to be displayed from there. | 333 of the new frame and simply fetches the data to be displayed from there. |
335 In the meantime the other buffer in memory will be filled again with new | 334 In the meantime the other buffer in memory will be filled again with new |
336 video data.</P> | 335 video data.</P> |
337 | 336 |
338 Doublebuffering may be switched on by using the option -double and may be | 337 Doublebuffering may be switched on by using the option -double and may be |
339 disabled with -nodouble. Current default option is to disable | 338 disabled with -nodouble. Current default option is to disable |
340 doublebuffering. When using the DGA driver, onscreen display (OSD) only | 339 doublebuffering. When using the DGA driver, onscreen display (OSD) only |
341 works with doublebuffering enabled. However, enabling doublebuffering may | 340 works with doublebuffering enabled. However, enabling doublebuffering may |
342 result in a big speed penalty (on my K6-II+ 525 it used an additional 20% of | 341 result in a big speed penalty (on my K6-II+ 525 it used an additional 20% of |
343 CPU time!) depending on the implementation of DGA for your hardware.</P> | 342 CPU time!) depending on the implementation of DGA for your hardware.</P> |
344 | 343 |
345 | 344 |
346 <P><B><A NAME=2.3.1.3.7>2.3.1.3.7. Speed issues</A></B></P> | 345 <P><B><A NAME=2.3.1.3.7>2.3.1.3.7. Speed issues</A></B></P> |
347 | 346 |
348 <P>Generally spoken, DGA framebuffer access should be at least as fast as using | 347 <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. | 348 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 | 349 The percentage speed values printed by mplayer have to be interpreted with |
351 some care, as for example, with the X11 driver they do not include the time | 350 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 | 351 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 | 352 serial line of your box and start top to see what is really going on in your |
354 box ...</P> | 353 box ...</P> |
355 | 354 |
356 <P>Generally spoken, the speedup done by using DGA against 'normal' use of X11 | 355 <P>Generally spoken, the speedup done by using DGA against 'normal' use of X11 |
357 highly depends on your graphics card and how well the X-Server module for it | 356 highly depends on your graphics card and how well the X-Server module for it |
358 is optimized.</P> | 357 is optimized.</P> |
359 | 358 |
360 <P>If you have a slow system, better use 15 or 16bit depth since they require | 359 <P>If you have a slow system, better use 15 or 16bit depth since they require |
361 only half the memory bandwidth of a 32 bit display.</P> | 360 only half the memory bandwidth of a 32 bit display.</P> |
362 | 361 |
363 <P>Using a depth of 24bit is even a good idea if your card natively just supports | 362 <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> | 363 32 bit depth since it transfers 25% less data compared to the 32/32 mode.</P> |
365 | 364 |
366 <P>I've seen some avi files already be replayed on a Pentium MMX 266. AMD K6-2 | 365 <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> | 366 CPUs might work at 400 MHZ and above.</P> |
368 | 367 |
369 <P><B><A NAME=2.3.1.3.8>2.3.1.3.8. Known bugs</A></B></P> | 368 <P><B><A NAME=2.3.1.3.8>2.3.1.3.8. Known bugs</A></B></P> |
370 | 369 |
371 <P>Well, according to some developpers of XFree, DGA is quite a beast. They | 370 <P>Well, according to some developpers of XFree, DGA is quite a beast. They |
372 tell you better not to use it. Its implementation is not always flawless | 371 tell you better not to use it. Its implementation is not always flawless |
373 with every chipset driver for XFree out there.</P> | 372 with every chipset driver for XFree out there.</P> |
374 | 373 |
375 <P><UL> | 374 <P><UL> |
376 <LI>with XFree 4.0.3 and nv.o there is a bug resulting in strange colors | 375 <LI>with XFree 4.0.3 and nv.o there is a bug resulting in strange colors |
377 <LI>ATI driver requires to switch mode back more than once after finishing | 376 <LI>ATI driver requires to switch mode back more than once after finishing |
378 using of DGA | 377 using of DGA |
379 <LI>some drivers simply fail to switch back to normal resolution (use | 378 <LI>some drivers simply fail to switch back to normal resolution (use |
380 Ctrl-Alt-Keypad +, - to switch back manually) | 379 Ctrl-Alt-Keypad +, - to switch back manually) |
381 <LI>some drivers simply display strange colors | 380 <LI>some drivers simply display strange colors |
382 <LI>some drivers lie about the amount of memory they map into the process's | 381 <LI>some drivers lie about the amount of memory they map into the process's |
383 address space, thus vo_dga won't use doublebuffering (SIS?) | 382 address space, thus vo_dga won't use doublebuffering (SIS?) |
384 <LI>some drivers seem to fail to report even a single valid mode. In this | 383 <LI>some drivers seem to fail to report even a single valid mode. In this |
385 case the DGA driver will crash telling you about a nonsense mode of | 384 case the DGA driver will crash telling you about a nonsense mode of |
386 100000x100000 or the like ... | 385 100000x100000 or the like ... |
387 <LI>OSD only works with doublebuffering enabled | 386 <LI>OSD only works with doublebuffering enabled |
388 </UL></P> | 387 </UL></P> |
389 | 388 |
390 <P><B><A NAME=2.3.1.3.9>2.3.1.3.9. Future work</A></B></P> | 389 <P><B><A NAME=2.3.1.3.9>2.3.1.3.9. Future work</A></B></P> |
396 <P><B><A NAME=2.3.1.3.A>2.3.1.3.A. Some modelines</A></B></P> | 395 <P><B><A NAME=2.3.1.3.A>2.3.1.3.A. Some modelines</A></B></P> |
397 | 396 |
398 <PRE> | 397 <PRE> |
399 Section "Modes" | 398 Section "Modes" |
400 Identifier "Modes[0]" | 399 Identifier "Modes[0]" |
401 Modeline "800x600" 40 800 840 968 1056 600 601 605 628 | 400 Modeline "800x600" 40 800 840 968 1056 600 601 605 628 |
402 Modeline "712x600" 35.0 712 740 850 900 400 410 412 425 | 401 Modeline "712x600" 35.0 712 740 850 900 400 410 412 425 |
403 Modeline "640x480" 25.175 640 664 760 800 480 491 493 525 | 402 Modeline "640x480" 25.175 640 664 760 800 480 491 493 525 |
404 Modeline "400x300" 20 400 416 480 528 300 301 303 314 Doublescan | 403 Modeline "400x300" 20 400 416 480 528 300 301 303 314 Doublescan |
405 Modeline "352x288" 25.10 352 368 416 432 288 296 290 310 | 404 Modeline "352x288" 25.10 352 368 416 432 288 296 290 310 |
406 Modeline "352x240" 15.750 352 368 416 432 240 244 246 262 Doublescan | 405 Modeline "352x240" 15.750 352 368 416 432 240 244 246 262 Doublescan |
407 Modeline "320x240" 12.588 320 336 384 400 240 245 246 262 Doublescan | 406 Modeline "320x240" 12.588 320 336 384 400 240 245 246 262 Doublescan |
408 EndSection | 407 EndSection |
412 module.</P> | 411 module.</P> |
413 | 412 |
414 | 413 |
415 <P><B><A NAME=2.3.1.3.B>2.3.1.3.B. Bug Reports</A></B></P> | 414 <P><B><A NAME=2.3.1.3.B>2.3.1.3.B. Bug Reports</A></B></P> |
416 | 415 |
417 <P>If you experience troubles with the DGA driver please feel free to file | 416 <P>If you experience troubles with the DGA driver please feel free to file |
418 a bug report to me (e-mail address below). Please start mplayer with the | 417 a bug report to me (e-mail address below). Please start mplayer with the |
419 -v option and include all lines in the bug report that start with vo_dga:</P> | 418 -v option and include all lines in the bug report that start with vo_dga:</P> |
420 | 419 |
421 <P>Please do also include the version of X11 you are using, the graphics card | 420 <P>Please do also include the version of X11 you are using, the graphics card |
422 and your CPU type. The X11 driver module (defined in XF86-Config) might | 421 and your CPU type. The X11 driver module (defined in XF86-Config) might |
423 also help. Thanks!</P> | 422 also help. Thanks!</P> |
424 | 423 |
425 | 424 |
426 <P><I>Acki (acki@acki-netz.de, www.acki-netz.de)</I></P> | 425 <P><I>Acki (acki@acki-netz.de, www.acki-netz.de)</I></P> |
427 | 426 |
428 | 427 |
429 <P><B><A NAME=2.3.1.4>2.3.1.4. SDL</A></B></P> | 428 <P><B><A NAME=2.3.1.4>2.3.1.4. SDL</A></B></P> |
430 | 429 |
483 <TD> </TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>-fb</TD><TD> </TD><TD> | 482 <TD> </TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>-fb</TD><TD> </TD><TD> |
484 <FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>specify the framebuffer device to use (/dev/fd0)</TD><TR> | 483 <FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>specify the framebuffer device to use (/dev/fd0)</TD><TR> |
485 <TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>-fbmode</TD><TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>mode name to use (according to /etc/fb.modes)</TD><TR> | 484 <TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>-fbmode</TD><TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>mode name to use (according to /etc/fb.modes)</TD><TR> |
486 <TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>-fbmodeconfig</TD><TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> config file of modes (default /etc/fb.modes)</TD><TR> | 485 <TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>-fbmodeconfig</TD><TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> config file of modes (default /etc/fb.modes)</TD><TR> |
487 <TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>-monitor_hfreq</TD><TD></TD><TD ROWSPAN=3><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>IMPORTANT values, see example.conf</TD><TR> | 486 <TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>-monitor_hfreq</TD><TD></TD><TD ROWSPAN=3><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>IMPORTANT values, see example.conf</TD><TR> |
488 <TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>-monitor_vfreq</TD><TD></TD><TR> | 487 <TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>-monitor_vfreq</TD><TD></TD><TR> |
489 <TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>-monitor_dotclock</TD><TD></TD><TR> | 488 <TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>-monitor_dotclock</TD><TD></TD><TR> |
490 </TABLE></P> | 489 </TABLE></P> |
491 | 490 |
492 <P>If you want to change to a specific mode, then use</P> | 491 <P>If you want to change to a specific mode, then use</P> |
493 | 492 |
512 | 511 |
513 <P>This section is about the Matrox G200/G400/G450/G550 BES (Back-End Scaler) | 512 <P>This section is about the Matrox G200/G400/G450/G550 BES (Back-End Scaler) |
514 support, the mga_vid kernel driver. It's active developed by me (A'rpi), and | 513 support, the mga_vid kernel driver. It's active developed by me (A'rpi), and |
515 it has hardware VSYNC support with triple buffering. It works on both | 514 it has hardware VSYNC support with triple buffering. It works on both |
516 framebuffer console and under X.</P> | 515 framebuffer console and under X.</P> |
517 | 516 |
518 <P>To use it, you first have to compile mga_vid.o:</P> | 517 <P>To use it, you first have to compile mga_vid.o:</P> |
519 | 518 |
520 <P><CODE> cd drivers<BR> | 519 <P><CODE> cd drivers<BR> |
521 make</CODE></P> | 520 make</CODE></P> |
522 | 521 |
546 <P>Now you have to (re)compile <B>MPlayer</B>, ./configure will detect /dev/mga_vid | 545 <P>Now you have to (re)compile <B>MPlayer</B>, ./configure will detect /dev/mga_vid |
547 and build the 'mga' driver. Using it from <B>MPlayer</B> goes by '-vo mga' if | 546 and build the 'mga' driver. Using it from <B>MPlayer</B> goes by '-vo mga' if |
548 you have matroxfb console, or '-vo xmga' under XFree86 3.x.x or 4.x.x.</P> | 547 you have matroxfb console, or '-vo xmga' under XFree86 3.x.x or 4.x.x.</P> |
549 | 548 |
550 <P>The mga_vid driver cooperates with Xv.</P> | 549 <P>The mga_vid driver cooperates with Xv.</P> |
551 | 550 |
552 | 551 |
553 <P><B><A NAME=2.3.1.8>2.3.1.8. SiS 6326 framebuffer (sis_vid)</A></B></P> | 552 <P><B><A NAME=2.3.1.8>2.3.1.8. SiS 6326 framebuffer (sis_vid)</A></B></P> |
554 | 553 |
555 <P>SiS 6326 YUV Framebuffer driver -> sis_vid kernel driver</P> | 554 <P>SiS 6326 YUV Framebuffer driver -> sis_vid kernel driver</P> |
556 | 555 |
597 <TD COLSPAN=4><P><B><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>The following command line options can be used:</B></P></TD><TR> | 596 <TD COLSPAN=4><P><B><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>The following command line options can be used:</B></P></TD><TR> |
598 | 597 |
599 <TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>-aaosdcolor=V</TD><TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>change osd color</TD><TR> | 598 <TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>-aaosdcolor=V</TD><TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>change osd color</TD><TR> |
600 <TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>-aasubcolor=V</TD><TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>change subtitle color</TD><TR> | 599 <TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>-aasubcolor=V</TD><TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>change subtitle color</TD><TR> |
601 <TD COLSPAN=3></TD><TD><P><I><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>where V can be: (0/normal, 1/dark, 2/bold, 3/boldfont, 4/reverse, 5/special)</P></TD><TR> | 600 <TD COLSPAN=3></TD><TD><P><I><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>where V can be: (0/normal, 1/dark, 2/bold, 3/boldfont, 4/reverse, 5/special)</P></TD><TR> |
602 | 601 |
603 <TD COLSPAN=4><P><B><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>AAlib itselves provides a large sum of options. | 602 <TD COLSPAN=4><P><B><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>AAlib itselves provides a large sum of options. |
604 Here are some important:</P></B></TD><TR> | 603 Here are some important:</P></B></TD><TR> |
605 | 604 |
606 <TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>-aadriver</TD><TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>set recommended aa driver (X11, curses, linux)</TD><TR> | 605 <TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>-aadriver</TD><TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>set recommended aa driver (X11, curses, linux)</TD><TR> |
607 <TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>-aaextended</TD><TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>use all 256 characters</TD><TR> | 606 <TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>-aaextended</TD><TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>use all 256 characters</TD><TR> |
612 <P>NOTE: the rendering is very CPU intensive, especially when using AA-on-X | 611 <P>NOTE: the rendering is very CPU intensive, especially when using AA-on-X |
613 (using aalib on X), and it's least CPU intensive on standard, | 612 (using aalib on X), and it's least CPU intensive on standard, |
614 non-framebuffer console. Use SVGATextMode to set up a big textmode, | 613 non-framebuffer console. Use SVGATextMode to set up a big textmode, |
615 then enjoy! (secondary head Hercules cards rock :)) (anyone can enhance | 614 then enjoy! (secondary head Hercules cards rock :)) (anyone can enhance |
616 bdev to do conversion/dithering to hgafb? Would be neat :)</P> | 615 bdev to do conversion/dithering to hgafb? Would be neat :)</P> |
617 | 616 |
618 <P>Use the -framedrop option if your comp isn't fast enough to render all frames!</P> | 617 <P>Use the -framedrop option if your comp isn't fast enough to render all frames!</P> |
619 | 618 |
620 <P>Playing on terminal you'll get better speed and quality using the linux driver, not | 619 <P>Playing on terminal you'll get better speed and quality using the linux driver, not |
621 curses (-aadriver linux). But therefore you need write access on /dev/vcsa<terminal>! | 620 curses (-aadriver linux). But therefore you need write access on /dev/vcsa<terminal>! |
622 That isn't autodetected by aalib, bu vo_aa tries to find the best mode. | 621 That isn't autodetected by aalib, bu vo_aa tries to find the best mode. |
669 | 668 |
670 <P> | 669 <P> |
671 <b>What are minuses:</b><BR> | 670 <b>What are minuses:</b><BR> |
672 - It works only on <b>x86 systems</b>.<BR> | 671 - It works only on <b>x86 systems</b>.<BR> |
673 - <b>It's the slowest driver</b> from all the available ones for MPlayer.<BR> | 672 - <b>It's the slowest driver</b> from all the available ones for MPlayer.<BR> |
674 (But only if your card doesn't support <b>DGA mode</b> - otherwise this | 673 (But only if your card doesn't support <b>DGA mode</b> - otherwise this |
675 driver is comparable by speed with <b>-vo dga</b> and <b>-vo fbdev</b> ones.<BR> | 674 driver is comparable by speed with <b>-vo dga</b> and <b>-vo fbdev</b> ones.<BR> |
676 | 675 |
677 - It can be used only by <b>ROOT</b>.<BR> | 676 - It can be used only by <b>ROOT</b>.<BR> |
678 - Currently it's available only for <b>Linux</b>.<BR> | 677 - Currently it's available only for <b>Linux</b>.<BR> |
679 - It <b>doesn't use</b> any <b>hardware accelerations</b> (like YUV overlay or hw scaling).<BR> | 678 - It <b>doesn't use</b> any <b>hardware accelerations</b> (like YUV overlay or hw scaling).<BR> |
708 - To get <b>working TV-out</b> you need have plugged tv-connector in before booting | 707 - To get <b>working TV-out</b> you need have plugged tv-connector in before booting |
709 your PC since video BIOS initializes itself only once during POST procedure. | 708 your PC since video BIOS initializes itself only once during POST procedure. |
710 </P> | 709 </P> |
711 | 710 |
712 | 711 |
712 <P><B><A NAME=2.3.1.13>2.3.1.13. X11</B></P> | |
713 | |
714 <P>Avoid if possible. Outputs to X11 (uses shared memory extension), with no | |
715 hardware acceleration at all. Supports (MMX/3DNow/SSE accelerated, but still | |
716 slow) software scaling, use the options <CODE>-fs -zoom</CODE>. Most cards have | |
717 hardware scaling support, use the <CODE>-vo xv</CODE> output for them, or | |
718 <CODE>-vo xmga</CODE> for Matroxes.</P> | |
719 | |
720 <P>The problem is that most cards' driver doesn't support | |
721 hardware acceleration on the second head/TV. In those cases, you see green/blue | |
722 coloured window instead of the movie. This is where this driver comes in | |
723 handy, but you need powerful CPU to use software scaling. Don't use the | |
724 SDL driver's software output+scaler, it has worse image quality !</P> | |
725 | |
726 | |
713 <P><B><A NAME=2.3.1.A>2.3.1.A. TV-out support</A></B></P> | 727 <P><B><A NAME=2.3.1.A>2.3.1.A. TV-out support</A></B></P> |
714 | 728 |
715 <P><B><A NAME=2.3.1.A.1>2.3.1.A.1. Matrox cards</A></B></P> | 729 <P><B><A NAME=2.3.1.A.1>2.3.1.A.1. Matrox cards</A></B></P> |
716 | 730 |
717 <P>Under Linux you have 2 methods to get TV out working :</P> | 731 <P>Under Linux you have 2 methods to get TV out working :</P> |
723 the TV.<BR> <B>This method doesn't give you accelerated playback</B> as | 737 the TV.<BR> <B>This method doesn't give you accelerated playback</B> as |
724 under Windoze! The second head has only YUV framebuffer, the <I>BES</I> | 738 under Windoze! The second head has only YUV framebuffer, the <I>BES</I> |
725 (Back End Scaler, the YUV scaler on G200/G400/G450/G550 cards) doesn't work | 739 (Back End Scaler, the YUV scaler on G200/G400/G450/G550 cards) doesn't work |
726 on it! The windows driver somehow workarounds this, probably by using the | 740 on it! The windows driver somehow workarounds this, probably by using the |
727 3D engine to zoom, and the YUV framebuffer to display the zoomed | 741 3D engine to zoom, and the YUV framebuffer to display the zoomed |
728 image. If you really want to use X, use the <CODE>-vo x11 -zoom</CODE> | 742 image. If you really want to use X, use the <CODE>-vo x11 -fs -zoom</CODE> |
729 options, but it will be <B>SLOW</B>, and has <B>Macrovision</B> copyprotection | 743 options, but it will be <B>SLOW</B>, and has <B>Macrovision</B> copyprotection |
730 enabled.</LI> | 744 enabled.</LI> |
731 <LI><B>Framebuffer</B>: using the <B>matroxfb modules</B> in the 2.4 kernels. | 745 <LI><B>Framebuffer</B>: using the <B>matroxfb modules</B> in the 2.4 kernels. |
732 2.2 kernels don't have the TVout feature in them, thus unusable for this. | 746 2.2 kernels don't have the TVout feature in them, thus unusable for this. |
733 You have to enable ALL matroxfb-specific feature during compilation, and | 747 You have to enable ALL matroxfb-specific feature during compilation, and |