Mercurial > mplayer.hg
annotate DOCS/documentation.html @ 1575:2766b0d3863d
osd problem with YV12 fixed
author | folke |
---|---|
date | Fri, 17 Aug 2001 14:31:03 +0000 |
parents | 30078d692e63 |
children | 60edf6c17cf9 |
rev | line source |
---|---|
1371 | 1 <HTML> |
2 | |
3 <BODY> | |
4 | |
5 <P> | |
6 <CENTER>MPlayer - Movie Player for LINUX (C) 2000-2001 Arpad Gereoffy (A'rpi/ESP-team)<BR> | |
7 <BR> | |
1389 | 8 <A HREF="http://www.mplayerhq.hu">http://www.mplayerhq.hu</A></CENTER><BR> |
1371 | 9 </P> |
10 | |
11 <P><HR></P> | |
12 | |
13 <P> | |
14 Table of Contents | |
15 </P> | |
16 | |
17 <P><HR></P> | |
18 | |
19 <PRE> | |
20 <P> | |
21 <A HREF="#1">1. Introduction</A> | |
22 </P> | |
23 <P> | |
1389 | 24 <A HREF="#1.1">1.1 Overview</A> |
1371 | 25 <A HREF="#1.2">1.2 History</A> |
26 <A HREF="#1.3">1.3 Installation</A> | |
27 <A HREF="#1.4">1.4 What about the GUI?</A> | |
28 </P> | |
29 <P> | |
30 <A HREF="#2">2. Features</A> | |
31 </P> | |
32 <P> | |
33 <A HREF="#2.1">2.1 Video Formats, Audio & Video Codecs</A> | |
34 <A HREF="#2.1.1">2.1.1 Supported input formats</A> | |
35 <A HREF="#2.1.2">2.1.2 Supported audio & video codecs</A> | |
36 <A HREF="#2.1.2.1">2.1.2.1 OpenDivX</A> | |
37 <A HREF="#2.1.2.2">2.1.2.2 ffmpeg's DivX/libavcodec</A> | |
38 <A HREF="#2.1.4">2.1.4 Codec importing howto</A> | |
39 <A HREF="#2.1.4.1">2.1.4.1 VFW codecs</A> | |
40 <A HREF="#2.1.4.2">2.1.4.2 DirectShow codecs</A> | |
41 </P> | |
42 <P> | |
43 <A HREF="#2.2">2.2 Video & Audio output devices</A> | |
44 <A HREF="#2.2.1">2.2.1 Video output devices</A> | |
45 <A HREF="#2.2.1.1">2.2.1.1 Xv</A> | |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
46 <A HREF="#2.2.1.1.1">2.2.1.1.1 3dfx cards</A> |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
47 <A HREF="#2.2.1.1.2">2.2.1.1.2 S3 cards</A> |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
48 <A HREF="#2.2.1.1.3">2.2.1.1.3 nVidia cards</A> |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
49 <A HREF="#2.2.1.1.4">2.2.1.1.4 ATI cards</A> |
1371 | 50 <A HREF="#2.2.1.2">2.2.1.2 DGA</A> |
51 <A HREF="#2.2.1.2.1">2.2.1.2.1 Summary</A> | |
52 <A HREF="#2.2.1.2.2">2.2.1.2.2 What is DGA</A> | |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
53 <A HREF="#2.2.1.2.3">2.2.1.2.3 Installing DGA support for MPlayer</A> |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
54 <A HREF="#2.2.1.2.4">2.2.1.2.4 Resolution switching</A> |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
55 <A HREF="#2.2.1.2.5">2.2.1.2.5 DGA & MPlayer</A> |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
56 <A HREF="#2.2.1.2.6">2.2.1.2.6 Features of the DGA driver</A> |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
57 <A HREF="#2.2.1.2.7">2.2.1.2.7 Speed issues</A> |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
58 <A HREF="#2.2.1.2.8">2.2.1.2.8 Known bugs</A> |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
59 <A HREF="#2.2.1.2.9">2.2.1.2.9 Future work</A> |
1371 | 60 <A HREF="#2.2.1.2.A">2.2.1.2.A Some modelines</A> |
61 <A HREF="#2.2.1.2.B">2.2.1.2.B Bug Reports</A> | |
62 <A HREF="#2.2.1.3">2.2.1.3 SDL</A> | |
63 <A HREF="#2.2.1.4">2.2.1.4 SVGAlib</A> | |
64 <A HREF="#2.2.1.5">2.2.1.5 Framebuffer output (FBdev)</A> | |
65 <A HREF="#2.2.1.6">2.2.1.6 Matrox framebuffer (mga_vid)</A> | |
66 <A HREF="#2.2.1.7">2.2.1.7 SiS 6326 framebuffer (sis_vid)</A> | |
67 <A HREF="#2.2.1.8">2.2.1.8 3dfx YUV support</A> | |
68 <A HREF="#2.2.1.9">2.2.1.9 OpenGL output</A> | |
1514 | 69 <A HREF="#2.2.1.10">2.2.1.10 AAlib - text mode displaying</A> |
1371 | 70 <A HREF="#2.2.2">2.2.2 Audio output devices</A> |
1386 | 71 <A HREF="#2.2.2.1">2.2.2.1 Soundcard experiences, recommendations</A> |
1371 | 72 </P> |
73 <P> | |
74 <A HREF="#3">3. Usage</A> | |
75 </P> | |
76 <P> | |
77 <A HREF="#3.1">3.1 Control from keyboard</A> | |
78 <A HREF="#3.2">3.2 Control from LIRC (Linux Infrared Remote Control)</A> | |
79 <A HREF="#3.3">3.3 Streaming from network or pipes</A> | |
80 </P> | |
81 <P> | |
82 <A HREF="#4">4. TV-out support</A> | |
83 </P> | |
84 <P> | |
85 <A HREF="#4.1">4.1 Matrox cards</A> | |
86 </P> | |
87 <P> | |
88 <A HREF="#5">5. Tuning</A> | |
89 </P> | |
90 <P> | |
91 <A HREF="#5.1">5.1 CD drives</A> | |
92 <A HREF="#5.2">5.2 DVD drives</A> | |
93 <A HREF="#5.3">5.3 MTRR</A> | |
94 </P> | |
95 <P> | |
96 <A HREF="#6">6. FAQ section</A> | |
97 </P> | |
98 <P> | |
1386 | 99 <A HREF="#6.1">6.1 Compilation</A> |
100 <A HREF="#6.2">6.2 General questions</A> | |
101 <A HREF="#6.3">6.3 File playing problems</A> | |
102 <A HREF="#6.4">6.4 Video/audio driver problems</A> | |
103 <A HREF="#6.5">6.5 Feature requests</A> | |
104 <A HREF="#6.6">6.6 DVD FAQ</A> | |
1371 | 105 </P> |
106 <P> | |
107 <A HREF="#7">7. Misc OS'es</A> | |
108 </P> | |
109 <P> | |
110 <A HREF="#7.1">7.1 Debian packaging</A> | |
111 <A HREF="#7.2">7.2 FreeBSD</A> | |
112 <A HREF="#7.3">7.3 Solaris 8</A> | |
1389 | 113 <A HREF="#7.4">7.4 StrongARM</A> |
1371 | 114 </P> |
115 <P> | |
116 <A HREF="#A">A. Authors</A> | |
117 </P> | |
118 <P> | |
119 <A HREF="#B">B. Mailing lists</A> | |
120 </P> | |
121 <P> | |
122 <A HREF="#C">C. How to report bugs</A> | |
123 </P> | |
1386 | 124 </PRE> |
1371 | 125 <P><HR></P> |
126 | |
127 <P><PRE> | |
128 <A NAME=1>1. Introduction | |
129 | |
130 | |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
131 <A NAME=1.1>1.1. Overview |
1371 | 132 |
1379 | 133 <B>MPlayer</B> is a movie player for LINUX. It plays most MPEG, AVI and ASF files, |
1371 | 134 supported by many native and Win32 DLL codecs. You can watch VCD, DVD and |
135 even DivX movies too. The another big feature of mplayer is the wide range of | |
136 supported output drivers. It works with X11, Xv, DGA, OpenGL, SVGAlib, fbdev, | |
1514 | 137 AAlib, but you can use SDL (and this way all drivers of SDL) and some |
138 lowlevel card-specific drivers (for Matrox) too! Most of them supports | |
1371 | 139 software or hardware scaling, so you can enjoy movies in fullscreen. And what |
140 about the nice big antialiased shaded subtitles (7 supported types!!!) with | |
141 hungarian, english, cyrillic, czech, korean fonts, and OSD? | |
142 | |
143 I didn't write any codecs, just some players. I spent | |
144 a lot of time finding the best way to parse bad damaged input files | |
145 (both MPEG and AVI) and to do perfect A-V sync with seeking ability. | |
146 My player is rock solid playing damaged MPEG files (useful for some VCDs), | |
147 and it plays bad AVI files which are unplayable with the famous | |
148 windows media player. Even AVI files without index chunk are playable, and | |
149 you can rebuild their indexes with the -idx option, thus enabling seeking! | |
150 As you see, stability and quality are the most important things for me, | |
151 but the speed is also amazing. | |
152 | |
153 | |
154 <A NAME=1.2>1.2. History | |
155 | |
156 This began a year ago... | |
157 I've tried lots of players under linux (mtv,xmps,dvdview,livid/oms,VideoLAN, | |
158 xine,xanim,avifile,xmmp) but they all have some problem. Mostly with special | |
159 files or with audio/video sync. Most of them is unable to play both MPEG1, | |
160 MPEG2 and AVI (DivX) files. Many players have image quality or speed problems | |
161 too. So I've decided to write/modify one... | |
162 | |
163 - mpg12play v0.1-v0.3: | |
164 The first try, hacked together in a half hour! | |
165 I've used libmpeg3 from www.heroinewarrior.com up to the version 0.3, | |
166 but there were image quality and speed problems with it. | |
167 - mpg12play v0.5-v0.87: | |
168 Mpeg codec replaced with DVDview by Dirk Farin, it was a great stuff, | |
169 but it was slow and was written in C++ (I hate C++!!!) | |
170 - mpg12play v0.9-v0.95pre5: | |
171 Mpeg codec was libmpeg2 (mpeg2dec) by Aaron Holtzman & Michel Lespinasse. | |
172 It's great, optimized very fast C code with perfect image quality and | |
173 100% MPEG standard conformance. | |
1379 | 174 - <B>MPlayer</B> v0.3-v0.9: |
1371 | 175 It was a pack of two programs: mpg12playv0.95pre6 and my new simple AVI |
176 player 'avip' based on avifile's Win32 DLL loader. | |
1379 | 177 - <B>MPlayer</B> v0.10: |
1371 | 178 The MPEG and AVI player in a single binary! |
1379 | 179 - <B>MPlayer</B> v0.11: |
1371 | 180 Some new developers joined and from 0.11 the mplayer project is a team-work! |
181 Added .ASF file support, and OpenDivX (see www.projectmayo.com) en/decoding. | |
1379 | 182 - <B>MPlayer</B> v0.17 "The IdegCounter" |
1371 | 183 The release version of the 0.11pre after 4 months of heavy development! |
184 Try it, and be amazed! Thousands of new features added... and of course | |
185 old code was improved too, bugs removed etc. | |
1379 | 186 - <B>MPlayer</B> 0.18 "The BugCounter" |
1371 | 187 2 months since 0.17 and here's a new release.. Completed ASF support, |
188 more subtitle formats, introduced libao (similar to libvo but to audio), | |
189 even more stable than ever, and so on. It's a MUST ! | |
190 | |
191 | |
192 <A NAME=1.3>1.3. Installation | |
193 | |
1379 | 194 If you plan to use <B>MPlayer</B> on x86 architecture, you possibly want to use |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
195 Win32 codecs. Download and unzip w32codecs.zip to /usr/lib/win32 . |
1371 | 196 Note: the avifile project has similar codecs package, but it differs |
197 from our, so if you want to use all supported codecs, then use | |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
198 our package! However, you can use our codecs package with avifile. |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
199 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
200 If you own a Matrox G200/G400/G450 card, then please see the <A HREF="#2.2.1.6">2.2.1.6</A> |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
201 section in order to gain big speedup. It is important to do these steps |
1379 | 202 _before_ compiling <B>MPlayer</B>, otherwise no Matrox-specific support will be |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
203 built. |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
204 |
1500 | 205 If you plan to use the ProjectMayo's <B>OpenDivX</B> codec, check the |
206 <A HREF="#2.1.2.1">2.1.2.1</A> section before compiling. | |
207 | |
1379 | 208 Then build <B>MPlayer</B>: |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
209 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
210 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
211 ./configure |
1371 | 212 make |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
213 make install |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
214 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
215 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
216 It is recommended to browse the output of ./configure , it contains info |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
217 about what will be built, and what won't. You may also want to view |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
218 config.h and config.mak files. |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
219 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
220 Though not mandatory, the fonts should be installed in order to gain |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
221 OSD, and subtitle functionality. Download mp_font3.zip (and optional |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
222 language updates) and optional (if exists) language updates. |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
223 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
224 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
225 mkdir ~/.mplayer/font |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
226 cd ~/.mplayer/font |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
227 unzip mp_font3.zip |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
228 unzip mp_font3_hu.zip |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
229 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
230 |
1371 | 231 <A NAME=1.4>1.4. What about the GUI ? |
232 | |
233 I'm not a GUI programmer. I hate GUIs, I like the pure black 80x25 console. | |
234 So the player has only keyboard control from the controlling console/xterm now. | |
235 There is a GUI development for the player, coordinated by Pontscho/Fresh! | |
236 It's still under development, but it will be merged and released real soon. | |
237 BTW he needs some nice skins, if you are a good graphician, contact him!!! | |
238 | |
239 | |
240 <A NAME=2>2. Features | |
241 | |
242 | |
243 <A NAME=2.1>2.1. Video Formats, Audio & Video Codecs | |
244 | |
245 | |
246 <A NAME=2.1.1>2.1.1. Supported input formats | |
247 | |
1379 | 248 <B>MPlayer</B> can read/play from the following devices/formats: |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
249 - VCD (Video CD) directly from CD-ROM or from CDRwin's .bin image file |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
250 - DVD, directly from your DVD disk, using optional libcss for decryption |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
251 - MPEG 1/2 System Stream (PS/PES/VOB) and Elementary Stream (ES) file |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
252 formats |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
253 - RIFF AVI file format |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
254 - ASF 1.0 file format |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
255 - supports reading from file, stdin, DVD drive or network via HTTP |
1371 | 256 |
257 Note: about quicktime (.mov/.qt) and realmedia (.ra/.rm) support read the FAQ! | |
258 | |
259 | |
260 <A NAME=2.1.2>2.1.2. Supported audio & video codecs | |
261 | |
262 See http://mplayer.sourceforge.net/DOCS/codecs.html for the complete, | |
263 daily updated list!!! | |
264 | |
265 The most important video codecs: | |
266 - MPEG1 (VCD) and MPEG2 (DVD) video | |
1500 | 267 - DivX, FFmpeg, OpenDivX and other MPEG4 variants |
1521 | 268 - Windows Media Video 7 (WMV1) and Windows Media Video 8 used in .wmv files |
1371 | 269 - Intel Indeo codecs (3.1,3.2,4.1,5.0) |
270 - MJPEG, ASV2 and other hardware formats | |
271 | |
272 The most important audio codecs: | |
273 - MPEG layer 2, and layer 3 (MP3) audio (native code, with 3dnow optimization) | |
274 - AC3 dolby audio (native code, with 3dnow optimization) | |
275 - Voxware audio | |
276 - alaw, msgsm, pcm and other simple old audio formats | |
277 | |
278 If you have a codec not listed here, and not supported yet, just | |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
279 read http://mplayer.sourceforge.net/DOCS/codecs.html |
1371 | 280 to get info about its status and about how to help us adding support for it! |
281 | |
282 | |
283 <A NAME=2.1.2.1>2.1.2.1. OpenDivX | |
284 | |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
285 This section contains information about the DivX/OpenDivX codecs of |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
286 <A HREF="http://www.projectmayo.com">ProjectMayo</A>. Their first available alpha version was the OpenDivX 4.0 |
1379 | 287 alpha 47 and 48. Support for this was/is included in <B>MPlayer</B>, and built by |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
288 default. We even used its postprocessing code to optionally enhance visual |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
289 quality of MPEG1/2 movies. |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
290 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
291 The new generation of this codec can even decode movies made with the |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
292 infamous DivX codec! And it's not everything, it's MUCH faster than the |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
293 traditional Win32 DivX DLL's. See below for configuration. The only |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
294 disadvantage of this codec is that it's currently closed-source. :( |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
295 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
296 The codec can be downloaded from the following URL: |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
297 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
298 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
299 http://download2.projectmayo.com/dnload/divx4linux/divx4linux-20010718.zip |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
300 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
301 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
302 No automatic installing available at this time, so install it manually, |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
303 EXACTLY as described here. Unpack it, and copy files to their place: |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
304 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
305 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
306 cp libdivxdecore.so.0.0.0 /usr/local/lib/ |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
307 ln -s /usr/local/lib/libdivxdecore.so.0.0.0 /usr/local/lib/libdivxdecore.so.0 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
308 ln -s /usr/local/lib/libdivxdecore.so.0 /usr/local/lib/libdivxdecore.so |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
309 ldconfig |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
310 cp decore.h /usr/local/include/ |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
311 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
312 |
1434 | 313 <B>MPlayer</B> autodetects if OpenDivX is (properly) installed, just compile |
1500 | 314 as usual. If it doesn't detect it, you didn't install it exactly as above, |
315 and/or has fucked up config (see last question of 6.1 section). | |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
316 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
317 Using it is a bit tricky. As it conflicts with the old OpenDivX (it's API is |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
318 very similar to OpenDivX's), OpenDivX code is disabled, and the OpenDivX |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
319 driver calls this library too. |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
320 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
321 Generally we can pinpoint this issue to that you have two options to use |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
322 this codec: |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
323 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
324 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
325 -vc odivx : using divx4 codec as a new version of OpenDivX. |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
326 in this case it produces YV12 image in its own buffer, |
1379 | 327 and <B>MPlayer</B> (libvo) does colorspace conversion. |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
328 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
329 -vc divx4 : using divx4 codec's colorspace conversion. |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
330 in this mode, you can use YUY2/UYVY too. |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
331 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
332 The 'odivx' method is usually faster, due to the fact that it transfers |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
333 image data in YV12 (planar YUV 4:2:0) format, thus requiring much less |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
334 bandwidth on the bus. For packed YUV modes (YUY2, UYVY) use the 'divx4' |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
335 method. For RGB modes you can choose freely, their speed is same, maybe |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
336 differ according to the current bpp. |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
337 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
338 Note: it supports postprocessing too, but range of values is strange: |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
339 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
340 0 no postproc |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
341 10 .. 20 postprocessing, normal |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
342 (like level 2 with divxds) |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
343 30 .. 60 hard postprocessing, eats many CPU. |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
344 (like level 4 with divxds) |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
345 |
1371 | 346 |
347 <A NAME=2.1.2.2>2.1.2.2. ffmpeg's DivX/libavcodec | |
348 | |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
349 Beginning with version 0.4.2 , <A HREF="http://ffmpeg.sourceforge.net">ffmpeg</A> contains an <B>opensource</B> DivX codec, |
1389 | 350 which is compatible with the traditional DivX. <B>MPlayer</B> contains this codec, |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
351 and this makes it possible to <B>watch DivX movies on non-x86 platforms!</B> |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
352 To get it compile, you'll need nasm, bison, and flex, above the other |
1500 | 353 devel tools. It was removed from <B>MPlayer</B>'s cvs tree, you have |
354 to download it manually directly from <B>FFmpeg</B>'s tree : | |
355 | |
356 | |
357 cvs -d:pserver:anonymous@cvs.ffmpeg.sourceforge.net:/cvsroot/ffmpeg login | |
358 cvs -d:pserver:anonymous@cvs.ffmpeg.sourceforge.net:/cvsroot/ffmpeg co ffmpeg | |
359 | |
360 | |
361 Note: if you copy with CVS subdirs, next time it's enough to do | |
362 'cvs update'. | |
363 | |
364 Now, move the newly downloaded ffmpeg source's <B>libavcodec</B> directory, | |
365 (with all it's subdirectories) to <B>MPlayer</B>'s tree, so it will look | |
366 like this : | |
367 | |
368 | |
369 main/libavcodec | |
370 | |
371 | |
372 Symlinking is NOT enough, you have to copy it. | |
373 | |
374 ./configure detects if it can be built. At the moment it doesn't support | |
375 postprocessing, and is under optimization (it's faster than the DS/VfW DivX | |
376 codec). | |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
377 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
378 In order to use it, refresh your codecs.conf file, and do as the manpage, |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
379 or the example.conf says (the -vfm option). |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
380 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
381 Note: libavcodec contains other codecs as well, but at the moment we mostly |
1500 | 382 focus on ffdivx, and it's unlikely that this will change. |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
383 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
384 <A NAME=2.1.3>2.1.4. Codec importing howto |
1371 | 385 |
386 | |
387 <A NAME=2.1.4.1>2.1.4.1. VFW codecs | |
388 | |
389 VfW (Video for Windows) is the old Video API for Windows. Its codecs have | |
390 the .DLL or (rarely) .DRV extension. | |
1379 | 391 If <B>MPlayer</B> fails with your AVI: |
1371 | 392 |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
393 |
1371 | 394 UNKNOWN video codec: HFYU (0x55594648) |
395 | |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
396 |
1371 | 397 It means your AVI is encoded with a codec which has the HFYU fourcc (HFYU = |
398 HuffYUV codec, DIV3 = DivX Low Motion, etc...). Now that we know this, we'll | |
399 have to find out which DLL Windows loads in order to play this file. In our | |
400 case, the system.ini contains this (with many others): | |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
401 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
402 |
1371 | 403 VIDC.HFYU=huffyuv.dll |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
404 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
405 |
1371 | 406 So we'll need the huffyuv.dll file. Note that the audio codecs are specified |
407 with the MSACM prefix : | |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
408 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
409 |
1371 | 410 msacm.l3acm=L3codeca.acm |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
411 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
412 |
1371 | 413 This is the MP3 codec. |
414 So, now we have all the info needed (fourcc, codec file, sample AVI), submit | |
415 your codec support request in mail, and upload these files to the FTP: | |
1500 | 416 ftp://mplayerhq.hu/MPlayer/incoming/[codecname]/ |
1371 | 417 |
418 | |
419 <A NAME=2.1.4.2>2.1.4.2. DirectShow codecs | |
420 | |
421 DirectShow is the newer Video API, which is even worse than its predecessor. | |
422 Things are harder with DirectShow, since | |
423 - system.ini doesn't contain the needed information, instead it's stored in | |
424 the registry :( | |
425 - we'll need the GUID of the codec. | |
426 | |
427 So let's search that goddamn registry.. | |
428 - Start 'regedit' | |
429 - press ctrl-f, disable the first two checkbox, and enable the third. Type | |
430 the fourcc of the codec. (for ex.: TM20) | |
431 - you should see a field which contains the path and filename | |
432 (for ex. : C:\WINDOWS\SYSTEM\TM20DEC.AX) | |
433 - now that we have the file, we'll need the GUID. Try searching again, but | |
434 now we'll search for the codec's name, not the fourcc. Its name can be acquired | |
435 when Media Player is playing that file, by checking File/Properties/Advanced. | |
436 If not, bad luck ;) Try guessing. | |
437 (for ex. search for : TrueMotion) | |
438 - if found (in registry), there should be a FriendlyName field, and a CLSID | |
439 field. Write down that 16 byte of CLSID, this is the GUID required by us. | |
440 | |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
441 |
1371 | 442 NOTE : if searching fails, try to enable all the checkboxes.. you may have |
443 false hits, but maybe you'll have the right, too... | |
444 NOTE : dump that M$ shit. | |
445 | |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
446 |
1371 | 447 So, now we have all the info needed (fourcc, GUID, codec file, sample AVI), |
448 submit your codec support request in mail, and upload these files to the FTP: | |
1500 | 449 ftp://mplayerhq.hu/MPlayer/incoming/[codecname]/ |
1371 | 450 |
451 | |
452 <A NAME=2.2>2.2. Video & Audio output devices | |
453 | |
454 | |
455 <A NAME=2.2.1>2.2.1. Video output devices | |
456 | |
457 General: | |
458 - x11: X11 with optional SHM extension | |
459 - xv: X11 using overlays with the Xvideo extension (hardware YUV & scaling) | |
460 - gl: OpenGL renderer, so far works only with : | |
461 - all cards with Utah-GLX | |
462 - Matrox cards with X/DRI >=4.0.3 | |
463 - Radeon with X/DRI CVS | |
464 - dga: X11 DGA extension | |
465 - fbdev:Output to general framebuffers | |
466 - svga: Output to SVGAlib | |
467 - sdl: 1.1.7 : supports software scaling | |
468 1.1.8 : supports Xvideo (hardware scaling/fullscreen) | |
1514 | 469 1.2.0 : supports AAlib (-vo aa is very recommended, see below!) |
1371 | 470 - ggi: similar to SDL |
1514 | 471 - aa: textmode rendering with AAlib |
1371 | 472 |
473 Card specific: | |
474 - mga: Matrox G200/G400 hardware YUV overlay via the mga_vid device | |
475 - xmga: Matrox G200/G400 overlay (mga_vid) in X11 window | |
476 (Xv emulation on X 3.3.x !) | |
477 - syncfb: Matrox G400 YUV support on framebuffer (obsoleted, use mga/xmga) | |
478 - 3dfx: Voodoo2/3 hardware YUV (/dev/3dfx) support (not yet tested, maybe | |
479 broken) | |
480 | |
481 Special: | |
482 - png: PNG files output (use -z switch to set compression) | |
483 - pgm: PGM files output (for testing purposes or ffmpeg encoding) | |
484 - md5: MD5sum output (for MPEG conformance tests) | |
485 - odivx:OpenDivX AVI File writer (use -br to set encoding bitrate) | |
486 - null: Null output (for speed tests/benchmarking) | |
487 | |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
488 NOTE: check the following subsections for details and requirements! |
1371 | 489 |
490 | |
491 <A NAME=2.2.1.1>2.2.1.1. Xv | |
492 | |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
493 Under XFree86 4.0.2 or newer, you can use your card's hardware YUV routines |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
494 using the XVideo extension. This is what the option '-vo xv' uses. |
1371 | 495 In order to make this work, be sure to check the following: |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
496 - You have to use XFree86 4.0.2 or newer (former versions don't have XVideo) |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
497 - Your card actually supports harware acceleration (modern cards do) |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
498 - X loads the XVideo extension, it's something like this: |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
499 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
500 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
501 (II) Loading extension XVideo |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
502 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
503 |
1371 | 504 in /var/log/XFree86.0.log |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
505 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
506 |
1371 | 507 NOTE : this loads only the XFree86's extension. In a good install, this is |
508 always loaded, and doesn't mean that the _card's_ XVideo support is | |
509 loaded! | |
510 | |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
511 - Your card has Xv support under Linux. To check, try 'xvinfo', it is the |
1371 | 512 part of the XFree86 distribution. It should display a long text, similar |
513 to this: | |
514 | |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
515 |
1371 | 516 X-Video Extension version 2.2 |
517 screen #0 | |
518 Adaptor #0: "Savage Streams Engine" | |
519 number of ports: 1 | |
520 port base: 43 | |
521 operations supported: PutImage | |
522 supported visuals: | |
523 depth 16, visualID 0x22 | |
524 depth 16, visualID 0x23 | |
525 number of attributes: 5 | |
526 (...) | |
527 Number of image formats: 7 | |
528 id: 0x32595559 (YUY2) | |
529 guid: 59555932-0000-0010-8000-00aa00389b71 | |
530 bits per pixel: 16 | |
531 number of planes: 1 | |
532 type: YUV (packed) | |
533 id: 0x32315659 (YV12) | |
534 guid: 59563132-0000-0010-8000-00aa00389b71 | |
535 bits per pixel: 12 | |
536 number of planes: 3 | |
537 type: YUV (planar) | |
538 (...etc...) | |
539 | |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
540 |
1371 | 541 It must support YUY2 packed, and YV12 planar pixel formats to be |
1379 | 542 usable with <B>MPlayer</B>. |
543 | |
544 - And finally, check if <B>MPlayer</B> was compiled with 'xv' support. | |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
545 ./configure prints this. |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
546 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
547 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
548 <A NAME=2.2.1.1.1>2.2.1.1.1. 3dfx cards |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
549 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
550 Older 3dfx drivers were known to have problems with XVideo acceleration, |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
551 it didn't support either YUY2 or YV12, and so. Verify that you have |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
552 XFree86 version 4.1.0 or greater, it works ok. Alternatively, you can use |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
553 <A HREF="http://dri.sourceforge.net">DRI</A> cvs. |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
554 If you experience strange effects using -vo xv, try SDL (it has XVideo too) |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
555 and see if it helps. Check the <A HREF="#2.2.1.3">SDL section</A> for details. |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
556 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
557 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
558 <A NAME=2.2.1.1.2>2.2.1.1.2. S3 cards |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
559 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
560 S3 Savage3D's should work fine, but for Savage4, use XFree86 version 4.0.3 |
1432 | 561 or greater. As for S3 Virge.. sell it. |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
562 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
563 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
564 <A NAME=2.2.1.1.3>2.2.1.1.3. nVidia cards |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
565 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
566 nVidia isn't a very good choice under Linux.. You'll have to use the |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
567 binary nVidia driver, available at nVidia's website. The standard X |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
568 driver doesn't support XVideo for these cards, due to nVidia's closed |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
569 sources/specifications. |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
570 |
1435 | 571 - Riva128 cards don't have XVideo support even with the nvidia driver :( |
572 Complain to NVidia. | |
573 | |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
574 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
575 <A NAME=2.2.1.1.4>2.2.1.1.4. ATI cards |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
576 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
577 The GATOS driver has VSYNC enabled by default. It means that decoding speed |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
578 (!) is synced to the monitor's refresh rate. If playing seems to be slow, try |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
579 disabling VSYNC somehow, or set refresh rate to n*(fps of the movie) Hz. |
1371 | 580 |
581 | |
582 <A NAME=2.2.1.2>2.2.1.2. DGA | |
583 | |
584 <A NAME=2.2.1.2.1>2.2.1.2.1. Summary | |
585 | |
586 This document tries to explain in some words what DGA is in general and | |
587 what the DGA video output driver for mplayer can do (and what it can't). | |
588 | |
589 | |
590 <A NAME=2.2.1.2.2>2.2.1.2.2. What is DGA | |
591 | |
592 DGA is short for Direct Graphics Access and is a means for a program to | |
593 bypass the X-Server and directly modifying the framebuffer memory. | |
594 Technically spoken this happens by mapping the framebuffer memory into | |
595 the memory range of your process. This is allowed by the kernel only | |
596 if you have superuser privileges. You can get these either by logging in | |
597 as root or by setting the suid bit on the mplayer excecutable (NOT | |
598 recommended!). | |
599 | |
600 There are two versions of DGA: DGA1 is used by XFree 3.x.x and DGA2 was | |
601 introduced with XFree 4.0.1. | |
602 | |
603 DGA1 provides only direct framebuffer access as described above. For | |
604 switching the resolution of the video signal you have to rely on the | |
605 XVidMode extension. | |
606 | |
607 DGA2 incorporates the features of XVidMode extension and also allows | |
608 switching the depth of the display. So you may, although basically | |
609 running a 32 bit depth XServer, switch to a depth of 15 bits and vice | |
610 versa. | |
611 | |
612 However DGA has some drawbacks. It seems it is somewhat dependent on the | |
613 graphics chip you use and on the implementation of the XServer's video | |
614 driver that controls this chip. So it does not work on every system ... | |
615 | |
616 | |
1379 | 617 <A NAME=2.2.1.2.3>2.2.1.2.3. Installing DGA support for <B>MPlayer</B> |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
618 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
619 First make sure X loads the DGA extension, see in /var/log/XFree86.0.log : |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
620 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
621 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
622 (II) Loading extension XFree86-DGA |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
623 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
624 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
625 See, XFree86 4.0.x or greater is VERY RECOMMENDED! |
1379 | 626 <B>MPlayer</B>'s DGA driver is autodetected on ./configure, or you can force it |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
627 with --enable-dga. |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
628 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
629 If the driver couldn't switch to a smaller resolution, experiment with |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
630 switches -vm (only with X 3.3.x), -fs, -bpp, -zoom to find a video mode that |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
631 the movie fits in. There is no converter right now.. :( |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
632 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
633 Become ROOT. DGA needs root access to be able to write directly video memory. |
1379 | 634 If you want to run it as user, then install <B>MPlayer</B> SUID root: |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
635 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
636 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
637 chown root /usr/local/bin/mplayer |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
638 chmod 750 /usr/local/bin/mplayer |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
639 chmod +s /usr/local/bin/mplayer |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
640 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
641 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
642 Now it works as a simple user, too. |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
643 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
644 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
645 !!!! BUT STAY TUNED !!!! |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
646 This is a BIG security risk! Never do this on a server or on a computer |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
647 can be accessed by more people than only you because they can gain root |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
648 privilegies through suid root mplayer. |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
649 !!!! SO YOU HAVE BEEN WARNED ... !!!! |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
650 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
651 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
652 Now use '-vo dga' option, and there you go! (hope so:) |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
653 You should also try if the '-vo sdl:dga' option works for you! It's much |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
654 faster!!! |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
655 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
656 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
657 <A NAME=2.2.1.2.4>2.2.1.2.4. Resolution switching |
1371 | 658 |
659 The DGA driver allows for switching the resolution of the output signal. | |
660 This avoids the need for doing (slow) software scaling and at the same | |
661 time provides a fullscreen image. Ideally it would switch to the exact | |
662 resolution (except for honouring aspect ratio) of the video data, but the | |
663 XServer only allows switching to resolutions predefined in | |
664 /etc/X11/XF86Config (/etc/X11/XF86Config-4 for XFree 4.0.X respectively). | |
665 Those are defined by so-called modelines and depend on the capabilites | |
666 of your video hardware. The XServer scans this config file on startup and | |
667 disables the modelines not suitable for your hardware. You can find | |
668 out which modes survive with the X11 log file. It can be found at: | |
669 /var/log/XFree86.0.log | |
670 See appendix A for some sample modeline definitions. | |
671 | |
672 | |
1379 | 673 <A NAME=2.2.1.2.5>2.2.1.2.5. DGA & <B>MPlayer</B> |
674 | |
675 DGA is used in two places with <B>MPlayer</B>: The SDL driver can be made to make | |
1371 | 676 use of it (-vo sdl:dga) and within the DGA driver (-vo dga). |
677 The above said is true for both; in the following sections I'll explain | |
1379 | 678 how the DGA driver for <B>MPlayer</B> works. |
1371 | 679 |
680 | |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
681 <A NAME=2.2.1.2.6>2.2.1.2.6. Features of the DGA driver |
1371 | 682 |
683 The DGA driver is invoked by specifying -vo dga at the command line. | |
684 The default behaviour is to switch to a resolution matching the original | |
685 resolution of the video as close as possible. It deliberately ignores the | |
686 -vm and -fs switches (enabling of video mode switching and fullscreen) - | |
687 it always tries to cover as much area of your screen as possible by switching | |
688 the video mode, thus refraining to use a single additional cycle of your CPU | |
689 to scale the image. | |
690 If you don't like the mode it chooses you may force it to choose the mode | |
691 matching closest the resolution you specify by -x and -y. | |
692 By providing the -v option, the DGA driver will print, among a lot of other | |
693 things, a list of all resolutions supported by your current XF86-Config | |
694 file. | |
695 Having DGA2 you may also force it to use a certain depth by using the -bpp | |
696 option. Valid depths are 15, 16, 24 and 32. It depends on your hardware | |
697 whether these depths are natively supported or if a (possibly slow) | |
698 conversion has to be done. | |
699 | |
700 If you should be lucky enough to have enough offscreen memory left to | |
701 put a whole image there, the DGA driver will use doublebuffering, which | |
702 results in much smoother movie replaying. It will tell you whether double- | |
703 buffering is enabled or not. | |
704 | |
705 Doublebuffering means that the next frame of your video is being drawn in | |
706 some offscreen memory while the current frame is being displayed. When the | |
707 next frame is ready, the graphics chip is just told the location in memory | |
708 of the new frame and simply fetches the data to be displayed from there. | |
709 In the meantime the other buffer in memory will be filled again with new | |
710 video data. | |
711 | |
712 Doublebuffering may be switched on by using the option -double and may be | |
713 disabled with -nodouble. Current default option is to disable | |
714 doublebuffering. When using the DGA driver, onscreen display (OSD) only | |
715 works with doublebuffering enabled. However, enabling doublebuffering may | |
716 result in a big speed penalty (on my K6-II+ 525 it used an additional 20% of | |
717 CPU time!) depending on the implementation of DGA for your hardware. | |
718 | |
719 | |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
720 <A NAME=2.2.1.2.7>2.2.1.2.7. Speed issues |
1371 | 721 |
722 Generally spoken, DGA framebuffer access should be at least as fast as using | |
723 the X11 driver with the additional benefit of getting a fullscreen image. | |
724 The percentage speed values printed by mplayer have to be interpreted with | |
725 some care, as for example, with the X11 driver they do not include the time | |
726 used by the X-Server needed for the actual drawing. Hook a terminal to a | |
727 serial line of your box and start top to see what is really going on in your | |
728 box ... | |
729 | |
730 Generally spoken, the speedup done by using DGA against 'normal' use of X11 | |
731 highly depends on your graphics card and how well the X-Server module for it | |
732 is optimized. | |
733 | |
734 If you have a slow system, better use 15 or 16bit depth since they require | |
735 only half the memory bandwidth of a 32 bit display. | |
736 | |
737 Using a depth of 24bit is even a good idea if your card natively just supports | |
738 32 bit depth since it transfers 25% less data compared to the 32/32 mode. | |
739 | |
740 I've seen some avi files already be replayed on a Pentium MMX 266. AMD K6-2 | |
741 CPUs might work at 400 MHZ and above. | |
742 | |
743 | |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
744 <A NAME=2.2.1.2.8>2.2.1.2.8. Known bugs |
1371 | 745 |
746 Well, according to some developpers of XFree, DGA is quite a beast. They | |
747 tell you better not to use it. Its implementation is not always flawless | |
748 with every chipset driver for XFree out there. | |
749 | |
750 o with XFree 4.0.3 and nv.o there is a bug resulting in strange colors | |
751 o ATI driver requires to switch mode back more than once after finishing | |
752 using of DGA | |
753 o some drivers simply fail to switch back to normal resolution (use | |
754 Ctrl-Alt-Keypad +, - to switch back manually) | |
755 o some drivers simply display strange colors | |
756 o some drivers lie about the amount of memory they map into the process's | |
757 address space, thus vo_dga won't use doublebuffering (SIS?) | |
758 o some drivers seem to fail to report even a single valid mode. In this | |
759 case the DGA driver will crash telling you about a nonsense mode of | |
760 100000x100000 or the like ... | |
761 o OSD only works with doublebuffering enabled | |
762 | |
763 | |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
764 <A NAME=2.2.1.2.9>2.2.1.2.9. Future work |
1371 | 765 |
766 o use of the new X11 render interface for OSD | |
767 o where is my TODO list ???? :-((( | |
768 | |
769 | |
770 <A NAME=2.2.1.2.A>2.2.1.2.A. Some modelines | |
771 | |
772 Section "Modes" | |
773 Identifier "Modes[0]" | |
774 Modeline "800x600" 40 800 840 968 1056 600 601 605 628 | |
775 Modeline "712x600" 35.0 712 740 850 900 400 410 412 425 | |
776 Modeline "640x480" 25.175 640 664 760 800 480 491 493 525 | |
777 Modeline "400x300" 20 400 416 480 528 300 301 303 314 Doublescan | |
778 Modeline "352x288" 25.10 352 368 416 432 288 296 290 310 | |
779 Modeline "352x240" 15.750 352 368 416 432 240 244 246 262 Doublescan | |
780 Modeline "320x240" 12.588 320 336 384 400 240 245 246 262 Doublescan | |
781 EndSection | |
782 | |
783 | |
784 These entries work fine with my Riva128 chip, using nv.o XServer driver | |
785 module. | |
786 | |
787 | |
788 <A NAME=2.2.1.2.B>2.2.1.2.B. Bug Reports | |
789 | |
790 If you experience troubles with the DGA driver please feel free to file | |
791 a bug report to me (e-mail address below). Please start mplayer with the | |
792 -v option and include all lines in the bug report that start with vo_dga: | |
793 | |
794 Please do also include the version of X11 you are using, the graphics card | |
795 and your CPU type. The X11 driver module (defined in XF86-Config) might | |
796 also help. Thanks! | |
797 | |
798 | |
799 Acki (acki@acki-netz.de, www.acki-netz.de) | |
800 | |
801 | |
802 <A NAME=2.2.1.3>2.2.1.3. SDL | |
803 | |
1379 | 804 Here are some notes about SDL out in <B>MPlayer</B>. |
1371 | 805 |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
806 There are several commandline switches for SDL: |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
807 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
808 -vo sdl:name specifies sdl video driver to use (ie. aalib, |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
809 dga, x11) |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
810 -ao sdl:name specifies sdl audio driver to use (ie. dsp, |
1500 | 811 esd, arts) |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
812 -noxv disables Xvideo hardware acceleration |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
813 -forcexv tries to force Xvideo acceleration |
1371 | 814 |
815 SDL Keys: | |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
816 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
817 F toggles fullscreen/windowed mode |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
818 C cycles available fullscreen modes |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
819 W/S mappings for * and / (mixer control) |
1371 | 820 |
821 KNOWN BUGS: | |
1534 | 822 - Keys pressed under sdl:aalib console driver repeat forever. (use -vo aa !) |
1371 | 823 It's bug in SDL, I can't change it (tested with SDL 1.2.1). |
824 | |
825 | |
826 <A NAME=2.2.1.4>2.2.1.4. SVGAlib | |
827 | |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
828 If you don't have X, you can use the SVGAlib target! Be sure not to use the |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
829 -fs switch, since it toggles the usage of the software scaler, and it's |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
830 SLOOOW now, unless you have a real fast CPU (and/or MTRR?). :( |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
831 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
832 Of course you'll have to install svgalib and its development package in |
1379 | 833 order for <B>MPlayer</B> build its SVGAlib driver (autodetected, but can be |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
834 forced), and don't forget to edit /etc/vga/libvga.config to suit your |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
835 card & monitor. |
1371 | 836 |
837 | |
838 <A NAME=2.2.1.5>2.2.1.5. Framebuffer output (FBdev) | |
839 | |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
840 Whether to build the FBdev target is autodetected during ./configure . |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
841 Read the framebuffer documentation in the kernel sources |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
842 (Documentation/fb/*) for info on how to enable it, etc.. ! |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
843 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
844 If your card doesn't support VBE 2.0 standard (older ISA/PCI |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
845 cards, such as S3 Trio64), only VBE 1.2 (or older?) : |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
846 Well, VESAfb is still available, but you'll have to load SciTech Display |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
847 Doctor (formerly UniVBE) before booting Linux. Use a DOS boot disk or |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
848 whatever. And don't forget to register your UniVBE ;)) |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
849 |
1500 | 850 The FBdev output takes some additional parameters above the others: |
851 | |
852 -fb specify the framebuffer device to use (/dev/fd0) | |
853 -fbmode mode name to use (according to /etc/fb.modes) | |
854 -fbmodeconfig config file of modes (default /etc/fb.modes) | |
855 monitor_hfreq | |
856 monitor_vfreq IMPORTANT values, see example.conf | |
857 monitor_dotclock | |
858 | |
859 If you want to change to a specific mode, then use | |
860 | |
861 mplayer -vm -fbmode (NameOfMode) filename | |
862 | |
863 -vm alone will choose the most suitable mode from /etc/fb.modes . Can be | |
864 used together with -x and -y options too. The -flip option is supported only | |
865 if the movie's pixel format matches the video mode's pixel format. | |
866 Pay attention to the bpp value, fbdev driver tries to use the current, | |
867 or if you specify the -bpp option, then that. | |
868 -zoom option isn't supported (software scaling is slow). -fs option | |
869 isn't supported. You can't use 8bpp (or less) modes. | |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
870 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
871 NOTE: FBdev video mode changing _does not work_ with the VESA framebuffer, |
1379 | 872 and don't ask for it, since it's not an <B>MPlayer</B> limitation. |
1371 | 873 |
874 | |
875 <A NAME=2.2.1.6>2.2.1.6. Matrox framebuffer (mga_vid) | |
876 | |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
877 This section is about the Matrox G200/G400/G450 BES (Back-End Scaler) |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
878 support, the mga_vid kernel driver. It's active developed by me (A'rpi), and |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
879 it has hardware VSYNC support with triple buffering. It works on both |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
880 framebuffer console and under X. |
1371 | 881 |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
882 To use it, you first have to compile mga_vid.o : |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
883 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
884 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
885 cd drivers |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
886 make |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
887 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
888 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
889 Then create /dev/mga_vid device : |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
890 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
891 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
892 mknod /dev/mga_vid c 178 0 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
893 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
894 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
895 and load the driver with |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
896 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
897 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
898 insmod mga_vid.o |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
899 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
900 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
901 You should verify the memory size detection using the 'dmesg' command. If |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
902 it's bad, use the mga_ram_size option (rmmod mga_vid first), specify card's |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
903 memory size in MB: |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
904 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
905 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
906 insmod mga_vid.o mga_ram_size=16 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
907 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
908 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
909 To make it load/unload automatically when needed, insert the following line |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
910 at the end of /etc/modules.conf : |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
911 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
912 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
913 alias char-major-178 mga_vid |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
914 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
915 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
916 Then run |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
917 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
918 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
919 depmod -a |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
920 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
921 |
1379 | 922 Now you have to (re)compile <B>MPlayer</B>, ./configure will detect /dev/mga_vid |
923 and build the 'mga' driver. Using it from <B>MPlayer</B> goes by '-vo mga' if | |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
924 you have matroxfb console, or '-vo xmga' under XFree86 3.x.x or 4.x.x . |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
925 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
926 Note: '-vo xmga' works under XFree86 4.x.x, but it conflicts with the Xv |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
927 driver, so avoid using both. If you messed up Xv with mga, try running |
1379 | 928 <B>MPlayer</B> with '-vo mga' . It should fix Xv. |
1371 | 929 |
930 | |
931 <A NAME=2.2.1.7>2.2.1.7. SiS 6326 framebuffer (sis_vid) | |
932 | |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
933 SiS 6326 YUV Framebuffer driver -> sis_vid kernel driver |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
934 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
935 Its interface should be compatible with the mga_vid, but the driver was not |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
936 updated after the mga_vid changes, so it's outdated now. Volunteers |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
937 needed to test it and bring the code up-to-date. |
1371 | 938 |
939 | |
940 <A NAME=2.2.1.8>2.2.1.8. 3dfx YUV support | |
941 | |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
942 3dfx has native YUV+scaler support, using /dev/3dfx (tdfx.o driver?) |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
943 The /dev/3dfx kernel driver exists only for 2.2.x kernels, for use with |
1379 | 944 Glide 2.x Linux ports. It's not tested with <B>MPlayer</B>, and so no more |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
945 supported. Volunteers needed to test it and bring the code up-to-date. |
1371 | 946 |
947 | |
948 <A NAME=2.2.1.9>2.2.1.9. OpenGL output | |
949 | |
1379 | 950 <B>MPlayer</B> support displaying movies using OpenGL. Unfortunately, not all |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
951 drivers support this ability. For example the Utah-GLX drivers |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
952 (for XFree86 3.3.6) have it, with all cards. |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
953 See <A HREF="http://utah-glx.sourceforge.net">http://utah-glx.sourceforge.net</A> for details about how to install it. |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
954 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
955 XFree86(DRI) >= 4.0.3 supports it only with Matrox, and Radeon cards. |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
956 See <A HREF="http://dri.sourceforge.net">http://dri.sourceforge.net</A> for download, and installation instructions. |
1371 | 957 |
958 | |
1514 | 959 <A NAME=2.2.1.10>2.2.1.10. AAlib - text mode displaying |
960 | |
961 <B>AAlib</B> is a library for displaying graphics in text mode, using powerful | |
962 ASCII renderer. There are LOTS of programs already supporting it, like Doom, | |
963 Quake, etc. MPlayer contains a very usable driver for it. | |
964 If ./configure detects aalib installed, the aalib libvo driver will be built. | |
1534 | 965 |
966 You can use some keys in the AA Window to change rendering options: | |
1552 | 967 1 : decrease contrast |
968 2 : increase contrast | |
969 3 : decrease brightness | |
970 4 : increase brightness | |
971 5 : switch fast rendering on/off | |
972 6 : set dithering mode (none, error distribution, floyd steinberg) | |
973 7 : invert image | |
974 a : toggles between aa and mplayer control) | |
975 | |
1534 | 976 |
977 | |
978 The following command line options can be used: | |
979 -aaosdcolor=V : change osd color | |
1542 | 980 -aasubcolor=V : change subtitle color |
1534 | 981 where V can be: (0/normal, 1/dark, 2/bold, 3/boldfont, 4/reverse, 5/special) |
982 | |
983 AAlib itselves provides a large sum of options. | |
984 Here are some important: | |
985 -aadriver : set recommended aa driver (X11, curses, linux) | |
986 -aaextended : use all 256 characters | |
987 -aaeight : use eight bit ascii | |
988 -aahelp : prints out all aalib options | |
989 | |
990 | |
991 | |
992 | |
1514 | 993 |
994 NOTE: the rendering is very CPU intensive, especially when using AA-on-X | |
995 (using aalib on X), and it's least CPU intensive on standard, | |
996 non-framebuffer console. Use SVGATextMode to set up a big textmode, | |
997 then enjoy! (secondary head Hercules cards rock :)) (anyone can enhance | |
1534 | 998 fbdev to do conversion/dithering to hgafb? Would be neat :) |
999 | |
1000 Use the -framedrop option if your comp isn't fast enough to render all frames! | |
1001 | |
1002 Playing on terminal you'll get better speed and quality using the linux driver, not | |
1003 curses (-aadriver linux). But therefore you need write access on /dev/vcsa<terminal>! | |
1004 That isn't autodetected by aalib, bu vo_aa tries to find the best mode. | |
1005 See http://aa-project.sourceforge.net/tune/ for further tuning issues. | |
1006 | |
1514 | 1007 |
1371 | 1008 <A NAME=2.2.2>2.2.2. Audio output devices |
1009 | |
1010 - OSS (ioctl) driver | |
1011 - SDL driver (supports up/downsampling, esd, arts etc) | |
1012 - native ALSA 0.5 driver | |
1013 - native ALSA 0.9 driver (buggy, use OSS emulation!) | |
1513 | 1014 - ESD (through SDL) |
1015 - ARTS (through SDL) | |
1371 | 1016 - SUN audio driver (/dev/audio) for BSD and Solaris8 users |
1017 | |
1018 | |
1386 | 1019 <A NAME=2.2.2.1>2.2.2.1. Soundcard experiences, recommendations |
1020 | |
1021 Aureal Vortex 2: | |
1022 OSS/Free: no driver | |
1023 OSS : OK | |
1024 ALSA : no driver | |
1025 Max kHz : 48 | |
1026 Driver : <A HREF="http://aureal.sourceforge.net">aureal.sourceforge.net</A> | |
1027 Driver2 : from <A HREF="http://makacs.poliod.hu/~pontscho/aureal/au88xx-1.1.3.tar.bz2">here</A> | |
1028 (buffer size increased to 64k) | |
1029 | |
1030 GUS PnP: | |
1031 OSS/Free: no driver | |
1032 OSS : OK | |
1033 ALSA : OK | |
1034 Max kHz : 48 | |
1035 | |
1036 SB Live!: | |
1037 OSS : OK | |
1038 ALSA : (?) | |
1039 Max kHz : 48 | |
1040 | |
1041 SB AWE 64 OSS : max 44kHz | |
1042 ALSA : 48kHz sounds shit | |
1043 Max kHz : 48 | |
1044 | |
1045 Gravis UltraSound ACE: | |
1046 OSS : max 44Khz. Also has problems with the | |
1047 new sound code. | |
1048 ALSA : OK | |
1049 Max kHz : 48 | |
1050 | |
1051 Gravis UltraSound MAX: | |
1052 OSS : OK | |
1053 ALSA : OK (?) | |
1054 Max kHz : 48 | |
1055 | |
1056 ESS 688: | |
1057 OSS : OK | |
1058 ALSA : OK (?) | |
1059 Max kHz : 48 | |
1060 | |
1389 | 1061 C-Media cards (which ones?) |
1062 OSS : not OK (hissing) (?) | |
1063 ALSA : OK (?) | |
1064 Max kHz : ? | |
1065 | |
1386 | 1066 PC Speaker or DAC: |
1513 | 1067 OSS : OK (use the SDL driver : -ao sdl) |
1386 | 1068 ALSA : no driver |
1513 | 1069 Max kHz : the driver emulates 44.1 maybe more |
1386 | 1070 Driver : <A HREF="ftp://ftp.infradead.org/pub/pcsp">ftp://ftp.infradead.org/pub/pcsp</A> |
1071 | |
1072 - use at least 2.4 if possible, 2.2 isn't tested | |
1073 - if sound clicks when playing from CD-ROM, turn on IRQ unmasking ! | |
1074 for example "hdparm -u1 /dev/cdrom" (see "man hdparm" !!!) | |
1075 This is recommended anyways... (for XMMS, etc...) | |
1076 Read section <A HREF="#5.1">5.1</A> . | |
1077 - don't use your soundcard by other application ( for ex. XMMS ) ! | |
1078 if you use ESD, start MPlayer with the esddsp utility ! | |
1079 - Please tell us how MPlayer and your soundcard(s) worked together! | |
1080 | |
1081 | |
1371 | 1082 <A NAME=3>3. Usage |
1083 | |
1084 file: mplayer [options] [path/]filename | |
1085 VCD: mplayer [options] -vcd trackno /dev/cdrom | |
1086 DVD: mplayer [options] -dvdauth /dev/dvd filename.VOB | |
1087 net: mplayer [options] http://site.com/file.[mpg|avi] | |
1088 | |
1089 mplayer -vo x11 /mnt/Films/Contact/contact2.mpg | |
1090 mplayer -vcd 2 /dev/cdrom | |
1091 mplayer -afm 3 /mnt/DVDtrailers/alien4.vob | |
1092 mplayer -dvd /dev/dvd /mnt/dvd/matrix.vob | |
1093 mplayer -abs 65536 -delay -0.4 -nobps ~/movies/test.avi | |
1094 | |
1095 | |
1096 <A NAME=3.1>3.1. Control from keyboard | |
1097 | |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1098 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1099 l/r arrows seek backward/forward 10 seconds |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1100 up or down seek backward/forward 1 minute |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1101 p or SPACE pause movie (press any key to continue) |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1102 q or ^C stop playing and quit program |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1103 o toggle OSD : none / seek / seek+timer |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1104 / and * decrease/increase volume |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1105 m toggle using master/pcm channel for volume setting |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1106 f toggle fullscreen (only with -vo sdl) |
1371 | 1107 |
1108 | |
1109 <A NAME=3.2>3.2. Control from LIRC | |
1110 | |
1111 Linux Infrared Remote Control - use an easy to build home-brewn IR-receiver, | |
1112 an (almost) arbitrary remote control and control your linux box with it! | |
1113 More about it at www.lirc.org. | |
1114 | |
1379 | 1115 If you have installed the lirc-package, you can compile <B>MPlayer</B> with LIRC |
1371 | 1116 support using ./configure --enable-lirc |
1117 | |
1379 | 1118 If everything went fine, <B>MPlayer</B> will print a message like |
1371 | 1119 LIRC init was successful. |
1120 on startup. If an error occurs it will tell you. If it doens't tell you | |
1121 anything about LIRC there's no support compiled in. That's it :-) | |
1122 | |
1379 | 1123 The application name for <B>MPlayer</B> is - oh wonder - mplayer_lirc. |
1371 | 1124 It understands the following commands: |
1125 | |
1126 PAUSE - pause playing. Any other keystroke will continue replay. | |
1127 QUIT - exit mplayer | |
1128 RWND - 10 secs back | |
1129 FRWND - 60 secs back | |
1130 FWD - skip 10 secs | |
1131 FFWD - skip 60 secs | |
1132 INCVOL - increase volume one percent | |
1133 DECVOL - decrease volmue one percent | |
1134 MASTER - use master mixer channel | |
1135 PCM - use pcm mixer channel | |
1136 | |
1137 Don't forget to enable the repeat flag for RWND/FWD in .lircrc. Here's an | |
1138 excerpt from my .lircrc: | |
1139 | |
1140 begin | |
1141 remote = CU-SX070 | |
1142 prog = mplayer_lirc | |
1143 button = Tape_Play | |
1144 repeat = 1 | |
1145 config = FFWD | |
1146 end | |
1147 | |
1148 begin | |
1149 remote = CU-SX070 | |
1150 prog = mplayer_lirc | |
1151 button = Tape_Stop | |
1152 config = QUIT | |
1153 end | |
1154 | |
1155 If you don't like the standard location for the lirc-config file (~/.lircrc) | |
1500 | 1156 use the -lircconf [filename] switch to specify another file. |
1371 | 1157 |
1158 | |
1159 <A NAME=3.3>3.3. Streaming from network or pipes | |
1160 | |
1379 | 1161 <B>MPlayer</B> can play media from network, by using the HTTP protocol, and even |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1162 beta ASF streaming (FROM network) is available. |
1379 | 1163 Configuring it is simple, just recompile <B>MPlayer</B> with |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1164 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1165 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1166 ./configure --enable-streaming |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1167 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1168 |
1379 | 1169 <B>MPlayer</B> can read from stdin (NOT named pipes). This can be for example |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1170 used to play from FTP : |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1171 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1172 |
1371 | 1173 wget ftp://micorsops.com/something.avi -O - | mplayer - |
1174 | |
1175 | |
1176 <A NAME=4>4. TV-out support | |
1177 | |
1178 | |
1179 <A NAME=4.1>4.1. Matrox cards | |
1180 | |
1181 > What I'd love to see in mplayer is the the same feature that I see in my | |
1182 > windows box. When I start a movie in windows (in a window or in full screen) | |
1183 > the movie is also redirected to the tv-out and I can also see it full screen | |
1184 > on my tv. I love this feature and was wondering how hard it would be to add | |
1185 > such a feature to mplayer. | |
1186 | |
1187 It's a driver limitation. BES (Back-End Scaler, it's the overlay generator | |
1188 and YUV scaling engine of G200/G400/G450 cards) works only with CRTC1. | |
1189 Normally, CRTC1 (textmode, every bpp gfx and BES) is routed to HEAD1, | |
1190 and CRTC2 (only 16/32bpp gfx) is routed to HEAD2 (TV-out). | |
1191 | |
1192 Under linux, you have two choices to get TV-out working: | |
1193 | |
1194 1. Using X 4.0.x + the HAL driver from matrox, so you'll get dual-head | |
1195 support, and you'll be able to redirect second output to the TV. | |
1196 Unfortunately it has Macrovision encryption enabled, so it will | |
1197 only work on directly-connected TV, no through VCR. | |
1198 Other problem is that Xv doesn't work on the second head. | |
1199 (I don't know how Windows solve it, maybe it swaps the CRTCs between | |
1200 the heads, or just uses YUV framebuffer of second DAC with some trick) | |
1201 | |
1202 2. Using matroxfb with dual-head support enabled (2.4.x kernels). | |
1203 You'll be able to get a framebuffer console (using CRTC2, so it's | |
1204 slow), and TV-out (using CRTC1, with BES support). | |
1205 You have to forget X while using this kind of TV-out! :( | |
1206 | |
1207 - Compile all the matrox-related things to modules in the kernel. | |
1208 (you MUST compile them to modules, at least I couldn't get them | |
1209 working built-in yet) | |
1210 [reboot to new kernel & install modules, but don't load them yet!] | |
1211 | |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1212 cd TVout |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1213 ./compile.sh |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1214 |
1371 | 1215 - Run the 'modules' script from the TV-out directory of mplayer. |
1216 It will switch your console to framebuffer. | |
1217 Change to tty1 (ALT+F1)! | |
1218 Now run the script 'independent', it will set up your tty's: | |
1219 tty 1,2: fb console, CRTC2, head 1 (monitor) | |
1220 tty 3,4,5...: framebuffer+BES, CRTC1, head 2 (TV-out) | |
1221 You should run the scripts TV-* and Mon-* to set up resolutions: | |
1222 change to tty1 (ALT+F1), and run Mon-* (one of them) | |
1223 change to tty3 (ALT+F3) and then back to tty1 (ALT+F1) | |
1224 (this change will select tty3 on /dev/fb1 - tricky) | |
1225 run TV-* (one of them) | |
1226 (now you'll get a console on your PAL TV - don't know about NTSC) | |
1227 | |
1228 Now if you start mplayer (on tty1), the picture will show up on | |
1229 the tty3, so you'll see it on your TV or second monitor. | |
1230 | |
1231 Yes, it is a bit 'hack' now. But I'm waiting for the marvel | |
1232 project to be finished, it will provide real TV-out drivers, I hope. | |
1233 | |
1234 My current problem is that BES is working only with CRTC1. So picture | |
1235 will always shown up on head routed to CRTC1 (normaly the monitor), | |
1236 so i have to swap CRTC's, but this way your console will framebuffer | |
1237 (CRTC2 can't do text-mode) and a bit slow (no acceleration). :( | |
1238 | |
1239 | |
1240 > anyway i also just get monochrome output on the tv ... | |
1241 Maybe you have NTSC TV? Or just didn't run one of TV-* scripts. | |
1242 | |
1243 | |
1244 <A NAME=5>5. Tuning | |
1245 | |
1246 | |
1247 <A NAME=5.1>5.1. CD-ROM drives | |
1248 | |
1249 From Linux documentation: | |
1250 | |
1251 Some CDROM drives are capable of changing their head-speed. There are several | |
1252 reasons for changing the speed of a CDROM drive. Badly pressed CDROMs may | |
1253 benefit from less-than-maximum head rate. Modern CDROM drives can obtain very | |
1254 high head rates (up to 24-times is common). It has been reported that these | |
1255 drives can make reading errors at these high speeds, reducing the speed can | |
1256 prevent data loss in these circumstances. Finally, some of these drives can | |
1257 make an annoyingly loud noise, which a lower speed may reduce. | |
1258 | |
1259 The recommended way to do it is with a program called 'setcd' . It's kinda | |
1531 | 1260 old, but won't be too hard to find on the Net. (UPDATE : new hdparm |
1261 has an option for this !) | |
1371 | 1262 Use it with : |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1263 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1264 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1265 setcd -x [speed] [cdrom device] |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1266 |
1371 | 1267 |
1268 Also you can try : | |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1269 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1270 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1271 echo current_speed:4 >/proc/ide/[cdrom device]/settings |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1272 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1273 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1274 but you'll need root privileges. I use following command too : |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1275 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1276 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1277 echo file_readahead:2000000 >/proc/ide/[cdrom device]/settings |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1278 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1279 |
1371 | 1280 for 2MB prefetched reading from the file (it's useful for scratched CDROMs). |
1281 It's recommended that you tuneup your CDROM drive also with hdparm : | |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1282 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1283 |
1500 | 1284 hdparm -d1 -a8 -u1 (cdrom device) |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1285 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1286 |
1371 | 1287 to enable using DMA access, readahead, and IRQ unmasking. |
1288 (if you don't understand these, *read the hdparm manpage*) | |
1289 | |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1290 Please refer to "/proc/ide/[cdrom device]/settings" for fine-tuning your |
1371 | 1291 CDROM. |
1292 | |
1293 | |
1294 <A NAME=5.2>5.2. DVD drives | |
1295 | |
1296 IMPORTANT NOTE: please _DO_NOT_ require further features for DVD playback. This | |
1297 is extremly experimental hack. Maybe it won't work for you. If you're | |
1298 capable of helping us do it now! First we would like to fix existing problems. | |
1299 Then we can start implementing advanced DVD playback functions of course. | |
1300 | |
1301 This means current DVD functions are mainly for developers and not for users! | |
1302 | |
1303 First, you must compile and install libcss on your system. | |
1379 | 1304 Second, you have to recompile <B>MPlayer</B> with libcss support. There is |
1371 | 1305 autodetection of libcss, but if it fails, see below : |
1306 | |
1379 | 1307 Call ./configure script of <B>MPlayer</B> with these options: |
1371 | 1308 |
1309 ./configure --enable-css --with-csslibdir=/usr/local/lib --with-cssincdir=/usr/local/include | |
1310 | |
1311 (of course you can append your favourite options as well) | |
1312 | |
1313 --with-csslibdir=/usr/local/lib | |
1314 Directory contains libcss.so shared library. This directory should | |
1315 be in your /etc/ld.so.conf as well. | |
1316 | |
1317 --with-cssincdir=/usr/local/include | |
1318 Directory contains header file 'css.h' of libcss. | |
1319 | |
1320 mplayer -dvdauth /dev/dvd /mnt/cdrom/video_ts/vts_01_1.vob | |
1321 | |
1322 where, | |
1323 | |
1379 | 1324 '-dvdauth /dev/dvd' tells <B>MPlayer</B> the device name of your DVD drive. |
1371 | 1325 it's used in disc authentication process |
1326 | |
1327 the filename is simply a VOB file path on the disc | |
1328 | |
1329 Note that according to my experiences, disc authentication requires root | |
1379 | 1330 privileges so you must run <B>MPlayer</B> as root! (see section 'Problems'). |
1371 | 1331 |
1332 NOTE about the sound: | |
1379 | 1333 It seems that <B>MPlayer</B> sometimes fails to find the first audio stream. |
1371 | 1334 You can specify it with the '-aid 128' option, for example. |
1335 Please experience with 128,129 and similar values. See section | |
1336 'Problems'. | |
1337 | |
1338 On my AMD K6-2 with using hw scaling and colorspace conversion | |
1339 capability of my G400 it's possible to watch DVD with about 70% | |
1340 CPU usage with '-nosound'. Unfortunately with sound my machine is | |
1341 not enough :( Maybe it can be improved somewhat ... | |
1342 Guess, it's not so bad ... According to reports from my friends | |
1343 xine uses 80-90% CPU to play DVD on much more powerful machines | |
1344 like 1GHz Athlon systems (as far as I know, it's said that about | |
1345 300MHz celeron is the minimum to watch DVDs ... using windows | |
1346 DVD viewers). | |
1347 | |
1348 Hint: I commented out downmix functions from libac3 (of course in this way I | |
1349 can't get sound) and audio decoding CPU usage became 11% instead of 24 on | |
1350 my machine. This clearly indicates that we should optimize downmix functions | |
1351 (KNI code is no use for my k6-2). | |
1352 | |
1353 HOT NEWZ: | |
1354 We have got 3Dnow optimized libac3. Wow ;-) | |
1355 | |
1356 | |
1357 Problems (TODO) | |
1358 | |
1359 * disc authentication (the FIBMAP ioctl) requires root privilegies. | |
1360 this is strange since OMS can do it as user too. | |
1379 | 1361 * sound. I'm using my only DVD disc (The Matrix) to test <B>MPlayer</B>. |
1371 | 1362 some VOB file have English sound, some have Spanish and some have |
1363 no sound at all. | |
1364 IT SEEMS that if I give '-aid 128' everything works with English sound ... | |
1365 * strange effects but only with SOME vob files (it looks like some interlacing | |
1366 effect, eg: every 2nd line on the screen is from the last frame). | |
1367 | |
1368 | |
1369 Feature TODO | |
1370 | |
1371 * chapter scanner | |
1372 * audio stream scanner and allow to select one on runtime as well | |
1373 (in stage#1 it would be enough to select one on the startup, see | |
1374 'Problems' above) | |
1375 * DVD menu | |
1376 I found (at least on disc 'The Matrix') the menu VOB but I don't | |
1377 know how can it be used. | |
1378 (after some eyeballing on the source of OMS, it seems we would have to | |
1379 parse *.ifo files) | |
1380 * subtitle support | |
1381 * OSD/GUI (?) support for select chapter, subtitle and audio stream | |
1382 * getting some documentation on DVD format, eg: which is the 'root' VOB | |
1383 file on the disc in video_ts directory, which is the menu and so on. | |
1384 * improve performance (see 'Performance' above) | |
1385 | |
1386 | |
1387 No sound problem (from Matrix DVD, the menu VOB) | |
1388 | |
1389 End of packet while searching for PCM header | |
1390 | |
1391 DEMUXER: Too many (2048 in 4131540 bytes) video packets in the buffer! | |
1392 (maybe you play a non-interleaved stream/file or video codec failed) | |
1393 MPEG: No Audio stream found... ->nosound | |
1394 | |
1395 However this does not occur if you specify '-aid 128'. | |
1396 | |
1397 | |
1398 <A NAME=5.3>5.3. MTRR | |
1399 | |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1400 It is VERY recommended to set MTRR registers up properly, because they can |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1401 give a big performance boost. First you have to find the base address. |
1371 | 1402 You have 3 ways to find it: |
1403 | |
1404 - from X11 startup messages, for example: | |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1405 |
1371 | 1406 (--) SVGA: PCI: Matrox MGA G400 AGP rev 4, Memory @ 0xd8000000, 0xd4000000 |
1407 (--) SVGA: Linear framebuffer at 0xD8000000 | |
1408 | |
1409 - from /proc/pci (use lspci -v command): | |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1410 |
1371 | 1411 01:00.0 VGA compatible controller: Matrox Graphics, Inc.: Unknown device 0525 |
1412 Memory at d8000000 (32-bit, prefetchable) | |
1413 | |
1414 - from mga_vid kernel driver messages (use dmesg): | |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1415 |
1371 | 1416 mga_mem_base = d8000000 |
1417 | |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1418 Then let's find the memory size. This is very easy, just convert video ram |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1419 size to hexadecimal, or use this table: |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1420 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1421 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1422 1 MB 0x100000 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1423 2 MB 0x200000 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1424 4 MB 0x400000 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1425 8 MB 0x800000 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1426 16 MB 0x1000000 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1427 32 MB 0x2000000 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1428 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1429 |
1371 | 1430 You know base address and memory size, let's setup mtrr registers! |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1431 For example, for the Matrox card above (base=0xd8000000) with 32MB |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1432 ram (size=0x2000000) just execute: |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1433 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1434 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1435 echo "base=0xd8000000 size=0x2000000 type=write-combining" >| /proc/mtrr |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1436 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1437 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1438 Not all CPUs support MTRRs. For example older K6-2's [around 266Mhz, |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1439 stepping 0] doesn't support MTRR, but stepping 12's do ('cat /proc/cpuinfo' |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1440 to check it). |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1441 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1442 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1443 <A NAME=6>6. FAQ section (TODO) |
1371 | 1444 |
1386 | 1445 |
1446 <A NAME=6.1>6.1. Compilation | |
1447 | |
1448 <B>Q: What's the problem with gcc 2.96 ? | |
1449 </B>A: gcc 2.96 is RedHat's UNOFFICIAL (it can be found only on RedHat sites, or | |
1450 RedHat distributions) and BUGGY gcc release. gcc 2.96 is TOTALLY | |
1500 | 1451 unsupported by <B>MPlayer</B>, because it simply SKIPS MMX codes, it just does |
1452 not compile it. Important: this is NOT an <B>MPlayer</B>-specific problem, | |
1453 numerous other projects (DRI, avifile, etc..) have problems with this shit | |
1454 too. | |
1386 | 1455 ** DO NOT USE gcc 2.96 !!! ** |
1381 | 1456 |
1500 | 1457 <B>Q: Great, I have gcc 3.0.1 from RedHat/Mandrake, then I'm fine--! |
1458 </B>A: No :) Their gcc 3.0.1 was compiled with gcc 2.96, so they are | |
1459 buggy shit too. | |
1460 | |
1461 <B>Q: Now then. What should I use? | |
1462 </B>A: Any of gcc 2.95 series. | |
1463 | |
1381 | 1464 <B>Q: SDL output doesn't work or compile. Problem is .... |
1465 </B>A: It is tested with newest SDL (probably runs on 1.1.7+). | |
1466 It does NOT work with 1.1.6, 1.1.5 1.1.4 1.1.3 1.0.4 etc, don't ask. | |
1467 | |
1468 <B>Q: I am still having trouble compiling with SDL support. gcc says something | |
1469 about "undefined reference to `SDL_EnableKeyRepeat'" What's now? | |
1470 </B>A: Where did you install the SDL library? If you installed in /usr/local | |
1471 (the default) then edit the top level config.mak and add | |
1472 "-L/usr/local/lib " after "X_LIBS=" Now type make. You're done! | |
1473 | |
1474 <B>Q: It doesn't compile, and it misses uint64_t inttypes.h and similar things... | |
1475 </B>A: copy DOCS/inttypes.h to <B>MPlayer</B> directory (cp DOCS/inttypes.h .) | |
1476 try again... if fail, contact us | |
1477 | |
1478 <B>Q: I have Pentium III but ./configure doesn't detect SSE | |
1479 </B>A: Only kernel versions 2.4.x supports SSE (or try latest 2.2.19 or newer, but | |
1480 be prepared for problems) | |
1481 | |
1386 | 1482 <B>Q: I have G200/G400, how to compile/use mga_vid driver? |
1483 </B>A: Read all this documentation. | |
1484 | |
1485 <B>Q: Are there rpm/deb/... packages of <B>MPlayer</B>? | |
1486 </B>A: You can make a .deb package for yourself, check section <A HREF="#7.1">7.1</A> . | |
1487 It's _STRONGLY_ discouraged to use precompiled packages | |
1488 of <B>MPlayer</B>, since it (currently) _highly_ depends on compile-time | |
1489 options and optimizations! | |
1490 Precompiled packages are COMPLETELY unsupported by the <B>MPlayer</B> team! | |
1491 | |
1492 <B>Q: During 'make', <B>MPlayer</B> complains about X11 libraries. I don't understand, | |
1493 I DO have X installed!? | |
1494 </B>A: ...but you don't have the X development package installed. Or not | |
1495 correctly. It's called XFree86-devel* under RedHat, and xlib6g-dev* under | |
1496 Debian. Also check if the /usr/X11 symlink exists (this can be a problem on | |
1497 Mandrake systems). It can be created with the | |
1498 $ ln -sf /usr/X11R6 /usr/X11 | |
1499 command. Also check the /usr/include/X11 link : | |
1500 $ ln -sf /usr/X11R6/include/X11 /usr/include/X11 | |
1501 Your distribution may differ from the Linux Filesystem Standard. | |
1502 | |
1503 <B>Q: What about DGA driver? I can't find it!!! | |
1504 </B>A: ./configure autodetects your DGA driver. If -vo help doesn't show | |
1505 DGA, then there's a problem with your X installation. | |
1506 Try ./configure --enable-dga (and read VIDEOCARDS) | |
1507 Alternatively, try SDL's DGA driver with '-vo sdl:dga' options. | |
1508 | |
1509 <B>Q: I can't compile SVGAlib.. I'm using 2.3/2.4 kernel. | |
1510 </B>A: You have to edit SVGAlib's Makefile.cfg and comment "BACKGROUND = y" out. | |
1511 | |
1500 | 1512 <B>Q: I compiled <B>MPlayer</B> with libcss/libdivxdecore support, but when |
1513 I try to start it, it says : | |
1426 | 1514 > error while loading shared libraries: libcss.so.0: cannot load |
1515 > shared object file: No such file or directory | |
1516 I checked up on the file and it IS there in /usr/local/lib. | |
1517 </B>A: What are you doing on Linux? Can't you install a library? Why do | |
1518 we get these questions? It's not <B>MPlayer</B> specific at all! Add | |
1519 /usr/local/lib to <B>/etc/ld.so.conf</B> and run <B>ldconfig</B> . | |
1500 | 1520 Or install it to /usr/lib , because if you can't solve the /usr/local |
1521 problem, you are careless enough to do such things. | |
1426 | 1522 |
1386 | 1523 <A NAME=6.2>6.2. General questions |
1524 | |
1525 <B>Q: What about DVD playback? | |
1526 </B>A: Read files 'DVD' and 'DVD-FAQ'. | |
1527 | |
1381 | 1528 <B>Q: -xy option doesn't work with x11 driver (-vo x11) |
1529 </B>A: x11 driver doesn't support scaling, but XF86VidMode support is now | |
1530 used: you must specify the -vm and the -fs switch, and you're done. | |
1531 Make sure you have the right Modelines in your XF86Config file, and | |
1532 try if the DGA driver (and SDL's DGA driver, see VIDEOCARDS) works for you. | |
1533 It's much faster. If SDL's DGA works too, use that, it'll be EVEN | |
1534 faster! | |
1535 | |
1536 <B>Q: what is the meaning of numbers in the status line? | |
1537 </B>A: see: | |
1538 </B>A: 2.1 V: 2.2 A-V: -0.167 ct: 0.042 57 41% 0% 2.6% 0 | |
1539 - </B>A: audio position in seconds | |
1540 - V: video position in seconds | |
1541 - A-V: audio-video difference in seconds (delay) | |
1542 - ct: total A-V sync correction done | |
1543 - frames played (counting from last seek) | |
1544 - video codec cpu usage in percent (for mpeg it includes video_out too!) | |
1545 - video_out cpu usage for avi, 0 for mpg (see above) | |
1546 - audio codec cpu usage in percent | |
1547 - frames needed to drop to maintain A-V sync | |
1548 Most of them are for debug purposes, and will be removed soon. | |
1549 | |
1550 <B>Q: Why is video_out cpu usage zero (0%) for mpeg files? | |
1551 </B>A: It's not zero, but it's built in into codec, so can't be measured separated. | |
1552 You should try to play the file using -vo null and then -vo ... and check | |
1553 the difference to see video_out speed... | |
1554 | |
1555 <B>Q: What's XMMP? (is it XMMS or XMPS but mispelled?) | |
1556 </B>A: It's a new project, see http://frozenproductions.com for details | |
1557 | |
1558 <B>Q: There are error messages about file not found /usr/lib/win32/.... | |
1559 </B>A: Download & install w32codec.zip from *our* FTP | |
1560 (avifile's codec package has different DLL set) | |
1561 | |
1386 | 1562 <B>Q: Are there any mailing lists on <B>MPlayer</B>? |
1563 </B>A: Yes! See README on how to subscribe them! | |
1564 | |
1565 <B>Q: I've found a nasty bug when I tried to play my favourite video!! | |
1566 Who should I inform? | |
1567 </B>A: See Appendix <A HREF="#C">C</A> . | |
1568 | |
1569 <B>Q: I have problems playing files with ... codec. Can I use'em? | |
1570 </B>A: Check http://mplayer.sourceforge.net/DOCS/codecs.html, | |
1571 if it doesn't contain your codec, read | |
1572 http://mplayer.sourceforge.net/DOCS/CODECS, and contact us. | |
1573 | |
1574 <B>Q: Umm, what is "IdegCounter" ? | |
1575 </B>A: A mixture of a hungarian and an english word. In english, "Ideg" means | |
1576 "nerve", and is pronounced as something like "ydaegh" . It was first used | |
1577 to measure the nervousness of A'rpi, after some (umm) "mystic" disappearance | |
1578 of CVS code ;) | |
1579 | |
1580 <B>Q: LIRC doesn't work, because ... | |
1581 </B>A: Are you sure you use "mplayer_lirc" instead of "mplayer" ? | |
1582 | |
1583 <B>Q: Subtitles are very nice, the most beautiful I've ever seen, but they slow | |
1584 down the playing! I know it's unlikely... | |
1585 </B>A: After running ./configure , edit config.h and replace #undef FAST_OSD with | |
1586 #define FAST_OSD . Then recompile. | |
1587 | |
1588 <B>Q: The OSD is flickering! | |
1589 </B>A: You use a vo driver with single buffering (x11,xv). With xv you can change | |
1590 the number of buffers in libvo/vo_xv.c : | |
1591 Increase #define NUM_BUFFERS 1 | |
1592 | |
1593 <B>Q: What exactly is this libavcodec? | |
1594 </B>A: It's from Gerard Lantau's ffmpeg package (http://ffmpeg.sourceforge.net). | |
1595 It has C language DivX ;-) and OpenDivX codec. Some benchmarks | |
1596 showed that its DivX seems to be even faster than DirectShow codec without | |
1597 preprocessing, and only a few percent slower than ProjectMayo's OpenDivX | |
1598 decoder. It uses YV12 pixel format, so old Voodoo users can use it for YUV. | |
1599 Also, open the possibility to play DivX on virtually every computer that | |
1600 has a C compiler. Kinda great stuff, isn't it? | |
1601 | |
1556 | 1602 <B>Q: But configure tells me "Checking for libavcodec ... no"! |
1603 </B>A: You need to get libavcodec from FFmpeg's CVS. Read the instructions in | |
1604 the <A HREF="#2.1.2.2">ffmpeg section</A> . | |
1605 | |
1386 | 1606 |
1607 <A NAME=6.3>6.3. File playing problems | |
1608 | |
1381 | 1609 <B>Q: ...... works with avifile/aviplay while doesn't with <B>MPlayer</B> |
1610 </B>A: <B>MPlayer</B> != avifile | |
1611 The only common thing between these players is the Win32 DLL loader. | |
1612 The codecs (dll) sets, syncronization, demultiplexing etc is totaly | |
1613 different and shouldn't be compared. | |
1614 If something works with aviplay it doesn't mean that <B>MPlayer</B> should do | |
1615 it and vice versa. | |
1616 | |
1386 | 1617 <B>Q: audio goes out of sync playing .avi file |
1618 </B>A: try with -bps or -nobps option | |
1619 if still bad, send me (upload to ftp) that file, I'll check. | |
1620 | |
1381 | 1621 <B>Q: Indeo 3.x/4.x movies are viewed upside-down!!!? |
1622 </B>A: It's a known bug (really it's a bug/limitation of the DLL codec) | |
1623 Try if your vo driver supports the -flip switch. | |
1624 | |
1625 <B>Q: Indeo 3.x,4.x video doesn't work at 32bpp resolutions (16,24 bpp are ok) | |
1626 </B>A: It's a known bug (really it's a bug/limitation of the DLL codec) | |
1627 | |
1628 <B>Q: I've got '<B>MPlayer</B> interrupted by signal 11' in module audio_setup or | |
1629 decode_audio. | |
1630 </B>A: This is highly unlikely, since the mp3lib rewrite. Contact us, it may be | |
1631 a bug. Possibly it's a damaged file, try with -afm 4 . | |
1632 | |
1386 | 1633 <B>Q: <B>MPlayer</B> exits with something error when using l3codeca.acm |
1634 </B>A: Check 'ldd /usr/local/bin/mplayer' output. If it contains | |
1635 libc.so.6 => /lib/libc.so.6 (0x4???????) | |
1636 where "?" is any number then it's ok, the error is not here. If it is: | |
1637 libc.so.6 => /lib/libc.so.6 (0x00??????) | |
1638 then there is problem with your kernel/libc. Maybe you are using some | |
1639 security patches (for example Solar Designer's OpenWall patch) which | |
1640 forces loading libraries to very low addresses. | |
1641 Because l3codeca.acm is a non-relocatable DLL, it must be loaded to | |
1642 0x00400000, we can't change this. You should use non-patched kernel, | |
1643 or use <B>MPlayer</B>'s -afm 1 option to disable using l3codeca.acm. | |
1644 | |
1645 <B>Q: My computer plays M$ DivX AVIs with resolutions ~ 640x300 and stereo mp3 | |
1646 sound too slow. When I use -nosound switch, everything is ok (but quiet). | |
1647 </B>A: Those files probably have 48Khz audio, and your soundcard/driver can't play | |
1648 it correctly. Audio downsampling isn't implemented in <B>MPlayer</B> (yet). | |
1649 | |
1650 <B>Q: <B>MPlayer</B> dies with "<B>MPlayer</B> interrupted by signal 4 in module: decode_video". | |
1651 </B>A: Try running <B>MPlayer</B> on the machine you compiled on. Or recompile. Don't | |
1652 use <B>MPlayer</B> on different CPU than it was compiled on. | |
1653 | |
1654 <B>Q: I have problems with [your window manager] and fullscreen xv/xmga/sdl/x11 | |
1655 modes.. | |
1656 </B>A1: Use the -fsmode switch. See example.conf or manpage. | |
1657 | |
1658 <B>Q: But it works with avifile ! | |
1659 </B>A: So what? | |
1660 | |
1661 <B>Q: Then avifile is better ! | |
1662 </B>A: Then use avifile, it has nice GUI and nice C++ code :) | |
1663 | |
1664 <B>Q: I got this playing mpeg files: Can't find codec for video format 0x10000001 ! | |
1665 </B>A: You have old version of codecs.conf at ~/.mplayer/. Upgrade it from DOCS/ | |
1666 | |
1667 <B>Q: After starting mplayer under KDE(1/2) I just get a black screen and nothing | |
1668 happens, after about one minute the video starts playing. | |
1669 </B>A: The KDE arts sound daemon is blocking the sound device, either wait the time | |
1670 until video starts or you disable the arts-daemon in kontrollcenter. | |
1480 | 1671 If you want to use arts sound, specify audio output via SDL (ao=sdl), and |
1672 make sure your SDL can handle arts sound. Yet another option is to start | |
1673 mplayer with artsdsp. | |
1386 | 1674 |
1519 | 1675 <B>Q: I have an AVI that plays with grey screen with -vc odivx, and green |
1676 with -vc divx4 . | |
1677 </B>A: It's not a DivX file, but an M$ MPEG4v3 . Update your codecs.conf. | |
1678 | |
1386 | 1679 |
1680 <A NAME=6.4>6.4. Video/audio driver problems (vo/ao) | |
1381 | 1681 |
1682 <B>Q: Ok, -vo help shows DGA driver, but it is babbling about permissions! | |
1683 Help me! | |
1684 </B>A: It works only if running as root! It's a DGA limitation. | |
1685 You should become to root (su -), and try again. | |
1371 | 1686 |
1687 Another solution is making mplayer SUID root, but its NOT RECOMMENDED! | |
1381 | 1688 |
1689 chown root /usr/local/bin/mplayer | |
1690 chmod 750 /usr/local/bin/mplayer | |
1691 chmod +s /usr/local/bin/mplayer | |
1692 | |
1693 !!!! BUT STAY TUNED !!!! | |
1694 This is a *BIG* security risk! *NEVER* do this on a server or on a computer | |
1695 can be accessed by more people than only you because they can gain root | |
1696 privilegies through suid root mplayer!!! | |
1697 !!!! SO YOU HAVE BEEN WARNED ... !!!! | |
1698 | |
1699 <B>Q: When using Xvideo, my Voodoo 3/Banshee says: | |
1700 X Error of failed request: BadAccess (attempt to access private resource | |
1701 denied) | |
1702 Major opcode of failed request: 147 (MIT-SHM) | |
1703 Minor opcode of failed request: 1 (X_ShmAttach) | |
1704 Serial number of failed request: 26 | |
1705 Current serial number in output stream:27 | |
1706 </B>A: Your driver is old, update it. Either download (at least) DRI version 0.6 | |
1707 from http://dri.sourceforge.net , or use the DRI cvs. | |
1708 | |
1709 <B>Q: When using Xvideo, I can't play DivX avis with my Voodoo 3/Banshee ! | |
1710 It says: | |
1711 ... | |
1712 Xvideo image format: 0x32315659 (YV12) planar | |
1713 Xvideo image format: 0x30323449 (I420) planar | |
1714 ... | |
1715 </B>A1: See the previous answer. | |
1716 A2: Since 0.18pre4 we include libavcodec from the ffmpeg package. It contains | |
1717 a C language DivX and OpenDivX decoder. The DivX decoder uses YV12 format | |
1718 for output, thus it should work for you. Compile in libavcodec support. | |
1719 | |
1386 | 1720 <B>Q: OpenGL (-vo gl) output doesn't work (hangup/black window/X11 errors/...) |
1721 </B>A: your opengl driver doesn't support dynamic texture changes (glTexSubImage) | |
1722 it's known not to work with nVidia's binary shit. | |
1723 it's known to work with Utah-GLX/DRI and Matrox G400 card. Also with | |
1724 DRI and Radeon card. It won't work with DRI others than these. | |
1725 it will not work with 3DFX cards because the 256x256 texture size limit. | |
1726 | |
1727 <B>Q: I have an nVidia TNT/TNT2 card, and I have a band with strange colours, | |
1728 right under the movie! Whose fault is this? | |
1729 </B>A: It's the nVidia X driver's. These bugs are ONLY with the TNT/TNT2 cards, | |
1730 and we can't do anything about it, it's not our bug. | |
1731 | |
1732 | |
1733 <A NAME=6.5>6.5. Feature requests | |
1734 | |
1735 <B>Q: Is there a hint on how to watch QuickTime and RealMedia movies in MPlayer? | |
1381 | 1736 </B>A: There's no way to do it. Therefore these formats deserve to die in flames. |
1737 Theoretically you can reverse engineer Real codecs built for Linux (they | |
1738 are available as .so files), but in practice that's really difficult, even | |
1739 if you know how the compiler used by Real is making assembler code. | |
1740 As for QuickTime, it's possible to play some old movies and this | |
1741 capability will be added to mplayer soon, but newer clips are all Sorenson | |
1742 encoded, and that codec is built-in deep in the QT executable, there's | |
1743 no way to use it. | |
1744 | |
1386 | 1745 |
1746 <A NAME=6.6>6.6. DVD FAQ | |
1379 | 1747 |
1381 | 1748 <B>Q: I have some problem not mentioned here ... |
1749 </B>A: Read file 'DVD' as well. | |
1750 | |
1751 <B>Q: How can I actually watch DVD with MPlayer? | |
1752 </B>A: Ehh. Go on reading this file as well as 'DVD' (hint: you must have libcss) | |
1753 | |
1754 <B>Q: So MPlayer can play DVDs? Then it must use DeCSS! You are under arrest | |
1755 under the XYZ#$ paragraph of the-- | |
1756 </B>A: Get back asshole, there is no DeCSS code in MPlayer. It links to libcss. | |
1757 | |
1758 <B>Q: Seems to work but no sound. | |
1759 </B>A: Use '-aid 128' (or try: 128,129,...) command line switch | |
1760 | |
1761 <B>Q: I have got Spanish audio instead of English (or similar problems) | |
1762 </B>A: See the last question/answer. | |
1763 | |
1764 <B>Q: MPlayer complains about FIBMAP or something. | |
1765 </B>A: Try to run MPlayer as root. | |
1766 | |
1767 <B>Q: some strange effect (interlace like thing) especially when fast moving | |
1768 objects are shown in the movie | |
1769 </B>A: known problem, we try to fix it later | |
1770 | |
1771 <B>Q: DVD support in MPlayer is a piece of shit! | |
1772 </B>A: You're probably right :) However please contact us if you can improve it! | |
1773 | |
1774 <B>Q: Where can I get libcss package from? | |
1775 </B>A: Maybe from the source of OMS (www.linuxvideo.org). | |
1776 | |
1777 <B>Q: How can I ... (insert some expectable DVD player feature here) | |
1778 </B>A: The current implementation is only for viewing VOB files from DVD. | |
1779 Nothing more, like subtitles, menus and so on. | |
1780 | |
1781 <B>Q: How can I set the region code of my DVD-Drive ? I don't have windows! | |
1782 </B>A: Use the 'regionset' tool : | |
1783 http://www.linuxtv.org/download/dvd/dvd_disc_20000215.tar.gz | |
1784 | |
1785 <B>Q: MPlayer complains about some renamed option? | |
1786 </B>A: For future development, old '-dvd' option was replaced by '-dvdauth'. | |
1787 Option '-dvd' *WILL* do the 'full disk movie' mplaying mode. | |
1788 But until that, '-dvd' does nothing only prints error message. | |
1379 | 1789 |
1790 | |
1371 | 1791 <A NAME=7>7. Misc OS'es |
1792 | |
1793 | |
1794 <A NAME=7.1>7.1. Debian packaging | |
1795 | |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1796 To build the package, get the cvs version, or .tgz and uncompress it, |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1797 and cd into programs directory: |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1798 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1799 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1800 cd main |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1801 fakeroot debian/rules binary |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1802 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1803 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1804 (... mplayer detects hardware/software, builds itself and.. ) |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1805 dpkg-deb: building package `mplayer' in `../mplayer_0.18-1_i386.deb'. |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1806 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1807 And now just become root, and : |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1808 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1809 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1810 dpkg -i ../mplayer_0.18-1_i386.deb as root. |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1811 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1812 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1813 Here's how it looks like: |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1814 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1815 eyck@incubus:/src/main$ sudo dpkg -i ../mplayer_0.18-1_i386.deb |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1816 Password: |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1817 (Reading database ... 26946 files and directories currently installed.) |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1818 Preparing to replace mplayer 0.17a-1 (using ../mplayer_0.18-1_i386.deb) |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1819 Unpacking replacement mplayer ... |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1820 Setting up mplayer (0.18-1) ... |
1371 | 1821 |
1822 | |
1823 <A NAME=7.2>7.2. FreeBSD | |
1824 | |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1825 To build the package you will need GNU make (gmake, /usr/ports/devel/gmake), |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1826 native BSD make will not work. |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1827 |
1379 | 1828 To run <B>MPlayer</B> you will need to re-compile the kernel with |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1829 "options USER_LDT" (unless you are running -CURRENT, where this is default). |
1556 | 1830 If you have a CPU with SSE also use "options CPU_ENABLE_SSE" to use it |
1831 (FreeBSD-STABLE required, or use kernel patches). | |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1832 |
1379 | 1833 If <B>MPlayer</B> complains about "CD-ROM Device '/dev/cdrom' not found!" make a |
1500 | 1834 symbolic link : ln -s /dev/(your_cdrom_device) /dev/cdrom |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1835 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1836 There's no DVD support for FreeBSD yet. |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1837 Feel free to add it :-) |
1371 | 1838 |
1839 | |
1840 <A NAME=7.3>7.3. Solaris 8 | |
1841 | |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1842 AVI file playback works best on Solaris x86, because you have the |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1843 option to use the win32 codecs on the x86 platform. On Solaris SPARC, |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1844 you'll find quite a few AVI files with non working video and/or |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1845 audio playback, because the video/audio codecs using the win32 DLLs |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1846 are not available. However, <B>DivX/OpenDivX</B> movies should work, |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1847 when using libavcodec. |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1848 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1849 To build the package you will need GNU make (gmake, /opt/sfw/gmake), native |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1850 Solaris make will not work. Typical error you get when building with solaris' |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1851 make instead of GNU make: |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1852 |
1371 | 1853 |
1854 % /usr/ccs/bin/make | |
1855 make: Fatal error in reader: Makefile, line 25: Unexpected end of line seen | |
1856 | |
1857 | |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1858 On Solaris SPARC, you need the GNU C/C++ Compiler; it does not matter |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1859 if GNU C/C++ compiler is configured with or without the GNU assembler. |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1860 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1861 On Solaris x86, you need the GNU assembler and the GNU C/C++ |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1862 compiler, configured to use the GNU assembler! The mplayer code on |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1863 the x86 platform makes heavy use of MMX, SSE and 3DNOW! |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1864 instructions that cannot be compiled using Sun's assembler |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1865 /usr/ccs/bin/as. |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1866 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1867 The configure script tries to find out, which assembler program is |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1868 used by your "gcc" command (in case the autodetection fails, use |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1869 the "--as=/whereever/you/have/installed/gnu-as" option to tell the |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1870 configure script where it can find GNU "as" on your system). |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1871 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1872 Error message from configure on a Solaris x86 system using GCC |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1873 without GNU assembler: |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1874 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1875 % configure |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1876 ... |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1877 Checking assembler (/usr/ccs/bin/as) ... , failed |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1878 Please upgrade(downgrade) binutils to 2.10.1... |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1879 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1880 (Solution: Install and use a gcc configured with "--with-as=gas") |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1881 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1882 Typical error you get when building with a GNU C compiler that does |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1883 not use GNU as: |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1884 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1885 % gmake |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1886 ... |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1887 gcc -c -Iloader -Ilibvo -O4 -march=i686 -mcpu=i686 -pipe -ffast-math |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1888 -fomit-frame-pointer -I/usr/local/include -o mplayer.o mplayer.c |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1889 Assembler: mplayer.c |
1500 | 1890 "(stdin)", line 3567 : Illegal mnemonic |
1891 "(stdin)", line 3567 : Syntax error | |
1373
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1892 ... more "Illegal mnemonic" and "Syntax error" errors ... |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1893 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1894 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1895 For DVD support you must have the patched libcss installed. Patch: |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1896 http://www.tools.de/solaris/mplayer/ |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1897 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1898 |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1899 Due to two bugs in solaris 8 x86, you cannot reliably play DVDs using a |
d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
gabucino
parents:
1371
diff
changeset
|
1900 capacity >4GB: |
1371 | 1901 |
1902 - The sd(7D) driver on solaris 8 x86 driver has bug when accessing a | |
1903 disk block >4GB on a device using a logical blocksize != DEV_BSIZE | |
1904 (i.e. CDROM and DVD media). Due to a 32bit int overflow, a disk | |
1905 address modulo 4GB is accessed. | |
1906 (http://groups.yahoo.com/group/solarisonintel/message/22516) | |
1907 | |
1908 - The similar bug is present in the hsfs(7FS) filesystem code (aka | |
1909 ISO9660), hsfs currently does not support partitions/disks >4GB, | |
1910 all data is accessed modulo 4GB | |
1911 (http://groups.yahoo.com/group/solarisonintel/message/22592) | |
1912 | |
1913 | |
1389 | 1914 <A NAME=7.4>7.4. StrongARM |
1915 | |
1916 MPlayer is reported to compile on StrongARM. Use the following command line: | |
1917 | |
1918 | |
1919 ./configure --target=arm-linux --disable-css --with-x11libdir=/usr/arm/lib | |
1920 --with-x11incdir=/usr/arm/lib --disable-gcc-checking | |
1921 | |
1922 | |
1371 | 1923 <A NAME=A>Appendix A - Authors |
1924 | |
1925 NOTE: Do *NOT* send bugreports, help & feature requests directly to the authors! | |
1386 | 1926 ===== Read Appendix <A HREF="#C">C</A> and subscribe to mplayer-users mailing lists. |
1371 | 1927 |
1379 | 1928 ========================== The <B>MPlayer</B> project: =============================== |
1371 | 1929 |
1930 Árpád Gereöffy (A'rpi/ESP-team): <arpi@thot.banki.hu> | |
1931 - player code (mpeg stream demultiplexer and avi/asf parser, A-V sync, seek...) | |
1932 - mp3lib, based on mpglib sources [MP3 audio decoder] | |
1933 - getch2 [keyboard handler] | |
1934 - some changes in libmpeg2 code (progressive frames, bitrate & fps support) | |
1935 - libvo improvements: adding OpenGL support, bugfix in mga driver... | |
1936 - triple buffering & YUY2 support (for DivX/MPEG4) into mga_vid driver | |
1386 | 1937 - scripts in the TVout directory (TVout on Matrox G400DH, read documentation) |
1371 | 1938 - hacking DivX/Mpeg4 VfW codecs to get YUV output |
1939 - opendivx decoder speed optimizations (see opendivx/ChangeLog) | |
1940 - OSD & SUB display code | |
1374 | 1941 - ffmpeg/libavcodec integration |
1942 - DivX4Linux (ProjectMayo) support (see documentation) | |
1371 | 1943 |
1944 Zoltán Ponekker (Pontscho/Fresh!): <pontscho@makacs.poliod.hu> | |
1945 - configure script and Makefiles for easy compile | |
1946 - GUI system (near complete!?) | |
1947 - 3DNow! support into mp3lib | |
1948 - 3DNow! support into fastmemcpy.h | |
1949 - various X11 driver changes (keyboard handling, fullscreen, bpp detect, etc) | |
1950 - libvo: adding xmga driver, and fullscreen support to xv | |
1951 - audio mixer (volume) support | |
1952 | |
1953 Gábor Lénárt (LGB): <lgb@lgb.hu> | |
1954 - ./configure script improvements | |
1955 - Makefile improvements | |
1956 - prelimenary DVD support | |
1957 - another GUI code (is that so..?) | |
1958 - various X11 cleanups and fixes | |
1959 | |
1960 Gábor Bérczi (Gabucino): <gabucino@k2.jozsef.kando.hu> | |
1961 - documentation maintainer | |
1962 - hungarian translation of documentation | |
1963 - second webpage design&gfx | |
1964 - webpage maintainer | |
1965 - testing, codecs quality & speed comparsions | |
1379 | 1966 - IRC channel #<B>MPlayer</B> operator |
1541 | 1967 (devel channel, users earn kickban) |
1371 | 1968 - experimental MINIX port |
1969 | |
1970 Szabolcs Berecz (Szabi): <szabi@inf.elte.hu> | |
1971 - codecs.conf file parser | |
1972 - config file and command line parser | |
1973 - mga_vid fixes, module option etc. | |
1974 - fbdev support in libvo | |
1975 - type #7 subtitle support | |
1976 | |
1977 László Megyer (Lez, Laaz): <lez@sch.bme.hu> | |
1978 - SUB reader | |
1979 - screensaver+DPMS disable for libvo | |
1980 | |
1981 Gyula László (Chass, Tégla): <chass-@freemail.hu> | |
1982 - first fonts (mp_font1.zip) | |
1983 - third (current) homepage design&gfx | |
1984 | |
1985 Zoltán Márk Vicián (Se7en): <se7en@sch.bme.hu> | |
1986 - SVGAlib support in libvo | |
1987 | |
1988 Alex Beregszaszi (Al3x): <alex@naxine.org> | |
1989 - ALSA output driver in libao2 | |
1990 - vo_ggi output driver in libvo (www.ggi-project.org) | |
1991 | |
1992 Andreas Ackermann (Acki): <asackerm@stud.informatik.uni-erlangen.de> | |
1386 | 1993 - LIRC support (see documentation) |
1371 | 1994 - DGA support in libvo |
1995 | |
1996 Felix Bünemann (Atmos): <atmosfear@users.sourceforge.net> | |
1997 - SDL driver maintainer | |
1998 - Additional YUV formats fixes | |
1999 - New font (mp_font2.zip) | |
2000 - PNG file output support in libvo | |
2001 - flipping support (for Indeo 3/4, etc) | |
2002 - SDL audio driver in libao2 | |
2003 - RAW PCM/WAVE file writer for libao2 | |
2004 | |
2005 TeLeNiEkO: <telenieko@telenieko.com> | |
2006 - spanish translation of documentation | |
2007 | |
2008 Michael Graffam: <mgraffam@idsi.net> | |
2009 - XF86VidMode support to vo_x11 and vo_dga | |
2010 - Video mode switching code to vo_dga | |
2011 | |
2012 Jens Hoffmann: <hoffmajs@gmx.de> | |
2013 - Additional YUV formats support | |
2014 - found the big BITMAPINFOHEADER problem -> solved ASV2 pixelization | |
2015 | |
2016 Nick Kurshev: <nickols_k@mail.ru> | |
2017 - memcpy optimizations for AMD K7 and Intel Pentium III (fastmemcpy.h) | |
2018 - CDROM tune info | |
2019 - further 3DNow! optimizations into mp3lib and libac3 | |
2020 - russian translation of documentation | |
2021 | |
2022 German Gomez Garcia: <german@piraos.com> | |
2023 - DVD .ifo parser and chapter selection [not yet in the main trunk] | |
2024 - SPDIF AC3 output for SBLive! [not yet in the main trunk] | |
2025 | |
2026 Dariush Pietrzak (Eyck): <eyck@incubus.ar.lublin.pl> | |
1386 | 2027 - debian packaging support (see debian/* and this documentation) |
1371 | 2028 - support for vplayer subtitle format |
2029 - prelimenary support for .RT subtitle format | |
2030 | |
2031 Jürgen Keil and Marcus Comstedt: <jk@tools.de> <marcus@idonex.se> | |
1379 | 2032 - patched <B>MPlayer</B> to work on Solaris 8 x86 |
1371 | 2033 - configure fixes |
2034 - SUN audio driver in libao2 | |
2035 | |
2036 Vladimir Kushnir: <vkushnir@Alfacom.net> | |
1379 | 2037 - patched <B>MPlayer</B> to work on FreeBSD x86 |
1371 | 2038 |
2039 Bertrand BAUDET: <bertrand_baudet@yahoo.com> | |
2040 - network streaming support | |
2041 | |
1534 | 2042 Folke Ashberg: <folke@ashberg.de> |
1514 | 2043 - native AAlib driver (-vo aa) |
2044 | |
1371 | 2045 Main testers: |
2046 Tibor Balázs (Tibcu) | |
2047 Péter Sasi (SaPe) | |
2048 Christoph H. Lampert | |
2049 Attila Kinali | |
2050 Dirk Vornheder | |
2051 | |
2052 ========================== The codecs, libs: ================================= | |
2053 | |
2054 Aaron Holtzman: <aholtzma@engr.uvic.ca> | |
2055 - ac3dec (and libac3) author [AC3 audio decoder] | |
2056 - mga_vid driver [Matrox G200/G400 YUV Back-end Scaler] | |
2057 - mpeg2dec [Fast MPEG1/MPEG2 video decoder, currently used in player] | |
2058 | |
2059 Michel Lespinasse: <walken@zoy.org> | |
2060 - did large libmpeg2 changes for better speed and mpeg conformance | |
2061 | |
2062 Eugene Kuznetsov: <divx@euro.ru> | |
2063 - avifile author [AVI player library for linux, using Win32 VfW/ACM codecs] | |
2064 - technical help about AVI and ASF formats, and how to get YUV using VfW... | |
2065 - divx4linux techical support | |
2066 | |
2067 Zdenek Kabelac: <kabi@informatics.muni.cz> | |
2068 - current avifile maintainer(?) | |
2069 - some technical help about the win32 stuff and timers | |
2070 | |
2071 Gerard Lantau: <glantau@yahoo.fr> | |
2072 - ffmpeg/libavcodec author,maintainer (opensource mpeg & divx en/decoder) | |
2073 | |
2074 Project Mayo: [http://www.projectmayo.com] | |
2075 - the OpenDivX codec authors | |
2076 | |
2077 Michael Hipp: | |
2078 - mpglib author [isn't used directly but some parts in mp3lib] | |
2079 | |
2080 Mark Podlipec: | |
2081 - xa_gsm.c author [MS-GSM audio codec] | |
2082 [from a GSM library by Jutta Degener and Carsten Bormann] | |
2083 | |
2084 Their code is not used in current player version, but I've got some ideas or | |
2085 other technical help from: | |
2086 | |
2087 John F. McGowan http://www.jmcgowan.com/ | |
2088 - AVI FAQ author/collector. [site with many useful docs on codecs and avi fmt] | |
2089 | |
2090 Dirk Farin: <farin@ti.uni-mannheim.de> | |
2091 - dvdview author [MPEG1/MPEG2 video decoder, used in v0.5-v0.8] | |
2092 | |
2093 Adam Williams: <broadcast@earthling.net> | |
2094 - libmpeg3 (and xmovie) author [MPEG1/MPEG2 video decoder, used in v0.1-v0.4] | |
2095 | |
2096 | |
2097 <A NAME=B>Appendix B - Mailing lists | |
2098 | |
1379 | 2099 There are some public mailing lists on <B>MPlayer</B>. Subscribing can be achieved on |
1371 | 2100 the following addresses: |
2101 | |
1379 | 2102 - <B>MPlayer</B> core/hungarian developers list: |
1371 | 2103 http://mp.dev.hu/mailman/listinfo/mplayer-devel |
2104 | |
2105 I dunno, it is the FLAME list in hungarian language :) | |
2106 Also some talking about mplayer core team internals, like mplayer | |
2107 party, sponsors etc can be here. | |
2108 | |
1379 | 2109 - <B>MPlayer</B> developers list: |
1371 | 2110 http://lists.sourceforge.net/lists/listinfo/mplayer-dev-eng |
2111 | |
2112 This list is about mplayer development! Talking about interface/API changes, | |
2113 new libraryes, code optimization, ./configure changes, and send patches here. | |
2114 Do NOT send bugreports, user questions, feature requests here! | |
2115 This list should be kept low-traffic. | |
2116 | |
1379 | 2117 - <B>MPlayer</B> users list: |
1371 | 2118 http://lists.sourceforge.net/lists/listinfo/mplayer-users |
2119 | |
1386 | 2120 - send bugreports here (after reading DOCS/BUGS, Appendix <A HREF="#C">C</A>) |
1371 | 2121 - send feature requests here (after reading DOCS/TODO) |
1386 | 2122 - send user questions here (after reading all this documentation) |
1371 | 2123 |
1379 | 2124 - <B>MPlayer</B> & Matrox G200/G400/G450 users: |
1371 | 2125 http://lists.sourceforge.net/lists/listinfo/mplayer-matrox |
2126 | |
2127 Send matrox-related questions here, | |
2128 - things about mga_vid, | |
2129 - matrox's official beta drivers (for X 4.x.x) | |
2130 - and about matroxfb-TVout stuff. | |
2131 | |
2132 - mpg12play-portable developers: | |
2133 http://lists.sourceforge.net/lists/listinfo/mplayer-mpg12play | |
2134 | |
2135 This list is for talking about mplayer ports to non-x86 platforms | |
2136 (IRIX, Solaris-SPARC, Alpha, Commodore64, Sharp Calculator, | |
2137 Teapot etc...) | |
2138 | |
1379 | 2139 - <B>MPlayer</B> announce: |
1371 | 2140 http://lists.sourceforge.net/lists/listinfo/mplayer-announce |
2141 | |
2142 Very low traffic list :) | |
2143 And it's read-only. I'll post something shit there if a new release | |
2144 is done. | |
2145 | |
1379 | 2146 - <B>MPlayer</B> CVS-log: |
1371 | 2147 http://mp.dev.hu/mailman/listinfo/mplayer-cvslog |
2148 | |
2149 Send only questions about CVS changes here. | |
2150 (if you don't understand why a change is required or you've better fix) | |
2151 Be sure in that your target developer reads this list! | |
2152 | |
2153 NOTE: language of above lists are ENGLISH, unless explicitly stated otherwise. | |
2154 Please do not send messages using other language! | |
2155 | |
2156 | |
2157 <A NAME=C>Appendix C - How to report bugs | |
2158 | |
2159 How to report bugs? | |
2160 ~~~~~~~~~~~~~~~~~~~ | |
2161 First read DOCS/BUGS, and other docs. If your problem isn't | |
2162 known or isn't solved by our instructions, then report the bug: | |
2163 | |
2164 Where? | |
2165 ====== | |
2166 Subscribe to the mplayer-users mailing list: | |
2167 http://lists.sourceforge.net/lists/listinfo/mplayer-users | |
2168 and send your bugreport to: | |
2169 mplayer-users@lists.sourceforge.net | |
2170 We won't CC: so please subscribe!!! | |
2171 | |
2172 Don't send bugreports private, directly to author's address!!! | |
2173 We are working together on code, so everyone is interested in it. | |
2174 BTW many times other users know the solution (system config probs, | |
2175 bad drivers etc), even when we think it's a bug in our code. | |
2176 The language of this list is ENGLISH ! | |
2177 | |
2178 Please describe your problem in details, examples etc, and don't | |
2179 forget to include these: | |
2180 | |
2181 What? | |
2182 ===== | |
2183 | |
2184 1. The system info what we always want: | |
2185 - linux distribution | |
2186 examples: | |
2187 RedHat 7.1 | |
2188 Slackware 7.0 + devel packs from 7.1 ... | |
2189 - kernel version: | |
2190 uname -a | |
2191 - libc version: | |
2192 ls -l /lib/libc[.-]* | |
2193 - X version: | |
2194 X -version | |
2195 - gcc and ld version: | |
2196 gcc -v | |
2197 ld -v | |
2198 - binutils version: | |
2199 as --version | |
2200 | |
2201 2. Hardware & drivers: | |
2202 - CPU info: | |
2203 cat /proc/cpuinfo | |
2204 - video card manufacturer and model | |
2205 examples: | |
2206 ASUS V3800U chip: nVidia TNT2 Ultra pro 32MB SDRAM | |
2207 Matrox G400 DH 32MB SGRAM | |
2208 - video driver type&version | |
2209 examples: | |
2210 X built-in driver | |
2211 nvidia 0.9.623 | |
2212 Utah-GLX CVS 2001-02-17 | |
2213 DRI from X 4.0.3 | |
2214 - sound card type & driver | |
2215 examples: | |
2216 Creative SBLive! Gold with OSS driver from oss.creative.com | |
2217 Creative SB16 with OSS drivers of kernel | |
2218 GUS PnP with ALSA OSS emulation | |
2219 - if you are unsure, attach output of lspci -v | |
2220 | |
2221 For compiling problems/errors: | |
2222 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
2223 3. output of configure/make: | |
2224 make distclean | |
2225 ./configure &>config.log | |
2226 ./make &>make.log | |
2227 4. these files: | |
2228 config.h | |
2229 config.mak | |
2230 libvo/config.mak | |
2231 | |
2232 For playback problems: | |
2233 ~~~~~~~~~~~~~~~~~~~~~~ | |
2234 3. Output of mplayer at verbose level 1 (-v) | |
2235 mplayer -v [options] filename &> mplayer.log | |
2236 | |
2237 4. If the problem is specific to one or a few files, | |
2238 then please upload that file to: | |
1379 | 2239 ftp://mplayerhq.hu/MPlayer/incoming/ |
1371 | 2240 Usually first 1-5 MB of the file is enough to reproduce |
2241 the problem, but first you should try it: | |
2242 dd if=yourfile of=smallfile bs=1k count=1024 | |
2243 (it will cut first 1MB of 'yourfile' and save to 'smallfile') | |
2244 Then try again on this small file, and if bug still exists | |
2245 then it's enough to upload this small file. | |
2246 NEVER send such files via mail! Upload it, and send only | |
2247 the path/filename of the file on the FTP. | |
2248 If the file is accessible on the net, then sending the | |
2249 _exact_ URL is enough! | |
2250 | |
2251 5. For crashes (segfault, SIGILL, signal 4 etc): | |
2252 | |
2253 If you have coredump of the crash, see 5.a, else see 5.b: | |
2254 | |
2255 5.a: Please print us coredump (if it was created). | |
2256 Howto: | |
2257 please create following command file: | |
2258 | |
2259 disass $eip-32 $eip+32 | |
2260 printf "eax=%08lX\n",$eax | |
2261 printf "ebx=%08lX\n",$ebx | |
2262 printf "ecx=%08lX\n",$ecx | |
2263 printf "edx=%08lX\n",$edx | |
2264 printf "esp=%08lX\n",$esp | |
2265 printf "ebp=%08lX\n",$ebp | |
2266 printf "edi=%08lX\n",$edi | |
2267 printf "esi=%08lX\n",$esi | |
2268 | |
2269 Then simply execute following command line: | |
2270 gdb mplayer --core=core -batch --command=command_file >mplayer.bug | |
2271 | |
1379 | 2272 5.b.: run <B>MPlayer</B> in gdb: |
1371 | 2273 [at root/user shell prompt:] |
2274 # gdb mplayer | |
2275 [at gdb prompt:] | |
2276 > run -v [options-to-mplayer] filename | |
2277 ... (wait until it will crash) | |
2278 > bt | |
2279 > disass $eip-32 $eip+32 | |
2280 Send us the full output of the above things! | |
2281 | |
2282 In general: | |
2283 ~~~~~~~~~~~ | |
2284 If something is big (logs etc) then it's better to upload to the ftp | |
2285 (gzipped), and include only path/filename in the bugreport! | |
2286 | |
2287 </BODY> | |
2288 | |
2289 </HTML> |