annotate DOCS/video.html @ 6960:87deea511b1f

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