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