annotate DOCS/Hungarian/video.html @ 1664:69d305d84d55

directshow uninit
author arpi
date Thu, 23 Aug 2001 15:56:26 +0000
parents 2eedc348e92a
children a5cb1b1d47a8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1624
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
1 <HTML>
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
2
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
3 <BODY>
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
4
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
5 <PRE>
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
6
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
7 <A NAME=2.2.1>2.2.1. Video kimeneti eszközök
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
8
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
9 Általános:
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
10 - x11: X11, opcionálisan az SHM kiterjesztéssel
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
11 - xv: X11 az XVideo kiterjesztés overlay-eivel (hardware támogatás)
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
12 - gl: OpenGL renderelő, egyelőre csak ezekkel megy:
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
13 - bármely kártyával, Utah-GLX-szel
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
14 - Matrox kártyák + X/DRI >=4.0.3
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
15 - Radeon + X/DRI CVS
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
16 - dga: X11 a DGA kiterjesztéssel
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
17 - fbdev:Megjelenítés általános framebuffereken
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
18 - svga: Megjelenítés SVGAlib-bel
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
19 - sdl: 1.1.7 : software scaling
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
20 1.1.8 : támogatja a hardware-es gyorsítást XVideo-n keresztül
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
21 1.2.0 : aalib támogatás (használd inkább a -vo aa opciót!)
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
22 - ggi: SDL-hez hasonló
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
23 - aa: szöveges módú megjelenítés AAlib-bel
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
24
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
25 Kártyaspecifikus:
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
26 - mga: Matrox G200/G400 hardware-es YUV overlay az mga_vid-en keresztül
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
27 - xmga: Matrox G200/G400 overlay (mga_vid) X11 ablakban
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
28 (Xv emuláció 3.3.x-es X-szel!)
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
29 - syncfb: Matrox G400 YUV támogatás framebufferen (régi, használj mga/xmga-t)
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
30 - 3dfx: Voodoo2/3 hardware YUV (/dev/3dfx) támogatás (nincs tesztelve!)
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
31
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
32 Egyéb:
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
33 - png: output PNG file-okba (-z kapcsoló a tömörítés mértékét állítja)
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
34 - pgm: output PGM file-okba (tesztelésre, vagy ffmpeg enkódoláshoz)
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
35 - md5: MD5sum támogatás (MPEG konformancia tesztekhez)
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
36 - odivx:OpenDivX AVI file output (-br a bitrate-et állítja)
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
37 - null: output a nagy semmibe (sebességtesztekhez)
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
38
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
39
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
40 <A NAME=2.2.1.1>2.2.1.1. MTRR
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
41
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
42 Nagyon ajánlott az MTRR helyes beállítása, mert minden esetben
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
43 sebességnövekedést eredményez. Először a báziscímet kell megkeresni.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
44 Erre van 3 módszer :
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
45
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
46 - az X11 induló üzeneteiből, például :
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
47
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
48 (--) SVGA: PCI: Matrox MGA G400 AGP rev 4, Memory @ 0xd8000000, 0xd4000000
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
49 (--) SVGA: Linear framebuffer at 0xD8000000
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
50
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
51 - a /proc/pci-ből (használd az lspci -v parancsot):
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
52
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
53 01:00.0 VGA compatible controller: Matrox Graphics, Inc.: Unknown device 0525
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
54 Memory at d8000000 (32-bit, prefetchable)
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
55
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
56 - az mga_vid kernel meghajtó üzeneteiből (dmesg parancs):
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
57
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
58 mga_mem_base = d8000000
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
59
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
60 Ezután kell a memória mérete is. Csak át kell konvertálni a video ram
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
61 méretét hexadecimálisba, pl így :
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
62
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
63
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
64 1 MB 0x100000
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
65 2 MB 0x200000
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
66 4 MB 0x400000
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
67 8 MB 0x800000
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
68 16 MB 0x1000000
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
69 32 MB 0x2000000
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
70
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
71
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
72 Már tudjuk a címet és a méretet, már csak a beállítás hiányzik!
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
73 Például a fenti Matrox kártyához (base=0xd8000000), 32mega memóriával
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
74 (size=0x2000000) ezt kell beírni:
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
75
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
76
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
77 echo "base=0xd8000000 size=0x2000000 type=write-combining" >| /proc/mtrr
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
78
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
79
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
80 Nem minden CPU támogatja az MTRR-eket. Például régebbi K6/2-k (266Mhz
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
81 körül, stepping 0) nem, de stepping 12-esek igen (cat /proc/cpuinfo
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
82 megadja a stepping értékét).
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
83
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
84
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
85 <A NAME=2.2.1.2>2.2.1.2. Xv
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
86
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
87 XFree86 4.0.2 vagy újabb alatt használhatod a kártyád hardware-es YUV
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
88 rutinjait, az XVideo kiterjesztéssel. Ezt használja a '-vo xv' opció.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
89 Hogy működjön, a következő feltételeknek kell teljesülniük :
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
90 - XFree86 4.0.2 vagy újabb kell (előző verziókban nincs XVideo)
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
91 - A kártyádnak tudnia kell hardware-es gyorsítást (a mai kártyák tudják)
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
92 - Az X-nek be kell töltenie az XVideo kiterjesztést, valahogy így néz ki:
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
93
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
94
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
95 (II) Loading extension XVideo
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
96
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
97
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
98 a /var/log/XFree86.0.log file-ban.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
99
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
100
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
101 MEGJ : ez csak az XFree86 kiterjesztését tölti be. Egy rendes installban
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
102 ez az alap, és nem azt jelenti, hogy a _kártyád_ XVideo támogatása
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
103 töltődött be!
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
104
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
105 - A kártyád Linuxos drivere támogatja-e az Xv-t. Ezt az 'xvinfo'-val lehet
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
106 megnezni, ez pedig az XFree86 disztribúció része. Egy hosszú szöveget
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
107 kell hogy kiírjon, hasonlót ehhez:
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
108
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
109
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
110 X-Video Extension version 2.2
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
111 screen #0
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
112 Adaptor #0: "Savage Streams Engine"
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
113 number of ports: 1
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
114 port base: 43
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
115 operations supported: PutImage
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
116 supported visuals:
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
117 depth 16, visualID 0x22
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
118 depth 16, visualID 0x23
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
119 number of attributes: 5
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
120 (...)
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
121 Number of image formats: 7
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
122 id: 0x32595559 (YUY2)
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
123 guid: 59555932-0000-0010-8000-00aa00389b71
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
124 bits per pixel: 16
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
125 number of planes: 1
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
126 type: YUV (packed)
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
127 id: 0x32315659 (YV12)
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
128 guid: 59563132-0000-0010-8000-00aa00389b71
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
129 bits per pixel: 12
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
130 number of planes: 3
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
131 type: YUV (planar)
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
132 (...etc...)
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
133
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
134
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
135 Támogatnia kell a YUY2 packed, YV12 planar pixelformátumokat, hogy
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
136 használható legyen az <B>MPlayer</B>-rel.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
137
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
138 - És végül, hogy az <B>MPlayer</B> tartalmazza-e az 'xv' támogatást.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
139 ./configure kiírja.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
140
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
141
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
142 <A NAME=2.2.1.2.1>2.2.1.2.1. 3dfx kártyák
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
143
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
144 Régebbi 3dfx meghajtóknak problémái vannak az XVideo gyorsítással,
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
145 nem támogatták a YUY2-t vagy YV12-t, ésígytovább. Ellenőrizd hogy az
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
146 XFree86-od verziója 4.1.0 vagy újabb-e, azok már jók.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
147 Ha furcsa effekteket észlelsz -vo xv-vel, próbáld ki az SDL meghajtót
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
148 (annak is van XVideo támogatása), az segíthet. Nézd meg a <A HREF="#2.2.1.4">2.2.1.4-es</A>
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
149 fejezetet a részletekhez.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
150
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
151
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
152 <A NAME=2.2.1.2.2>2.2.1.2.2. S3 kártyák
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
153
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
154 S3 Savage3D-knek működniük kell, de Savage4-hez 4.0.3-as de inkább újabb
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
155 XFree86 kell. S3 Virge-re vonatkozólag.. add el.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
156
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
157
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
158 <A NAME=2.2.1.2.3>2.2.1.2.3. nVidia kártyák
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
159
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
160 nVidia nem túl jó választás Linux alá.. A bináris nVidia meghajtót kell
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
161 használnod, ami az nVidia honlapjáról tölthető le. A szabvány X
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
162 meghajtó nem tartalmaz XVideo támogatást ezekhez a kártyákhoz, mivel
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
163 az nVidia nem adja ki a specifikációikat.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
164
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
165 - Riva128-as kártyáknak még az nVidia meghajtóval se lesz XVideo-juk :(
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
166 Panaszkodj az nVidiának.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
167
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
168
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
169 <A NAME=2.2.1.2.4>2.2.1.2.4. ATI kártyák
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
170
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
171 A GATOS meghajtó alapállapotban bekapcsolt VSYNC-et tartalmaz. Ez azt
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
172 jelenti, hogy a dekódolási sebesség (!) hozzá van szinkronizálva a monitor
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
173 frissítési frekvenciájához. Ha a lejátszás lassúnak tűnik, próbáld meg
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
174 valahogy kikapcsolni a VSYNC-et, vagy állítsd a képfrissítést n*(a film
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
175 fps-e) Hz-re.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
176
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
177
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
178 <A NAME=2.2.1.3>2.2.1.3. DGA
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
179
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
180 <A NAME=2.2.1.3.1>2.2.1.3.1. Előszó
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
181
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
182 Ez a dokumentum néhány szóban elmagyarázza, hogy általában véve mi is az a
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
183 DGA, és mit tud az MPlayerben (és mit nem).
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
184
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
185
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
186 <A NAME=2.2.1.3.2>2.2.1.3.2. Mi az a DGA ?
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
187
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
188 A DGA szó a Direct Graphics Access rövidítése, és egy olyan módszert takar,
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
189 amivel a program az X szerver kikerülésével közvetlenül írhat a framebuffer
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
190 memóriába. Szaknyelven szólva ez a framebuffer memóriának a processz
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
191 területére történő lapozásával történik. Ezt a kernel csak root jogosultsággal
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
192 engedi. Ez történhet root-ként történő bejelentkezéssel, vagy a suid bit
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
193 beállításával az mplayer programon (NEM ajánlott!).
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
194
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
195 A DGA-nak két verziója van: a DGA1-et az XFree 3.X.X használja, a DGA2
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
196 pedig az XFree 4.0.1 óta létezik.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
197
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
198 A DGA1 csak a fent leírt közvetlen hozzáférést nyújtja. A felbontásváltáshoz
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
199 itt szükség van az XVidMode kiterjesztésre.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
200
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
201 A DGA2 tartalmazza az XVidMode tudását, továbbá engedélyezi a színmélység
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
202 megváltoztatását. Így lehetséges, hogy egy 32 bites mélységű X szervert
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
203 átváltsunk 15 bitesbe, vagy fordítva.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
204
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
205 A DGA-nak van néhány hátránya. Valamelyest függ a grafikus chiptől és ennek
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
206 X-es driverétől, ezért nem minden rendszeren működik ...
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
207
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
208
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
209 <A NAME=2.2.1.3.3>2.2.1.3.3. DGA támogatás telepítése <B>MPlayer</B>-be
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
210
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
211 Először bizonyosodj meg arról, hogy az X betölti-e a DGA kiterjesztést, lásd
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
212 /var/log/XFree86.0.log :
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
213
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
214
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
215 (II) Loading extension XFree86-DGA
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
216
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
217
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
218 Amint látod, XFree86 4.0.x vagy újabb, NAGYON AJÁNLOTT!
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
219 Az <B>MPlayer</B> DGA meghajtója ./configure közben automatikusan
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
220 detektálódik, de az --enable-dga opcióval megerősítheted.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
221
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
222 Ha a meghajtó
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
223 If the driver couldn't switch to a smaller resolution, experiment with
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
224 switches -vm (only with X 3.3.x), -fs, -bpp, -zoom to find a video mode that
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
225 the movie fits in. There is no converter right now.. :(
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
226
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
227 Become ROOT. DGA needs root access to be able to write directly video memory.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
228 If you want to run it as user, then install <B>MPlayer</B> SUID root:
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
229
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
230
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
231 chown root /usr/local/bin/mplayer
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
232 chmod 750 /usr/local/bin/mplayer
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
233 chmod +s /usr/local/bin/mplayer
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
234
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
235
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
236 Now it works as a simple user, too.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
237
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
238
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
239 !!!! BUT STAY TUNED !!!!
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
240 This is a BIG security risk! Never do this on a server or on a computer
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
241 can be accessed by more people than only you because they can gain root
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
242 privilegies through suid root mplayer.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
243 !!!! SO YOU HAVE BEEN WARNED ... !!!!
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
244
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
245
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
246 Now use '-vo dga' option, and there you go! (hope so:)
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
247 You should also try if the '-vo sdl:dga' option works for you! It's much
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
248 faster!!!
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
249
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
250
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
251 <A NAME=2.2.1.3.4>2.2.1.3.4. Resolution switching
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
252
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
253 The DGA driver allows for switching the resolution of the output signal.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
254 This avoids the need for doing (slow) software scaling and at the same
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
255 time provides a fullscreen image. Ideally it would switch to the exact
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
256 resolution (except for honouring aspect ratio) of the video data, but the
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
257 XServer only allows switching to resolutions predefined in
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
258 /etc/X11/XF86Config (/etc/X11/XF86Config-4 for XFree 4.0.X respectively).
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
259 Those are defined by so-called modelines and depend on the capabilites
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
260 of your video hardware. The XServer scans this config file on startup and
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
261 disables the modelines not suitable for your hardware. You can find
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
262 out which modes survive with the X11 log file. It can be found at:
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
263 /var/log/XFree86.0.log
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
264 See appendix A for some sample modeline definitions.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
265
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
266
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
267 <A NAME=2.2.1.3.5>2.2.1.3.5. DGA & <B>MPlayer</B>
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
268
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
269 DGA is used in two places with <B>MPlayer</B>: The SDL driver can be made to make
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
270 use of it (-vo sdl:dga) and within the DGA driver (-vo dga).
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
271 The above said is true for both; in the following sections I'll explain
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
272 how the DGA driver for <B>MPlayer</B> works.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
273
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
274
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
275 <A NAME=2.2.1.3.6>2.2.1.3.6. Features of the DGA driver
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
276
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
277 The DGA driver is invoked by specifying -vo dga at the command line.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
278 The default behaviour is to switch to a resolution matching the original
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
279 resolution of the video as close as possible. It deliberately ignores the
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
280 -vm and -fs switches (enabling of video mode switching and fullscreen) -
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
281 it always tries to cover as much area of your screen as possible by switching
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
282 the video mode, thus refraining to use a single additional cycle of your CPU
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
283 to scale the image.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
284 If you don't like the mode it chooses you may force it to choose the mode
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
285 matching closest the resolution you specify by -x and -y.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
286 By providing the -v option, the DGA driver will print, among a lot of other
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
287 things, a list of all resolutions supported by your current XF86-Config
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
288 file.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
289 Having DGA2 you may also force it to use a certain depth by using the -bpp
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
290 option. Valid depths are 15, 16, 24 and 32. It depends on your hardware
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
291 whether these depths are natively supported or if a (possibly slow)
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
292 conversion has to be done.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
293
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
294 If you should be lucky enough to have enough offscreen memory left to
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
295 put a whole image there, the DGA driver will use doublebuffering, which
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
296 results in much smoother movie replaying. It will tell you whether double-
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
297 buffering is enabled or not.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
298
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
299 Doublebuffering means that the next frame of your video is being drawn in
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
300 some offscreen memory while the current frame is being displayed. When the
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
301 next frame is ready, the graphics chip is just told the location in memory
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
302 of the new frame and simply fetches the data to be displayed from there.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
303 In the meantime the other buffer in memory will be filled again with new
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
304 video data.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
305
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
306 Doublebuffering may be switched on by using the option -double and may be
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
307 disabled with -nodouble. Current default option is to disable
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
308 doublebuffering. When using the DGA driver, onscreen display (OSD) only
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
309 works with doublebuffering enabled. However, enabling doublebuffering may
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
310 result in a big speed penalty (on my K6-II+ 525 it used an additional 20% of
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
311 CPU time!) depending on the implementation of DGA for your hardware.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
312
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
313
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
314 <A NAME=2.2.1.3.7>2.2.1.3.7. Speed issues
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
315
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
316 Generally spoken, DGA framebuffer access should be at least as fast as using
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
317 the X11 driver with the additional benefit of getting a fullscreen image.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
318 The percentage speed values printed by mplayer have to be interpreted with
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
319 some care, as for example, with the X11 driver they do not include the time
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
320 used by the X-Server needed for the actual drawing. Hook a terminal to a
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
321 serial line of your box and start top to see what is really going on in your
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
322 box ...
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
323
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
324 Generally spoken, the speedup done by using DGA against 'normal' use of X11
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
325 highly depends on your graphics card and how well the X-Server module for it
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
326 is optimized.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
327
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
328 If you have a slow system, better use 15 or 16bit depth since they require
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
329 only half the memory bandwidth of a 32 bit display.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
330
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
331 Using a depth of 24bit is even a good idea if your card natively just supports
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
332 32 bit depth since it transfers 25% less data compared to the 32/32 mode.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
333
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
334 I've seen some avi files already be replayed on a Pentium MMX 266. AMD K6-2
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
335 CPUs might work at 400 MHZ and above.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
336
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
337
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
338 <A NAME=2.2.1.3.8>2.2.1.3.8. Known bugs
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
339
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
340 Well, according to some developpers of XFree, DGA is quite a beast. They
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
341 tell you better not to use it. Its implementation is not always flawless
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
342 with every chipset driver for XFree out there.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
343
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
344 o with XFree 4.0.3 and nv.o there is a bug resulting in strange colors
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
345 o ATI driver requires to switch mode back more than once after finishing
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
346 using of DGA
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
347 o some drivers simply fail to switch back to normal resolution (use
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
348 Ctrl-Alt-Keypad +, - to switch back manually)
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
349 o some drivers simply display strange colors
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
350 o some drivers lie about the amount of memory they map into the process's
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
351 address space, thus vo_dga won't use doublebuffering (SIS?)
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
352 o some drivers seem to fail to report even a single valid mode. In this
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
353 case the DGA driver will crash telling you about a nonsense mode of
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
354 100000x100000 or the like ...
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
355 o OSD only works with doublebuffering enabled
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
356
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
357
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
358 <A NAME=2.2.1.3.9>2.2.1.3.9. Future work
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
359
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
360 o use of the new X11 render interface for OSD
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
361 o where is my TODO list ???? :-(((
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
362
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
363
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
364 <A NAME=2.2.1.3.A>2.2.1.3.A. Some modelines
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
365
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
366 Section "Modes"
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
367 Identifier "Modes[0]"
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
368 Modeline "800x600" 40 800 840 968 1056 600 601 605 628
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
369 Modeline "712x600" 35.0 712 740 850 900 400 410 412 425
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
370 Modeline "640x480" 25.175 640 664 760 800 480 491 493 525
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
371 Modeline "400x300" 20 400 416 480 528 300 301 303 314 Doublescan
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
372 Modeline "352x288" 25.10 352 368 416 432 288 296 290 310
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
373 Modeline "352x240" 15.750 352 368 416 432 240 244 246 262 Doublescan
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
374 Modeline "320x240" 12.588 320 336 384 400 240 245 246 262 Doublescan
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
375 EndSection
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
376
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
377
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
378 These entries work fine with my Riva128 chip, using nv.o XServer driver
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
379 module.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
380
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
381
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
382 <A NAME=2.2.1.3.B>2.2.1.3.B. Bug Reports
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
383
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
384 If you experience troubles with the DGA driver please feel free to file
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
385 a bug report to me (e-mail address below). Please start mplayer with the
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
386 -v option and include all lines in the bug report that start with vo_dga:
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
387
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
388 Please do also include the version of X11 you are using, the graphics card
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
389 and your CPU type. The X11 driver module (defined in XF86-Config) might
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
390 also help. Thanks!
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
391
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
392
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
393 Acki (acki@acki-netz.de, www.acki-netz.de)
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
394
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
395
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
396 <A NAME=2.2.1.4>2.2.1.4. SDL
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
397
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
398 Here are some notes about SDL out in <B>MPlayer</B>.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
399
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
400 There are several commandline switches for SDL:
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
401
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
402 -vo sdl:name specifies sdl video driver to use (ie. aalib,
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
403 dga, x11)
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
404 -ao sdl:name specifies sdl audio driver to use (ie. dsp,
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
405 esd, arts)
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
406 -noxv disables Xvideo hardware acceleration
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
407 -forcexv tries to force Xvideo acceleration
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
408
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
409 SDL Keys:
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
410
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
411 F toggles fullscreen/windowed mode
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
412 C cycles available fullscreen modes
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
413 W/S mappings for * and / (mixer control)
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
414
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
415 KNOWN BUGS:
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
416 - Keys pressed under sdl:aalib console driver repeat forever. (use -vo aa !)
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
417 It's bug in SDL, I can't change it (tested with SDL 1.2.1).
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
418
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
419
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
420 <A NAME=2.2.1.5>2.2.1.5. SVGAlib
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
421
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
422 If you don't have X, you can use the SVGAlib target! Be sure not to use the
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
423 -fs switch, since it toggles the usage of the software scaler, and it's
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
424 SLOOOW now, unless you have a real fast CPU (and/or MTRR?). :(
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
425
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
426 Of course you'll have to install svgalib and its development package in
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
427 order for <B>MPlayer</B> build its SVGAlib driver (autodetected, but can be
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
428 forced), and don't forget to edit /etc/vga/libvga.config to suit your
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
429 card & monitor.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
430
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
431
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
432 <A NAME=2.2.1.6>2.2.1.6. Framebuffer output (FBdev)
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
433
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
434 Whether to build the FBdev target is autodetected during ./configure .
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
435 Read the framebuffer documentation in the kernel sources
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
436 (Documentation/fb/*) for info on how to enable it, etc.. !
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
437
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
438 If your card doesn't support VBE 2.0 standard (older ISA/PCI
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
439 cards, such as S3 Trio64), only VBE 1.2 (or older?) :
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
440 Well, VESAfb is still available, but you'll have to load SciTech Display
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
441 Doctor (formerly UniVBE) before booting Linux. Use a DOS boot disk or
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
442 whatever. And don't forget to register your UniVBE ;))
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
443
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
444 The FBdev output takes some additional parameters above the others:
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
445
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
446 -fb specify the framebuffer device to use (/dev/fd0)
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
447 -fbmode mode name to use (according to /etc/fb.modes)
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
448 -fbmodeconfig config file of modes (default /etc/fb.modes)
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
449 monitor_hfreq
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
450 monitor_vfreq IMPORTANT values, see example.conf
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
451 monitor_dotclock
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
452
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
453 If you want to change to a specific mode, then use
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
454
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
455 mplayer -vm -fbmode (NameOfMode) filename
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
456
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
457 -vm alone will choose the most suitable mode from /etc/fb.modes . Can be
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
458 used together with -x and -y options too. The -flip option is supported only
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
459 if the movie's pixel format matches the video mode's pixel format.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
460 Pay attention to the bpp value, fbdev driver tries to use the current,
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
461 or if you specify the -bpp option, then that.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
462 -zoom option isn't supported (software scaling is slow). -fs option
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
463 isn't supported. You can't use 8bpp (or less) modes.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
464
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
465 NOTE: FBdev video mode changing _does not work_ with the VESA framebuffer,
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
466 and don't ask for it, since it's not an <B>MPlayer</B> limitation.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
467
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
468
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
469 <A NAME=2.2.1.7>2.2.1.7. Matrox framebuffer (mga_vid)
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
470
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
471 This section is about the Matrox G200/G400/G450 BES (Back-End Scaler)
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
472 support, the mga_vid kernel driver. It's active developed by me (A'rpi), and
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
473 it has hardware VSYNC support with triple buffering. It works on both
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
474 framebuffer console and under X.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
475
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
476 To use it, you first have to compile mga_vid.o :
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
477
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
478
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
479 cd drivers
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
480 make
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
481
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
482
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
483 Then create /dev/mga_vid device :
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
484
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
485
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
486 mknod /dev/mga_vid c 178 0
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
487
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
488
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
489 and load the driver with
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
490
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
491
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
492 insmod mga_vid.o
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
493
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
494
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
495 You should verify the memory size detection using the 'dmesg' command. If
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
496 it's bad, use the mga_ram_size option (rmmod mga_vid first), specify card's
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
497 memory size in MB:
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
498
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
499
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
500 insmod mga_vid.o mga_ram_size=16
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
501
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
502
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
503 To make it load/unload automatically when needed, insert the following line
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
504 at the end of /etc/modules.conf :
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
505
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
506
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
507 alias char-major-178 mga_vid
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
508
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
509
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
510 Then run
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
511
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
512
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
513 depmod -a
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
514
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
515
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
516 Now you have to (re)compile <B>MPlayer</B>, ./configure will detect /dev/mga_vid
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
517 and build the 'mga' driver. Using it from <B>MPlayer</B> goes by '-vo mga' if
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
518 you have matroxfb console, or '-vo xmga' under XFree86 3.x.x or 4.x.x .
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
519
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
520 Note: '-vo xmga' works under XFree86 4.x.x, but it conflicts with the Xv
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
521 driver, so avoid using both. If you messed up Xv with mga, try running
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
522 <B>MPlayer</B> with '-vo mga' . It should fix Xv.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
523
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
524
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
525 <A NAME=2.2.1.8>2.2.1.8. SiS 6326 framebuffer (sis_vid)
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
526
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
527 SiS 6326 YUV Framebuffer driver -> sis_vid kernel driver
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
528
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
529 Its interface should be compatible with the mga_vid, but the driver was not
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
530 updated after the mga_vid changes, so it's outdated now. Volunteers
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
531 needed to test it and bring the code up-to-date.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
532
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
533
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
534 <A NAME=2.2.1.9>2.2.1.9. 3dfx YUV support
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
535
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
536 3dfx has native YUV+scaler support, using /dev/3dfx (tdfx.o driver?)
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
537 The /dev/3dfx kernel driver exists only for 2.2.x kernels, for use with
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
538 Glide 2.x Linux ports. It's not tested with <B>MPlayer</B>, and so no more
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
539 supported. Volunteers needed to test it and bring the code up-to-date.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
540
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
541
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
542 <A NAME=2.2.1.10>2.2.1.10. OpenGL output
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
543
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
544 <B>MPlayer</B> support displaying movies using OpenGL. Unfortunately, not all
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
545 drivers support this ability. For example the Utah-GLX drivers
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
546 (for XFree86 3.3.6) have it, with all cards.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
547 See <A HREF="http://utah-glx.sourceforge.net">http://utah-glx.sourceforge.net</A> for details about how to install it.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
548
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
549 XFree86(DRI) >= 4.0.3 supports it only with Matrox, and Radeon cards.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
550 See <A HREF="http://dri.sourceforge.net">http://dri.sourceforge.net</A> for download, and installation instructions.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
551
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
552
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
553 <A NAME=2.2.1.11>2.2.1.11. AAlib - text mode displaying
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
554
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
555 <B>AAlib</B> is a library for displaying graphics in text mode, using powerful
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
556 ASCII renderer. There are LOTS of programs already supporting it, like Doom,
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
557 Quake, etc. MPlayer contains a very usable driver for it.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
558 If ./configure detects aalib installed, the aalib libvo driver will be built.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
559
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
560 You can use some keys in the AA Window to change rendering options:
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
561 1 : decrease contrast
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
562 2 : increase contrast
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
563 3 : decrease brightness
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
564 4 : increase brightness
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
565 5 : switch fast rendering on/off
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
566 6 : set dithering mode (none, error distribution, floyd steinberg)
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
567 7 : invert image
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
568 a : toggles between aa and mplayer control)
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
569
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
570
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
571
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
572 The following command line options can be used:
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
573 -aaosdcolor=V : change osd color
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
574 -aasubcolor=V : change subtitle color
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
575 where V can be: (0/normal, 1/dark, 2/bold, 3/boldfont, 4/reverse, 5/special)
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
576
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
577 AAlib itselves provides a large sum of options.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
578 Here are some important:
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
579 -aadriver : set recommended aa driver (X11, curses, linux)
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
580 -aaextended : use all 256 characters
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
581 -aaeight : use eight bit ascii
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
582 -aahelp : prints out all aalib options
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
583
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
584
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
585
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
586
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
587
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
588 NOTE: the rendering is very CPU intensive, especially when using AA-on-X
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
589 (using aalib on X), and it's least CPU intensive on standard,
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
590 non-framebuffer console. Use SVGATextMode to set up a big textmode,
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
591 then enjoy! (secondary head Hercules cards rock :)) (anyone can enhance
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
592 fbdev to do conversion/dithering to hgafb? Would be neat :)
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
593
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
594 Use the -framedrop option if your comp isn't fast enough to render all frames!
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
595
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
596 Playing on terminal you'll get better speed and quality using the linux driver, not
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
597 curses (-aadriver linux). But therefore you need write access on /dev/vcsa<terminal>!
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
598 That isn't autodetected by aalib, bu vo_aa tries to find the best mode.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
599 See http://aa-project.sourceforge.net/tune/ for further tuning issues.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
600
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
601
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
602 <A NAME=2.2.1.A>2.2.1.A. TV-out support
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
603
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
604
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
605 <A NAME=2.2.1.A.1>2.2.1.A.1. Matrox cards
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
606
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
607 <I> What I'd love to see in mplayer is the the same feature that I see in my
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
608 windows box. When I start a movie in windows (in a window or in full screen)
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
609 the movie is also redirected to the tv-out and I can also see it full screen
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
610 on my tv. I love this feature and was wondering how hard it would be to add
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
611 such a feature to mplayer.</I>
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
612
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
613 It's a driver limitation. BES (Back-End Scaler, it's the overlay generator
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
614 and YUV scaling engine of G200/G400/G450 cards) works only with CRTC1.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
615 Normally, CRTC1 (textmode, every bpp gfx and BES) is routed to HEAD1,
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
616 and CRTC2 (only 16/32bpp gfx) is routed to HEAD2 (TV-out).
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
617
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
618 Under linux, you have two choices to get TV-out working:
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
619
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
620 1. Using X 4.0.x + the HAL driver from matrox, so you'll get dual-head
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
621 support, and you'll be able to redirect second output to the TV.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
622 Unfortunately it has Macrovision encryption enabled, so it will
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
623 only work on directly-connected TV, no through VCR.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
624 Other problem is that Xv doesn't work on the second head.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
625 (I don't know how Windows solve it, maybe it swaps the CRTCs between
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
626 the heads, or just uses YUV framebuffer of second DAC with some trick)
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
627
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
628 2. Using matroxfb with dual-head support enabled (2.4.x kernels).
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
629 You'll be able to get a framebuffer console (using CRTC2, so it's
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
630 slow), and TV-out (using CRTC1, with BES support).
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
631 You have to forget X while using this kind of TV-out! :(
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
632
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
633 - Compile all the matrox-related things to modules in the kernel.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
634 (you MUST compile them to modules, at least I couldn't get them
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
635 working built-in yet)
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
636 [reboot to new kernel & install modules, but don't load them yet!]
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
637
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
638 cd TVout
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
639 ./compile.sh
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
640
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
641 - Run the 'modules' script from the TV-out directory of mplayer.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
642 It will switch your console to framebuffer.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
643 Change to tty1 (ALT+F1)!
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
644 Now run the script 'independent', it will set up your tty's:
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
645 tty 1,2: fb console, CRTC2, head 1 (monitor)
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
646 tty 3,4,5...: framebuffer+BES, CRTC1, head 2 (TV-out)
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
647 You should run the scripts TV-* and Mon-* to set up resolutions:
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
648 change to tty1 (ALT+F1), and run Mon-* (one of them)
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
649 change to tty3 (ALT+F3) and then back to tty1 (ALT+F1)
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
650 (this change will select tty3 on /dev/fb1 - tricky)
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
651 run TV-* (one of them)
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
652 (now you'll get a console on your PAL TV - don't know about NTSC)
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
653
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
654 Now if you start mplayer (on tty1), the picture will show up on
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
655 the tty3, so you'll see it on your TV or second monitor.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
656
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
657 Yes, it is a bit 'hack' now. But I'm waiting for the marvel
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
658 project to be finished, it will provide real TV-out drivers, I hope.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
659
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
660 My current problem is that BES is working only with CRTC1. So picture
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
661 will always shown up on head routed to CRTC1 (normaly the monitor),
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
662 so i have to swap CRTC's, but this way your console will framebuffer
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
663 (CRTC2 can't do text-mode) and a bit slow (no acceleration). :(
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
664
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
665
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
666 <I> anyway i also just get monochrome output on the tv ...</I>
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
667 Maybe you have NTSC TV? Or just didn't run one of TV-* scripts.
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
668
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
669
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
670 </PRE>
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
671
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
672 </BODY>
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
673
2eedc348e92a *** empty log message ***
gabucino
parents:
diff changeset
674 </HTML>