comparison DOCS/xml/en/faq.xml @ 9675:62c5a17038ba

XML version of MPlayer's doc
author nicolas
date Sun, 23 Mar 2003 23:35:12 +0000
parents
children 142c42fa0986
comparison
equal deleted inserted replaced
9674:461f71ba8af4 9675:62c5a17038ba
1 <?xml version="1.0" encoding="iso-8859-1"?>
2 <chapter id="faq" xreflabel="FAQ">
3 <title>Frequently Asked Questions</title>
4
5 <qandaset defaultlabel="number">
6
7 <qandadiv id="faq-compilation">
8 <title>Compilation</title>
9 <qandaentry>
10 <question><para>
11 Compilation stops with an error message similar to this one:
12 <screen>
13 In file included from mplayer.c:34:
14 mw.h: In function `mplMainDraw':
15 mw.h:209: Internal compiler error in print_rtl_and_abort, at flow.c:6458
16 Please submit a full bug report,
17 with preprocessed source if appropriate.
18 </screen>
19 </para></question>
20 <answer><para>
21 This is a known problem of <application>gcc</application> 3.0.4, upgrade
22 to 3.1 to solve the problem. How to install gcc is described in the
23 <link linkend="gcc-296">gcc 2.96</link> section.
24 </para></answer>
25 </qandaentry>
26
27 <qandaentry>
28 <question><para>
29 Configure ends with this text, and MPlayer won't compile!
30 <screen>Your gcc does not support even i386 for '-march' and '-mcpu'</screen>
31 </para></question>
32 <answer><para>
33 Your gcc isn't installed correctly, check the <filename>config.log</filename>
34 file for details.
35 </para></answer>
36 </qandaentry>
37
38 <qandaentry>
39 <question><para>
40 What does &quot;No such file or directory&quot; mean?
41 </para></question>
42 <answer><para>
43 Probably there is no such file or directory.
44 </para></answer>
45 </qandaentry>
46
47 <qandaentry>
48 <question><para>
49 What's the problem with gcc 2.96?
50 </para></question>
51 <answer><para>
52 <emphasis role="bold">We strongly discourage the use of gcc 2.96!</emphasis>
53 Read <link linkend="gcc-296">this</link> document for details about why Red Hat
54 released gcc 2.96 and what the problems are all about. If you still really really
55 want to use it, be sure to get the latest release and give the
56 <option>--disable-gcc-checking</option> option to configure. Remember that you
57 are on your own from this point. Do <emphasis role="bold">not</emphasis> report
58 bugs, do <emphasis role="bold">not</emphasis> ask for help on the mailing lists.
59 We will <emphasis role="bold">not</emphasis> provide any support in case you run
60 into problems.
61 </para></answer>
62 </qandaentry>
63
64 <qandaentry>
65 <question><para>
66 Great, I have gcc 3.0.1 from Red Hat/Mandrake, then I'm fine!
67 </para></question>
68 <answer><para>
69 No, since there have been/are issues with these compilers as well.
70 To check the status of current compilers' MPlayer support, see the
71 <link linkend="install">Installation</link> section.
72 </para></answer>
73 </qandaentry>
74
75 <qandaentry>
76 <question><para>
77 I tried to compile MPlayer, but I got this output:
78 <screen>
79 In file included from /usr/include/g++-v3/bits/std_cwchar.h:42,
80 from /usr/include/g++-v3/bits/fpos.h:40,
81 from /usr/include/g++-v3/bits/char_traits.h:40,
82 from /usr/include/g++-v3/bits/std_string.h:41,
83 from /usr/include/g++-v3/string:31,
84 from libwin32.h:36,
85 from DS_AudioDecoder.h:4,
86 from DS_AudioDec.cpp:5:
87 /usr/include/wchar.h: In function Long long int wcstoq(const wchar_t*,
88 wchar_t**, int)':
89 /usr/include/wchar.h:514: cannot convert `const wchar_t* __restrict' to
90 `const
91 </screen>
92 </para></question>
93 <answer><para>
94 Upgrade your glibc to the latest release. On Mandrake, use 2.2.4-8mdk.
95 </para></answer>
96 </qandaentry>
97
98 <qandaentry>
99 <question><para>
100 .. gcc 2.96 ... (Yes, some people are STILL flaming about gcc 2.96!)
101 </para></question>
102 <answer><para>
103 Quoted from a <ulink url="http://www.mplayerhq.hu/pipermail/mplayer-users/2001-October/005351.html">mail</ulink>
104 A'rpi sent to the <ulink url="http://mplayerhq.hu/pipermail/mplayer-users/">mplayer-users</ulink>
105 list (the word 'ideg' is described below):
106 <blockquote>
107 <para>
108 And we have idegs. And our idegcounter overflowed again and again.
109 </para>
110 <para>
111 Unfortunately MPlayer is out of our control. It's used by lamers, Linux
112 users who can't even use Windows, and never tried to compile a kernel. They
113 installed (with default options) Mandrake or Red Hat or SuSE, and without
114 RTFM'ing they send messages saying 'it doesn't work! help me! please! i'm
115 new to Linux! help! oh! help me!'. We can't stop them, but at least we try
116 to force them to RTFM and to read the messages of ./configure and MPlayer.
117 </para>
118 <para>
119 And you clever guys come and flame us with gcc 2.96 and binary packages.
120 Instead of helping users or making patches to help solve problems.
121 </para>
122 <para>
123 Half of our spare/free time is spent by answering silly mails here and
124 making newer tricks and checks to configure to avoid such mails.
125 </para>
126 <para>
127 And there is a balance. On the one side are you, clever guys, saying we
128 are very bad because we don't like buggy gcc 2.96, and on the other side
129 there are the 'new to Linux' guys who are showing us gcc 2.96 is buggy.
130 </para>
131 <para>
132 Conclusion: We can't be good. Half the people will always say we are bad.
133 </para>
134 <para>
135 Maybe we should close the project, make it closed source, commercial, and
136 provide install support for it. then we could leave current work, so development
137 could go faster, and we could earn lots of money with it and buy a big house,
138 etc etc. Do you really want it? It seems.
139 </para>
140 </blockquote>
141 </para></answer>
142 </qandaentry>
143
144 <qandaentry>
145 <question><para>
146 SDL output doesn't work or compile. The problem is ...
147 </para></question>
148 <answer><para>
149 It was tested to work with SDL 1.2.x and may run on SDL 1.1.7+. It does
150 <emphasis role="bold">not</emphasis> work with any previous version. So
151 if you choose to use such a version, you are on your own.
152 </para></answer>
153 </qandaentry>
154
155 <qandaentry>
156 <question><para>
157 I am still having trouble compiling with SDL support. gcc says something
158 about &quot;undefined reference to `SDL_EnableKeyRepeat'&quot;. What now?
159 </para></question>
160 <answer><para>
161 Where did you install the SDL library? If you installed in <filename>/usr/local</filename>
162 (the default) then edit the top level <filename>config.mak</filename> and add
163 &quot;-L/usr/local/lib&quot; after &quot;X_LIBS=&quot;. Now type
164 <command>make</command>. You're done!
165 </para></answer>
166 </qandaentry>
167
168 <qandaentry>
169 <question><para>
170 It doesn't compile, and it misses uint64_t inttypes.h and similar things ...
171 </para></question>
172 <answer><para>
173 Copy <filename>etc/inttypes.h</filename> to the MPlayer directory
174 (<command>cp etc/inttypes.h .</command>) and try again ...
175 </para></answer>
176 </qandaentry>
177
178 <qandaentry>
179 <question><para>
180 I have Linux running on a Pentium III but <filename>./configure</filename>
181 doesn't detect SSE ...
182 </para></question>
183 <answer><para>
184 Only kernel versions 2.4.x support SSE (or try 2.2.19 or newer, but be
185 prepared for problems).
186 </para></answer>
187 </qandaentry>
188
189 <qandaentry>
190 <question><para>
191 I have a G200/G400, how do I compile/use the mga_vid driver?
192 </para></question>
193 <answer><para>
194 Read the <link linkend="mga_vid">mga_vid documentation</link>.
195 </para></answer>
196 </qandaentry>
197
198 <qandaentry>
199 <question><para>
200 Are there rpm/deb/... packages of MPlayer?
201 </para></question>
202 <answer><para>
203 You can make a .deb package for yourself, check the
204 <link linkend="debian">Debian packaging</link> section. There are links to
205 official Red Hat RPM packages available on our
206 <ulink url="http://www.mplayerhq.hu/homepage/dload.html">download page</ulink>.
207 </para></answer>
208 </qandaentry>
209
210 <qandaentry>
211 <question><para>
212 During 'make', MPlayer complains about X11 libraries. I don't understand,
213 I DO have X installed!?
214 </para></question>
215 <answer><para>
216 ... but you don't have the X development package installed. Or not correctly.
217 It's called <filename>XFree86-devel*</filename> under Red Hat, and
218 <filename>xlibs-dev</filename> under Debian. Also check if the
219 <filename class="directory">/usr/X11</filename> and
220 <filename class="directory">/usr/include/X11</filename> symlinks exist (this
221 can be a problem on Mandrake systems). They can be created with these commands:
222 <screen>
223 $ ln -sf /usr/X11R6 /usr/X11
224 $ ln -sf /usr/X11R6/include/X11 /usr/include/X11
225 </screen>
226 Your distribution may differ from the
227 <ulink url="http://www.pathname.com/fhs/">Filesystem Hierarchy Standard</ulink>.
228 </para></answer>
229 </qandaentry>
230
231 <qandaentry>
232 <question><para>
233 I can't compile SVGAlib. I'm using kernel 2.3/2.4 ...
234 </para></question>
235 <answer><para>
236 You have to edit SVGAlib's <filename>Makefile.cfg</filename> and comment
237 <systemitem>BACKGROUND = y</systemitem> out.
238 </para></answer>
239 </qandaentry>
240
241 <qandaentry>
242 <question><para>
243 I compiled MPlayer with libdvdcss/libdivxdecore support, but when I try to start it, it says:
244 <screen>
245 error while loading shared libraries: lib*.so.0: cannot load shared object file: No such file or directory
246 </screen>
247 I checked up on the file and it IS there in <filename class="directory">/usr/local/lib</filename> ...
248 </para></question>
249 <answer><para>
250 Add <filename class="directory">/usr/local/lib</filename> to <filename>/etc/ld.so.conf</filename>
251 and run <command>ldconfig</command>.
252 </para></answer>
253 </qandaentry>
254
255 <qandaentry>
256 <question><para>
257 Hmm, strange. When loading the <filename>mga_vid.o</filename> kernel module, I
258 found this in the logs:
259 <programlisting>
260 Warning: loading mga_vid.o will taint the kernel: no license
261 </programlisting>
262 </para></question>
263 <answer><para>
264 The latest kernel modutils require a flag indicating the license (mainly to avoid
265 kernel hackers debugging closed source drivers). Upgrade your kernel, modutils
266 and <application>MPlayer</application>.
267 </para></answer>
268 </qandaentry>
269
270 <qandaentry>
271 <question><para>
272 When compiling <application>MEncoder</application>, it segfaults at linking!
273 </para></question>
274 <answer><para>
275 This is a linker problem. Upgrading binutils should help (2.11.92.*
276 or newer should be good). Since it is not our fault, please do
277 <emphasis role="bold">not</emphasis> report!
278 </para></answer>
279 </qandaentry>
280
281 <qandaentry>
282 <question><para>
283 MPlayer dies with segmentation fault upon pthread check!
284 </para></question>
285 <answer><para>
286 <command>chmod 644 /usr/lib/libc.so</command>
287 </para></answer>
288 </qandaentry>
289
290 <qandaentry>
291 <question><para>
292 I'd like to compile <application>MPlayer</application> on Minix!
293 </para></question>
294 <answer><para>
295 Me too. :)
296 </para></answer>
297 </qandaentry>
298
299 </qandadiv>
300
301 <qandadiv id="faq-general">
302 <title>General questions</title>
303 <qandaentry>
304 <question><para>
305 How do I create a proper patch for MPlayer?
306 </para></question>
307 <answer><para>
308 We made a <ulink url="../../tech/patches.txt">short document</ulink>
309 describing all the necessary details. Please follow the instructions.
310 </para></answer>
311 </qandaentry>
312
313 <qandaentry>
314 <question><para>
315 How can I support MPlayer development?
316 </para></question>
317 <answer><para>
318 We are more than happy to accept your hardware and software
319 <ulink url="http://www.mplayerhq.hu/homepage/donations.html">donations</ulink>.
320 They help us in continuously improving MPlayer.
321 </para></answer>
322 </qandaentry>
323
324 <qandaentry>
325 <question><para>
326 How can I become an MPlayer developer?
327 </para></question>
328 <answer><para>
329 We always welcome coders and documenters. Read the
330 <ulink url="../../tech/">technical documentation</ulink>
331 to get a first grasp. Then you should subscribe to the
332 <ulink url="http://mplayerhq.hu/mailman/listinfo/mplayer-dev-eng">mplayer-dev-eng</ulink>
333 mailing list and start coding.
334 </para></answer>
335 </qandaentry>
336
337 <qandaentry>
338 <question><para>
339 Can I run multiple instances of MPlayer?
340 </para></question>
341 <answer><para>
342 Yes. Some video out drivers like xv, dga or (x)mga are exclusive, some are
343 exclusive in combination with certain graphics boards and drivers. You will
344 not be able to run more than one instance of MPlayer with one of those video
345 out drivers. To a lesser degree this also applies to audio drivers. Not all
346 allow playback of multiple streams on the same device.
347 </para></answer>
348 </qandaentry>
349
350 <qandaentry>
351 <question><para>
352 There is a timer in the upper left corner. How can I get rid of it?
353 </para></question>
354 <answer><para>
355 Press <keycap>o</keycap> and try the <option>-osdlevel</option> option.
356 </para></answer>
357 </qandaentry>
358
359 <qandaentry>
360 <question><para>
361 The <option>-xy</option> or <option>-fs</option> option doesn't work with
362 the x11 driver (<option>-vo x11</option>) ...
363 </para></question>
364 <answer><para>
365 It does, but you have to explicitly specify software scaling (very slow) with the
366 <option>-zoom</option> option. You better use XF86VidMode support: You must
367 specify the <option>-vm</option> and the <option>-fs</option> option, and you're
368 done. Make sure you have the right modelines in your <filename>XF86Config</filename>
369 file, and try to make the <link linkend="dga">DGA driver</link> and
370 <link linkend="sdl">SDL's DGA driver</link> work for you. It's much
371 faster. If SDL's DGA works, use that, it'll be even faster.
372 </para></answer>
373 </qandaentry>
374
375 <qandaentry>
376 <question><para>
377 What is the meaning of the numbers on the status line?
378 </para></question>
379 <answer><para>
380 Example:
381 <screen>A: 2.1 V: 2.2 A-V: -0.167 ct: 0.042 57/57 41% 0% 2.6% 0 4 49%</screen>
382 <itemizedlist>
383 <listitem><para>A: audio position in seconds</para></listitem>
384 <listitem><para>V: video position in seconds</para></listitem>
385 <listitem><para>A-V: audio-video difference in seconds (delay)</para></listitem>
386 <listitem><para>ct: total A-V sync correction done</para></listitem>
387 <listitem><para>frames played (counting from last seek)</para></listitem>
388 <listitem><para>frames decoded (counting from last seek)</para></listitem>
389 <listitem><para>video codec cpu usage in percent (for slices and DR this includes
390 video_out)</para></listitem>
391 <listitem><para>video_out cpu usage</para></listitem>
392 <listitem><para>audio codec cpu usage in percent</para></listitem>
393 <listitem><para>frames needed to drop to maintain A-V sync</para></listitem>
394 <listitem><para>current level of image postprocessing (when using
395 <option>-autoq</option>)</para></listitem>
396 <listitem><para>current cache size used (around 50% is normal)</para></listitem>
397 </itemizedlist>
398 Most of them are for debug purposes and will be removed at some point.
399 </para></answer>
400 </qandaentry>
401
402 <qandaentry>
403 <question><para>
404 What if I don't want them to appear?
405 </para></question>
406 <answer><para>
407 Use the <option>-quiet</option> option and read the man page.
408 </para></answer>
409 </qandaentry>
410
411 <qandaentry>
412 <question><para>
413 Why is video_out cpu usage zero (0%) for some files?
414 </para></question>
415 <answer><para>
416 It's not zero, but it's called from the codec and thus cannot be measured
417 separately. You should try to play the file using <option>-vo null</option> and
418 then <option>-vo ...</option> and check the difference to see the video_out speed.
419 </para></answer>
420 <answer><para>
421 You are using Direct Rendering, where the codec renders to the video memory
422 itself. In this case, the decoding percentage contains the display percentage, too.
423 </para></answer>
424 </qandaentry>
425
426 <qandaentry>
427 <question><para>
428 There are error messages about file not found <filename>/usr/lib/win32/</filename> ...
429 </para></question>
430 <answer><para>
431 Download the Win32 codecs from our
432 <ulink url="http://www.mplayerhq.hu/MPlayer/releases/codecs/">codecs page</ulink>
433 (avifile's codec package has a different DLL set) and install it.
434 </para></answer>
435 </qandaentry>
436
437 <qandaentry>
438 <question><para>
439 Are there any mailing lists on MPlayer?
440 </para></question>
441 <answer><para>
442 Yes. See the bottom of the info page on
443 <ulink url="http://www.mplayerhq.hu/homepage/info.html">our homepage</ulink>
444 to subscribe.
445 </para></answer>
446 </qandaentry>
447
448 <qandaentry>
449 <question><para>
450 I've found a nasty bug when I tried to play my favorite video! Who should I inform?
451 </para></question>
452 <answer><para>
453 Please read the
454 <ulink url="http://www.mplayerhq.hu/DOCS/bugreports.html">bug reporting guidelines</ulink>
455 and follow the instructions.
456 </para></answer>
457 </qandaentry>
458
459 <qandaentry>
460 <question><para>
461 I have problems playing files with the ... codec. Can I use them?
462 </para></question>
463 <answer><para>
464 Check the <ulink url="http://www.mplayerhq.hu/DOCS/codecs-status.html">codec status</ulink>,
465 if it doesn't contain your codec, read the <link linkend="codecs">codec documentation</link>,
466 especially the <link linkend="win32-codecs">codec importing HOWTO</link> and contact us.
467 </para></answer>
468 </qandaentry>
469
470 <qandaentry>
471 <question><para>
472 Umm, what is &quot;IdegCounter&quot;?
473 </para></question>
474 <answer><para>
475 A combination of a Hungarian and an English word. &quot;Ideg&quot; in Hungarian
476 means the same as "nerve" in English, and is pronounced as something like
477 quot;ydaegh&quot;. It was first used to measure the nervousness of A'rpi, after
478 some (umm) &quot;mysterious&quot; disappearance of CVS code ;)
479 </para></answer>
480 </qandaentry>
481
482 <qandaentry>
483 <question><para>
484 And what is &quot;Faszom(C)ounter&quot;
485 </para></question>
486 <answer><para>
487 &quot;Fasz&quot; is a Hungarian word you don't want to know, the others are
488 connected to the perverted minds of the MPlayer developers.
489 </para></answer>
490 </qandaentry>
491
492 <qandaentry>
493 <question><para>
494 LIRC doesn't work, because ...
495 </para></question>
496 <answer><para>
497 Are you sure you are using <command>mplayer</command> instead of
498 <command>mplayer_lirc</command>? Note that it was <command>mplayer_lirc</command>
499 for a long time, including the 0.60 release, but it was recently changed back to
500 <command>mplayer</command>.
501 </para></answer>
502 </qandaentry>
503
504 <qandaentry>
505 <question><para>
506 Subtitles are very nice, the most beautiful I've ever seen, but they
507 slow down playing! I know it's unlikely ...
508 </para></question>
509 <answer><para>
510 After running <filename>./configure</filename>, edit <filename>config.h</filename>
511 and replace <systemitem>#undef FAST_OSD</systemitem> with
512 <systemitem>#define FAST_OSD</systemitem>. Then recompile.
513 </para></answer>
514 </qandaentry>
515
516 <qandaentry>
517 <question><para>
518 The onscreen display (OSD) is flickering!
519 </para></question>
520 <answer><para>
521 You use a vo driver with single buffering (x11,xv). With xv, use the
522 <option>-double</option> option. Also try <option>-vop expand</option>.
523 </para></answer>
524 </qandaentry>
525
526 <qandaentry>
527 <question><para>
528 What exactly is this libavcodec thing?
529 </para></question>
530 <answer><para>
531
532 </para></answer>
533 </qandaentry>
534
535 <qandaentry>
536 <question><para>
537 But configure tells me &quot;Checking for libavcodec ... no&quot;!
538 </para></question>
539 <answer><para>
540 See the <link linkend="ffmpeg">libavcodec section</link>.
541 </para></answer>
542 </qandaentry>
543
544 <qandaentry>
545 <question><para>
546 Icewm's taskbar keeps covering the movie in fullscreen mode!
547 </para></question>
548 <answer><para>
549 You need to get libavcodec from FFmpeg's CVS. Read the instructions in the
550 <link linkend="ffmpeg">libavcodec section</link>.
551 </para></answer>
552 </qandaentry>
553
554 <qandaentry>
555 <question><para>
556 I can't access the GUI menu. I press right click, but I can't
557 access any menu items!
558 </para></question>
559 <answer><para>
560 This shouldn't happen anymore, if it still does use the <option>-fstype</option>
561 layer option and report it to the <ulink url="http://mplayerhq.hu/pipermail/mplayer-users/">mplayer-users</ulink>
562 mailing list.
563 </para></answer>
564 </qandaentry>
565
566 <qandaentry>
567 <question><para>
568 How can I run MPlayer in the background?
569 </para></question>
570 <answer><para>
571 Use:
572 <screen>mplayer <replaceable>options</replaceable> <replaceable>filename</replaceable> &lt; /dev/null &amp;</screen>
573 </para></answer>
574 </qandaentry>
575 </qandadiv>
576
577 <qandadiv id="faq-playback">
578 <title>Playback problems</title>
579 <qandaentry>
580 <question><para>
581 I can play certain AVIs but I get no sound and this kind of error:
582 <screen>
583 Detected audio codec: [divx] afm:4 (DivX audio (WMA))
584 Requested audio codec family [divx] (afm=4) not available (enable it at
585 compile time!)
586 </screen>
587 </para></question>
588 <answer><para>
589 Probably the audio uses a codec not natively supported by MPlayer. Install the
590 Win32 codec package as described in the README or in the
591 <link linkend="install">Installation</link> section.
592 </para></answer>
593 </qandaentry>
594 <qandaentry>
595 <question><para>
596 ... works with avifile/aviplay but doesn't with <application>MPlayer</application>.
597 </para></question>
598 <answer><para>
599 MPlayer is not avifile. The only common thing between these players is the Win32
600 DLL loader. The codecs (DLL) set, synchronization, demultiplexing etc is totally
601 different and shouldn't be compared. If something works with aviplay it doesn't
602 mean that MPlayer will work and vice versa.
603 </para></answer>
604 </qandaentry>
605 <qandaentry>
606 <question><para>
607 Audio goes out of sync playing an AVI file.
608 </para></question>
609 <answer><para>
610 Try the <option>-bps</option> or <option>-nobps</option> option. If it does not
611 improve, read <link linkend="bugreports">this</link> and upload the file to FTP.
612 </para></answer>
613 </qandaentry>
614 <qandaentry>
615 <question><para>
616 <application>MPlayer</application> exits with some error when using <filename>l3codeca.acm</filename>.
617 </para></question>
618 <answer><para>
619 Check <command>ldd /usr/local/bin/mplayer</command> output. If it contains
620 <screen>libc.so.6 => /lib/libc.so.6 (0x4???????)</screen>
621 where &quot;?&quot; is any number then it's OK, the error is not here. If it is:
622 <screen>libc.so.6 => /lib/libc.so.6 (0x00??????)</screen>
623 then there is a problem with your kernel/libc. Maybe you are using some security
624 patches (for example Solar Designer's OpenWall patch) which forces loading
625 libraries to very low addresses. Because <filename>l3codeca.acm</filename> is a
626 non-relocatable DLL, it must be loaded to <literal>0x00400000</literal>, we can't
627 change this. You should use a non-patched kernel, or use MPlayer's
628 <option>-afm 1</option> option to disable using <filename>l3codeca.acm</filename>.
629 </para></answer>
630 </qandaentry>
631 <qandaentry>
632 <question><para>
633 My computer plays MS DivX AVIs with resolutions ~ 640x300 and stereo mp3 sound
634 too slow. When I use <option>-nosound</option> option, everything is OK (but quiet).
635 </para></question>
636 <answer><para>
637 Your machine is too slow or your soundcard driver is broken. Consult the
638 documentation to see if you can improve performance.
639 </para></answer>
640 </qandaentry>
641 <qandaentry>
642 <question><para>
643 <application>MPlayer</application> dies with &quot;MPlayer interrupted by
644 signal 4 in module: decode_video&quot;.
645 </para></question>
646 <answer><para>
647 Try running MPlayer on the machine you compiled on. Or recompile with runtime
648 CPU detection (<command>./configure --enable-runtime-cpudetection</command>).
649 Don't use MPlayer on a CPU different from the one it was compiled on, without
650 using the feature mentioned just now.
651 </para></answer>
652 </qandaentry>
653 <qandaentry>
654 <question><para>
655 I have problems with [your window manager] and fullscreen xv/xmga/sdl/x11 modes ...
656 </para></question>
657 <answer><para>
658 Read the <link linkend="bugreports">bug reporting guidelines</link> and send us
659 a proper bug report.
660 </para></answer>
661 </qandaentry>
662 <qandaentry>
663 <question><para>
664 I got this playing MPEG files: Can't find codec for video format 0x10000001!
665 </para></question>
666 <answer><para>
667 You have an old version of <filename>codecs.conf</filename> at
668 <filename class="directory">~/.mplayer/</filename>. Upgrade it from
669 <filename class="directory">/etc/</filename>.
670 <emphasis role="bold">OR</emphasis> you have the <option>vc=</option> option or
671 something similar in your config file(s).
672 </para></answer>
673 </qandaentry>
674 <qandaentry>
675 <question><para>
676 When starting <application>MPlayer</application> under KDE I just get a black
677 screen and nothing happens. After about one minute the video starts playing.
678 </para></question>
679 <answer><para>
680 The KDE arts sound daemon is blocking the sound device. Either wait until the
681 video starts or disable the arts-daemon in kontrol center. If you want to use
682 arts sound, specify audio output via our native arts audio driver
683 (<option>-ao arts</option>). If it fails or isn't compiled in, try SDL
684 (<option>-ao sdl</option>) and make sure your SDL can handle arts sound. Yet
685 another option is to start MPlayer with artsdsp.
686 </para></answer>
687 </qandaentry>
688 <qandaentry>
689 <question><para>
690 I have an AVI that produces a gray screen when played with <option>-vc odivx</option>
691 and a green one with <option>-vc divx4</option>.
692 </para></question>
693 <answer><para>
694 It's not a DivX file, but an MS MPEG4v3. Update your <filename>codecs.conf</filename>.
695 </para></answer>
696 </qandaentry>
697 <qandaentry>
698 <question><para>
699 When I play this movie I get video-audio desync and/or <application>MPlayer</application>
700 crashes with the following message:
701 <screen>DEMUXER: Too many (945 in 8390980 bytes) video packets in the buffer!</screen>
702 </para></question>
703 <answer><para>
704 This can have multiple reasons.
705 <itemizedlist>
706 <listitem><para>
707 Your CPU <emphasis role="bold">and/or</emphasis> video card <emphasis role="bold">and/or</emphasis>
708 bus is too slow. MPlayer displays a message if this is the case (and the
709 dropped frames counter goes up fast).
710 </para></listitem>
711 <listitem><para>
712 If it is an AVI, maybe it has bad interleaving. Try the <option>-ni</option> option.
713 </para></listitem>
714 <listitem><para>
715 Your sound driver is buggy, or you use ALSA 0.5 with <option>-ao oss</option>.
716 See the <link linkend="audio-dev">sound card section</link>.
717 </para></listitem>
718 <listitem><para>
719 The AVI has a bad header, try the <option>-nobps</option> option, and/or <option>-mc 0</option>.
720 </para></listitem>
721 </itemizedlist>
722 </para></answer>
723 </qandaentry>
724 <qandaentry>
725 <question><para>
726 I have an MJPEG file which works with other players but displays only a black image in
727 <application>MPlayer</application>
728 </para></question>
729 <answer><para>
730 Disable the Windows DLL in <filename>codecs.conf</filename>, or use the
731 <option>-vc ffmjpeg</option> option (compile MPlayer with libavcodec for this to work).
732 </para></answer>
733 </qandaentry>
734 <qandaentry>
735 <question><para>
736 When I try to grab from my tuner, it works, but colors are strange. It's OK with other
737 applications.
738 </para></question>
739 <answer><para>
740 Your card probably misreports its colorspace capacity. Try with YUY2 instead of
741 default YV12 (see the <link linkend="tv-input">TV input documentation</link>).
742 </para></answer>
743 </qandaentry>
744 <qandaentry>
745 <question><para>
746 When I start playing, I get this message but everything seems fine:
747 <screen>Linux RTC init: ioctl (rtc_pie_on): Permission denied</screen>
748 </para></question>
749 <answer><para>
750 You need root privileges or a specially set up kernel to use the new timing
751 code. For details see the <link linkend="rtc">RTC section</link> of the documentation.
752 </para></answer>
753 </qandaentry>
754 <qandaentry>
755 <question><para>
756 I have A/V sync problems. Some of my AVIs play fine, but some play with double speed!
757 </para></question>
758 <answer><para>
759 You have a buggy sound card/driver. Most likely it's fixed at 44100Hz, and you
760 try to play a file which has 22050Hz audio. Try the resample audio plugin.
761 </para></answer>
762 </qandaentry>
763 <qandaentry>
764 <question><para>
765 All the WMV (or other..) files I play create a green/gray window and there is
766 only sound! <application>MPlayer</application> prints:
767 <screen>Detected video codec: [null] drv:0 (NULL codec (no decoding))</screen>
768 </para></question>
769 <answer><para>
770 Update your <filename>codecs.conf</filename>.
771 </para></answer>
772 </qandaentry>
773 <qandaentry>
774 <question><para>
775 I get very strange percentage values (way too big) while playing files on my notebook.
776 </para></question>
777 <answer><para>
778 It's an effect of the power management / power saving system of your notebook
779 (BIOS, not kernel). Plug the external power connector in before you power on
780 your notebook. You can also try whether
781 <ulink url="http://www.brodo.de/cpufreq/">cpufreq</ulink> (a SpeedStep interface for Linux) helps you.
782 </para></answer>
783 </qandaentry>
784 <qandaentry>
785 <question><para>
786 The audio/video gets totally out of sync when I run <application>MPlayer</application>
787 as root on my notebook. It works normal when i run it as a user.
788 </para></question>
789 <answer><para>
790 This is again a power management effect (see above). Plug the external power
791 connector in <emphasis role="bold">before</emphasis> you power on your notebook
792 or use the <option>-nortc</option> option.
793 </para></answer>
794 </qandaentry>
795 </qandadiv>
796
797 <qandadiv id="faq-driver">
798 <title>Video/audio driver problems (vo/ao)</title>
799 <qandaentry>
800 <question><para>
801 I have no sound when playing a video and get error messages similar to this one:
802 <screen>
803 AO: [oss] 44100Hz 2ch Signed 16-bit (Little-Endian)
804 audio_setup: Can't open audio device /dev/dsp: Device or resource busy
805 couldn't open/init audio device -> NOSOUND
806 Audio: no sound!!!
807 Start playing...
808 </screen>
809 </para></question>
810 <answer><para>
811 Are you running KDE or GNOME with the ARTS or ESD sound daemon? Try disabling
812 the sound daemon or use the <option>-ao arts</option> or <option>-ao esd</option>
813 option to make MPlayer use ARTS or ESD.
814 </para></answer>
815 </qandaentry>
816 <qandaentry>
817 <question><para>
818 What about the DGA driver? I can't find it!
819 </para></question>
820 <answer><para>
821 <filename>./configure</filename> autodetects your DGA driver. If <option>-vo help</option>
822 doesn't show DGA, then there's a problem with your X installation. Try
823 <command>./configure --enable-dga</command> and read the
824 <link linkend="dga">documentation</link>. Alternatively, try SDL's DGA driver
825 with the <option>-vo sdl:dga</option> option.
826 </para></answer>
827 </qandaentry>
828 <qandaentry>
829 <question><para>
830 OK, <option>-vo help</option> shows DGA driver, but it complains about permissions.
831 Help me!
832 </para></question>
833 <answer><para>
834 It works only if running as root! It's a DGA limitation. You should become root
835 (<command>su -</command>), and try again. Another solution is making MPlayer SUID
836 root, but it's not recommended!
837 <screen>
838 chown root /usr/local/bin/mplayer
839 chmod 755 /usr/local/bin/mplayer
840 chmod +s /usr/local/bin/mplayer
841 </screen>
842 <warning><para>
843 This is a <emphasis role="bold">big</emphasis> security risk! <emphasis role="bold">Never</emphasis>
844 do this on a server or on a computer that you do not control completely because
845 other users can gain root privileges through SUID root MPlayer.
846 <emphasis role="bold">You have been warned</emphasis>.
847 </para></warning>
848 </para></answer>
849 </qandaentry>
850 <qandaentry>
851 <question><para>
852 When using Xvideo, my Voodoo 3/Banshee says:
853 <screen>
854 X Error of failed request: BadAccess (attempt to access private resource denied)
855 Major opcode of failed request: 147 (MIT-SHM)
856 Minor opcode of failed request: 1 (X_ShmAttach)
857 Serial number of failed request: 26
858 Current serial number in output stream:27
859 </screen>
860 </para></question>
861 <answer><para>
862 The &quot;tdfx&quot; driver in XFree86 4.0.2/4.0.3 had this bug. This was
863 solved by <ulink url="http://www.xfree86.org/cvs/changes_4_1.html">bugfix #621
864 of the XFree86 4.1.0 CVS log</ulink>. So upgrade to XFree86 4.1.0 or later.
865 Alternatively, either download (at least) DRI version 0.6 from the
866 <ulink url="http://dri.sourceforge.net">DRI homepage</ulink>, or use CVS DRI.
867 </para></answer>
868 </qandaentry>
869 <qandaentry>
870 <question><para>
871 OpenGL (<option>-vo gl</option>) output doesn't work (hang/black window/X11
872 errors/...).
873 </para></question>
874 <answer><para>
875 Your OpenGL driver doesn't support dynamic texture changes (glTexSubImage).
876 It's known not to work with nVidia's binary mess. It's known to work with
877 Utah-GLX/DRI and Matrox G400 cards. Also with DRI and Radeon cards. It won't
878 work with DRI and other cards. it will not work with 3DFX cards because of
879 the 256x256 texture size limit.
880 </para></answer>
881 </qandaentry>
882 <qandaentry>
883 <question><para>
884 I have an nVidia TNT/TNT2 card, and I have a band with strange colors, right
885 under the movie! Whose fault is this?
886 </para></question>
887 <answer><para>
888 This is a bug of nVidia's binary X driver. These bugs appear ONLY with the
889 TNT/TNT2 cards, and we can't do anything about it. To fix the problem, upgrade
890 to the latest nVidia binary driver version. If still bad, complain to nVidia!
891 </para></answer>
892 </qandaentry>
893 <qandaentry>
894 <question><para>
895 I have an nVidia XYZ card, and when I click on the GUI's display window to
896 toggle displaying the GUI panel, a black square appears where I clicked. I have
897 the newest driver.
898 </para></question>
899 <answer><para>
900 Yes, nVidia corrected a previous bug (above), and introduced a new one.
901 Let's congratulate them. UPDATE: According to <link linkend="nvidia">nVidia</link>,
902 this has already been fixed.
903 </para></answer>
904 </qandaentry>
905 <qandaentry>
906 <question><para>
907 When I use the GUI with SDL video output, a second video window is created.
908 </para></question>
909 <answer><para>
910 Known, don't use SDL for the GUI yet.
911 </para></answer>
912 </qandaentry>
913 <qandaentry>
914 <question><para>
915 Oh the world is cruel ...! SDL has only <systemitem>x11</systemitem> target,
916 but not <systemitem>xv</systemitem>!
917 </para></question>
918 <answer><para>
919 Try that <systemitem>x11</systemitem> target again. Now try <option>-vo x11
920 -fs -zoom</option>. See the difference? No?! OK, here comes the enlightenment:
921 SDL's <systemitem>x11</systemitem> target uses xv when available, you don't have
922 to worry about it ... Note: you can force/disable Xv via SDL using
923 <option>-forcexv</option> and <option>-noxv</option>
924 </para></answer>
925 </qandaentry>
926 </qandadiv>
927
928 <qandadiv id="faq-dvd">
929 <title>DVD playback</title>
930 <qandaentry>
931 <question><para>
932 What about DVD navigation?
933 </para></question>
934 <answer><para>
935 Support for dvdnav in <application>MPlayer</application> is currently broken,
936 normal playback does work, though. If you want to have fancy menus, you will
937 have to use another player like <application>Xine</application> or
938 <application>Ogle</application>. If you care about DVD navigation, send a
939 <ulink url="../../tech/patches.txt">patch</ulink>.
940 </para></answer>
941 </qandaentry>
942 <qandaentry>
943 <question><para>
944 While playing a DVD, I encountered this error:
945 <screen>mplayer: ifo_read.c:1143: ifoRead_C_ADT_internal: Assertion nfo_length / sizeof(cell_adr_t) >= c_adt->nr_of_vobs' failed.</screen>
946 </para></question>
947 <answer><para>
948 This is a known libdvdread 0.9.1/0.9.2 bug. Use <emphasis role="bold">libmpdvdkit2</emphasis>,
949 which is present in <application>MPlayer</application> source, and used by default.
950 </para></answer>
951 </qandaentry>
952 <qandaentry>
953 <question><para>
954 What about subtitles? Can MPlayer display them?
955 </para></question>
956 <answer><para>
957 Yes. See the <link linkend="dvd">DVD chapter</link> of the documentation.
958 </para></answer>
959 </qandaentry>
960 <qandaentry>
961 <question><para>
962 How can I set the region code of my DVD-drive? I don't have Windows!
963 </para></question>
964 <answer><para>
965 Use the <ulink url="http://www.linuxtv.org/download/dvd/dvd_disc_20000215.tar.gz">regionset tool</ulink>
966 </para></answer>
967 </qandaentry>
968 <qandaentry>
969 <question><para>
970 Do I need to be (setuid) root/setuid fibmap_mplayer to be able to play a DVD?
971 </para></question>
972 <answer><para>
973 No, only for old-style DVD support. However you must have the proper rights
974 on the DVD device entry (in <filename class="directory">/dev/</filename>).
975 </para></answer>
976 </qandaentry>
977 <qandaentry>
978 <question><para>
979 Where can I get libdvdread and libdvdcss packages?
980 </para></question>
981 <answer><para>
982 You don't need to. Use <emphasis role="bold">libmpdvdkit2</emphasis>, which is
983 present in the MPlayer source, and used by default. You can get the mentioned
984 packages from the <ulink url="http://www.dtek.chalmers.se/groups/dvd/">Ogle site</ulink>.
985 </para></answer>
986 </qandaentry>
987 <qandaentry>
988 <question><para>
989 Is it possible to play/encode only selected chapters?
990 </para></question>
991 <answer><para>
992 Yes, try the <option>-chapter</option> option.
993 </para></answer>
994 </qandaentry>
995 <qandaentry>
996 <question><para>
997 My DVD playback is sluggish!
998 </para></question>
999 <answer><para>
1000 Use the <option>-cache</option> option (described in the man page) and try
1001 enabling DMA for the DVD drive with the <command>hdparm</command> tool (described
1002 in the <link linkend="drives">CD chapter</link> of the documentation).
1003 </para></answer>
1004 </qandaentry>
1005 </qandadiv>
1006
1007 <qandadiv id="faq-features">
1008 <title>Feature requests</title>
1009 <qandaentry>
1010 <question><para>
1011 If MPlayer is paused and I try to seek or press any key at all, MPlayer
1012 ceases to be paused. I would like to be able to seek in the paused movie.
1013 </para></question>
1014 <answer><para>
1015 This is very tricky to implement without losing A/V synchronization.
1016 All attempts have failed so far, but patches are welcome.
1017 </para></answer>
1018 </qandaentry>
1019 <qandaentry>
1020 <question><para>
1021 I'd like to seek +/- 1 frames instead of 10 seconds.
1022 </para></question>
1023 <answer><para>
1024 This won't be done. It was, but then it messed up A/V sync.
1025 Feel free to implement it, and send a patch. Don't ask for it.
1026 </para></answer>
1027 </qandaentry>
1028 <qandaentry>
1029 <question><para>
1030 Where is the Windows version?
1031 </para></question>
1032 <answer><para>
1033 It's not released, and won't be. Look around the Windows scene (open source
1034 ASF parsers, open source ASF encoders, etc) and you'll know why. We don't want
1035 to go to jail. BTW you can compile it yourself, under <link linkend="cygwin">Cygwin</link>.
1036 </para></answer>
1037 </qandaentry>
1038 <qandaentry>
1039 <question><para>
1040 How can I make MPlayer remember the options I use for this particular file?
1041 </para></question>
1042 <answer><para>
1043 Create a file named <filename>movie.avi.conf</filename> with the file-specific
1044 options in it and put it in <filename class="directory">~/.mplayer</filename> or
1045 in the same directory as the file.
1046 </para></answer>
1047 </qandaentry>
1048 </qandadiv>
1049
1050 <qandadiv id="faq-encoding">
1051 <title>Encoding</title>
1052 <qandaentry>
1053 <question><para>
1054 My tuner works, I can hear the sound and watch the video with MPlayer,
1055 but MEncoder doesn't encode audio!
1056 </para></question>
1057 <answer><para>
1058 TV audio encoding for Linux is currently unimplemented, we're working
1059 on it. At the moment it works only on BSD.
1060 </para></answer>
1061 </qandaentry>
1062 <qandaentry>
1063 <question><para>
1064 I can't encode DVD subtitles into the AVI!
1065 </para></question>
1066 <answer><para>
1067 You have to specify the <option>-sid</option> option correctly!
1068 </para></answer>
1069 </qandaentry>
1070 <qandaentry>
1071 <question><para>
1072 MEncoder segfaults on startup!
1073 </para></question>
1074 <answer><para>
1075 Upgrade DivX4Linux.
1076 </para></answer>
1077 </qandaentry>
1078 <qandaentry>
1079 <question><para>
1080 How can I encode only selected chapters from a DVD?
1081 </para></question>
1082 <answer><para>
1083 Use the <option>-chapter</option> option correctly, like: <option>-chapter 5-7</option>
1084 </para></answer>
1085 </qandaentry>
1086 <qandaentry>
1087 <question><para>
1088 I'm trying to work with 2GB+ files on a VFAT file system. Does it work?
1089 </para></question>
1090 <answer><para>
1091 No, VFAT doesn't support 2GB+ files.
1092 </para></answer>
1093 </qandaentry>
1094 <qandaentry>
1095 <question><para>
1096 Why is the recommended bitrate printed by MEncoder negative?
1097 </para></question>
1098 <answer><para>
1099 Because the bitrate you encoded the audio with is too large to fit the
1100 movie on any CD. Check if you have libmp3lame installed properly.
1101 </para></answer>
1102 </qandaentry>
1103 </qandadiv>
1104 </qandaset>
1105
1106 </chapter>