Sophie

Sophie

distrib > Mandriva > current > i586 > media > main-updates > by-pkgid > a42e22ddf1d70fb02e9f62289d71cafa > files > 826

mplayer-doc-1.0-1.rc4.0.r31086.3.1mdv2010.2.i586.rpm

<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>第 12 章 Frequently Asked Questions</title><link rel="stylesheet" href="default.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.75.2"><link rel="home" href="index.html" title="MPlayer - 电影播放器"><link rel="up" href="index.html" title="MPlayer - 电影播放器"><link rel="prev" href="menc-feat-vcd-dvd.html" title="11.8. Using MEncoder to create VCD/SVCD/DVD-compliant files"><link rel="next" href="bugreports.html" title="附录 A. 如何报告错误"><link rel="preface" href="howtoread.html" title="如何阅读此文档"><link rel="chapter" href="intro.html" title="第 1 章 介绍"><link rel="chapter" href="install.html" title="第 2 章 Installation"><link rel="chapter" href="usage.html" title="第 3 章 Usage"><link rel="chapter" href="advaudio.html" title="第 4 章 Advanced audio usage"><link rel="chapter" href="cd-dvd.html" title="第 5 章 CD/DVD用法"><link rel="chapter" href="video.html" title="第 6 章 Video output devices"><link rel="chapter" href="tv.html" title="第 7 章 TV"><link rel="chapter" href="radio.html" title="第 8 章 广播电台"><link rel="chapter" href="ports.html" title="第 9 章 Ports"><link rel="chapter" href="mencoder.html" title="第 10 章 MEncoder的基础用法"><link rel="chapter" href="encoding-guide.html" title="第 11 章 Encoding with MEncoder"><link rel="chapter" href="faq.html" title="第 12 章 Frequently Asked Questions"><link rel="appendix" href="bugreports.html" title="附录 A. 如何报告错误"><link rel="appendix" href="skin.html" title="附录 B. MPlayer skin format"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">第 12 章 Frequently Asked Questions</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="menc-feat-vcd-dvd.html">上一页</a> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="bugreports.html">下一页</a></td></tr></table><hr></div><div class="chapter" title="第 12 章 Frequently Asked Questions"><div class="titlepage"><div><div><h2 class="title"><a name="faq"></a>第 12 章 Frequently Asked Questions</h2></div></div></div><div class="qandaset" title="常见问题"><a name="id3006990"></a><dl><dt>12.1.  <a href="faq.html#faq-development">Development</a></dt><dd><dl><dt>问: <a href="faq.html#id3007004">
How do I create a proper patch for MPlayer?
</a></dt><dt>问: <a href="faq.html#id3007636">
How do I translate MPlayer to a new language?
</a></dt><dt>问: <a href="faq.html#id3007669">
How can I support MPlayer development?
</a></dt><dt>问: <a href="faq.html#id3007702">
How can I become an MPlayer developer?
</a></dt><dt>问: <a href="faq.html#id3007743">
Why don't you use autoconf/automake?
</a></dt></dl></dd><dt>12.2.  <a href="faq.html#faq-compilation-installation">Compilation and installation</a></dt><dd><dl><dt>问: <a href="faq.html#id3007779">
Compilation fails with an error and gcc bails out
with some cryptic message containing the phrase
internal compiler error or
unable to find a register to spill or
can't find a register in class `GENERAL_REGS'
while reloading `asm'.
</a></dt><dt>问: <a href="faq.html#id3007842">
Are there binary (RPM/Debian) packages of MPlayer?
</a></dt><dt>问: <a href="faq.html#id3007875">
How can I build a 32 bit MPlayer on a 64 bit Athlon?
</a></dt><dt>问: <a href="faq.html#id3007901">
Configure ends with this text, and MPlayer won't compile!
Your gcc does not support even i386 for '-march' and '-mcpu'
</a></dt><dt>问: <a href="faq.html#id3007934">
I have a Matrox G200/G400/G450/G550, how do I compile/use the
mga_vid driver?
</a></dt><dt>问: <a href="faq.html#id3007960">
During 'make', MPlayer complains about
missing X11 libraries. I don't understand, I do
have X11 installed!?
</a></dt><dt>问: <a href="faq.html#id3008020">
Building on Mac OS 10.3 leads to several link errors.
</a></dt></dl></dd><dt>12.3.  <a href="faq.html#faq-general">General questions</a></dt><dd><dl><dt>问: <a href="faq.html#id3008137">
Are there any mailing lists on MPlayer?
</a></dt><dt>问: <a href="faq.html#id3008162">
I've found a nasty bug when I tried to play my favorite video!
Who should I inform?
</a></dt><dt>问: <a href="faq.html#id3008185">
I get a core dump when trying to dump streams, what's wrong?
</a></dt><dt>问: <a href="faq.html#id3008209">
When I start playing, I get this message but everything seems fine:
Linux RTC init: ioctl (rtc_pie_on): Permission denied
</a></dt><dt>问: <a href="faq.html#id3008238">
How can I make a screenshot?
</a></dt><dt>问: <a href="faq.html#id3008286">
What is the meaning of the numbers on the status line?
</a></dt><dt>问: <a href="faq.html#id3008510">
There are error messages about file not found
/usr/local/lib/codecs/ ...
</a></dt><dt>问: <a href="faq.html#id3008536">
How can I make MPlayer remember the options I
use for a particular file, e.g. movie.avi?
</a></dt><dt>问: <a href="faq.html#id3008577">
Subtitles are very nice, the most beautiful I've ever seen, but they
slow down playing! I know it's unlikely ...
</a></dt><dt>问: <a href="faq.html#id3008616">
How can I run MPlayer in the background?
</a></dt></dl></dd><dt>12.4.  <a href="faq.html#faq-playback">Playback problems</a></dt><dd><dl><dt>问: <a href="faq.html#id3008661">
I cannot pinpoint the cause of some strange playback problem.
</a></dt><dt>问: <a href="faq.html#id3008718">
How can I get subtitles to appear on the black margins around a movie?
</a></dt><dt>问: <a href="faq.html#id3008746">
How can I select audio/subtitle tracks from a DVD, OGM, Matroska or NUT file?
</a></dt><dt>问: <a href="faq.html#id3008804">
I'm trying to play a random stream off the internet but it fails.
</a></dt><dt>问: <a href="faq.html#id3008822">
I downloaded a movie off a P2P network and it doesn't work!
</a></dt><dt>问: <a href="faq.html#id3008843">
I'm having trouble getting my subtitles to display, help!!
</a></dt><dt>问: <a href="faq.html#id3008877">
Why doesn't MPlayer work on Fedora Core?
</a></dt><dt>问: <a href="faq.html#id3009027">
MPlayer dies with
MPlayer interrupted by signal 4 in module: decode_video
</a></dt><dt>问: <a href="faq.html#id3009065">
When I try to grab from my tuner, it works, but colors are strange.
It's OK with other applications.
</a></dt><dt>问: <a href="faq.html#id3009088">
I get very strange percentage values (way too big)
while playing files on my notebook.
</a></dt><dt>问: <a href="faq.html#id3009118">
The audio/video gets totally out of sync when I run
MPlayer as
root on my notebook.
It works normal when i run it as a user.
</a></dt><dt>问: <a href="faq.html#id3009158">
While playing a movie it suddenly gets jerky and I get the following message:
Badly interleaved AVI file detected - switching to -ni mode...
</a></dt></dl></dd><dt>12.5.  <a href="faq.html#faq-driver">Video/audio driver problems (vo/ao)</a></dt><dd><dl><dt>问: <a href="faq.html#id3009200">
When I go into fullscreen mode I just get black borders around the image
and no real scaling to fullscreen mode.
</a></dt><dt>问: <a href="faq.html#id3009252">
I've just installed MPlayer. When I want to
open a video file it causes a fatal error:
Error opening/initializing the selected video_out (-vo) device.
How can I solve my problem?
</a></dt><dt>问: <a href="faq.html#id3009320">
I have problems with [your window manager]
and fullscreen xv/xmga/sdl/x11 modes ...
</a></dt><dt>问: <a href="faq.html#id3009349">
Audio goes out of sync playing an AVI file.
</a></dt><dt>问: <a href="faq.html#id3009377">
How can I use dmix with
MPlayer?
</a></dt><dt>问: <a href="faq.html#id3009412">
I have no sound when playing a video and get error messages similar to this one:

AO: [oss] 44100Hz 2ch Signed 16-bit (Little-Endian)
[AO OSS] audio_setup: Can't open audio device /dev/dsp: Device or resource busy
Could not open/initialize audio device -&gt; no sound.
Audio: no sound
Starting playback...

</a></dt><dt>问: <a href="faq.html#id3009457">
When starting MPlayer under KDE I just get a black
screen and nothing happens. After about one minute the video starts playing.
</a></dt><dt>问: <a href="faq.html#id3009496">
I have A/V sync problems.
Some of my AVIs play fine, but some play with double speed!
</a></dt><dt>问: <a href="faq.html#id3009518">
When I play this movie I get video-audio desync and/or
MPlayer crashes with the following message:

Too many (945 in 8390980 bytes) video packets in the buffer!

</a></dt><dt>问: <a href="faq.html#id3009611">
How can I get rid of A/V desynchronization
while seeking through RealMedia streams?
</a></dt></dl></dd><dt>12.6.  <a href="faq.html#faq-dvd">DVD playback</a></dt><dd><dl><dt>问: <a href="faq.html#id3009641">
What about DVD navigation/menus?
</a></dt><dt>问: <a href="faq.html#id3009660">
What about subtitles? Can MPlayer display them?
</a></dt><dt>问: <a href="faq.html#id3009685">
How can I set the region code of my DVD-drive? I don't have Windows!
</a></dt><dt>问: <a href="faq.html#id3009705">
I can't play a DVD, MPlayer hangs or outputs "Encrypted VOB file!" errors.
</a></dt><dt>问: <a href="faq.html#id3009721">
Do I need to be (setuid) root to be able to play a DVD?
</a></dt><dt>问: <a href="faq.html#id3009743">
Is it possible to play/encode only selected chapters?
</a></dt><dt>问: <a href="faq.html#id3009760">
My DVD playback is sluggish!
</a></dt><dt>问: <a href="faq.html#id3009791">
I copied a DVD using vobcopy. How do I play/encode it from my hard disk?
</a></dt></dl></dd><dt>12.7.  <a href="faq.html#faq-features">Feature requests</a></dt><dd><dl><dt>问: <a href="faq.html#id3009830">
If MPlayer is paused and I try to seek or press any
key at all, MPlayer ceases to be paused.
I would like to be able to seek in the paused movie.
</a></dt><dt>问: <a href="faq.html#id3009858">
I'd like to seek +/- 1 frame instead of 10 seconds.
</a></dt></dl></dd><dt>12.8.  <a href="faq.html#faq-encoding">Encoding</a></dt><dd><dl><dt>问: <a href="faq.html#id3009894">
How can I encode?
</a></dt><dt>问: <a href="faq.html#id3009916">
How can I dump a full DVD title into a file?
</a></dt><dt>问: <a href="faq.html#id3009954">
How can I create (S)VCDs automatically?
</a></dt><dt>问: <a href="faq.html#id3009983">
How can I create (S)VCDs?
</a></dt><dt>问: <a href="faq.html#id3010014">
How can I join two video files?
</a></dt><dt>问: <a href="faq.html#id3010072">
How can I fix AVI files with a broken index or bad interleaving?
</a></dt><dt>问: <a href="faq.html#id3010112">
How can I fix the aspect ratio of an AVI file?
</a></dt><dt>问: <a href="faq.html#id3010150">
How can I backup and encode a VOB file with a broken beginning?
</a></dt><dt>问: <a href="faq.html#id3010211">
I can't encode DVD subtitles into the AVI!
</a></dt><dt>问: <a href="faq.html#id3010228">
How can I encode only selected chapters from a DVD?
</a></dt><dt>问: <a href="faq.html#id3010249">
I'm trying to work with 2GB+ files on a VFAT file system. Does it work?
</a></dt><dt>问: <a href="faq.html#id3010262">
What is the meaning of the numbers on the status line
during the encoding process?
</a></dt><dt>问: <a href="faq.html#id3010406">
Why is the recommended bitrate printed by MEncoder
negative?
</a></dt><dt>问: <a href="faq.html#id3010427">
I can't encode an ASF file to AVI/MPEG-4 (DivX) because it uses 1000 fps.
</a></dt><dt>问: <a href="faq.html#id3010445">
How can I put subtitles in the output file?
</a></dt><dt>问: <a href="faq.html#id3010472">
How do I encode only sound from a music video?
</a></dt><dt>问: <a href="faq.html#id3010540">
Why do third-party players fail to play MPEG-4 movies encoded by
MEncoder versions later than 1.0pre7?
</a></dt><dt>问: <a href="faq.html#id3010655">
How can I encode an audio only file?
</a></dt><dt>问: <a href="faq.html#id3010682">
How can I play subtitles embedded in AVI?
</a></dt><dt>问: <a href="faq.html#id3010717">
MEncoder won't...
</a></dt></dl></dd></dl><table border="0" width="100%" summary="Q and A Set"><col align="left" width="1%"><col><tbody><tr class="qandadiv"><td align="left" valign="top" colspan="2"><h3 class="title"><a name="faq-development"></a>12.1. Development</h3></td></tr><tr class="toc"><td align="left" valign="top" colspan="2"><dl><dt>问: <a href="faq.html#id3007004">
How do I create a proper patch for MPlayer?
</a></dt><dt>问: <a href="faq.html#id3007636">
How do I translate MPlayer to a new language?
</a></dt><dt>问: <a href="faq.html#id3007669">
How can I support MPlayer development?
</a></dt><dt>问: <a href="faq.html#id3007702">
How can I become an MPlayer developer?
</a></dt><dt>问: <a href="faq.html#id3007743">
Why don't you use autoconf/automake?
</a></dt></dl></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3007004"></a><a name="id3007006"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
How do I create a proper patch for <span class="application">MPlayer</span>?
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
We made a <a class="ulink" href="../../tech/patches.txt" target="_top">short document</a>
describing all the necessary details. Please follow the instructions.
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3007636"></a><a name="id3007638"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
How do I translate <span class="application">MPlayer</span> to a new language?
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
Read the <a class="ulink" href="../../tech/translations.txt" target="_top">translation HOWTO</a>,
it should explain everything. You can get further help on the
<a class="ulink" href="http://lists.mplayerhq.hu/mailman/listinfo/mplayer-translations" target="_top">MPlayer-translations</a>
mailing list.
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3007669"></a><a name="id3007671"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
How can I support <span class="application">MPlayer</span> development?
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
We are more than happy to accept your hardware and software
<a class="ulink" href="http://www.mplayerhq.hu/donations.html" target="_top">donations</a>.
They help us in continuously improving <span class="application">MPlayer</span>.
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3007702"></a><a name="id3007704"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
How can I become an <span class="application">MPlayer</span> developer?
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
We always welcome coders and documenters. Read the
<a class="ulink" href="../../tech/" target="_top">technical documentation</a>
to get a first grasp. Then you should subscribe to the
<a class="ulink" href="http://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng" target="_top">MPlayer-dev-eng</a>
mailing list and start coding. If you want to help out with the documentation,
join the
<a class="ulink" href="http://lists.mplayerhq.hu/mailman/listinfo/mplayer-docs" target="_top">MPlayer-docs</a>
mailing list.
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3007743"></a><a name="id3007746"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
Why don't you use autoconf/automake?
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
We have a modular, handwritten build system. It does a reasonably good
job, so why change? Besides, we dislike the auto* tools, just like
<a class="ulink" href="http://freshmeat.net/articles/view/889/" target="_top">other people</a>.
</p></td></tr><tr class="qandadiv"><td align="left" valign="top" colspan="2"><h3 class="title"><a name="faq-compilation-installation"></a>12.2. Compilation and installation</h3></td></tr><tr class="toc"><td align="left" valign="top" colspan="2"><dl><dt>问: <a href="faq.html#id3007779">
Compilation fails with an error and gcc bails out
with some cryptic message containing the phrase
internal compiler error or
unable to find a register to spill or
can't find a register in class `GENERAL_REGS'
while reloading `asm'.
</a></dt><dt>问: <a href="faq.html#id3007842">
Are there binary (RPM/Debian) packages of MPlayer?
</a></dt><dt>问: <a href="faq.html#id3007875">
How can I build a 32 bit MPlayer on a 64 bit Athlon?
</a></dt><dt>问: <a href="faq.html#id3007901">
Configure ends with this text, and MPlayer won't compile!
Your gcc does not support even i386 for '-march' and '-mcpu'
</a></dt><dt>问: <a href="faq.html#id3007934">
I have a Matrox G200/G400/G450/G550, how do I compile/use the
mga_vid driver?
</a></dt><dt>问: <a href="faq.html#id3007960">
During 'make', MPlayer complains about
missing X11 libraries. I don't understand, I do
have X11 installed!?
</a></dt><dt>问: <a href="faq.html#id3008020">
Building on Mac OS 10.3 leads to several link errors.
</a></dt></dl></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3007779"></a><a name="id3007782"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
Compilation fails with an error and <span class="application">gcc</span> bails out
with some cryptic message containing the phrase
<code class="systemitem">internal compiler error</code> or
<code class="systemitem">unable to find a register to spill</code> or
<code class="systemitem">can't find a register in class `GENERAL_REGS'
while reloading `asm'</code>.
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
You have stumbled over a bug in <span class="application">gcc</span>. Please
<a class="ulink" href="http://gcc.gnu.org/bugs.html" target="_top">report it to the gcc team</a>
but not to us. For some reason <span class="application">MPlayer</span> seems to
trigger compiler bugs frequently. Nevertheless we cannot fix them and do not
add workarounds for compiler bugs to our sources. To avoid this problem,
either stick with a compiler version that is known to be reliable and
stable, or upgrade frequently.
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3007842"></a><a name="id3007844"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
Are there binary (RPM/Debian) packages of <span class="application">MPlayer</span>?
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
See the <a class="link" href="linux.html#debian" title="9.1.1. Debian packaging">Debian</a> and <a class="link" href="linux.html#rpm" title="9.1.2. RPM packaging">RPM</a>
section for details.
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3007875"></a><a name="id3007877"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
How can I build a 32 bit <span class="application">MPlayer</span> on a 64 bit Athlon?
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
Try the following configure options:
</p><pre class="screen">
./configure --target=i386-linux --cc="gcc -m32" --as="as --32" --with-extralibdir=/usr/lib
</pre><p>
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3007901"></a><a name="id3007903"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
Configure ends with this text, and <span class="application">MPlayer</span> won't compile!
</p><pre class="screen">Your gcc does not support even i386 for '-march' and '-mcpu'</pre><p>
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
Your gcc isn't installed correctly, check the <tt class="filename">configure.log</tt>
file for details.
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3007934"></a><a name="id3007936"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
I have a Matrox G200/G400/G450/G550, how do I compile/use the
<code class="systemitem">mga_vid</code> driver?
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
Read the <a class="link" href="mga_vid.html" title="6.7. Matrox framebuffer (mga_vid)">mga_vid</a> section.
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3007960"></a><a name="id3007962"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
During 'make', <span class="application">MPlayer</span> complains about
missing X11 libraries. I don't understand, I <span class="emphasis"><em>do</em></span>
have X11 installed!?
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
... but you don't have the X11 development package installed. Or not correctly.
It's called <tt class="filename">XFree86-devel*</tt> under Red Hat,
<tt class="filename">xlibs-dev</tt> under Debian Woody and
<tt class="filename">libx11-dev</tt> under Debian Sarge. Also check if the
<tt class="filename">/usr/X11</tt> and
<tt class="filename">/usr/include/X11</tt> symlinks exist.
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3008020"></a><a name="id3008023"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
Building on Mac OS 10.3 leads to several link errors.
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
The link error you're experiencing most likely looks like this:
</p><pre class="screen">
ld: Undefined symbols:
_LLCStyleInfoCheckForOpenTypeTables referenced from QuartzCore expected to be defined in ApplicationServices
_LLCStyleInfoGetUserRunFeatures referenced from QuartzCore expected to be defined in ApplicationServices
</pre><p>
This problem is the result of Apple developers using 10.4 to compile
their software and distributing the binaries to 10.3 users via
Software Update.
The undefined symbols are present in Mac OS 10.4,
but not 10.3.
One solution can be to downgrade to QuickTime 7.0.1.
Here is a better solution.
</p><p>
Get an
<a class="ulink" href="http://rapidshare.de/files/20281171/CompatFrameworks.tgz.html" target="_top">older copy of the frameworks</a>.
This will give you a compressed file that contains the QuickTime
7.0.1 Framework and a 10.3.9 QuartzCore Framework.
</p><p>
Uncompress the files somewhere that is not in your System folder.
(i.e. do not install these frameworks into your
<tt class="filename">/System/Library/Frameworks</tt>!
Using this older copy is only meant to get around link errors!)
</p><pre class="screen">gunzip &lt; CompatFrameworks.tgz | tar xvf -</pre><p>
In config.mak, you should append
<code class="systemitem">-F/path/to/where/you/extracted</code>
to the <code class="systemitem">OPTFLAGS</code> variable.
If you use <span class="application">X-Code</span>, you can just select these
frameworks instead of the system ones.
</p><p>
The resulting <span class="application">MPlayer</span> binary will actually
use the framework that is installed on your system via dynamic links that
are resolved at run-time.
(You can verify this using <code class="systemitem">otool -l</code>).
</p></td></tr><tr class="qandadiv"><td align="left" valign="top" colspan="2"><h3 class="title"><a name="faq-general"></a>12.3. General questions</h3></td></tr><tr class="toc"><td align="left" valign="top" colspan="2"><dl><dt>问: <a href="faq.html#id3008137">
Are there any mailing lists on MPlayer?
</a></dt><dt>问: <a href="faq.html#id3008162">
I've found a nasty bug when I tried to play my favorite video!
Who should I inform?
</a></dt><dt>问: <a href="faq.html#id3008185">
I get a core dump when trying to dump streams, what's wrong?
</a></dt><dt>问: <a href="faq.html#id3008209">
When I start playing, I get this message but everything seems fine:
Linux RTC init: ioctl (rtc_pie_on): Permission denied
</a></dt><dt>问: <a href="faq.html#id3008238">
How can I make a screenshot?
</a></dt><dt>问: <a href="faq.html#id3008286">
What is the meaning of the numbers on the status line?
</a></dt><dt>问: <a href="faq.html#id3008510">
There are error messages about file not found
/usr/local/lib/codecs/ ...
</a></dt><dt>问: <a href="faq.html#id3008536">
How can I make MPlayer remember the options I
use for a particular file, e.g. movie.avi?
</a></dt><dt>问: <a href="faq.html#id3008577">
Subtitles are very nice, the most beautiful I've ever seen, but they
slow down playing! I know it's unlikely ...
</a></dt><dt>问: <a href="faq.html#id3008616">
How can I run MPlayer in the background?
</a></dt></dl></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3008137"></a><a name="id3008139"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
Are there any mailing lists on <span class="application">MPlayer</span>?
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
Yes. Look at the
<a class="ulink" href="http://www.mplayerhq.hu/design7/mailing_lists.html" target="_top">mailing lists section</a>
of our homepage.
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3008162"></a><a name="id3008165"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
I've found a nasty bug when I tried to play my favorite video!
Who should I inform?
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
Please read the <a class="link" href="bugreports.html" title="附录 A. 如何报告错误">bug reporting guidelines</a>
and follow the instructions.
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3008185"></a><a name="id3008187"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
I get a core dump when trying to dump streams, what's wrong?
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
Don't panic. Make sure you know where your towel is.</p><p>
Seriously, notice the smiley and start looking for files that end in
<tt class="filename">.dump</tt>.
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3008209"></a><a name="id3008211"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
When I start playing, I get this message but everything seems fine:
</p><pre class="screen">Linux RTC init: ioctl (rtc_pie_on): Permission denied</pre><p>
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
You need a specially set up kernel to use the RTC timing code.
For details see the <a class="link" href="rtc.html" title="2.6. RTC">RTC</a> section of the documentation.
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3008238"></a><a name="id3008240"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
How can I make a screenshot?
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
You have to use a video output driver that does not employ an overlay to be
able to take a screenshot. Under X11, <tt class="option">-vo x11</tt> will do, under
Windows <tt class="option">-vo directx:noaccel</tt> works.
</p><p>
Alternatively you can run <span class="application">MPlayer</span> with the
<code class="systemitem">screenshot</code> video filter
(<tt class="option">-vf screenshot</tt>), and press the <span class="keycap"><b>s</b></span>
key to grab a screenshot.
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3008286"></a><a name="id3008288"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
What is the meaning of the numbers on the status line?
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
Example:
</p><pre class="screen">
A: 2.1 V: 2.2 A-V: -0.167 ct: 0.042 57/57 41% 0% 2.6% 0 4 49% 1.00x
</pre><p>
</p><div class="variablelist"><dl><dt><span class="term"><code class="systemitem">A: 2.1</code></span></dt><dd><p>audio position in seconds</p></dd><dt><span class="term"><code class="systemitem">V: 2.2</code></span></dt><dd><p>video position in seconds</p></dd><dt><span class="term"><code class="systemitem">A-V: -0.167</code></span></dt><dd><p>audio-video difference in seconds (delay)</p></dd><dt><span class="term"><code class="systemitem">ct: 0.042</code></span></dt><dd><p>total A-V sync correction done</p></dd><dt><span class="term"><code class="systemitem">57/57</code></span></dt><dd><p>
  frames played/decoded (counting from last seek)
  </p></dd><dt><span class="term"><code class="systemitem">41%</code></span></dt><dd><p>
  video codec CPU usage in percent
  (for slice rendering and direct rendering this includes video_out)
  </p></dd><dt><span class="term"><code class="systemitem">0%</code></span></dt><dd><p>video_out CPU usage</p></dd><dt><span class="term"><code class="systemitem">2.6%</code></span></dt><dd><p>audio codec CPU usage in percent</p></dd><dt><span class="term"><code class="systemitem">0</code></span></dt><dd><p>frames dropped to maintain A-V sync</p></dd><dt><span class="term"><code class="systemitem">4</code></span></dt><dd><p>
  current level of image postprocessing (when using <tt class="option">-autoq</tt>)
  </p></dd><dt><span class="term"><code class="systemitem">49%</code></span></dt><dd><p>
  current cache size used (around 50% is normal)
  </p></dd><dt><span class="term"><code class="systemitem">1.00x</code></span></dt><dd><p>playback speed as a factor of original speed</p></dd></dl></div><p>
Most of them are for debug purposes, use the <tt class="option">-quiet</tt>
option to make them disappear.
You might notice that video_out CPU usage is zero (0%) for some files.
This is because it is called directly from the codec and thus cannot
be measured separately. If you wish to know the video_out speed, compare
the difference when playing the file with <tt class="option">-vo null</tt> and
your usual video output driver.
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3008510"></a><a name="id3008513"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
There are error messages about file not found
<tt class="filename">/usr/local/lib/codecs/</tt> ...
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
Download and install the binary codecs from our
<a class="ulink" href="http://www.mplayerhq.hu/design7/dload.html" target="_top">download page</a>.
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3008536"></a><a name="id3008538"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
How can I make <span class="application">MPlayer</span> remember the options I
use for a particular file, e.g. <tt class="filename">movie.avi</tt>?
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
Create a file named <tt class="filename">movie.avi.conf</tt> with the file-specific
options in it and put it in <tt class="filename">~/.mplayer</tt>
or in the same directory as the file.
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3008577"></a><a name="id3008579"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
Subtitles are very nice, the most beautiful I've ever seen, but they
slow down playing! I know it's unlikely ...
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
After running <tt class="filename">./configure</tt>,
edit <tt class="filename">config.h</tt> and replace
<code class="systemitem">#undef FAST_OSD</code> with
<code class="systemitem">#define FAST_OSD</code>. Then recompile.
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3008616"></a><a name="id3008618"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
How can I run <span class="application">MPlayer</span> in the background?
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
Use:
</p><pre class="screen">
mplayer <em class="replaceable"><code>options</code></em> <em class="replaceable"><code>filename</code></em> &lt; /dev/null &amp;
</pre><p>
</p></td></tr><tr class="qandadiv"><td align="left" valign="top" colspan="2"><h3 class="title"><a name="faq-playback"></a>12.4. Playback problems</h3></td></tr><tr class="toc"><td align="left" valign="top" colspan="2"><dl><dt>问: <a href="faq.html#id3008661">
I cannot pinpoint the cause of some strange playback problem.
</a></dt><dt>问: <a href="faq.html#id3008718">
How can I get subtitles to appear on the black margins around a movie?
</a></dt><dt>问: <a href="faq.html#id3008746">
How can I select audio/subtitle tracks from a DVD, OGM, Matroska or NUT file?
</a></dt><dt>问: <a href="faq.html#id3008804">
I'm trying to play a random stream off the internet but it fails.
</a></dt><dt>问: <a href="faq.html#id3008822">
I downloaded a movie off a P2P network and it doesn't work!
</a></dt><dt>问: <a href="faq.html#id3008843">
I'm having trouble getting my subtitles to display, help!!
</a></dt><dt>问: <a href="faq.html#id3008877">
Why doesn't MPlayer work on Fedora Core?
</a></dt><dt>问: <a href="faq.html#id3009027">
MPlayer dies with
MPlayer interrupted by signal 4 in module: decode_video
</a></dt><dt>问: <a href="faq.html#id3009065">
When I try to grab from my tuner, it works, but colors are strange.
It's OK with other applications.
</a></dt><dt>问: <a href="faq.html#id3009088">
I get very strange percentage values (way too big)
while playing files on my notebook.
</a></dt><dt>问: <a href="faq.html#id3009118">
The audio/video gets totally out of sync when I run
MPlayer as
root on my notebook.
It works normal when i run it as a user.
</a></dt><dt>问: <a href="faq.html#id3009158">
While playing a movie it suddenly gets jerky and I get the following message:
Badly interleaved AVI file detected - switching to -ni mode...
</a></dt></dl></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3008661"></a><a name="id3008663"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
I cannot pinpoint the cause of some strange playback problem.
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
Do you have a stray <tt class="filename">codecs.conf</tt> file in
<tt class="filename">~/.mplayer/</tt>, <tt class="filename">/etc/</tt>,
<tt class="filename">/usr/local/etc/</tt> or a similar location? Remove it,
an outdated <tt class="filename">codecs.conf</tt> file can cause obscure
problems and is intended for use only by developers working on codec
support. It overrides <span class="application">MPlayer</span>'s internal
codec settings, which will wreak havoc if incompatible changes are
made in newer program versions. Unless used by experts it is a recipe
for disaster in the form of seemingly random and very hard to localize
crashes and playback problems. If you still have it somewhere on your
system, you should remove it now.
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3008718"></a><a name="id3008720"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
How can I get subtitles to appear on the black margins around a movie?
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
Use the <code class="systemitem">expand</code> video filter to increase the
area onto which the movie is rendered vertically and place the movie
at the top border, for example:
</p><pre class="screen">mplayer -vf expand=0:-100:0:0 -slang de dvd://1</pre><p>
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3008746"></a><a name="id3008748"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
How can I select audio/subtitle tracks from a DVD, OGM, Matroska or NUT file?
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
You have to use <tt class="option">-aid</tt> (audio ID) or <tt class="option">-alang</tt>
(audio language), <tt class="option">-sid</tt>(subtitle ID) or <tt class="option">-slang</tt>
(subtitle language), for example:
</p><pre class="screen">
mplayer -alang eng -slang eng <em class="replaceable"><code>example.mkv</code></em>
mplayer -aid 1 -sid 1 <em class="replaceable"><code>example.mkv</code></em>
</pre><p>
To see which ones are available:
</p><pre class="screen">
mplayer -vo null -ao null -frames 0 -v <em class="replaceable"><code>filename</code></em> | grep sid
mplayer -vo null -ao null -frames 0 -v <em class="replaceable"><code>filename</code></em> | grep aid
</pre><p>
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3008804"></a><a name="id3008806"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
I'm trying to play a random stream off the internet but it fails.
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
Try playing the stream with the <tt class="option">-playlist</tt> option.
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3008822"></a><a name="id3008824"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
I downloaded a movie off a P2P network and it doesn't work!
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
Your file is most probably broken or a fake file. If you got it from
a friend, and he says it works, try comparing
<span class="application">md5sum</span> hashes.
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3008843"></a><a name="id3008845"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
I'm having trouble getting my subtitles to display, help!!
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
Make sure you have installed fonts properly. Run through the steps in the
<a class="link" href="fonts-osd.html" title="2.4. Fonts and OSD">Fonts and OSD</a> part of the installation
section again. If you are using TrueType fonts, verify that you have the
<code class="systemitem">FreeType</code> library installed.
Other things include checking your subtitles in a text editor or with other
players. Also try converting them to another format.
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3008877"></a><a name="id3008879"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
Why doesn't <span class="application">MPlayer</span> work on Fedora Core?
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
There is a bad interaction on Fedora between exec-shield,
prelink, and any applications which use Windows DLLs
(such as <span class="application">MPlayer</span>).
</p><p>
The problem is that exec-shield randomizes the load addresses of all the
system libraries. This randomization happens at prelink time (once every
two weeks).
</p><p>
When <span class="application">MPlayer</span> tries to load a Windows DLL it
wants to put it at a specific address (0x400000). If an important system
library happens to be there already, <span class="application">MPlayer</span>
will crash.
(A typical symptom would be a segmentation fault when trying
to play Windows Media 9 files.)
</p><p>
If you run into this problem you have two options:
</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>
  Wait two weeks. It might start working again.
</p></li><li class="listitem"><p>
  Relink all the binaries on the system with different
  prelink options. Here are step by step instructions:
  </p><div class="procedure"><ol class="procedure" type="1"><li class="step" title="步骤 1"><p>
    Edit <tt class="filename">/etc/syconfig/prelink</tt> and change
    </p><pre class="programlisting">PRELINK_OPTS=-mR</pre><p> to
    </p><pre class="programlisting">PRELINK_OPTS="-mR --no-exec-shield"</pre><p>
  </p></li><li class="step" title="步骤 2"><p>
    <span class="command"><strong>touch /var/lib/misc/prelink.force</strong></span>
  </p></li><li class="step" title="步骤 3"><p>
    <span class="command"><strong>/etc/cron.daily/prelink</strong></span>
    (This relinks all the applications, and it takes quite a while.)
  </p></li><li class="step" title="步骤 4"><p>
    <span class="command"><strong>execstack -s <em class="replaceable"><code>/path/to/</code></em>mplayer</strong></span>
    (This turns off exec-shield for the
    <span class="application">MPlayer</span> binary.)
  </p></li></ol></div></li></ul></div><p>
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3009027"></a><a name="id3009029"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
<span class="application">MPlayer</span> dies with
</p><pre class="screen">MPlayer interrupted by signal 4 in module: decode_video</pre><p>
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
Don't use <span class="application">MPlayer</span> on a CPU different from the one
it was compiled on or recompile with runtime CPU detection
(<span class="command"><strong>./configure --enable-runtime-cpudetection</strong></span>).
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3009065"></a><a name="id3009067"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
When I try to grab from my tuner, it works, but colors are strange.
It's OK with other applications.
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
Your card probably reports some colorspaces as supported when in fact
it does not support them. Try with YUY2 instead of the
default YV12 (see the <a class="link" href="tv-input.html" title="7.1. TV input">TV</a> section).
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3009088"></a><a name="id3009090"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
I get very strange percentage values (way too big)
while playing files on my notebook.
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
It's an effect of the power management / power saving system of your notebook
(BIOS, not kernel). Plug the external power connector in
<span class="bold"><strong>before</strong></span> you power on your notebook. You can
also try whether
<a class="ulink" href="http://www.kernel.org/pub/linux/utils/kernel/cpufreq/cpufreq.html" target="_top">cpufreq</a>
(a SpeedStep interface for Linux) helps you.
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3009118"></a><a name="id3009120"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
The audio/video gets totally out of sync when I run
<span class="application">MPlayer</span> as
<code class="systemitem">root</code> on my notebook.
It works normal when i run it as a user.
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
This is again a power management effect (see above). Plug the external power
connector in <span class="bold"><strong>before</strong></span> you power on your notebook
or make sure you do not use the <tt class="option">-rtc</tt> option.
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3009158"></a><a name="id3009161"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
While playing a movie it suddenly gets jerky and I get the following message:
</p><pre class="screen">Badly interleaved AVI file detected - switching to -ni mode...</pre><p>
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
Badly interleaved files and <tt class="option">-cache</tt> don't work well together.
Try <tt class="option">-nocache</tt>.
</p></td></tr><tr class="qandadiv"><td align="left" valign="top" colspan="2"><h3 class="title"><a name="faq-driver"></a>12.5. Video/audio driver problems (vo/ao)</h3></td></tr><tr class="toc"><td align="left" valign="top" colspan="2"><dl><dt>问: <a href="faq.html#id3009200">
When I go into fullscreen mode I just get black borders around the image
and no real scaling to fullscreen mode.
</a></dt><dt>问: <a href="faq.html#id3009252">
I've just installed MPlayer. When I want to
open a video file it causes a fatal error:
Error opening/initializing the selected video_out (-vo) device.
How can I solve my problem?
</a></dt><dt>问: <a href="faq.html#id3009320">
I have problems with [your window manager]
and fullscreen xv/xmga/sdl/x11 modes ...
</a></dt><dt>问: <a href="faq.html#id3009349">
Audio goes out of sync playing an AVI file.
</a></dt><dt>问: <a href="faq.html#id3009377">
How can I use dmix with
MPlayer?
</a></dt><dt>问: <a href="faq.html#id3009412">
I have no sound when playing a video and get error messages similar to this one:

AO: [oss] 44100Hz 2ch Signed 16-bit (Little-Endian)
[AO OSS] audio_setup: Can't open audio device /dev/dsp: Device or resource busy
Could not open/initialize audio device -&gt; no sound.
Audio: no sound
Starting playback...

</a></dt><dt>问: <a href="faq.html#id3009457">
When starting MPlayer under KDE I just get a black
screen and nothing happens. After about one minute the video starts playing.
</a></dt><dt>问: <a href="faq.html#id3009496">
I have A/V sync problems.
Some of my AVIs play fine, but some play with double speed!
</a></dt><dt>问: <a href="faq.html#id3009518">
When I play this movie I get video-audio desync and/or
MPlayer crashes with the following message:

Too many (945 in 8390980 bytes) video packets in the buffer!

</a></dt><dt>问: <a href="faq.html#id3009611">
How can I get rid of A/V desynchronization
while seeking through RealMedia streams?
</a></dt></dl></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3009200"></a><a name="id3009202"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
When I go into fullscreen mode I just get black borders around the image
and no real scaling to fullscreen mode.
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
Your video output driver does not support scaling in hardware and since
scaling in software can be incredibly slow <span class="application">MPlayer</span>
does not automatically enable it. Most likely you are using the
<code class="systemitem">x11</code> instead of the <code class="systemitem">xv</code>
video output driver. Try adding <tt class="option">-vo xv</tt> to the command
line or read the <a class="link" href="video.html" title="第 6 章 Video output devices">video section</a> to find out
about alternative video output drivers. The <tt class="option">-zoom</tt>
option explicitly enables software scaling.
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3009252"></a><a name="id3009254"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
I've just installed <span class="application">MPlayer</span>. When I want to
open a video file it causes a fatal error:
</p><pre class="screen">Error opening/initializing the selected video_out (-vo) device.</pre><p>
How can I solve my problem?
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
Just change your video output device. Issue the following command to get
a list of available video output drivers:
</p><pre class="screen">mplayer -vo help</pre><p>
After you've chosen the correct video output driver, add it to
your configuration file. Add
</p><pre class="programlisting">
vo = <em class="replaceable"><code>selected_vo</code></em>
</pre><p>
to <tt class="filename">~/.mplayer/config</tt> and/or
</p><pre class="programlisting">
vo_driver = <em class="replaceable"><code>selected_vo</code></em>
</pre><p>
to <tt class="filename">~/.mplayer/gui.conf</tt>.
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3009320"></a><a name="id3009322"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
I have problems with <em class="replaceable"><code>[your window manager]</code></em>
and fullscreen xv/xmga/sdl/x11 modes ...
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
Read the <a class="link" href="bugreports.html" title="附录 A. 如何报告错误">bug reporting guidelines</a> and send us
a proper bug report.
Also try experimenting with the <tt class="option">-fstype</tt> option.
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3009349"></a><a name="id3009351"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
Audio goes out of sync playing an AVI file.
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
Try the <tt class="option">-bps</tt> or <tt class="option">-nobps</tt> option. If it does not
improve, read the
<a class="link" href="bugreports.html" title="附录 A. 如何报告错误">bug reporting guidelines</a>
and upload the file to FTP.
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3009377"></a><a name="id3009380"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
How can I use <span class="application">dmix</span> with
<span class="application">MPlayer</span>?
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
After setting up your
<a class="ulink" href="http://alsa.opensrc.org/index.php?page=DmixPlugin" target="_top">asoundrc</a>
you have to use <tt class="option">-ao alsa:device=dmix</tt>.
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3009412"></a><a name="id3009414"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
I have no sound when playing a video and get error messages similar to this one:
</p><pre class="screen">
AO: [oss] 44100Hz 2ch Signed 16-bit (Little-Endian)
[AO OSS] audio_setup: Can't open audio device /dev/dsp: Device or resource busy
Could not open/initialize audio device -&gt; no sound.
Audio: no sound
Starting playback...
</pre><p>
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
Are you running KDE or GNOME with the aRts or ESD sound daemon? Try disabling
the sound daemon or use the <tt class="option">-ao arts</tt> or
<tt class="option">-ao esd</tt> option to make <span class="application">MPlayer</span> use
aRts or ESD.
You might also be running ALSA without OSS emulation, try loading the ALSA OSS
kernel modules or add <tt class="option">-ao alsa</tt> to your command line to
directly use the ALSA audio output driver.
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3009457"></a><a name="id3009459"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
When starting <span class="application">MPlayer</span> under KDE I just get a black
screen and nothing happens. After about one minute the video starts playing.
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
The KDE aRts sound daemon is blocking the sound device. Either wait until the
video starts or disable the aRts daemon in control center. If you want to use
aRts sound, specify audio output via our native aRts audio driver
(<tt class="option">-ao arts</tt>). If it fails or isn't compiled in, try SDL
(<tt class="option">-ao sdl</tt>) and make sure your SDL can handle aRts sound. Yet
another option is to start <span class="application">MPlayer</span> with artsdsp.
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3009496"></a><a name="id3009498"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
I have A/V sync problems.
Some of my AVIs play fine, but some play with double speed!
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
You have a buggy sound card/driver. Most likely it's fixed at 44100Hz, and you
try to play a file which has 22050Hz audio. Try the
<code class="systemitem">resample</code> audio filter.
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3009518"></a><a name="id3009520"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
When I play this movie I get video-audio desync and/or
<span class="application">MPlayer</span> crashes with the following message:
</p><pre class="screen">
Too many (945 in 8390980 bytes) video packets in the buffer!
</pre><p>
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
This can have multiple reasons.
</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>
  Your CPU <span class="emphasis"><em>and/or</em></span> video card <span class="emphasis"><em>and/or</em></span>
  bus is too slow. <span class="application">MPlayer</span> displays a message if
  this is the case (and the dropped frames counter goes up fast).
</p></li><li class="listitem"><p>
  If it is an AVI, maybe it has bad interleaving, try the
  <tt class="option">-ni</tt> option to work around this.
  Or it may have a bad header, in this case <tt class="option">-nobps</tt>
  and/or <tt class="option">-mc 0</tt> can help.
</p></li><li class="listitem"><p>
  Many FLV files will only play correctly with <tt class="option">-correct-pts</tt>.
  Unfortunately <span class="application">MEncoder</span> does not have this option,
  but you can try setting <tt class="option">-fps</tt> to the correct value manually
  if you know it.
</p></li><li class="listitem"><p>
  Your sound driver is buggy.
</p></li></ul></div><p>
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3009611"></a><a name="id3009613"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
How can I get rid of A/V desynchronization
while seeking through RealMedia streams?
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
<tt class="option">-mc 0.1</tt> can help.
</p></td></tr><tr class="qandadiv"><td align="left" valign="top" colspan="2"><h3 class="title"><a name="faq-dvd"></a>12.6. DVD playback</h3></td></tr><tr class="toc"><td align="left" valign="top" colspan="2"><dl><dt>问: <a href="faq.html#id3009641">
What about DVD navigation/menus?
</a></dt><dt>问: <a href="faq.html#id3009660">
What about subtitles? Can MPlayer display them?
</a></dt><dt>问: <a href="faq.html#id3009685">
How can I set the region code of my DVD-drive? I don't have Windows!
</a></dt><dt>问: <a href="faq.html#id3009705">
I can't play a DVD, MPlayer hangs or outputs "Encrypted VOB file!" errors.
</a></dt><dt>问: <a href="faq.html#id3009721">
Do I need to be (setuid) root to be able to play a DVD?
</a></dt><dt>问: <a href="faq.html#id3009743">
Is it possible to play/encode only selected chapters?
</a></dt><dt>问: <a href="faq.html#id3009760">
My DVD playback is sluggish!
</a></dt><dt>问: <a href="faq.html#id3009791">
I copied a DVD using vobcopy. How do I play/encode it from my hard disk?
</a></dt></dl></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3009641"></a><a name="id3009643"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
What about DVD navigation/menus?
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
<span class="application">MPlayer</span> should support DVD menus nowadays.
Your mileage may vary.
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3009660"></a><a name="id3009662"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
What about subtitles? Can <span class="application">MPlayer</span> display them?
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
Yes. See the <a class="link" href="dvd.html" title="5.2. DVD回放">DVD chapter</a>.
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3009685"></a><a name="id3009688"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
How can I set the region code of my DVD-drive? I don't have Windows!
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
Use the
<a class="ulink" href="http://linvdr.org/projects/regionset/" target="_top">regionset tool</a>.
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3009705"></a><a name="id3009707"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
I can't play a DVD, MPlayer hangs or outputs "Encrypted VOB file!" errors.
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
CSS decryption code does not work with some DVD drives unless you set
the region code appropriately. See the answer to the previous question.
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3009721"></a><a name="id3009723"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
Do I need to be (setuid) root to be able to play a DVD?
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
No. However you must have the proper rights
on the DVD device entry (in <tt class="filename">/dev/</tt>).
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3009743"></a><a name="id3009745"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
Is it possible to play/encode only selected chapters?
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
Yes, try the <tt class="option">-chapter</tt> option.
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3009760"></a><a name="id3009762"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
My DVD playback is sluggish!
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
Use the <tt class="option">-cache</tt> option (described in the man page) and try
enabling DMA for the DVD drive with the <span class="command"><strong>hdparm</strong></span> tool
(described in the <a class="link" href="drives.html" title="5.1. CD/DVD驱动器">CD chapter</a>).
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3009791"></a><a name="id3009793"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
I copied a DVD using vobcopy. How do I play/encode it from my hard disk?
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
Use the <tt class="option">-dvd-device</tt> option to refer to the directory
that contains the files:
</p><pre class="screen">
mplayer dvd://1 -dvd-device <em class="replaceable"><code>/path/to/directory</code></em>
</pre><p>
</p></td></tr><tr class="qandadiv"><td align="left" valign="top" colspan="2"><h3 class="title"><a name="faq-features"></a>12.7. Feature requests</h3></td></tr><tr class="toc"><td align="left" valign="top" colspan="2"><dl><dt>问: <a href="faq.html#id3009830">
If MPlayer is paused and I try to seek or press any
key at all, MPlayer ceases to be paused.
I would like to be able to seek in the paused movie.
</a></dt><dt>问: <a href="faq.html#id3009858">
I'd like to seek +/- 1 frame instead of 10 seconds.
</a></dt></dl></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3009830"></a><a name="id3009832"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
If <span class="application">MPlayer</span> is paused and I try to seek or press any
key at all, <span class="application">MPlayer</span> ceases to be paused.
I would like to be able to seek in the paused movie.
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
This is very tricky to implement without losing A/V synchronization.
All attempts have failed so far, but patches are welcome.
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3009858"></a><a name="id3009860"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
I'd like to seek +/- 1 frame instead of 10 seconds.
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
You can step forward one frame by pressing <span class="keycap"><b>.</b></span>.
If the movie was not paused it will be paused afterwards
(see the man page for details).
Stepping backwards is unlikely to be implemented anytime soon.
</p></td></tr><tr class="qandadiv"><td align="left" valign="top" colspan="2"><h3 class="title"><a name="faq-encoding"></a>12.8. Encoding</h3></td></tr><tr class="toc"><td align="left" valign="top" colspan="2"><dl><dt>问: <a href="faq.html#id3009894">
How can I encode?
</a></dt><dt>问: <a href="faq.html#id3009916">
How can I dump a full DVD title into a file?
</a></dt><dt>问: <a href="faq.html#id3009954">
How can I create (S)VCDs automatically?
</a></dt><dt>问: <a href="faq.html#id3009983">
How can I create (S)VCDs?
</a></dt><dt>问: <a href="faq.html#id3010014">
How can I join two video files?
</a></dt><dt>问: <a href="faq.html#id3010072">
How can I fix AVI files with a broken index or bad interleaving?
</a></dt><dt>问: <a href="faq.html#id3010112">
How can I fix the aspect ratio of an AVI file?
</a></dt><dt>问: <a href="faq.html#id3010150">
How can I backup and encode a VOB file with a broken beginning?
</a></dt><dt>问: <a href="faq.html#id3010211">
I can't encode DVD subtitles into the AVI!
</a></dt><dt>问: <a href="faq.html#id3010228">
How can I encode only selected chapters from a DVD?
</a></dt><dt>问: <a href="faq.html#id3010249">
I'm trying to work with 2GB+ files on a VFAT file system. Does it work?
</a></dt><dt>问: <a href="faq.html#id3010262">
What is the meaning of the numbers on the status line
during the encoding process?
</a></dt><dt>问: <a href="faq.html#id3010406">
Why is the recommended bitrate printed by MEncoder
negative?
</a></dt><dt>问: <a href="faq.html#id3010427">
I can't encode an ASF file to AVI/MPEG-4 (DivX) because it uses 1000 fps.
</a></dt><dt>问: <a href="faq.html#id3010445">
How can I put subtitles in the output file?
</a></dt><dt>问: <a href="faq.html#id3010472">
How do I encode only sound from a music video?
</a></dt><dt>问: <a href="faq.html#id3010540">
Why do third-party players fail to play MPEG-4 movies encoded by
MEncoder versions later than 1.0pre7?
</a></dt><dt>问: <a href="faq.html#id3010655">
How can I encode an audio only file?
</a></dt><dt>问: <a href="faq.html#id3010682">
How can I play subtitles embedded in AVI?
</a></dt><dt>问: <a href="faq.html#id3010717">
MEncoder won't...
</a></dt></dl></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3009894"></a><a name="id3009896"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
How can I encode?
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
Read the <a class="link" href="mencoder.html" title="第 10 章 MEncoder的基础用法"><span class="application">MEncoder</span></a>
section.
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3009916"></a><a name="id3009918"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
How can I dump a full DVD title into a file?
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
Once you have selected your title, and made sure it plays fine with
<span class="application">MPlayer</span>, use the option <tt class="option">-dumpstream</tt>.
For example:
</p><pre class="screen">
mplayer dvd://5 -dumpstream -dumpfile <em class="replaceable"><code>dvd_dump.vob</code></em>
</pre><p>
will dump the 5th title of the DVD into the file
<em class="replaceable"><code>dvd_dump.vob</code></em>
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3009954"></a><a name="id3009956"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
How can I create (S)VCDs automatically?
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
Try the <tt class="filename">mencvcd.sh</tt> script from the
<tt class="filename">TOOLS</tt> subdirectory.
With it you can encode DVDs or other movies to VCD or SVCD format
and even burn them directly to CD.
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3009983"></a><a name="id3009986"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
How can I create (S)VCDs?
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
Newer versions of <span class="application">MEncoder</span> can directly
generate MPEG-2 files that can be used as a base to create a VCD or SVCD and
are likely to be playable out of the box on all platforms (for example,
to share a video from a digital camcorder with your computer-illiterate
friends).
Please read
<a class="link" href="menc-feat-vcd-dvd.html" title="11.8. Using MEncoder to create VCD/SVCD/DVD-compliant files">Using MEncoder to create VCD/SVCD/DVD-compliant files</a>
for more details.
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3010014"></a><a name="id3010016"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
How can I join two video files?
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
MPEG files can be concatenated into a single file with luck.
For AVI files, you can use <span class="application">MEncoder</span>'s
multiple file support like this:
</p><pre class="screen">
mencoder -ovc copy -oac copy -o <em class="replaceable"><code>out.avi</code></em> <em class="replaceable"><code>file1.avi</code></em> <em class="replaceable"><code>file2.avi</code></em>
</pre><p>
This will only work if the files are of the same resolution
and use the same codec.
You can also try
<a class="ulink" href="http://fixounet.free.fr/avidemux/" target="_top">avidemux</a> and
<span class="application">avimerge</span> (part of the
<a class="ulink" href="http://www.transcoding.org/" target="_top">transcode</a>
tool set).
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3010072"></a><a name="id3010074"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
How can I fix AVI files with a broken index or bad interleaving?
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
To avoid having to use <tt class="option">-idx</tt> to be able to seek in
AVI files with a broken index or <tt class="option">-ni</tt> to play AVI
files with bad interleaving, use the command
</p><pre class="screen">
mencoder <em class="replaceable"><code>input.avi</code></em> -idx -ovc copy -oac copy -o <em class="replaceable"><code>output.avi</code></em>
</pre><p>
to copy the video and audio streams into a new AVI file while
regenerating the index and correctly interleaving the data.
Of course this cannot fix possible bugs in the video and/or audio streams.
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3010112"></a><a name="id3010114"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
How can I fix the aspect ratio of an AVI file?
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
You can do such a thing thanks to <span class="application">MEncoder</span>'s
<tt class="option">-force-avi-aspect</tt> option, which overrides the aspect
stored in the AVI OpenDML vprp header option. For example:
</p><pre class="screen">
mencoder <em class="replaceable"><code>input.avi</code></em> -ovc copy -oac copy -o <em class="replaceable"><code>output.avi</code></em> -force-avi-aspect 4/3
</pre><p>
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3010150"></a><a name="id3010152"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
How can I backup and encode a VOB file with a broken beginning?
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
The main problem when you want to encode a VOB file which is corrupted
<sup>[<a name="fn-corrupted-files-or-copy-protection" href="#ftn.fn-corrupted-files-or-copy-protection" class="footnote">3</a>]</sup>
is that it will be hard to get an encode with perfect A/V sync.
One workaround is to just shave off the corrupted part and encode just the
clean part.
First you need to find where the clean part starts:
</p><pre class="screen">
mplayer <em class="replaceable"><code>input.vob</code></em> -sb <em class="replaceable"><code>nb_of_bytes_to_skip</code></em>
</pre><p>
Then you can create a new file which contains just the clean part:
</p><pre class="screen">
dd if=<em class="replaceable"><code>input.vob</code></em> of=<em class="replaceable"><code>output_cut.vob</code></em> skip=1 ibs=<em class="replaceable"><code>nb_of_bytes_to_skip</code></em>
</pre><p>
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3010211"></a><a name="id3010213"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
I can't encode DVD subtitles into the AVI!
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
You have to properly specify the <tt class="option">-sid</tt> option.
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3010228"></a><a name="id3010230"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
How can I encode only selected chapters from a DVD?
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
Use the <tt class="option">-chapter</tt> option correctly,
like: <tt class="option">-chapter 5-7</tt>.
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3010249"></a><a name="id3010251"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
I'm trying to work with 2GB+ files on a VFAT file system. Does it work?
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
No, VFAT doesn't support 2GB+ files.
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3010262"></a><a name="id3010264"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
What is the meaning of the numbers on the status line
during the encoding process?
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
Example:
</p><pre class="screen">
Pos: 264.5s   6612f ( 2%)  7.12fps Trem: 576min 2856mb  A-V:0.065 [2126:192]
</pre><p>
</p><div class="variablelist"><dl><dt><span class="term"><code class="systemitem">Pos: 264.5s</code></span></dt><dd><p>time position in the encoded stream</p></dd><dt><span class="term"><code class="systemitem">6612f</code></span></dt><dd><p>number of video frames encoded</p></dd><dt><span class="term"><code class="systemitem">( 2%)</code></span></dt><dd><p>portion of the input stream encoded</p></dd><dt><span class="term"><code class="systemitem">7.12fps</code></span></dt><dd><p>encoding speed</p></dd><dt><span class="term"><code class="systemitem">Trem: 576min</code></span></dt><dd><p>estimated remaining encoding time</p></dd><dt><span class="term"><code class="systemitem">2856mb</code></span></dt><dd><p>estimated size of the final encode</p></dd><dt><span class="term"><code class="systemitem">A-V:0.065</code></span></dt><dd><p>current delay between audio and video streams</p></dd><dt><span class="term"><code class="systemitem">[2126:192]</code></span></dt><dd><p>
  average video bitrate (in kb/s) and average audio bitrate (in kb/s)
  </p></dd></dl></div><p>
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3010406"></a><a name="id3010408"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
Why is the recommended bitrate printed by <span class="application">MEncoder</span>
negative?
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
Because the bitrate you encoded the audio with is too large to fit the
movie on any CD. Check if you have libmp3lame installed properly.
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3010427"></a><a name="id3010429"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
I can't encode an ASF file to AVI/MPEG-4 (DivX) because it uses 1000 fps.
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
Since ASF uses variable framerate but AVI uses a fixed one, you
have to set it by hand with the <tt class="option">-ofps</tt> option.
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3010445"></a><a name="id3010447"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
How can I put subtitles in the output file?
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
Just pass the <tt class="option">-sub &lt;filename&gt;</tt> (or <tt class="option">-sid</tt>,
respectively) option to <span class="application">MEncoder</span>.
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3010472"></a><a name="id3010474"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
How do I encode only sound from a music video?
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
It's not possible directly, but you can try this (note the
<span class="bold"><strong>&amp;</strong></span> at the end of
<span class="command"><strong>mplayer</strong></span> command):
</p><pre class="screen">
mkfifo <em class="replaceable"><code>encode</code></em>
mplayer -ao pcm -aofile <em class="replaceable"><code>encode</code></em> dvd://1 &amp;
lame <em class="replaceable"><code>your_opts</code></em> <em class="replaceable"><code>encode</code></em> <em class="replaceable"><code>music.mp3</code></em>
rm <em class="replaceable"><code>encode</code></em>
</pre><p>
This allows you to use any encoder, not only <span class="application">LAME</span>,
just replace <span class="command"><strong>lame</strong></span> with your favorite audio encoder in the
above command.
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3010540"></a><a name="id3010542"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
Why do third-party players fail to play MPEG-4 movies encoded by
<span class="application">MEncoder</span> versions later than 1.0pre7?
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
<code class="systemitem">libavcodec</code>, the native MPEG-4
encoding library usually shipped with <span class="application">MEncoder</span>,
used to set the FourCC to 'DIVX' when encoding MPEG-4 videos
(the FourCC is an AVI tag to identify the software used to encode and
the intended software to use for decoding the video).
This led many people to think that
<code class="systemitem">libavcodec</code>
was a DivX encoding library, when in fact it is a completely different
MPEG-4 encoding library which implements the MPEG-4 standard much
better than DivX does.
Therefore, the new default FourCC used by
<code class="systemitem">libavcodec</code> is 'FMP4', but you
may override this behavior using <span class="application">MEncoder</span>'s
<tt class="option">-ffourcc</tt> option.
You may also change the FourCC of existing files in the same way:
</p><pre class="screen">
mencoder <em class="replaceable"><code>input.avi</code></em> -o <em class="replaceable"><code>output.avi</code></em> -ffourcc XVID
</pre><p>
Note that this will set the FourCC to XVID rather than DIVX.
This is recommended as DIVX FourCC means DivX4, which is a very basic
MPEG-4 codec, whereas DX50 and XVID both mean full MPEG-4 (ASP).
Therefore, if you change the FourCC to DIVX, some bad software or
hardware players may choke on some advanced features that
<code class="systemitem">libavcodec</code> supports, but DivX
doesn't; on the other hand <code class="systemitem">Xvid</code>
is closer to <code class="systemitem">libavcodec</code> in
terms of functionality, and is supported by all decent players.
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3010655"></a><a name="id3010657"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
How can I encode an audio only file?
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
Use <tt class="filename">aconvert.sh</tt> from the
<tt class="filename">TOOLS</tt>
subdirectory in the MPlayer source tree.
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3010682"></a><a name="id3010685"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
How can I play subtitles embedded in AVI?
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
Use <tt class="filename">avisubdump.c</tt> from the
<tt class="filename">TOOLS</tt> subdirectory or read
<a class="ulink" href="http://xlife.zuavra.net/curse/0012/" target="_top">this document about extracting/demultiplexing subtitles embedded in OpenDML AVI files</a>.
</p></td></tr><tr class="question" title="问:"><td align="left" valign="top"><a name="id3010717"></a><a name="id3010720"></a><p><b>问:</b></p></td><td align="left" valign="top"><p>
MEncoder won't...
</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>答:</b></p></td><td align="left" valign="top"><p>
Have a look at the <tt class="filename">TOOLS</tt>
subdirectory for a collection of random scripts and hacks.
<tt class="filename">TOOLS/README</tt> contains documentation.
</p></td></tr></tbody></table></div><div class="footnotes"><br><hr width="100" align="left"><div class="footnote"><p><sup>[<a name="ftn.fn-corrupted-files-or-copy-protection" href="#fn-corrupted-files-or-copy-protection" class="para">3</a>] </sup>
To some extent, some forms of copy protection used in DVDs can be
assumed to be content corruption.
</p></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="menc-feat-vcd-dvd.html">上一页</a> </td><td width="20%" align="center"> </td><td width="40%" align="right"> <a accesskey="n" href="bugreports.html">下一页</a></td></tr><tr><td width="40%" align="left" valign="top">11.8. Using <span class="application">MEncoder</span>
  to create VCD/SVCD/DVD-compliant files </td><td width="20%" align="center"><a accesskey="h" href="index.html">起始页</a></td><td width="40%" align="right" valign="top"> 附录 A. 如何报告错误</td></tr></table></div></body></html>