comparison DOCS/VIDEOCARDS @ 430:2ed825f69e25

added DGA vidmode changin' stuff (but I still don't understand it, and it doesn't work right now;), and new section: Not really acceleration, but...
author gabucino
date Sun, 15 Apr 2001 11:48:21 +0000
parents f5b9be0426c9
children e00f2982bc54
comparison
equal deleted inserted replaced
429:2e0ed0c3bbdc 430:2ed825f69e25
10 I. The Xv (XVideo) extension of XFree86 4.0.2 10 I. The Xv (XVideo) extension of XFree86 4.0.2
11 II. OpenGL drivers with glTexSubImage() support (currently the Utah-GLX 11 II. OpenGL drivers with glTexSubImage() support (currently the Utah-GLX
12 drivers) 12 drivers)
13 III. Native card-specific drivers, using special abilities of some cards 13 III. Native card-specific drivers, using special abilities of some cards
14 IV. DGA - direct graphic access. no YUV & scaling, but faster than raw X11 14 IV. DGA - direct graphic access. no YUV & scaling, but faster than raw X11
15 V. Not really acceleration, but...
15 16
16 Now, let's see them in details: 17 Now, let's see them in details:
17 18
18 I. Under XFree86 4.0.2 or newer, using the XVideo extension: 19 I. Under XFree86 4.0.2 or newer, using the XVideo extension:
19 this is what the option '-vo xv' uses. 20 this is what the option '-vo xv' uses.
112 IV. If your card lacks hardware acceleration, you can still boost your fps by 113 IV. If your card lacks hardware acceleration, you can still boost your fps by
113 using the DGA driver: 114 using the DGA driver:
114 115
115 1. Make sure X loads the DGA extension: 116 1. Make sure X loads the DGA extension:
116 (II) Loading extension XFree86-DGA 117 (II) Loading extension XFree86-DGA
118 (you see, XFree86 4.0.x or greater is VERY RECOMMENDED!)
117 2. MPlayer's DGA driver is autodetected on ./configure, or you can force it 119 2. MPlayer's DGA driver is autodetected on ./configure, or you can force it
118 with --enable-dga. 120 with --enable-dga.
119 3. Be sure to use 24/32bpp mode, since there is no converter right now.. :( 121 3. If the driver couldn't switch to a smaller resolution, experiment with
122 switches -vm (only with X 3.0.x), -fs, -bpp, -zoom to find a video mode that
123 the movie fits in. There is no converter right now.. :(
120 4. Install MPlayer SUID root. 124 4. Install MPlayer SUID root.
121 'chown root /usr/local/bin/mplayer' 125 'chown root /usr/local/bin/mplayer'
122 'chmod 750 /usr/local/bin/mplayer' 126 'chmod 750 /usr/local/bin/mplayer'
123 'chmod +s /usr/local/bin/mplayer' 127 'chmod +s /usr/local/bin/mplayer'
124 Now it works as a simple user, too. 128 Now it works as a simple user, too.
125 !!!! BUT STAY TUNED !!!! 129 !!!! BUT STAY TUNED !!!!
126 This is a BIG security risk! Never do this on a server or on a computer 130 This is a BIG security risk! Never do this on a server or on a computer
127 can be accessed by more people than only you because they can gain root 131 can be accessed by more people than only you because they can gain root
128 privilegies through suid root mplayer. 132 privilegies through suid root mplayer.
129 !!!! SO YOU HAVE BEEN WARNED ... !!!! 133 !!!! SO YOU HAVE BEEN WARNED ... !!!!
130
131 5. Use '-vo dga' option, and there you go! (hope so:) 134 5. Use '-vo dga' option, and there you go! (hope so:)
132 135
133 If you have fast enough CPU (P3 800 for example) you can try fsdga for 136 If you have fast enough CPU (P3 800 for example) you can try fsdga for
134 fullscreen mpeg playing (using software YUV->RGB scaling): 137 fullscreen mpeg playing (using software YUV->RGB scaling):
135 mplayer -vo fsdga ... 138 mplayer -vo fsdga ...
136 139
137 140
141 V. Not really acceleration, but...
142
143 a, If you don't have X...
144 ...use the SVGAlib target! Be sure not to use the -fs switch, since it
145 toggles the usage of the software scaler, and it's SLOOOW now, unless you
146 have a real fast CPU (and/or MTRR?). :(
147
148 Of course you'll have to install svgalib and its development package in
149 order for MPlayer build its SVGAlib driver (autodetected, but can be
150 forced), and don't forget to edit /etc/vga/libvga.config to suit your
151 card & monitor.
152
153
154 b, You want to use framebuffer...
155 ... Use --enable-fbdev switch of ./configure and the FBdev target will be
156 built (don't forget to 'make distclean' first!). Yet another "don't forget" :
157 read the framebuffer documentation in the kernel sources
158 (Documentation/fb/*) !
159
160 ... but don't your card doesn't support VBE 2.0 standard (older ISA/PCI
161 cards, such as S3 Trio64) :
162 Well, VESAfb is still available, but you'll have to load SciTech Display
163 Doctor (formerly UniVBE) before booting Linux. Use a DOS boot disk or
164 whatever. And don't forget to register your UniVBE ;))
165
166
138 167
139 Gabucino & A'rpi 168 Gabucino & A'rpi
140 169