Mercurial > mplayer.hg
annotate DOCS/video.html @ 7266:df6b9c4f543d
sync
author | nexus |
---|---|
date | Wed, 04 Sep 2002 10:02:51 +0000 |
parents | f771e685f3b1 |
children | 60a3b83b73bf |
rev | line source |
---|---|
6435
d0d74f9d8d4a
Background now set by CSS, added doctype and charset.
diego
parents:
6393
diff
changeset
|
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
1612 | 2 <HTML> |
4982
6cb9d9a1716d
HTML: different font handling - idea from new hp dezign
gabucino
parents:
4920
diff
changeset
|
3 |
6cb9d9a1716d
HTML: different font handling - idea from new hp dezign
gabucino
parents:
4920
diff
changeset
|
4 <HEAD> |
6882
f3f87f6bf5cf
Added a uniform title: something - MPlayer - The Movie Player for Linux.
diego
parents:
6732
diff
changeset
|
5 <TITLE>Video - MPlayer - The Movie Player for Linux</TITLE> |
6391 | 6 <LINK REL="stylesheet" TYPE="text/css" HREF="default.css"> |
6435
d0d74f9d8d4a
Background now set by CSS, added doctype and charset.
diego
parents:
6393
diff
changeset
|
7 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> |
4982
6cb9d9a1716d
HTML: different font handling - idea from new hp dezign
gabucino
parents:
4920
diff
changeset
|
8 </HEAD> |
6cb9d9a1716d
HTML: different font handling - idea from new hp dezign
gabucino
parents:
4920
diff
changeset
|
9 |
6435
d0d74f9d8d4a
Background now set by CSS, added doctype and charset.
diego
parents:
6393
diff
changeset
|
10 <BODY> |
1704 | 11 |
1612 | 12 |
7047 | 13 <H3><A NAME="video">2.3.1 Video output devices</A></H3> |
1612 | 14 |
15 | |
7047 | 16 <H4><A NAME="mtrr">2.3.1.1 Setting up MTRR</A></H4> |
1612 | 17 |
1946 | 18 <P>It is VERY recommended to check if the MTRR registers are set up properly, |
6960 | 19 because they can give a big performance boost.</P> |
1946 | 20 |
6960 | 21 <P>Do a '<CODE>cat /proc/mtrr</CODE>':</P> |
1946 | 22 |
23 <P><CODE> | |
6960 | 24 --($:~)-- cat /proc/mtrr<BR> |
25 reg00: base=0xe4000000 (3648MB), size= 16MB: write-combining, count=9<BR> | |
6974 | 26 reg01: base=0xd8000000 (3456MB), size= 128MB: write-combining, count=1</CODE></P> |
1946 | 27 |
6599 | 28 <P>It's right, shows my Matrox G400 with 16MB memory. I did this from |
6960 | 29 XFree 4.x.x , which sets up MTRR registers automatically.</P> |
1946 | 30 |
6960 | 31 <P>If nothing worked, you have to do it manually. First, you have to find the |
32 base address. You have 3 ways to find it:</P> | |
1612 | 33 |
6435
d0d74f9d8d4a
Background now set by CSS, added doctype and charset.
diego
parents:
6393
diff
changeset
|
34 <UL> |
6960 | 35 <LI>from X11 startup messages, for example: |
36 <P><CODE>(--) SVGA: PCI: Matrox MGA G400 AGP rev 4, Memory @ 0xd8000000, 0xd4000000<BR> | |
37 (--) SVGA: Linear framebuffer at 0xD8000000</CODE></P></LI> | |
38 <LI>from /proc/pci (use lspci -v command): | |
39 <P> | |
40 <CODE>01:00.0 VGA compatible controller: Matrox Graphics, Inc.: Unknown device 0525</CODE> | |
41 <CODE>Memory at d8000000 (32-bit, prefetchable)</CODE> | |
42 </P></LI> | |
7138 | 43 <LI>from mga_vid kernel driver messages (use <CODE>dmesg</CODE>): |
6960 | 44 <P><CODE>mga_mem_base = d8000000</CODE></P></LI> |
6435
d0d74f9d8d4a
Background now set by CSS, added doctype and charset.
diego
parents:
6393
diff
changeset
|
45 </UL> |
1612 | 46 |
1682 | 47 <P>Then let's find the memory size. This is very easy, just convert video ram |
6960 | 48 size to hexadecimal, or use this table:</P> |
1612 | 49 |
1682 | 50 <TABLE BORDER=0> |
6974 | 51 <TR><TD> </TD><TD>1 MB</TD><TD WIDTH="10%"></TD><TD>0x100000</TD></TR> |
52 <TR><TD></TD><TD>2 MB</TD><TD></TD><TD>0x200000</TD></TR> | |
53 <TR><TD></TD><TD>4 MB</TD><TD></TD><TD>0x400000</TD></TR> | |
54 <TR><TD></TD><TD>8 MB</TD><TD></TD><TD>0x800000</TD></TR> | |
55 <TR><TD></TD><TD>16 MB</TD><TD></TD><TD>0x1000000</TD></TR> | |
56 <TR><TD></TD><TD>32 MB</TD><TD></TD><TD>0x2000000</TD></TR> | |
1682 | 57 </TABLE> |
1612 | 58 |
59 | |
6599 | 60 <P>You know base address and memory size, let's setup MTRR registers! |
6960 | 61 For example, for the Matrox card above (base=0xd8000000) with 32MB |
62 ram (size=0x2000000) just execute:</P> | |
1612 | 63 |
64 | |
1682 | 65 <P><CODE> echo "base=0xd8000000 size=0x2000000 type=write-combining" >| /proc/mtrr</CODE></P> |
1612 | 66 |
67 | |
6599 | 68 <P>Not all CPUs support MTRRs. For example older K6-2's [around 266MHz, |
6960 | 69 stepping 0] doesn't support MTRR, but stepping 12's do ('<CODE>cat |
70 /proc/cpuinfo</CODE>' to check it').</P> | |
1612 | 71 |
6974 | 72 |
7047 | 73 <H4><A NAME="xv">2.3.1.2 Xv</A></H4> |
1612 | 74 |
1682 | 75 <P>Under XFree86 4.0.2 or newer, you can use your card's hardware YUV routines |
6960 | 76 using the XVideo extension. This is what the option '-vo xv' uses. Also, |
77 this is driver supports adjusting brightness/contrast/hue/etc (unless you use | |
78 the old, slow DirectShow DivX codec, which supports it everywhere), see the | |
79 man page.</P> | |
4498 | 80 |
81 <P>In order to make this work, be sure to check the following:</P> | |
6960 | 82 |
6435
d0d74f9d8d4a
Background now set by CSS, added doctype and charset.
diego
parents:
6393
diff
changeset
|
83 <UL> |
6960 | 84 <LI>You have to use XFree86 4.0.2 or newer (former versions don't have |
85 XVideo)</LI> | |
86 <LI>Your card actually supports hardware acceleration (modern cards do)</LI> | |
87 <LI>X loads the XVideo extension, it's something like this: | |
1612 | 88 |
6960 | 89 <P><CODE> (II) Loading extension XVideo</CODE></P> |
90 | |
91 <P>in /var/log/XFree86.0.log</P> | |
1612 | 92 |
6960 | 93 <P>NOTE: this loads only the XFree86's extension. In a good install, this |
6998
83a386e88f9e
Applied patch by Andras Mohari <mayday at varoshaza . nagyatad . hu>
diego
parents:
6981
diff
changeset
|
94 is always loaded, and doesn't mean that the <B>card's</B> XVideo support is |
6960 | 95 loaded!</P> |
96 </LI> | |
97 <LI>Your card has Xv support under Linux. To check, try 'xvinfo', it is the | |
98 part of the XFree86 distribution. It should display a long text, similar | |
99 to this: | |
100 <PRE> | |
1612 | 101 X-Video Extension version 2.2 |
102 screen #0 | |
103 Adaptor #0: "Savage Streams Engine" | |
104 number of ports: 1 | |
105 port base: 43 | |
2848
33c32f3d9f1f
many small updates, fixes (some/more to be completed soon)
gabucino
parents:
2747
diff
changeset
|
106 operations supported: PutImage |
1612 | 107 supported visuals: |
108 depth 16, visualID 0x22 | |
109 depth 16, visualID 0x23 | |
110 number of attributes: 5 | |
111 (...) | |
112 Number of image formats: 7 | |
113 id: 0x32595559 (YUY2) | |
114 guid: 59555932-0000-0010-8000-00aa00389b71 | |
115 bits per pixel: 16 | |
116 number of planes: 1 | |
117 type: YUV (packed) | |
118 id: 0x32315659 (YV12) | |
119 guid: 59563132-0000-0010-8000-00aa00389b71 | |
120 bits per pixel: 12 | |
121 number of planes: 3 | |
122 type: YUV (planar) | |
123 (...etc...) | |
6960 | 124 </PRE> |
125 <P>It must support YUY2 packed, and YV12 planar pixel formats to be | |
126 usable with <B>MPlayer</B>.</P> | |
127 </LI> | |
128 <LI>And finally, check if <B>MPlayer</B> was compiled with 'xv' support. | |
129 ./configure prints this.</LI> | |
6974 | 130 </UL> |
1612 | 131 |
1682 | 132 |
7047 | 133 <H5><A NAME="xv_3dfx">2.3.1.2.1 3dfx cards</A></H5> |
1612 | 134 |
6960 | 135 <P>Older 3dfx drivers were known to have problems with XVideo acceleration, it |
136 didn't support either YUY2 or YV12, and so. Verify that you have XFree86 | |
137 version 4.2.0 or greater, it works OK with YV12 and YUY2. Previous versions, | |
6998
83a386e88f9e
Applied patch by Andras Mohari <mayday at varoshaza . nagyatad . hu>
diego
parents:
6981
diff
changeset
|
138 including 4.1.0, <B>crash with YV12</B>. If you experience strange effects |
6960 | 139 using -vo xv, try SDL (it has XVideo too) and see if it helps. Check the |
140 <A HREF="#sdl">SDL section</A> for details.</P> | |
1612 | 141 |
6960 | 142 <P><B>OR</B>, try the NEW -vo tdfxfb driver! See the |
6998
83a386e88f9e
Applied patch by Andras Mohari <mayday at varoshaza . nagyatad . hu>
diego
parents:
6981
diff
changeset
|
143 <A HREF="#tdfxfb">tdfxfb</A> section.</P> |
1612 | 144 |
2865 | 145 |
7047 | 146 <H5><A NAME="xv_s3">2.3.1.2.2 S3 cards</A></H5> |
1682 | 147 |
148 <P>S3 Savage3D's should work fine, but for Savage4, use XFree86 version 4.0.3 | |
6960 | 149 or greater (in case of image problems, try 16bpp). As for S3 Virge.. there is |
150 xv support, but the card itself is very slow, so you better sell it.</P> | |
1682 | 151 |
6960 | 152 <P><B>NOTE</B>: Savage cards have a slow YV12 image displaying capability (it |
7076
3275af5787e0
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, slightly
diego
parents:
7061
diff
changeset
|
153 needs to do YV12 to YUY2 conversion, because the Savage hardware can't display |
6960 | 154 YV12). So when this documentation says at some point "this has YV12 output |
155 use this, it's faster", it's not sure. Try | |
156 <A HREF="http://www.mplayerhq.hu/MPlayer/contrib/Savage-driver/savage_drv.o.mmx2.bz2">this | |
157 driver</A>, it uses MMX2 for this task and is faster than the native X | |
158 driver.</P> | |
2865 | 159 |
160 | |
7047 | 161 <H5><A NAME="xv_nvidia">2.3.1.2.3 nVidia cards</A></H5> |
1612 | 162 |
6960 | 163 <P>nVidia isn't a very good choice under Linux (according to nVidia, this is |
164 <A HREF="users_against_developers.html#nvidia">not true</A>).. You'll have to | |
165 use the binary closed-source nVidia driver, available at nVidia's web site. | |
166 The standard XFree86 driver doesn't support XVideo for these cards, due to | |
167 nVidia's closed sources/specifications.</P> | |
1612 | 168 |
3290 | 169 <P>As far as I know the latest XFree86 driver contains XVideo support for |
6960 | 170 GeForce 2 and 3.</P> |
3290 | 171 |
6599 | 172 <P>Riva128 cards don't have XVideo support even with the nVidia driver :( |
6960 | 173 Complain to nVidia.</P> |
1612 | 174 |
175 | |
7047 | 176 <H5><A NAME="xv_ati">2.3.1.2.4 ATI cards</A></H5> |
1612 | 177 |
6435
d0d74f9d8d4a
Background now set by CSS, added doctype and charset.
diego
parents:
6393
diff
changeset
|
178 <UL> |
6960 | 179 <LI>The <A HREF="http://www.linuxvideo.org/gatos">GATOS driver</A> (which you |
180 should use, unless you have Rage128 or Radeon) has VSYNC enabled by | |
181 default. It means that decoding speed (!) is synced to the monitor's | |
182 refresh rate. If playing seems to be slow, try disabling VSYNC somehow, or | |
183 set refresh rate to n*(fps of the movie) Hz.</LI> | |
184 <LI>Radeon VE - currently only XFree86 CVS has driver for this card, version | |
185 4.1.0 doesn't. And no TV out support. Of course with <B>MPlayer</B> you can | |
186 happily get <B>accelerated</B> display, with or without <B>TV output</B>, and | |
187 no libraries or X are needed. Read <A HREF="#vidix">Vidix</A> section.</LI> | |
6435
d0d74f9d8d4a
Background now set by CSS, added doctype and charset.
diego
parents:
6393
diff
changeset
|
188 </UL> |
1612 | 189 |
190 | |
7047 | 191 <H5><A NAME="xv_neomagic">2.3.1.2.5 NeoMagic cards</A></H5> |
1922
5f0e4310dd4d
NeoMagic stuff added (legyen egyszer gyereknap...)
gabucino
parents:
1920
diff
changeset
|
192 |
4920
089485d69edd
added notes about enhanced Neomagic and Savage4 drivers
gabucino
parents:
4908
diff
changeset
|
193 <P>These cards can be found in many laptops. Unfortunately, the driver in |
089485d69edd
added notes about enhanced Neomagic and Savage4 drivers
gabucino
parents:
4908
diff
changeset
|
194 X 4.2.0 can't do Xv, but we have a modified, Xv-capable driver for you. |
089485d69edd
added notes about enhanced Neomagic and Savage4 drivers
gabucino
parents:
4908
diff
changeset
|
195 <A HREF="http://www.mplayerhq.hu/MPlayer/contrib/NeoMagic-driver/neomagic_drv.o.4.2.0.bz2">Download from here</A>. |
5359 | 196 Driver provided by Stefan Seyfried.</P> |
5378 | 197 |
6960 | 198 <P>To allow playback of DVD sized content change your XF86Config like this:</P> |
5378 | 199 |
6974 | 200 <P>Section "Device"<BR> |
6960 | 201 <I>[...]</I><BR> |
202 Driver "neomagic"<BR> | |
203 <B>Option "OverlayMem" "829440"</B><BR> | |
204 <I>[...]</I><BR> | |
6974 | 205 EndSection</P> |
1922
5f0e4310dd4d
NeoMagic stuff added (legyen egyszer gyereknap...)
gabucino
parents:
1920
diff
changeset
|
206 |
5378 | 207 |
7047 | 208 <H5><A NAME="xv_trident">2.3.1.2.6 Trident cards</A></H5> |
3794 | 209 |
210 <P>If you want to use xv with a trident card, provided that it doesn't | |
6960 | 211 work with 4.1.0, try the latest CVS of XFree or wait for XFree 4.2.0. |
212 The latest CVS adds support for fullscreen xv support with the | |
213 Cyberblade XP card.</P> | |
1922
5f0e4310dd4d
NeoMagic stuff added (legyen egyszer gyereknap...)
gabucino
parents:
1920
diff
changeset
|
214 |
6974 | 215 |
7047 | 216 <H4><A NAME="dga">2.3.1.3 DGA</A></H4> |
1612 | 217 |
6974 | 218 |
7047 | 219 <H5><A NAME="dga_summary">2.3.1.3.1 Summary</A></H5> |
1612 | 220 |
6960 | 221 <P>This document tries to explain in some words what DGA is in general and what |
222 the DGA video output driver for <B>MPlayer</B> can do (and what it | |
223 can't).</P> | |
1612 | 224 |
225 | |
7047 | 226 <H5><A NAME="dga_whatis">2.3.1.3.2 What is DGA</A></H5> |
1612 | 227 |
1682 | 228 <P>DGA is short for Direct Graphics Access and is a means for a program to |
6960 | 229 bypass the X-Server and directly modifying the framebuffer memory. |
230 Technically spoken this happens by mapping the framebuffer memory into | |
231 the memory range of your process. This is allowed by the kernel only | |
232 if you have superuser privileges. You can get these either by logging in | |
7015
72059027f953
Applied patch by Andras Mohari <mayday at varoshaza nagyatad hu> in a
diego
parents:
6998
diff
changeset
|
233 as root or by setting the SUID bit on the <B>MPlayer</B> executable (<B>not |
72059027f953
Applied patch by Andras Mohari <mayday at varoshaza nagyatad hu> in a
diego
parents:
6998
diff
changeset
|
234 recommended</B>).</P> |
1612 | 235 |
2848
33c32f3d9f1f
many small updates, fixes (some/more to be completed soon)
gabucino
parents:
2747
diff
changeset
|
236 <P>There are two versions of DGA: DGA1 is used by XFree 3.x.x and DGA2 was |
6960 | 237 introduced with XFree 4.0.1.</P> |
1612 | 238 |
2848
33c32f3d9f1f
many small updates, fixes (some/more to be completed soon)
gabucino
parents:
2747
diff
changeset
|
239 <P>DGA1 provides only direct framebuffer access as described above. For |
6960 | 240 switching the resolution of the video signal you have to rely on the |
241 XVidMode extension.</P> | |
1612 | 242 |
1682 | 243 <P>DGA2 incorporates the features of XVidMode extension and also allows |
6960 | 244 switching the depth of the display. So you may, although basically |
245 running a 32 bit depth X server, switch to a depth of 15 bits and vice | |
246 versa. </P> | |
1612 | 247 |
1682 | 248 <P>However DGA has some drawbacks. It seems it is somewhat dependent on the |
6960 | 249 graphics chip you use and on the implementation of the X server's video |
250 driver that controls this chip. So it does not work on every system ...</P> | |
1612 | 251 |
252 | |
7047 | 253 <H5><A NAME="dga_installation">2.3.1.3.3 Installing DGA support for MPlayer</A></H5> |
1682 | 254 |
255 <P>First make sure X loads the DGA extension, see in /var/log/XFree86.0.log:</P> | |
256 | |
257 <P> <CODE>(II) Loading extension XFree86-DGA</CODE></P> | |
258 | |
6960 | 259 <P>See, XFree86 4.0.x or greater is VERY RECOMMENDED! <B>MPlayer</B>'s DGA |
260 driver is autodetected on ./configure, or you can force it with | |
261 --enable-dga.</P> | |
1612 | 262 |
1682 | 263 <P>If the driver couldn't switch to a smaller resolution, experiment with |
6960 | 264 switches -vm (only with X 3.3.x), -fs, -bpp, -zoom to find a video mode that |
6998
83a386e88f9e
Applied patch by Andras Mohari <mayday at varoshaza . nagyatad . hu>
diego
parents:
6981
diff
changeset
|
265 the movie fits in. There is no converter right now :(</P> |
1612 | 266 |
7015
72059027f953
Applied patch by Andras Mohari <mayday at varoshaza nagyatad hu> in a
diego
parents:
6998
diff
changeset
|
267 <P>Become root. DGA needs root access to be able to write directly to video |
6960 | 268 memory. If you want to run it as user, then install <B>MPlayer</B> SUID |
269 root:</P> | |
1612 | 270 |
1682 | 271 <P><CODE> |
6960 | 272 chown root /usr/local/bin/mplayer<BR> |
273 chmod 750 /usr/local/bin/mplayer<BR> | |
274 chmod +s /usr/local/bin/mplayer</CODE></P> | |
1612 | 275 |
1682 | 276 <P>Now it works as a simple user, too.</P> |
1612 | 277 |
7015
72059027f953
Applied patch by Andras Mohari <mayday at varoshaza nagyatad hu> in a
diego
parents:
6998
diff
changeset
|
278 <BLOCKQUOTE> |
72059027f953
Applied patch by Andras Mohari <mayday at varoshaza nagyatad hu> in a
diego
parents:
6998
diff
changeset
|
279 <B>Warning: security risk</B><BR> |
72059027f953
Applied patch by Andras Mohari <mayday at varoshaza nagyatad hu> in a
diego
parents:
6998
diff
changeset
|
280 This is a <B>big</B> security risk! <B>Never</B> do this on a server or on |
72059027f953
Applied patch by Andras Mohari <mayday at varoshaza nagyatad hu> in a
diego
parents:
6998
diff
changeset
|
281 a computer that can be accessed by other people because they can gain root |
72059027f953
Applied patch by Andras Mohari <mayday at varoshaza nagyatad hu> in a
diego
parents:
6998
diff
changeset
|
282 privileges through SUID root <B>MPlayer</B>. |
72059027f953
Applied patch by Andras Mohari <mayday at varoshaza nagyatad hu> in a
diego
parents:
6998
diff
changeset
|
283 </BLOCKQUOTE> |
1682 | 284 |
6998
83a386e88f9e
Applied patch by Andras Mohari <mayday at varoshaza . nagyatad . hu>
diego
parents:
6981
diff
changeset
|
285 <P>Now use the <CODE>-vo dga</CODE> option, and there you go (hope so :))! |
83a386e88f9e
Applied patch by Andras Mohari <mayday at varoshaza . nagyatad . hu>
diego
parents:
6981
diff
changeset
|
286 You should also try if the <CODE>-vo sdl:dga</CODE> option works for you. It's |
83a386e88f9e
Applied patch by Andras Mohari <mayday at varoshaza . nagyatad . hu>
diego
parents:
6981
diff
changeset
|
287 much faster.</P> |
1682 | 288 |
6974 | 289 |
7047 | 290 <H5><A NAME="dga_resolution">2.3.1.3.4 Resolution switching</A></H5> |
1682 | 291 |
6960 | 292 <P>The DGA driver allows for switching the resolution of the output signal. |
293 This avoids the need for doing (slow) software scaling and at the same time | |
294 provides a fullscreen image. Ideally it would switch to the exact resolution | |
295 (except for honoring aspect ratio) of the video data, but the X server only | |
296 allows switching to resolutions predefined in | |
297 <CODE>/etc/X11/XF86Config</CODE> (<CODE>/etc/X11/XF86Config-4</CODE> for | |
298 XFree 4.0.X respectively). Those are defined by so-called modelines and | |
299 depend on the capabilities of your video hardware. The X server scans this | |
300 config file on startup and disables the modelines not suitable for your | |
301 hardware. You can find out which modes survive with the X11 log file. It can | |
302 be found at: | |
303 <CODE>/var/log/XFree86.0.log</CODE>.</P> | |
304 | |
1682 | 305 <P>See appendix A for some sample modeline definitions.</P> |
306 | |
6974 | 307 |
7047 | 308 <H5><A NAME="dga_mplayer">2.3.1.3.5 DGA & MPlayer</A></H5> |
1612 | 309 |
6960 | 310 <P>DGA is used in two places with <B>MPlayer</B>: The SDL driver can be made to |
311 make use of it (-vo sdl:dga) and within the DGA driver (-vo dga). The above | |
312 said is true for both; in the following sections I'll explain how the DGA | |
313 driver for <B>MPlayer</B> works.</P> | |
1612 | 314 |
6974 | 315 |
7047 | 316 <H5><A NAME="dga_features">2.3.1.3.6 Features of the DGA driver</A></H5> |
2848
33c32f3d9f1f
many small updates, fixes (some/more to be completed soon)
gabucino
parents:
2747
diff
changeset
|
317 |
1682 | 318 <P>The DGA driver is invoked by specifying -vo dga at the command line. |
6960 | 319 The default behavior is to switch to a resolution matching the original |
320 resolution of the video as close as possible. It deliberately ignores the | |
321 -vm and -fs switches (enabling of video mode switching and fullscreen) - | |
322 it always tries to cover as much area of your screen as possible by switching | |
323 the video mode, thus refraining to use a single additional cycle of your CPU | |
324 to scale the image. | |
325 If you don't like the mode it chooses you may force it to choose the mode | |
326 matching closest the resolution you specify by -x and -y. | |
327 By providing the -v option, the DGA driver will print, among a lot of other | |
328 things, a list of all resolutions supported by your current XF86-Config | |
329 file. | |
330 Having DGA2 you may also force it to use a certain depth by using the -bpp | |
331 option. Valid depths are 15, 16, 24 and 32. It depends on your hardware | |
332 whether these depths are natively supported or if a (possibly slow) | |
333 conversion has to be done.</P> | |
2848
33c32f3d9f1f
many small updates, fixes (some/more to be completed soon)
gabucino
parents:
2747
diff
changeset
|
334 |
33c32f3d9f1f
many small updates, fixes (some/more to be completed soon)
gabucino
parents:
2747
diff
changeset
|
335 <P>If you should be lucky enough to have enough offscreen memory left to |
6960 | 336 put a whole image there, the DGA driver will use doublebuffering, which |
337 results in much smoother movie replaying. It will tell you whether double- | |
338 buffering is enabled or not.</P> | |
1612 | 339 |
1682 | 340 <P>Doublebuffering means that the next frame of your video is being drawn in |
6960 | 341 some offscreen memory while the current frame is being displayed. When the |
342 next frame is ready, the graphics chip is just told the location in memory | |
343 of the new frame and simply fetches the data to be displayed from there. | |
344 In the meantime the other buffer in memory will be filled again with new | |
345 video data.</P> | |
1682 | 346 |
6435
d0d74f9d8d4a
Background now set by CSS, added doctype and charset.
diego
parents:
6393
diff
changeset
|
347 <P>Doublebuffering may be switched on by using the option -double and may be |
6960 | 348 disabled with -nodouble. Current default option is to disable |
349 doublebuffering. When using the DGA driver, onscreen display (OSD) only | |
350 works with doublebuffering enabled. However, enabling doublebuffering may | |
351 result in a big speed penalty (on my K6-II+ 525 it used an additional 20% of | |
352 CPU time!) depending on the implementation of DGA for your hardware.</P> | |
2848
33c32f3d9f1f
many small updates, fixes (some/more to be completed soon)
gabucino
parents:
2747
diff
changeset
|
353 |
1682 | 354 |
7047 | 355 <H5><A NAME="dga_speed">2.3.1.3.7 Speed issues</A></H5> |
1682 | 356 |
357 <P>Generally spoken, DGA framebuffer access should be at least as fast as using | |
6960 | 358 the X11 driver with the additional benefit of getting a fullscreen image. |
359 The percentage speed values printed by <B>MPlayer</B> have to be interpreted | |
360 with some care, as for example, with the X11 driver they do not include the | |
361 time used by the X-Server needed for the actual drawing. Hook a terminal to a | |
362 serial line of your box and start top to see what is really going on in your | |
363 box...</P> | |
1682 | 364 |
2848
33c32f3d9f1f
many small updates, fixes (some/more to be completed soon)
gabucino
parents:
2747
diff
changeset
|
365 <P>Generally spoken, the speedup done by using DGA against 'normal' use of X11 |
6960 | 366 highly depends on your graphics card and how well the X-Server module for it |
367 is optimized.</P> | |
1682 | 368 |
2848
33c32f3d9f1f
many small updates, fixes (some/more to be completed soon)
gabucino
parents:
2747
diff
changeset
|
369 <P>If you have a slow system, better use 15 or 16bit depth since they require |
6960 | 370 only half the memory bandwidth of a 32 bit display.</P> |
1612 | 371 |
6960 | 372 <P>Using a depth of 24bit is even a good idea if your card natively just |
373 supports 32 bit depth since it transfers 25% less data compared to the 32/32 | |
374 mode.</P> | |
2848
33c32f3d9f1f
many small updates, fixes (some/more to be completed soon)
gabucino
parents:
2747
diff
changeset
|
375 |
6599 | 376 <P>I've seen some AVI files already be replayed on a Pentium MMX 266. AMD K6-2 |
6960 | 377 CPUs might work at 400 MHZ and above.</P> |
1612 | 378 |
6974 | 379 |
7047 | 380 <H5><A NAME="dga_bugs">2.3.1.3.8 Known bugs</A></H5> |
1682 | 381 |
6599 | 382 <P>Well, according to some developers of XFree, DGA is quite a beast. They |
6960 | 383 tell you better not to use it. Its implementation is not always flawless |
384 with every chipset driver for XFree out there.</P> | |
1612 | 385 |
6435
d0d74f9d8d4a
Background now set by CSS, added doctype and charset.
diego
parents:
6393
diff
changeset
|
386 <UL> |
6960 | 387 <LI>With XFree 4.0.3 and nv.o there is a bug resulting in strange |
388 colors.</LI> | |
389 <LI>ATI driver requires to switch mode back more than once after finishing | |
390 using of DGA.</LI> | |
391 <LI>Some drivers simply fail to switch back to normal resolution (use | |
392 Ctrl-Alt-Keypad +, - to switch back manually).</LI> | |
393 <LI>Some drivers simply display strange colors.</LI> | |
394 <LI>Some drivers lie about the amount of memory they map into the process's | |
395 address space, thus vo_dga won't use doublebuffering (SIS?).</LI> | |
396 <LI>some drivers seem to fail to report even a single valid mode. In this | |
397 case the DGA driver will crash telling you about a nonsense mode of | |
398 100000x100000 or the like ...</LI> | |
399 <LI>OSD only works with doublebuffering enabled.</LI> | |
6435
d0d74f9d8d4a
Background now set by CSS, added doctype and charset.
diego
parents:
6393
diff
changeset
|
400 </UL> |
1682 | 401 |
6974 | 402 |
7047 | 403 <H5><A NAME="dga_future">2.3.1.3.9 Future work</A></H5> |
1682 | 404 |
6435
d0d74f9d8d4a
Background now set by CSS, added doctype and charset.
diego
parents:
6393
diff
changeset
|
405 <UL> |
6960 | 406 <LI>use of the new X11 render interface for OSD</LI> |
407 <LI>where is my TODO list ???? :-(((</LI> | |
6435
d0d74f9d8d4a
Background now set by CSS, added doctype and charset.
diego
parents:
6393
diff
changeset
|
408 </UL> |
1612 | 409 |
410 | |
7047 | 411 <H5><A NAME="dga_modelines">2.3.1.3.A Some modelines</A></H5> |
1612 | 412 |
1682 | 413 <PRE> |
1612 | 414 Section "Modes" |
415 Identifier "Modes[0]" | |
2848
33c32f3d9f1f
many small updates, fixes (some/more to be completed soon)
gabucino
parents:
2747
diff
changeset
|
416 Modeline "800x600" 40 800 840 968 1056 600 601 605 628 |
1612 | 417 Modeline "712x600" 35.0 712 740 850 900 400 410 412 425 |
2848
33c32f3d9f1f
many small updates, fixes (some/more to be completed soon)
gabucino
parents:
2747
diff
changeset
|
418 Modeline "640x480" 25.175 640 664 760 800 480 491 493 525 |
1612 | 419 Modeline "400x300" 20 400 416 480 528 300 301 303 314 Doublescan |
420 Modeline "352x288" 25.10 352 368 416 432 288 296 290 310 | |
421 Modeline "352x240" 15.750 352 368 416 432 240 244 246 262 Doublescan | |
422 Modeline "320x240" 12.588 320 336 384 400 240 245 246 262 Doublescan | |
423 EndSection | |
1682 | 424 </PRE> |
1612 | 425 |
6599 | 426 <P>These entries work fine with my Riva128 chip, using nv.o X server driver |
6960 | 427 module.</P> |
1612 | 428 |
429 | |
7047 | 430 <H5><A NAME="dga_bug_reports">2.3.1.3.B Bug Reports</A></H5> |
1612 | 431 |
2848
33c32f3d9f1f
many small updates, fixes (some/more to be completed soon)
gabucino
parents:
2747
diff
changeset
|
432 <P>If you experience troubles with the DGA driver please feel free to file |
6960 | 433 a bug report to me (e-mail address below). Please start <B>MPlayer</B> with |
434 the -v option and include all lines in the bug report that start with | |
435 vo_dga:</P> | |
2848
33c32f3d9f1f
many small updates, fixes (some/more to be completed soon)
gabucino
parents:
2747
diff
changeset
|
436 |
33c32f3d9f1f
many small updates, fixes (some/more to be completed soon)
gabucino
parents:
2747
diff
changeset
|
437 <P>Please do also include the version of X11 you are using, the graphics card |
6960 | 438 and your CPU type. The X11 driver module (defined in XF86-Config) might |
439 also help. Thanks!</P> | |
1612 | 440 |
1682 | 441 <P><I>Acki (acki@acki-netz.de, www.acki-netz.de)</I></P> |
1612 | 442 |
443 | |
7047 | 444 <H4><A NAME="sdl">2.3.1.4 SDL</A></H4> |
1612 | 445 |
6583 | 446 <P>SDL (Simple Directmedia Layer) is basically a unified video/audio |
3988 | 447 interface. Programs that use it know only about SDL, and not about what video |
448 or audio driver does SDL actually use. For example a Doom port using SDL can | |
449 run on svgalib, aalib, X, fbdev, and others, you only have to specify the | |
450 (for example) video driver to use with the SDL_VIDEODRIVER environment | |
451 variable. Well, in theory.</P> | |
452 | |
453 <P>With <B>MPlayer</B>, we used its X11 driver's software scaler ability for | |
454 cards/drivers that doesn't support XVideo, until we made our own (faster, | |
455 nicer) software scaler. Also we used its aalib output, but now we have ours | |
456 which is more comfortable. Its DGA mode was better than ours, until | |
457 recently. Get it now? :)</P> | |
458 | |
459 <P>It also helps with some buggy drivers/cards if the video is jerky | |
460 (not slow system problem), or audio is lagging.</P> | |
461 | |
5119 | 462 <P>SDL video output supports displaying subtitles under the movie, on the (if |
463 present) black bar.</P> | |
464 | |
7099
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
465 <P><B>There are several command line switches for SDL:</B></P> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
466 <DL> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
467 <DT><CODE>-vo sdl:name</CODE></DT> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
468 <DD>specifies sdl video driver to use (i.e.. aalib, dga, x11)</DD> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
469 |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
470 <DT><CODE>-ao sdl:name</CODE></DT> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
471 <DD>specifies sdl audio driver to use (i.e. dsp, esd, arts)</DD> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
472 |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
473 <DT><CODE>-noxv</CODE></DT> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
474 <DD>disables XVideo hardware acceleration</DD> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
475 |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
476 <DT><CODE>-forcexv</CODE></DT> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
477 <DD>tries to force XVideo acceleration</DD> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
478 </DL> |
1612 | 479 |
6974 | 480 <TABLE BORDER=0> |
481 <TR><TD COLSPAN=4><P><B>SDL Keys:</B></P></TD></TR> | |
482 <TR><TD></TD><TD><CODE>F</CODE></TD><TD></TD><TD>toggles fullscreen/windowed mode</TD></TR> | |
483 <TR><TD></TD><TD><CODE>C</CODE></TD><TD></TD><TD>cycles available fullscreen modes</TD></TR> | |
484 <TR><TD></TD><TD><CODE>W/S</CODE></TD><TD></TD><TD>mappings for * and / (mixer control)</TD></TR> | |
6435
d0d74f9d8d4a
Background now set by CSS, added doctype and charset.
diego
parents:
6393
diff
changeset
|
485 </TABLE> |
1612 | 486 |
7099
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
487 <H4>Known bugs:</H4> |
6960 | 488 |
489 <UL> | |
490 <LI>Keys pressed under sdl:aalib console driver repeat forever. (use -vo aa!) | |
491 It's bug in SDL, I can't change it (tested with SDL 1.2.1).</LI> | |
6435
d0d74f9d8d4a
Background now set by CSS, added doctype and charset.
diego
parents:
6393
diff
changeset
|
492 </UL> |
1612 | 493 |
6974 | 494 |
7047 | 495 <H4><A NAME="svgalib">2.3.1.5 SVGAlib</A></H4> |
1682 | 496 |
7047 | 497 <H4>Installation</H4> |
498 | |
499 <P>You'll have to install svgalib and its development package in order for | |
6499 | 500 <B>MPlayer</B> build its SVGAlib driver (autodetected, but can be forced), |
501 and don't forget to edit /etc/vga/libvga.config to suit your card & | |
502 monitor.</P> | |
503 | |
7047 | 504 <H4>Notes</H4> |
505 | |
506 <P>Be sure not to use the -fs switch, since it toggles the usage of the software | |
6499 | 507 scaler, and it's slow. If you really need it, use the <CODE>-sws 4</CODE> |
508 option which will produce bad quality, but is somewhat faster.</P> | |
509 | |
7047 | 510 <H4>EGA (4bpp) support</H4> |
511 | |
512 <P>SVGAlib incorporates EGAlib, and <B>MPlayer</B> has the possibility to | |
6499 | 513 display any movie in 16 colors, thus usable in the following sets:</P> |
1612 | 514 |
6499 | 515 <UL> |
516 <LI>EGA card with EGA monitor: 320x200x4bpp, 640x200x4bpp, 640x350x4bpp</LI> | |
517 <LI>EGA card with CGA monitor: 320x200x4bpp, 640x200x4bpp</LI> | |
518 </UL> | |
519 | |
520 <P>The bpp (bits per pixel) value must be set to 4 by hand:<BR> | |
521 <CODE>-bpp 4</CODE><BR> | |
522 The movie probably must be scaled down to fit in EGA mode:<BR> | |
523 <CODE>-vop scale=640:350</CODE> or<BR> | |
524 <CODE>-vop scale=320:200</CODE><BR> | |
525 For that we need fast but bad quality scaling routine:<BR> | |
526 <CODE>-sws 4</CODE><BR> | |
527 Maybe automatic aspect correction has to be shut off:<BR> | |
6974 | 528 <CODE>-noaspect</CODE></P> |
6499 | 529 |
1612 | 530 |
7047 | 531 <H4><A NAME="fbdev">2.3.1.6 Framebuffer output (FBdev)</A></H4> |
1682 | 532 |
533 <P>Whether to build the FBdev target is autodetected during ./configure . | |
6960 | 534 Read the framebuffer documentation in the kernel sources |
6998
83a386e88f9e
Applied patch by Andras Mohari <mayday at varoshaza . nagyatad . hu>
diego
parents:
6981
diff
changeset
|
535 (Documentation/fb/*) for more information.</P> |
1612 | 536 |
1682 | 537 <P>If your card doesn't support VBE 2.0 standard (older ISA/PCI |
6960 | 538 cards, such as S3 Trio64), only VBE 1.2 (or older?): |
539 Well, VESAfb is still available, but you'll have to load SciTech Display | |
540 Doctor (formerly UniVBE) before booting Linux. Use a DOS boot disk or | |
541 whatever. And don't forget to register your UniVBE ;))</P> | |
1612 | 542 |
1682 | 543 <P>The FBdev output takes some additional parameters above the others:</P> |
1612 | 544 |
7099
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
545 <DL> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
546 <DT><CODE>-fb</CODE></DT> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
547 <DD>specify the framebuffer device to use (/dev/fb0)</DD> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
548 |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
549 <DT><CODE>-fbmode</CODE></DT> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
550 <DD>mode name to use (according to /etc/fb.modes)</DD> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
551 |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
552 <DT><CODE>-fbmodeconfig</CODE></DT> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
553 <DD>config file of modes (default /etc/fb.modes)</DD> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
554 |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
555 <DT><CODE>-monitor_hfreq</CODE></DT> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
556 <DT><CODE>-monitor_vfreq</CODE></DT> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
557 <DT><CODE>-monitor_dotclock</CODE></DT> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
558 <DD><STRONG>Important</STRONG> values, see <CODE>example.conf</CODE></DD> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
559 </DL> |
1612 | 560 |
1682 | 561 <P>If you want to change to a specific mode, then use</P> |
1612 | 562 |
1682 | 563 <P><CODE> mplayer -vm -fbmode (NameOfMode) filename</CODE></P> |
1612 | 564 |
6435
d0d74f9d8d4a
Background now set by CSS, added doctype and charset.
diego
parents:
6393
diff
changeset
|
565 <UL> |
6960 | 566 <LI><B>-vm</B> alone will choose the most suitable mode from /etc/fb.modes. |
567 Can be used together with -x and -y options too. The -flip option is | |
568 supported only if the movie's pixel format matches the video mode's pixel | |
569 format. Pay attention to the bpp value, fbdev driver tries to use the | |
570 current, or if you specify the -bpp option, then that.</LI> | |
571 <LI><B>-zoom</B> option isn't supported (software scaling is slow). -fs | |
572 option isn't supported. You can't use 8bpp (or less) modes.</LI> | |
573 <LI>you possibly want to turn the cursor off: <CODE>echo -e | |
574 '\033[?25l'</CODE> or <CODE>setterm -cursor off</CODE><BR> | |
575 and the screen saver: <CODE>setterm -blank 0</CODE><BR> | |
576 To turn the cursor back on: <CODE>echo -e '\033[?25h'</CODE> | |
577 or <CODE>setterm -cursor on</CODE></LI> | |
6435
d0d74f9d8d4a
Background now set by CSS, added doctype and charset.
diego
parents:
6393
diff
changeset
|
578 </UL> |
1612 | 579 |
1682 | 580 <P>NOTE: FBdev video mode changing _does not work_ with the VESA framebuffer, |
6960 | 581 and don't ask for it, since it's not an <B>MPlayer</B> limitation.</P> |
1612 | 582 |
6974 | 583 |
7047 | 584 <H4><A NAME="mga_vid">2.3.1.7 Matrox framebuffer (mga_vid)</A></H4> |
1612 | 585 |
1992 | 586 <P>This section is about the Matrox G200/G400/G450/G550 BES (Back-End Scaler) |
6960 | 587 support, the mga_vid kernel driver. It's active developed by me (A'rpi), and |
588 it has hardware VSYNC support with triple buffering. It works on both | |
589 framebuffer console and under X.</P> | |
2848
33c32f3d9f1f
many small updates, fixes (some/more to be completed soon)
gabucino
parents:
2747
diff
changeset
|
590 |
6906
3274d0725fde
Changed all link names from the section number to a sensible label.
diego
parents:
6882
diff
changeset
|
591 <P><B>WARNING</B>: on non-Linux systems, use <A HREF="#vidix">VIDIX</A> for |
6998
83a386e88f9e
Applied patch by Andras Mohari <mayday at varoshaza . nagyatad . hu>
diego
parents:
6981
diff
changeset
|
592 mga_vid!</P> |
4505
fdeee8424d90
on non-Linux use Vidix instead of mga_vid kernelmodule
gabucino
parents:
4504
diff
changeset
|
593 |
7099
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
594 <P><B>Installation:</B></P> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
595 <OL> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
596 <LI>To use it, you first have to compile mga_vid.o: |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
597 <P><CODE>cd drivers<BR> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
598 make</CODE></P></LI> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
599 <LI>Then create the <CODE>/dev/mga_vid</CODE> device: |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
600 <P><CODE>mknod /dev/mga_vid c 178 0</CODE></P> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
601 <P>and load the driver with</P> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
602 <P><CODE>insmod mga_vid.o</CODE></P></LI> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
603 <LI>You should verify the memory size detection using the <CODE>dmesg</CODE> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
604 command. If it's bad, use the <CODE>mga_ram_size</CODE> option |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
605 (<CODE>rmmod mga_vid</CODE> first), specify card's memory size in MB: |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
606 <P><CODE>insmod mga_vid.o mga_ram_size=16</CODE></P></LI> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
607 <LI>To make it load/unload automatically when needed, first insert the |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
608 following line at the end of <CODE>/etc/modules.conf</CODE>: |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
609 <P><CODE>alias char-major-178 mga_vid</CODE></P> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
610 <P>Then copy the <CODE>mga_vid.o</CODE> module to the appropriate place |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
611 under <CODE>/lib/modules/<kernel version>/somewhere</CODE>.</P> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
612 <P>Then run</P> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
613 <P><CODE>depmod -a</CODE></P></LI> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
614 <LI>Now you have to (re)compile <B>MPlayer</B>, <CODE>configure</CODE> will |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
615 detect <CODE>/dev/mga_vid</CODE> and build the 'mga' driver. Using it from |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
616 <B>MPlayer</B> goes by <CODE>-vo mga</CODE> if you have matroxfb console, |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
617 or <CODE>-vo xmga</CODE> under XFree86 3.x.x or 4.x.x.</LI> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
618 </OL> |
1682 | 619 |
2108 | 620 <P>The mga_vid driver cooperates with Xv.</P> |
2848
33c32f3d9f1f
many small updates, fixes (some/more to be completed soon)
gabucino
parents:
2747
diff
changeset
|
621 |
4504 | 622 <P>The <CODE>/dev/mga_vid</CODE> device file can be read (for example by |
623 <CODE>cat /dev/mga_vid</CODE>) for some info, and written for brightness | |
7076
3275af5787e0
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, slightly
diego
parents:
7061
diff
changeset
|
624 change: <CODE>echo "brightness=120" > /dev/mga_vid</CODE></P> |
4504 | 625 |
1612 | 626 |
7047 | 627 <H4><A NAME="sis_vid">2.3.1.8 SiS 6326 framebuffer (sis_vid)</A></H4> |
1682 | 628 |
7076
3275af5787e0
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, slightly
diego
parents:
7061
diff
changeset
|
629 <P>SiS 6326 YUV Framebuffer driver -> sis_vid kernel driver</P> |
1612 | 630 |
1682 | 631 <P>Its interface should be compatible with the mga_vid, but the driver was not |
6960 | 632 updated after the mga_vid changes, so it's outdated now. Volunteers |
633 needed to test it and bring the code up-to-date.</P> | |
1612 | 634 |
6974 | 635 |
7047 | 636 <H4><A NAME="tdfxfb">2.3.1.9 3dfx YUV support (tdfxfb)</A></H4> |
1612 | 637 |
1992 | 638 <P>This driver uses the kernel's tdfx framebuffer driver to play movies with |
6960 | 639 YUV acceleration. You'll need a kernel with tdfxfb support, and recompile |
640 with <CODE>./configure --enable-tdfxfb</CODE></P> | |
1612 | 641 |
6974 | 642 |
7047 | 643 <H4><A NAME="opengl">2.3.1.10 OpenGL output</A></H4> |
1612 | 644 |
6309 | 645 <P><B>MPlayer</B> supports displaying movies using OpenGL, but if your |
6960 | 646 platform/driver supports xv as should be the case on a PC with Linux, use xv |
647 instead, OpenGL performance is considerably worse. If you have an X11 | |
648 implementation without xv support, OpenGL is a viable alternative.</P> | |
6309 | 649 |
650 <P>Unfortunately not all drivers support this feature. The Utah-GLX drivers | |
6960 | 651 (for XFree86 3.3.6) support it for all cards. See |
652 <A HREF="http://utah-glx.sourceforge.net">http://utah-glx.sourceforge.net</A> | |
653 for details about how to install it.</P> | |
1612 | 654 |
7076
3275af5787e0
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, slightly
diego
parents:
7061
diff
changeset
|
655 <P>XFree86(DRI) 4.0.3 or later supports OpenGL with Matrox and Radeon cards, |
3275af5787e0
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, slightly
diego
parents:
7061
diff
changeset
|
656 4.2.0 or later supports Rage128. See |
6960 | 657 <A HREF="http://dri.sourceforge.net">http://dri.sourceforge.net</A> |
658 for download and installation instructions.</P> | |
1612 | 659 |
6974 | 660 |
7047 | 661 <H4><A NAME="aalib">2.3.1.11 AAlib - text mode displaying</A></H4> |
1612 | 662 |
1682 | 663 <P><B>AAlib</B> is a library for displaying graphics in text mode, using powerful |
6960 | 664 ASCII renderer. There are LOTS of programs already supporting it, like Doom, |
665 Quake, etc. <B>MPlayer</B> contains a very usable driver for it. | |
666 If ./configure detects aalib installed, the aalib libvo driver will be | |
667 built.</P> | |
1612 | 668 |
6435
d0d74f9d8d4a
Background now set by CSS, added doctype and charset.
diego
parents:
6393
diff
changeset
|
669 <TABLE BORDER=0> |
6974 | 670 <TR><TD COLSPAN=4><P><B>You can use some keys in the AA Window to change rendering options:</B></P></TD></TR> |
671 <TR><TD> </TD><TD><CODE>1</CODE></TD><TD> </TD><TD>decrease contrast</TD></TR> | |
672 <TR><TD></TD><TD><CODE>2</CODE></TD><TD></TD><TD>increase contrast</TD></TR> | |
673 <TR><TD></TD><TD><CODE>3</CODE></TD><TD></TD><TD>decrease brightness</TD></TR> | |
674 <TR><TD></TD><TD><CODE>4</CODE></TD><TD></TD><TD>increase brightness</TD></TR> | |
675 <TR><TD></TD><TD><CODE>5</CODE></TD><TD></TD><TD>switch fast rendering on/off</TD></TR> | |
676 <TR><TD></TD><TD><CODE>6</CODE></TD><TD></TD><TD>set dithering mode (none, error distribution, Floyd Steinberg)</TD></TR> | |
677 <TR><TD></TD><TD><CODE>7</CODE></TD><TD></TD><TD>invert image</TD></TR> | |
678 <TR><TD></TD><TD><CODE>a</CODE></TD><TD></TD><TD>toggles between aa and <B>MPlayer</B> control)</TD></TR> | |
7099
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
679 </TABLE> |
1612 | 680 |
7099
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
681 <P><B>The following command line options can be used:</B></P> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
682 <DL> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
683 <DT><CODE>-aaosdcolor=V</CODE></DT> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
684 <DD>change OSD color</DD> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
685 |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
686 <DT><CODE>-aasubcolor=V</CODE></DT> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
687 <DD>change subtitle color |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
688 <P><I>where V can be: (0/normal, 1/dark, 2/bold, 3/bold font, 4/reverse, |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
689 5/special)</I></P></DD> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
690 </DL> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
691 |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
692 <P><B>AAlib itself provides a large sum of options. |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
693 Here are some important:</B></P> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
694 <DL> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
695 <DT><CODE>-aadriver</CODE></DT> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
696 <DD>set recommended aa driver (X11, curses, Linux)</DD> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
697 |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
698 <DT><CODE>-aaextended</CODE></DT> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
699 <DD>use all 256 characters</DD> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
700 |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
701 <DT><CODE>-aaeight</CODE></DT> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
702 <DD>use eight bit ASCII</DD> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
703 |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
704 <DT><CODE>-aahelp</CODE></DT> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
705 <DD>prints out all aalib options</DD> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
706 </DL> |
1682 | 707 |
708 <P>NOTE: the rendering is very CPU intensive, especially when using AA-on-X | |
6960 | 709 (using aalib on X), and it's least CPU intensive on standard, |
710 non-framebuffer console. Use SVGATextMode to set up a big textmode, | |
711 then enjoy! (secondary head Hercules cards rock :)) (anyone can enhance | |
712 fbdev to do conversion/dithering to hgafb? Would be neat :)</P> | |
2848
33c32f3d9f1f
many small updates, fixes (some/more to be completed soon)
gabucino
parents:
2747
diff
changeset
|
713 |
6732
8460a77203de
DXR3 moved to video.html. TOC updated, added <CODE> where appropiate.
diego
parents:
6729
diff
changeset
|
714 <P>Use the <CODE>-framedrop</CODE> option if your computer isn't fast enough to |
6960 | 715 render all frames!</P> |
1612 | 716 |
6960 | 717 <P>Playing on terminal you'll get better speed and quality using the Linux |
6998
83a386e88f9e
Applied patch by Andras Mohari <mayday at varoshaza . nagyatad . hu>
diego
parents:
6981
diff
changeset
|
718 driver, not curses (<CODE>-aadriver linux</CODE>). But therefore you need write access on |
83a386e88f9e
Applied patch by Andras Mohari <mayday at varoshaza . nagyatad . hu>
diego
parents:
6981
diff
changeset
|
719 <CODE>/dev/vcsa<terminal></CODE>. That isn't autodetected by aalib, but vo_aa tries |
6960 | 720 to find the best mode. See |
721 <A HREF="http://aa-project.sourceforge.net/tune/">http://aa-project.sourceforge.net/tune/</A> | |
722 for further tuning issues.</P> | |
1612 | 723 |
2471 | 724 |
7047 | 725 <H4><A NAME="vesa">2.3.1.12 VESA - output to VESA BIOS</A></H4> |
6906
3274d0725fde
Changed all link names from the section number to a sensible label.
diego
parents:
6882
diff
changeset
|
726 |
6960 | 727 <P>This driver was designed and introduced as a <B>generic driver</B> for any |
728 video card which has VESA VBE 2.0 compatible BIOS. Another advantage of this | |
729 driver is that it tries to force TV output on.<BR> | |
730 <B>VESA BIOS EXTENSION (VBE) Version 3.0 Date: September 16, 1998</B> (Page | |
731 70) says:</P> | |
2448
1e56c3381d55
'vesa' vo driver added. By Nick Kurshev. (spellchecked, fixed, mplayerdoxized)
gabucino
parents:
2408
diff
changeset
|
732 |
6435
d0d74f9d8d4a
Background now set by CSS, added doctype and charset.
diego
parents:
6393
diff
changeset
|
733 <BLOCKQUOTE> |
6974 | 734 <B>Dual-Controller Designs</B><BR> |
6960 | 735 VBE 3.0 supports the dual-controller design by assuming that since both |
736 controllers are typically provided by the same OEM, under control of a | |
737 single BIOS ROM on the same graphics card, it is possible to hide the fact | |
738 that two controllers are indeed present from the application. This has the | |
739 limitation of preventing simultaneous use of the independent controllers, | |
740 but allows applications released before VBE 3.0 to operate normally. The | |
741 VBE Function 00h (Return Controller Information) returns the combined | |
742 information of both controllers, including the combined list of available | |
743 modes. When the application selects a mode, the appropriate controller is | |
744 activated. Each of the remaining VBE functions then operates on the active | |
745 controller. | |
6435
d0d74f9d8d4a
Background now set by CSS, added doctype and charset.
diego
parents:
6393
diff
changeset
|
746 </BLOCKQUOTE> |
2448
1e56c3381d55
'vesa' vo driver added. By Nick Kurshev. (spellchecked, fixed, mplayerdoxized)
gabucino
parents:
2408
diff
changeset
|
747 |
6960 | 748 <P>So you have chances to get working TV-out by using this driver.<BR> |
749 (I guess that TV-out frequently is standalone head or standalone output | |
750 at least.)</P> | |
751 | |
7047 | 752 <H4>Advantages:</H4> |
6998
83a386e88f9e
Applied patch by Andras Mohari <mayday at varoshaza . nagyatad . hu>
diego
parents:
6981
diff
changeset
|
753 |
83a386e88f9e
Applied patch by Andras Mohari <mayday at varoshaza . nagyatad . hu>
diego
parents:
6981
diff
changeset
|
754 <UL> |
83a386e88f9e
Applied patch by Andras Mohari <mayday at varoshaza . nagyatad . hu>
diego
parents:
6981
diff
changeset
|
755 <LI>You have the possibility to watch movies <B>even if Linux doesn't know</B> |
83a386e88f9e
Applied patch by Andras Mohari <mayday at varoshaza . nagyatad . hu>
diego
parents:
6981
diff
changeset
|
756 your video hardware.</LI> |
83a386e88f9e
Applied patch by Andras Mohari <mayday at varoshaza . nagyatad . hu>
diego
parents:
6981
diff
changeset
|
757 <LI>You don't need to have installed any graphics' related things on your Linux |
6960 | 758 (like X11 (aka XFree86), fbdev and so on). This driver can be run from |
6998
83a386e88f9e
Applied patch by Andras Mohari <mayday at varoshaza . nagyatad . hu>
diego
parents:
6981
diff
changeset
|
759 <B>text-mode</B>.</LI> |
83a386e88f9e
Applied patch by Andras Mohari <mayday at varoshaza . nagyatad . hu>
diego
parents:
6981
diff
changeset
|
760 <LI>You have chances to get <B>working TV-out</B>. (It's known at least for |
83a386e88f9e
Applied patch by Andras Mohari <mayday at varoshaza . nagyatad . hu>
diego
parents:
6981
diff
changeset
|
761 ATI's cards).</LI> |
83a386e88f9e
Applied patch by Andras Mohari <mayday at varoshaza . nagyatad . hu>
diego
parents:
6981
diff
changeset
|
762 <LI>This driver calls <B>int 10h</B> handler thus it's not an emulator - it |
6960 | 763 calls <B>real</B> things of <B>real</B> BIOS in <B>real</B>-mode. (Finely - |
6998
83a386e88f9e
Applied patch by Andras Mohari <mayday at varoshaza . nagyatad . hu>
diego
parents:
6981
diff
changeset
|
764 in vm86 mode).</LI> |
83a386e88f9e
Applied patch by Andras Mohari <mayday at varoshaza . nagyatad . hu>
diego
parents:
6981
diff
changeset
|
765 <LI>You can use Vidix with it, thus getting accelerated video display |
83a386e88f9e
Applied patch by Andras Mohari <mayday at varoshaza . nagyatad . hu>
diego
parents:
6981
diff
changeset
|
766 <B>AND</B> TV output at the same time! (recommended for ATI cards)</LI> |
83a386e88f9e
Applied patch by Andras Mohari <mayday at varoshaza . nagyatad . hu>
diego
parents:
6981
diff
changeset
|
767 </UL> |
2448
1e56c3381d55
'vesa' vo driver added. By Nick Kurshev. (spellchecked, fixed, mplayerdoxized)
gabucino
parents:
2408
diff
changeset
|
768 |
7047 | 769 <H4>Disadvantages:</H4> |
6998
83a386e88f9e
Applied patch by Andras Mohari <mayday at varoshaza . nagyatad . hu>
diego
parents:
6981
diff
changeset
|
770 |
83a386e88f9e
Applied patch by Andras Mohari <mayday at varoshaza . nagyatad . hu>
diego
parents:
6981
diff
changeset
|
771 <UL> |
83a386e88f9e
Applied patch by Andras Mohari <mayday at varoshaza . nagyatad . hu>
diego
parents:
6981
diff
changeset
|
772 <LI>It works only on <B>x86 systems</B>.</LI> |
83a386e88f9e
Applied patch by Andras Mohari <mayday at varoshaza . nagyatad . hu>
diego
parents:
6981
diff
changeset
|
773 <LI>It can be used only by <B>root</B>.</LI> |
83a386e88f9e
Applied patch by Andras Mohari <mayday at varoshaza . nagyatad . hu>
diego
parents:
6981
diff
changeset
|
774 <LI>Currently it's available only for <B>Linux</B>.</LI> |
83a386e88f9e
Applied patch by Andras Mohari <mayday at varoshaza . nagyatad . hu>
diego
parents:
6981
diff
changeset
|
775 </UL> |
2448
1e56c3381d55
'vesa' vo driver added. By Nick Kurshev. (spellchecked, fixed, mplayerdoxized)
gabucino
parents:
2408
diff
changeset
|
776 |
6960 | 777 <P>Don't use this driver with <B>GCC 2.96</B>! It won't work!</P> |
3141 | 778 |
7099
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
779 <P><B>Command line options available for VESA:</B></P> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
780 <DL> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
781 <DT><CODE>-vo vesa:opts</CODE></DT> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
782 <DD>currently recognized: <B>dga</B> to force dga mode and <B>nodga</B> to |
6974 | 783 disable dga mode. Note: you may omit these parameters to enable <B>autodetect</B> |
784 of dga mode. (In the future also will specify mode parameters such as refresh | |
7099
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
785 rate, interlacing, doublescan and so on. Samples: i43, 85, d100)</DD> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
786 |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
787 <DT><CODE>-screenw, -screenh, -bpp</CODE></DT> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
788 <DD>force userdefined mode</DD> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
789 |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
790 <DT><CODE>-x, -y</CODE></DT> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
791 <DD>set userdefined prescaling</DD> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
792 |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
793 <DT><CODE>-zoom</CODE></DT> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
794 <DD>enables userdefined prescaling</DD> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
795 |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
796 <DT><CODE>-fs</CODE></DT> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
797 <DD>scales image to fullscreen</DD> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
798 |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
799 <DT><CODE>-fs -zoom</CODE></DT> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
800 <DD>scales userdefined prescaling to fullscreen</DD> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
801 |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
802 <DT><CODE>-double</CODE></DT> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
803 <DD>enables double buffering mode. (Available only in DGA mode). Should be |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
804 slower of single buffering, but has no flickering effects.</DD> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
805 </DL> |
2448
1e56c3381d55
'vesa' vo driver added. By Nick Kurshev. (spellchecked, fixed, mplayerdoxized)
gabucino
parents:
2408
diff
changeset
|
806 |
7047 | 807 <H4>Known problems and workaround:</H4> |
6998
83a386e88f9e
Applied patch by Andras Mohari <mayday at varoshaza . nagyatad . hu>
diego
parents:
6981
diff
changeset
|
808 |
83a386e88f9e
Applied patch by Andras Mohari <mayday at varoshaza . nagyatad . hu>
diego
parents:
6981
diff
changeset
|
809 <UL> |
83a386e88f9e
Applied patch by Andras Mohari <mayday at varoshaza . nagyatad . hu>
diego
parents:
6981
diff
changeset
|
810 <LI>If you have installed <B>NLS</B> font on your Linux box and run VESA |
83a386e88f9e
Applied patch by Andras Mohari <mayday at varoshaza . nagyatad . hu>
diego
parents:
6981
diff
changeset
|
811 driver from text-mode then after terminating <B>MPlayer</B> you will have |
83a386e88f9e
Applied patch by Andras Mohari <mayday at varoshaza . nagyatad . hu>
diego
parents:
6981
diff
changeset
|
812 <B>ROM font</B> loaded instead of national. You can load national font again |
83a386e88f9e
Applied patch by Andras Mohari <mayday at varoshaza . nagyatad . hu>
diego
parents:
6981
diff
changeset
|
813 by using <B><I>setsysfont</I></B> utility from the Mandrake distribution |
7076
3275af5787e0
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, slightly
diego
parents:
7061
diff
changeset
|
814 for example.<BR> |
6998
83a386e88f9e
Applied patch by Andras Mohari <mayday at varoshaza . nagyatad . hu>
diego
parents:
6981
diff
changeset
|
815 (<B>Hint:</B> The same utility is used for the localization of fbdev).</LI> |
83a386e88f9e
Applied patch by Andras Mohari <mayday at varoshaza . nagyatad . hu>
diego
parents:
6981
diff
changeset
|
816 <LI>Some <B>Linux graphics drivers</B> don't update active <B>BIOS mode</B> in |
6960 | 817 DOS memory. So if you have such problem - always use VESA driver only from |
818 <B>text-mode</B>. Otherwise text-mode (#03) will be activated anyway and | |
6998
83a386e88f9e
Applied patch by Andras Mohari <mayday at varoshaza . nagyatad . hu>
diego
parents:
6981
diff
changeset
|
819 you will need restart your computer.</LI> |
83a386e88f9e
Applied patch by Andras Mohari <mayday at varoshaza . nagyatad . hu>
diego
parents:
6981
diff
changeset
|
820 <LI>Often after terminating VESA driver you get <B>black screen</B>. To return |
6960 | 821 your screen to original state - simply switch to other console (by pressing |
6998
83a386e88f9e
Applied patch by Andras Mohari <mayday at varoshaza . nagyatad . hu>
diego
parents:
6981
diff
changeset
|
822 <B>Alt-Fx</B>) then switch to your previous console by the same way.</LI> |
83a386e88f9e
Applied patch by Andras Mohari <mayday at varoshaza . nagyatad . hu>
diego
parents:
6981
diff
changeset
|
823 <LI>To get <B>working TV-out</B> you need have plugged TV-connector in before |
6960 | 824 booting your PC since video BIOS initializes itself only once during POST |
6998
83a386e88f9e
Applied patch by Andras Mohari <mayday at varoshaza . nagyatad . hu>
diego
parents:
6981
diff
changeset
|
825 procedure.</LI> |
83a386e88f9e
Applied patch by Andras Mohari <mayday at varoshaza . nagyatad . hu>
diego
parents:
6981
diff
changeset
|
826 </UL> |
2448
1e56c3381d55
'vesa' vo driver added. By Nick Kurshev. (spellchecked, fixed, mplayerdoxized)
gabucino
parents:
2408
diff
changeset
|
827 |
1e56c3381d55
'vesa' vo driver added. By Nick Kurshev. (spellchecked, fixed, mplayerdoxized)
gabucino
parents:
2408
diff
changeset
|
828 |
7047 | 829 <H4><A NAME="x11">2.3.1.13 X11</A></H4> |
2848
33c32f3d9f1f
many small updates, fixes (some/more to be completed soon)
gabucino
parents:
2747
diff
changeset
|
830 |
33c32f3d9f1f
many small updates, fixes (some/more to be completed soon)
gabucino
parents:
2747
diff
changeset
|
831 <P>Avoid if possible. Outputs to X11 (uses shared memory extension), with no |
6960 | 832 hardware acceleration at all. Supports (MMX/3DNow/SSE accelerated, but still |
833 slow) software scaling, use the options <CODE>-fs -zoom</CODE>. Most cards | |
834 have hardware scaling support, use the <CODE>-vo xv</CODE> output for them, | |
835 or <CODE>-vo xmga</CODE> for Matroxes.</P> | |
2848
33c32f3d9f1f
many small updates, fixes (some/more to be completed soon)
gabucino
parents:
2747
diff
changeset
|
836 |
6960 | 837 <P>The problem is that most cards' driver doesn't support hardware acceleration |
838 on the second head/TV. In those cases, you see green/blue colored window | |
839 instead of the movie. This is where this driver comes in handy, but you need | |
840 powerful CPU to use software scaling. Don't use the SDL driver's software | |
841 output+scaler, it has worse image quality!</P> | |
2848
33c32f3d9f1f
many small updates, fixes (some/more to be completed soon)
gabucino
parents:
2747
diff
changeset
|
842 |
6960 | 843 <P>Software scaling is very slow, you better try changing video modes instead. |
844 It's very simple. See the <A HREF="#dga_modelines">DGA section's modelines</A>, | |
845 and insert them into your XF86Config.</P> | |
846 | |
3290 | 847 <UL> |
848 <LI>If you have XFree86 4.x.x - use the <CODE>-vm</CODE> option. It will | |
6960 | 849 change to a resolution your movie fits in. If it doesn't:</LI> |
3290 | 850 <LI>With XFree86 3.x.x - you have to cycle through available resolutions |
851 with the <B>CTRL-ALT-plus</B> and <B>minus</B> keys.</LI> | |
852 </UL> | |
853 | |
6435
d0d74f9d8d4a
Background now set by CSS, added doctype and charset.
diego
parents:
6393
diff
changeset
|
854 <P>If you can't find the modes you inserted, browse XFree86's output. Some |
6960 | 855 drivers can't use low pixelclocks that are needed for low resolution |
856 video modes.</P> | |
3290 | 857 |
2848
33c32f3d9f1f
many small updates, fixes (some/more to be completed soon)
gabucino
parents:
2747
diff
changeset
|
858 |
7047 | 859 <H4><A NAME="vidix">2.3.1.14 VIDIX</A></H4> |
4199 | 860 |
6435
d0d74f9d8d4a
Background now set by CSS, added doctype and charset.
diego
parents:
6393
diff
changeset
|
861 <P>VIDIX is the abbreviation for <B>VID</B>eo <B>I</B>nterface for |
d0d74f9d8d4a
Background now set by CSS, added doctype and charset.
diego
parents:
6393
diff
changeset
|
862 *ni<B>X</B>.<BR> |
4199 | 863 VIDIX was designed and introduced as an interface for fast user-space drivers |
6583 | 864 providing such video performance as mga_vid does for Matrox cards. It's |
865 also very portable.</P> | |
4199 | 866 |
867 <P>This interface was designed as an attempt to fit existing video acceleration | |
6583 | 868 interfaces (known as mga_vid, rage128_vid, radeon_vid, pm3_vid) into a fixed scheme. It |
4199 | 869 provides highlevel interface to chips which are known as BES (BackEnd |
870 scalers) or OV (Video Overlays). It doesn't provide lowlevel interface to | |
871 things which are known as graphics servers. (I don't want to compete with X11 | |
872 team in graphics mode switching). I.e. main goal of this interface is to | |
6974 | 873 maximize the speed of video playback.</P> |
4199 | 874 |
7047 | 875 <H4>USAGE</H4> |
4199 | 876 |
6435
d0d74f9d8d4a
Background now set by CSS, added doctype and charset.
diego
parents:
6393
diff
changeset
|
877 <UL> |
4199 | 878 <LI>You can use standalone video output driver: <CODE>-vo xvidix</CODE><BR> |
879 This driver was developed as X11's front end to VIDIX technology. It | |
6599 | 880 requires X server and can work only under X server.</LI> |
4199 | 881 <LI>You can use VIDIX subdevice which was applied to several video output |
882 drivers, such as:<BR> | |
7015
72059027f953
Applied patch by Andras Mohari <mayday at varoshaza nagyatad hu> in a
diego
parents:
6998
diff
changeset
|
883 <CODE>-vo vesa:vidix</CODE> (<B>Linux only</B>) and <CODE>-vo fbdev:vidix</CODE></LI> |
6435
d0d74f9d8d4a
Background now set by CSS, added doctype and charset.
diego
parents:
6393
diff
changeset
|
884 </UL> |
6974 | 885 |
6435
d0d74f9d8d4a
Background now set by CSS, added doctype and charset.
diego
parents:
6393
diff
changeset
|
886 Indeed it doesn't matter which video output driver is used with <B>VIDIX</B>. |
4199 | 887 |
7047 | 888 <H4>REQUIREMENTS</H4> |
4199 | 889 |
6435
d0d74f9d8d4a
Background now set by CSS, added doctype and charset.
diego
parents:
6393
diff
changeset
|
890 <UL> |
d0d74f9d8d4a
Background now set by CSS, added doctype and charset.
diego
parents:
6393
diff
changeset
|
891 <LI>video card should be in graphics mode (I write <B>should</B> simply |
4199 | 892 because I tested it in text mode - it works but has awful output ;) Use |
893 AAlib for that).<BR> | |
894 <I>Note: Everyone can try this trick by commenting out mode switching in | |
895 vo_vesa driver.</I></LI> | |
896 <LI><B>MPlayer</B>'s video output driver should know active video mode and be | |
897 able to tell to VIDIX subdevice some video characteristics of server.</LI> | |
6435
d0d74f9d8d4a
Background now set by CSS, added doctype and charset.
diego
parents:
6393
diff
changeset
|
898 </UL> |
6974 | 899 |
6435
d0d74f9d8d4a
Background now set by CSS, added doctype and charset.
diego
parents:
6393
diff
changeset
|
900 I hope that probably every video output driver of <B>MPlayer</B> will |
d0d74f9d8d4a
Background now set by CSS, added doctype and charset.
diego
parents:
6393
diff
changeset
|
901 recognize <CODE>:vidix</CODE> subdevice. |
4199 | 902 |
7047 | 903 <H4>USAGE METHODS</H4> |
4199 | 904 |
6435
d0d74f9d8d4a
Background now set by CSS, added doctype and charset.
diego
parents:
6393
diff
changeset
|
905 <P>When VIDIX is used as <B>subdevice</B> (<CODE>-vo vesa:vidix</CODE>) then |
4199 | 906 video mode configuration is performed by video output device |
6435
d0d74f9d8d4a
Background now set by CSS, added doctype and charset.
diego
parents:
6393
diff
changeset
|
907 (<B>vo_server</B> in short). Therefore you can pass into command line of |
4199 | 908 <B>MPlayer</B> the same keys as for vo_server. In addition it understands |
909 <CODE>-double</CODE> key as globally visible parameter. (I recommend using | |
910 this key with VIDIX at least for ATI's card).<BR> | |
6960 | 911 As for <CODE>-vo xvidix</CODE>: currently it recognizes the following |
6974 | 912 options: <CODE>-fs -zoom -x -y -double</CODE>.</P> |
4199 | 913 |
914 <P>Also you can specify VIDIX's driver directly as third subargument in command | |
6960 | 915 line:<BR> |
4199 | 916 <BR> |
917 <code>mplayer -vo xvidix:mga_vid.so -fs -zoom -double | |
918 file.avi</code><BR> | |
919 or<BR> | |
920 <code>mplayer -vo vesa:vidix:radeon_vid.so -fs -zoom -double -bpp | |
921 32 file.avi</code><BR> | |
922 <BR> | |
923 But it's dangerous, and you shouldn't do that. In this case given driver will | |
6435
d0d74f9d8d4a
Background now set by CSS, added doctype and charset.
diego
parents:
6393
diff
changeset
|
924 be forced and result is unpredictable (it may <B>freeze</B> your |
4339 | 925 computer). You should do that ONLY if you are absolutely sure it will work, |
926 and <B>MPlayer</B> doesn't do it automatically. Please tell about it to the | |
927 developers. The Right Way is to use VIDIX without arguments to enable driver | |
6974 | 928 autodetection.</P> |
4199 | 929 |
6974 | 930 <P>VIDIX is very new technology and it's extremely possible that on your system |
4199 | 931 (OS=abc CPU=xyz) it won't work. In this case only solution for you it's port |
932 it (mainly libdha). But there is hope that it will work on those systems | |
6974 | 933 where X11 does.</P> |
4199 | 934 |
7015
72059027f953
Applied patch by Andras Mohari <mayday at varoshaza nagyatad hu> in a
diego
parents:
6998
diff
changeset
|
935 <BLOCKQUOTE> |
72059027f953
Applied patch by Andras Mohari <mayday at varoshaza nagyatad hu> in a
diego
parents:
6998
diff
changeset
|
936 <B>Warning: security risk</B><BR> |
72059027f953
Applied patch by Andras Mohari <mayday at varoshaza nagyatad hu> in a
diego
parents:
6998
diff
changeset
|
937 Unfortunately you <B>must</B> have <B>root</B> privileges to use VIDIX |
72059027f953
Applied patch by Andras Mohari <mayday at varoshaza nagyatad hu> in a
diego
parents:
6998
diff
changeset
|
938 due to direct hardware access. At least the <B>SUID</B> bit on the |
72059027f953
Applied patch by Andras Mohari <mayday at varoshaza nagyatad hu> in a
diego
parents:
6998
diff
changeset
|
939 <B>MPlayer</B> executable must be set. |
72059027f953
Applied patch by Andras Mohari <mayday at varoshaza nagyatad hu> in a
diego
parents:
6998
diff
changeset
|
940 </BLOCKQUOTE> |
4199 | 941 |
7047 | 942 <H4>VIDEO EQUALIZER</H4> |
4496 | 943 |
6974 | 944 <P>This is a video equalizer implemented especially for VIDIX. You can use |
6435
d0d74f9d8d4a
Background now set by CSS, added doctype and charset.
diego
parents:
6393
diff
changeset
|
945 it either with <B>1-8</B> keys as described in the man page, or |
4506 | 946 by command line arguments. <B>MPlayer</B> recognizes the |
6974 | 947 following options:</P> |
4496 | 948 |
7099
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
949 <DL> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
950 <DT><CODE>-brightness</CODE></DT> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
951 <DD>Adjust <B>BRIGHTNESS</B> of video output. It's not equal to brightness |
6974 | 952 adjusting on monitor panel or on TV. It changes intensity of RGB components of |
7099
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
953 video signal from black to white screen.</DD> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
954 |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
955 <DT><CODE>-contrast</CODE></DT> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
956 <DD>Adjust <B>CONTRAST</B> of video output. Works in similar manner as |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
957 brightness.</DD> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
958 |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
959 <DT><CODE>-saturation</CODE></DT> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
960 <DD>Adjust <B>SATURATION</B> of video output. You can get grayscale |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
961 output with this option.</DD> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
962 |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
963 <DT><CODE>-hue</CODE></DT> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
964 <DD>Adjust <B>HUE</B> of video signal. You can get colored negative |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
965 of image with this option.</DD> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
966 |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
967 <DT><CODE>-red_intensity</CODE></DT> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
968 <DD>Adjust intensity of <B>RED</B> component of video signal.</DD> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
969 |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
970 <DT><CODE>-green_intensity</CODE></DT> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
971 <DD>Adjust intensity of <B>GREEN</B> component of video signal.</DD> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
972 |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
973 <DT><CODE>-blue_intensity</CODE></DT> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
974 <DD>Adjust intensity of <B>BLUE</B> component of video signal.</DD> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
975 </DL> |
6732
8460a77203de
DXR3 moved to video.html. TOC updated, added <CODE> where appropiate.
diego
parents:
6729
diff
changeset
|
976 |
6974 | 977 <P>Each parameter can accept values from <B>-1000</B> to <B>+1000</B>.<BR> |
978 Default value for each parameter is <B>0</B>.</P> | |
979 | |
980 <P><B>Note:</B> Not every driver provides support for each of those parameters. | |
6599 | 981 Currently only <B>radeon_vid.so</B> provides full support for video equalizing. |
6974 | 982 Other drivers only partly support these options.</P> |
983 | |
4496 | 984 <P><B>Examples:</B><BR> |
985 <CODE>mplayer -vo vesa:vidix -brightness -300 -contrast 200 | |
986 filename.avi</CODE><BR> | |
987 or<BR> | |
988 <CODE>mplayer -vo xvidix -red_intensity -50 -saturation 400 -hue 300 | |
6974 | 989 filename.vob</CODE></P> |
4496 | 990 |
2956
f6b51da0a50d
DOXized and applied Nick's radeon_vid patch. Nick, should I update
gabucino
parents:
2883
diff
changeset
|
991 |
7047 | 992 <H4><A NAME="zr">2.3.1.15 Zr</A></H4> |
4339 | 993 |
994 <P>This is a display-driver (<CODE>-vo zr</CODE>) for a number of MJPEG | |
6960 | 995 capture/playback cards (tested for DC10+ and Buz, and it should work for the |
7192 | 996 LML33 and the original DC10). The driver works by encoding the frame to jpeg |
997 and then sending it to the card. For the jpeg encoding <B>libavcodec</B> is | |
998 used, and required. With the special <I>cinerama</I> mode, you can watch | |
999 movies in true wide screen provided that you have two beamers and two | |
1000 MJPEG cards. Depending on resolution and quality settings, this driver | |
1001 may require a lot of CPU power, remember to specify <CODE>-framedrop</CODE> | |
1002 if your machine is too slow. Note: My AMD K6-2 350MHz is (with <CODE> | |
1003 -framedrop</CODE>) quite adequate for watching VCD sized material and | |
1004 downscaled movies. | |
4339 | 1005 |
1006 <P>This driver talks to the kernel driver available at | |
6960 | 1007 <A HREF="http://mjpeg.sourceforge.net">http://mjpeg.sourceforge.net</A>, so |
7192 | 1008 you must get it working first. The presence of an MJPEG card is autodetected |
1009 by the configure script, if autodetection fails, force detection with | |
1010 | |
1011 <PRE> | |
1012 ./configure --enable-zr | |
1013 </PRE> | |
1014 | |
1015 <P>The output can be controlled by several options, a long description of the | |
1016 options can be found in the man page, a short list of options can be | |
1017 viewed by running | |
1018 | |
1019 <PRE> | |
1020 mplayer -zrhelp | |
1021 </PRE> | |
1022 | |
1023 <P>Things like scaling and the OSD (on screen display) are not handled by | |
1024 this driver but can be done using the video filters. For example, | |
1025 suppose that you have a movie with a resolution of <CODE>512x272</CODE> and | |
1026 you want to view it fullscreen on your DC10+. There are three main | |
1027 possibilities, you may scale the movie to a width of <CODE>768</CODE>, | |
1028 <CODE>384</CODE> or <CODE>192</CODE>. For performance and quality reasons, | |
1029 I would choose to scale the movie to <CODE>384x204</CODE> using the fast | |
1030 bilinear software scaler. The commandline is | |
1031 | |
1032 <PRE> | |
1033 mplayer -vo zr -sws 0 -vop scale=384:204 movie.avi | |
1034 </PRE> | |
1035 | |
1036 <P>Cropping can be done by the <CODE>crop</CODE> filter and by | |
1037 this driver itself. Suppose that a movie is too wide for display on your | |
1038 Buz and that you want to use <CODE>-zrcrop</CODE> to make the movie less | |
1039 wide, the you would issue the following command | |
4339 | 1040 |
7192 | 1041 <PRE> |
1042 mplayer -vo zr -zrcrop 720x320+80+0 benhur.avi | |
1043 </PRE> | |
1044 | |
1045 if you want to use the <CODE>crop</CODE> filter, you would do | |
1046 | |
1047 <PRE> | |
1048 mplayer -vo zr -vop crop=720:320:80:0 benhur.avi | |
1049 </PRE> | |
4339 | 1050 |
7192 | 1051 <P>Extra occurances of <CODE>-zrcrop</CODE> invoke <I>cinerama</I> mode, i.e. |
1052 you can distribute the movie over several TV's or beamers to create a larger | |
1053 screen. Suppose you have two beamers. The left one is connected to your Buz | |
1054 at <CODE>/dev/video1</CODE> and the right one is connected to your DC10+ at | |
1055 <CODE>/dev/video0</CODE>. The movie has a resolution of <CODE>704x288</CODE>. | |
1056 Suppose also that you want the right beamer in black and white and that | |
1057 the right beamer should have jpeg frames at quality <CODE>10</CODE>, | |
1058 then you would issue the following command | |
1059 | |
1060 <PRE> | |
1061 mplayer -vo zr -zrdev /dev/video0 -zrcrop 352x288+352+0 -zrxdoff 0 -zrbw \ | |
1062 -zrcrop 352x288+0+0 -zrdev /dev/video1 -zrquality 10 movie.avi | |
1063 </PRE> | |
1064 | |
1065 <P>You see that the options appearing before the second <CODE>-zrcrop</CODE> | |
1066 only apply to the DC10+ and that the options after the second | |
1067 <CODE>-zrcrop</CODE> apply to the Buz. The maximum number of MJPEG cards | |
1068 participating in <I>cinerama</I> is four, so you can buid a <CODE>2x2</CODE> | |
1069 vidiwall.</P> | |
1070 | |
1071 <P>Finally an important remark: Do not start or stop XawTV on the playback | |
1072 device during playback, it will crash your computer. It is, however, fine to | |
1073 <B>FIRST</B> start XawTV, <B>THEN</B> start <B>MPlayer</B>, wait for | |
1074 <B>MPlayer</B> to finish and <B>THEN</B> stop XawTV.</P> | |
4339 | 1075 |
7047 | 1076 <H4><A NAME="dvb">2.3.1.16 DVB</A></H4> |
6729 | 1077 |
1078 <P><B>MPlayer</B> supports cards with the Siemens DVB chipset from vendors like | |
6960 | 1079 Siemens, Technotrend, Galaxis or Hauppauge. The latest DVB drivers are |
1080 available from the <A HREF="http://www.linuxtv.org">Linux TV site</A>. If you | |
1081 want to do software transcoding you should have at least a 1GHz CPU.</P> | |
6729 | 1082 |
1083 <P>Configure should detect your DVB card. If it did not, force detection with | |
1084 | |
1085 <PRE> | |
1086 ./configure --enable-dvb | |
1087 </PRE> | |
1088 | |
1089 <P>If you have ost headers at a non-standard path, set the path with</P> | |
1090 | |
1091 <PRE> | |
1092 ./configure --with-extraincdir=<DVB source directory>/ost/include | |
1093 </PRE> | |
1094 | |
1095 <P>Then compile and install as usual.</P> | |
1096 | |
7047 | 1097 <H4>USAGE</H4> |
6732
8460a77203de
DXR3 moved to video.html. TOC updated, added <CODE> where appropiate.
diego
parents:
6729
diff
changeset
|
1098 |
6729 | 1099 <P>Hardware decoding (playing standard MPEG1/2 files) can be done with this |
6960 | 1100 command:</P> |
6729 | 1101 |
1102 <PRE> | |
1103 mplayer -ao mpegpes -vo mpegpes file.mpg|vob | |
1104 </PRE> | |
1105 | |
1106 <P>Software decoding or transcoding different formats to MPEG1 can be achieved | |
6960 | 1107 using a command like this:</P> |
6729 | 1108 |
1109 <PRE> | |
1110 mplayer -ao mpegpes -vo mpegpes -vop lavc yourfile.ext | |
1111 mplayer -ao mpegpes -vo mpegpes -vop fame,expand yourfile.ext | |
1112 </PRE> | |
1113 | |
1114 <P>Note that DVB cards only support heights 288 and 576 for PAL or 240 and 480 | |
6960 | 1115 for NTSC. You <B>must</B> rescale for other heights by adding |
1116 <CODE>scale=width:height</CODE> with the width and height you want to the | |
1117 <CODE>-vop</CODE> option. DVB cards accept various widths, like 720, 704, | |
1118 640, 512, 480, 352 etc and do hardware scaling in horizontal direction, so | |
1119 you do not need to scale horizontally in most cases. For a 512x384 (aspect | |
1120 4:3) DivX try:</P> | |
6729 | 1121 |
1122 <PRE> | |
1123 mplayer -ao mpegpes -vo mpegpes -vop lavc,scale=512:576 | |
1124 </PRE> | |
1125 | |
1126 <P>If you have a widescreen movie and you do not want to scale it to full height, | |
6960 | 1127 you can use the <CODE>expand=w:h</CODE> plugin to add black bands. To view a |
1128 640x384 DivX, try:</P> | |
6729 | 1129 |
1130 <PRE> | |
1131 mplayer -ao mpegpes -vo mpegpes -vop lavc,expand=640:576 file.avi | |
1132 </PRE> | |
1133 | |
1134 <P>If your CPU is too slow for a full size 720x576 DivX, try downscaling:</P> | |
1135 | |
1136 <PRE> | |
1137 mplayer -ao mpegpes -vo mpegpes -vop lavc,scale=352:576 file.avi | |
1138 </PRE> | |
1139 | |
1140 <P>If speed does not improve, try vertical downscaling, too:</P> | |
1141 | |
1142 <PRE> | |
1143 mplayer -ao mpegpes -vo mpegpes -vop lavc,scale=352:288 file.avi | |
1144 </PRE> | |
1145 | |
1146 <P>For OSD and subtitles use the expand feature of the OSD plugin. So, instead | |
6960 | 1147 of <CODE>expand=w:h</CODE> or <CODE>expand=w:h:x:y</CODE>, use |
1148 <CODE>expand=w:h:x:y:1</CODE> (the 5th parameter <CODE>:1</CODE> at the end | |
1149 will enable OSD rendering). You may want to move the image up a bit to get a | |
1150 bigger black zone for subtitles. You may also want to move subtitles up, if | |
7076
3275af5787e0
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, slightly
diego
parents:
7061
diff
changeset
|
1151 they are outside your TV screen, use the <CODE>-subpos <0-100></CODE> switch |
6960 | 1152 to adjust this (<CODE>-subpos 80</CODE> is a good choice).</P> |
6729 | 1153 |
1154 <P>In order to play non-25fps movies on a PAL TV or with a slow CPU, add the | |
6960 | 1155 <CODE>-framedrop</CODE> option.</P> |
6729 | 1156 |
1157 <P>To keep the aspect ratio of DivX files and get the optimal scaling parameters | |
6960 | 1158 (hardware horizontal scaling and software vertical scaling while keeping the |
1159 right aspect ratio), use the new dvbscale plugin:</P> | |
6729 | 1160 |
1161 <PRE> | |
1162 for 3:4 TV: -vop lavc,expand=-1:576:-1:-1:1,scale=-1:0,dvbscale | |
1163 for 16:9 TV: -vop lavc,expand=-1:576:-1:-1:1,scale=-1:0,dvbscale=1024 | |
1164 </PRE> | |
1165 | |
7047 | 1166 <H4>FUTURE</H4> |
6732
8460a77203de
DXR3 moved to video.html. TOC updated, added <CODE> where appropiate.
diego
parents:
6729
diff
changeset
|
1167 |
6729 | 1168 <P>If you have questions or want to hear feature announcements and take part in |
6960 | 1169 discussions on this subject, join our |
1170 <A HREF="http://mplayerhq.hu/mailman/listinfo/mplayer-dvb">MPlayer-DVB</A> | |
1171 mailing list. Please remember that the list language is English.</P> | |
6729 | 1172 |
1173 <P>In the future you may expect the ability to display OSD and subtitles using | |
6960 | 1174 the native OSD feature of DVB cards, as well as more fluent playback of |
1175 non-25fps movies and realtime transcoding between MPEG2 and MPEG4 (partial | |
1176 decompression).</P> | |
6729 | 1177 |
4496 | 1178 |
7047 | 1179 <H4><A NAME="dxr3">2.3.1.17 DXR3</A></H4> |
6732
8460a77203de
DXR3 moved to video.html. TOC updated, added <CODE> where appropiate.
diego
parents:
6729
diff
changeset
|
1180 |
8460a77203de
DXR3 moved to video.html. TOC updated, added <CODE> where appropiate.
diego
parents:
6729
diff
changeset
|
1181 <P><B>MPlayer</B> supports hardware accelerated playback with the Creative DXR3 |
6960 | 1182 and Sigma Designs Hollywood Plus cards.</P> |
6732
8460a77203de
DXR3 moved to video.html. TOC updated, added <CODE> where appropiate.
diego
parents:
6729
diff
changeset
|
1183 |
6960 | 1184 <P>First of all you will need properly installed DXR3/H+ drivers, version |
1185 0.12.0 or later. You can find the drivers and installation instructions at | |
1186 the <A HREF="http://dxr3.sourceforge.net/">DXR3 & Hollywood Plus for | |
1187 Linux</A> site. Configure should detect your card automatically, compilation | |
1188 should go without any problems.</P> | |
6732
8460a77203de
DXR3 moved to video.html. TOC updated, added <CODE> where appropiate.
diego
parents:
6729
diff
changeset
|
1189 |
7099
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
1190 <H4>Usage:</H4> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
1191 <DL> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
1192 <DT><CODE>-vo dxr3:<noprebuf>:<codec>:<device></CODE></DT> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
1193 <DD>Where <CODE><noprebuf></CODE> specifies turning off prebuffering. |
6974 | 1194 This is done automatically on Athlons. If playback is out of sync try |
1195 disabling prebuffering. If noprebuf is left out prebuffering is enabled | |
1196 (except on Athlons). | |
1197 <BR> | |
1198 <CODE><codec></CODE> = fame/avcodec, avcodec produces better quality | |
1199 output, but fame is faster for those of you with slow machines. The default is | |
1200 to use libavcodec. Note that you need libavcodec properly installed (read | |
1201 DOCS/codecs.html). | |
1202 <BR> | |
1203 <CODE><device></CODE> = device number to use if you have more than one | |
1204 em8300 card. | |
1205 <BR> | |
1206 Any of these options may be left out, but they must be specified in this | |
1207 order, i.e. <CODE>dxr3:fame</CODE> works, <CODE>dxr3:1</CODE> works, but | |
7099
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
1208 <CODE>dxr3:1:avcodec</CODE> will not.</DD> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
1209 |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
1210 <DT><CODE>-ao oss:/dev/em8300_ma-X</CODE></DT> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
1211 <DD>For audio output, where <CODE>X</CODE> is the device number |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
1212 (0 if one card).</DD> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
1213 |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
1214 <DT><CODE>-ac hwac3</CODE></DT> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
1215 <DD>For digital instead of analog audio output.</DD> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
1216 |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
1217 <DT><CODE>-vc mpegpes</CODE></DT> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
1218 <DD>Force hardware acceleration, only works with MPEG1/2.</DD> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
1219 |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
1220 <DT><CODE>-aop list=resample:fout=xxxxx</CODE></DT> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
1221 <DD>If sample rate is below 44100Hz, select either 44100Hz or 48000Hz |
6974 | 1222 depending on which one matches closest. I.e. if the movie uses 22050Hz use |
1223 44100Hz as 44100 / 2 = 22050, if it is 24000Hz use 48000Hz as 48000 / 2 = 24000 | |
1224 and so on. This does not work with digital audio output | |
7099
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
1225 (<CODE>-ac hwac3</CODE>).</DD> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
1226 </DL> |
6732
8460a77203de
DXR3 moved to video.html. TOC updated, added <CODE> where appropiate.
diego
parents:
6729
diff
changeset
|
1227 |
7047 | 1228 <H4>Overlay</H4> |
6732
8460a77203de
DXR3 moved to video.html. TOC updated, added <CODE> where appropiate.
diego
parents:
6729
diff
changeset
|
1229 |
8460a77203de
DXR3 moved to video.html. TOC updated, added <CODE> where appropiate.
diego
parents:
6729
diff
changeset
|
1230 <P>To get overlay run dxr3view that comes with the em8300 package before |
6960 | 1231 starting <B>MPlayer</B>. You can set various options in dxr3view by pressing |
1232 <CODE>T</CODE> while holding the mouse cursor above the window.</P> | |
6732
8460a77203de
DXR3 moved to video.html. TOC updated, added <CODE> where appropiate.
diego
parents:
6729
diff
changeset
|
1233 |
7047 | 1234 <H4>MPEG1, MPEG2, VCD and DVD Notes</H4> |
6732
8460a77203de
DXR3 moved to video.html. TOC updated, added <CODE> where appropiate.
diego
parents:
6729
diff
changeset
|
1235 |
6960 | 1236 <P>MPEG1/2 content should now automatically be detected by <B>MPlayer</B> and |
1237 it will use the hardware acceleration of the DXR3 to play it. If not, you can | |
1238 force it to hardware acceleration with <CODE>-vc mpegpes</CODE>. Also, if you | |
1239 plan to use any postprocessing filters you must use <CODE>-vc | |
1240 mpeg12</CODE>.</P> | |
6732
8460a77203de
DXR3 moved to video.html. TOC updated, added <CODE> where appropiate.
diego
parents:
6729
diff
changeset
|
1241 |
6960 | 1242 <P>In some instances, subtitles may not appear properly in sync with the A/V |
1243 stream when using hardware decoding (<CODE>-vc mpegpes</CODE>). This is a | |
1244 known bug. The em8300 will also improperly handle subtitles that are too big, | |
1245 and may hang for a second or two. At this time, the only workaround is to use | |
6981 | 1246 <CODE>-vc mpeg12</CODE> when viewing DVDs with subtitles.</P> |
6732
8460a77203de
DXR3 moved to video.html. TOC updated, added <CODE> where appropiate.
diego
parents:
6729
diff
changeset
|
1247 |
8460a77203de
DXR3 moved to video.html. TOC updated, added <CODE> where appropiate.
diego
parents:
6729
diff
changeset
|
1248 |
7047 | 1249 <H4><A NAME="tv-out">2.3.1.A TV-out support</A></H4> |
1612 | 1250 |
6974 | 1251 |
7047 | 1252 <H5><A NAME="tv-out_matrox">2.3.1.A.1 Matrox G400 cards</A></H5> |
1612 | 1253 |
6960 | 1254 <P>Under Linux you have 2 methods to get G400 TV out working:</P> |
5116 | 1255 |
6998
83a386e88f9e
Applied patch by Andras Mohari <mayday at varoshaza . nagyatad . hu>
diego
parents:
6981
diff
changeset
|
1256 <P><B>IMPORTANT:</B> Only Matrox G400DH/G400MAX has TV-out support under Linux, others (G450, G550) have <B>not!</B></P> |
2309 | 1257 |
2486 | 1258 <UL> |
1259 <LI><B>XFree86</B>: using the driver and the HAL module, available from | |
1260 <A HREF="http://www.matrox.com">Matrox's site</A>. This will give you X on | |
1261 the TV.<BR> <B>This method doesn't give you accelerated playback</B> as | |
1262 under Windoze! The second head has only YUV framebuffer, the <I>BES</I> | |
1263 (Back End Scaler, the YUV scaler on G200/G400/G450/G550 cards) doesn't work | |
7061 | 1264 on it! The Windows driver somehow works around this, probably by using the |
2486 | 1265 3D engine to zoom, and the YUV framebuffer to display the zoomed |
2848
33c32f3d9f1f
many small updates, fixes (some/more to be completed soon)
gabucino
parents:
2747
diff
changeset
|
1266 image. If you really want to use X, use the <CODE>-vo x11 -fs -zoom</CODE> |
6599 | 1267 options, but it will be <B>SLOW</B>, and has <B>Macrovision</B> copy protection |
4177 | 1268 enabled (you can "workaround" Macrovision using |
1269 <A HREF="http://avifile.sourceforge.net/mgamacro.pl">this</A> perl | |
1270 script.</LI> | |
2486 | 1271 <LI><B>Framebuffer</B>: using the <B>matroxfb modules</B> in the 2.4 kernels. |
1272 2.2 kernels don't have the TVout feature in them, thus unusable for this. | |
3030 | 1273 You have to enable ALL matroxfb-specific feature during compilation (except |
5713 | 1274 MultiHead), and compile them into <B>modules</B>! You'll also need I2C |
1275 enabled. | |
7099
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
1276 <OL> |
2486 | 1277 <LI> |
1278 Enter <CODE>TVout/matroxset</CODE> and type <CODE>make</CODE>. Install | |
1279 <CODE>matroxset</CODE> into somewhere in your PATH.</LI> | |
1280 <LI> | |
1281 If you don't have <CODE>fbset</CODE> installed, enter | |
1282 <CODE>TVout/fbset</CODE> and type <CODE>make</CODE>. Install | |
1283 <CODE>fbset</CODE> into somewhere in your PATH.</LI> | |
1284 <LI> | |
1285 Then enter into the <CODE>TVout/</CODE> directory in the <B>MPlayer</B> | |
1286 source, and execute <CODE>./modules</CODE> as root. Your text-mode console | |
1287 will enter into framebuffer mode (no way back!).</LI> | |
1288 <LI>Next, run the <CODE>./matroxtv</CODE> script. This will present you | |
1289 to a very simple menu. Press <B>2</B> and <B>ENTER</B>. Now you should | |
1290 have the same picture on your monitor, and TV. The <B>3.</B> option | |
1291 will turn on independent display, but then you <B>can't use X</B>! If | |
6998
83a386e88f9e
Applied patch by Andras Mohari <mayday at varoshaza . nagyatad . hu>
diego
parents:
6981
diff
changeset
|
1292 the TV (PAL) picture has some weird stripes on it, the script wasn't able to |
2486 | 1293 set the resolution correctly (to 640x512 by default). Use other menu |
1294 items randomly and it'll be OK :)</LI> | |
7099
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
1295 </OL> |
2486 | 1296 |
6974 | 1297 <P>Yoh. Next task is to make the cursor on tty1 (or whatever) to disappear, |
2486 | 1298 and turn off screen blanking. Execute the following commands:</P> |
1299 | |
6974 | 1300 <P><CODE>echo -e '\033[?25l'</CODE> or <CODE>setterm -cursor off<BR> |
1301 setterm -blank 0</CODE></P> | |
2486 | 1302 |
6974 | 1303 <P>You possibly want to put the above into a script, and also clear |
6960 | 1304 the screen.. To turn the cursor back:<BR><CODE>echo -e '\033[?25h'</CODE> |
6974 | 1305 or <CODE>setterm -cursor on</CODE></P> |
2486 | 1306 |
1307 <P>Yeah kewl. Start movie playing with <CODE>mplayer -vo mga -fs -screenw 640 | |
1308 -screenh 512 <filename></CODE><BR> | |
6960 | 1309 (if you use X, now change to matroxfb with for example CTRL-ALT-F1!)<BR> |
6998
83a386e88f9e
Applied patch by Andras Mohari <mayday at varoshaza . nagyatad . hu>
diego
parents:
6981
diff
changeset
|
1310 Change 640x512 if you set the resolution to other.<BR> |
6974 | 1311 <B>Enjoy the ultra-fast ultra-featured Matrox TV output (better than Xv)!</B></P> |
2486 | 1312 </LI> |
1313 </UL> | |
2309 | 1314 |
1315 | |
7047 | 1316 <H5><A NAME="tv-out_ati">2.3.1.A.2 ATI cards</A></H5> |
2206 | 1317 |
7047 | 1318 <H5>PREAMBLE</H5> |
1319 | |
1320 <P>Currently ATI doesn't want to support any of its TV-out chips under Linux, | |
6960 | 1321 because of their licensed Macrovision technology.</P> |
6583 | 1322 |
7047 | 1323 <H5>ATI CARDS TV-OUT STATUS ON LINUX</H5> |
2206 | 1324 |
6435
d0d74f9d8d4a
Background now set by CSS, added doctype and charset.
diego
parents:
6393
diff
changeset
|
1325 <UL> |
6960 | 1326 <LI><B>ATI Mach64</B>: supported by |
1327 <A HREF="http://gatos.sf.net">gatos</A>.</LI> | |
1328 <LI><B>ASIC Radeon VIVO</B>: supported by | |
1329 <A HREF="http://gatos.sf.net">gatos</A>.</LI> | |
1330 <LI><B>Radeon</B> and <B>Rage128</B>: supported by <B>MPlayer</B>! | |
6998
83a386e88f9e
Applied patch by Andras Mohari <mayday at varoshaza . nagyatad . hu>
diego
parents:
6981
diff
changeset
|
1331 Check <a href="#vesa">VESA driver</a> and <A HREF="#vidix">VIDIX</A> |
6960 | 1332 sections.</LI> |
6435
d0d74f9d8d4a
Background now set by CSS, added doctype and charset.
diego
parents:
6393
diff
changeset
|
1333 </UL> |
2206 | 1334 |
6974 | 1335 <P>On other cards, just use the <a href="#vesa">VESA driver</a>, without |
1336 VIDIX. Powerful CPU is needed, though.</P> | |
2206 | 1337 |
6583 | 1338 <P>Only thing you need to do - <B>have TV connector plugged in before |
1339 booting your PC</B> since video BIOS initializes itself only once during | |
6974 | 1340 POST procedure.</P> |
2206 | 1341 |
2472
487f5bbb38ae
link to tomi ollila's voodoo3 tvout text. if he has interest to integrate
gabucino
parents:
2471
diff
changeset
|
1342 |
7047 | 1343 <H5><A NAME="tv-out_voodoo">2.3.1.A.3 Voodoo 3</A></H5> |
2472
487f5bbb38ae
link to tomi ollila's voodoo3 tvout text. if he has interest to integrate
gabucino
parents:
2471
diff
changeset
|
1344 |
6974 | 1345 <P>Check <A HREF="http://www.iki.fi/too/tvout-voodoo3-3000-xfree">this URL</A>.</P> |
2472
487f5bbb38ae
link to tomi ollila's voodoo3 tvout text. if he has interest to integrate
gabucino
parents:
2471
diff
changeset
|
1346 |
1612 | 1347 </BODY> |
1348 </HTML> |