~ubuntu-branches/debian/sid/mplayer/sid

« back to all changes in this revision

Viewing changes to DOCS/HTML/zh_CN/windows.html

  • Committer: Bazaar Package Importer
  • Author(s): A Mennucc1
  • Date: 2009-03-23 10:05:45 UTC
  • mfrom: (4.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20090323100545-x8h79obawnnte7kk
Tags: 1.0~rc2+svn20090303-5
debian/control : move docbook-xml,docbook-xsl,xsltproc from 
Build-Depends-Indep to Build-Depends, since they are needed to run
configure

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>12.4. Windows</title><link rel="stylesheet" href="default.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.71.0"><link rel="start" href="index.html" title="MPlayer - 电影播放器"><link rel="up" href="ports.html" title="第 12 章 Ports"><link rel="prev" href="unix.html" title="12.3. Commercial Unix"><link rel="next" href="macos.html" title="12.5. Mac OS"><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="cd-dvd.html" title="第 4 章 CD/DVD用法"><link rel="chapter" href="faq.html" title="第 5 章 Frequently Asked Questions"><link rel="chapter" href="containers.html" title="第 6 章 Containers"><link rel="chapter" href="codecs.html" title="第 7 章 Codecs"><link rel="chapter" href="video.html" title="第 8 章 Video output devices"><link rel="chapter" href="audio.html" title="第 9 章 音频输出设备"><link rel="chapter" href="tv.html" title="第 10 章 TV"><link rel="chapter" href="radio.html" title="第 11 章 广播电台"><link rel="chapter" href="ports.html" title="第 12 章 Ports"><link rel="chapter" href="mencoder.html" title="第 13 章 MEncoder的基础用法"><link rel="chapter" href="encoding-guide.html" title="第 14 章 Encoding with MEncoder"><link rel="appendix" href="bugreports.html" title="附录 A. 如何报告错误"><link rel="appendix" href="bugs.html" title="附录 B. 已知错误"><link rel="appendix" href="skin.html" title="附录 C. MPlayer skin format"><link rel="appendix" href="history.html" title="附录 D. History"><link rel="subsection" href="windows.html#cygwin" title="12.4.1. Cygwin"><link rel="subsection" href="windows.html#mingw" title="12.4.2. MinGW"></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.4. Windows</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="unix.html">上一页</a> </td><th width="60%" align="center">第 12 章 Ports</th><td width="20%" align="right"> <a accesskey="n" href="macos.html">下一页</a></td></tr></table><hr></div><div class="sect1" lang="zh-CN"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="windows"></a>12.4. Windows</h2></div></div></div><p>
2
 
Yes, <span class="application">MPlayer</span> runs on Windows under
3
 
<a href="http://www.cygwin.com/" target="_top"><span class="application">Cygwin</span></a>
4
 
and
5
 
<a href="http://www.mingw.org/" target="_top"><span class="application">MinGW</span></a>.
6
 
It does not have an official GUI yet, but the command line version
7
 
is completely functional. You should check out the
8
 
<a href="http://lists.mplayerhq.hu/mailman/listinfo/mplayer-cygwin/" target="_top">MPlayer-cygwin</a>
9
 
mailing list for help and latest information.
10
 
Official Windows binaries can be found on the
11
 
<a href="http://www.mplayerhq.hu/design7/dload.html" target="_top">download page</a>.
12
 
Installer packages and simple GUI frontends are available from external
13
 
sources, we have collected then in the Windows section of our
14
 
<a href="http://www.mplayerhq.hu/design7/projects.html#windows" target="_top">projects page</a>.
15
 
</p><p>
16
 
If you wish to avoid using the command line, a simple trick is
17
 
to put a shortcut on your desktop that contains something like the
18
 
following in the execute section:
19
 
</p><pre class="screen"><em class="replaceable"><code>c:\path\to\</code></em>mplayer.exe %1</pre><p>
20
 
This will make <span class="application">MPlayer</span> play any movie that is
21
 
dropped on the shortcut. Add <tt class="option">-fs</tt> for fullscreen mode.
22
 
</p><p>
23
 
Best results are achieved with the native DirectX video output driver
24
 
(<tt class="option">-vo directx</tt>). Alternatives are OpenGL and SDL, but OpenGL
25
 
performance varies greatly between systems and SDL is known to
26
 
distort video or crash on some systems. If the image is
27
 
distorted, try turning off hardware acceleration with
28
 
<tt class="option">-vo directx:noaccel</tt>. Download
29
 
<a href="http://www.mplayerhq.hu/MPlayer/releases/win32/contrib/dx7headers.tgz" target="_top">DirectX 7 header files</a>
30
 
to compile the DirectX video output driver. Furthermore you need to have
31
 
DirectX 7 or later installed for the DirectX video output driver to work.
32
 
</p><p>
33
 
<a href="vidix.html" title="8.15. VIDIX">VIDIX</a> now works under Windows as
34
 
<tt class="option">-vo winvidix</tt>, although it is still experimental
35
 
and needs a bit of manual setup. Download
36
 
<a href="http://www.mplayerhq.hu/MPlayer/releases/win32/dhahelperwin/dhahelper.sys" target="_top">dhahelper.sys</a> or
37
 
<a href="http://www.mplayerhq.hu/MPlayer/releases/win32/dhahelperwin/withmtrr/dhahelper.sys" target="_top">dhahelper.sys (with MTRR support)</a>
38
 
and copy it to the <tt class="filename">vidix/dhahelperwin</tt>
39
 
directory in your <span class="application">MPlayer</span> source tree.
40
 
Open a console and change to that directory. Then type
41
 
</p><pre class="screen">gcc -o dhasetup.exe dhasetup.c</pre><p>
42
 
and execute
43
 
</p><pre class="screen">dhasetup.exe install</pre><p>
44
 
as Administrator. After that you will have to reboot. When you are
45
 
done, copy the <code class="systemitem">.so</code> files from
46
 
<tt class="filename">vidix/drivers</tt> to the
47
 
<tt class="filename">mplayer/vidix</tt> directory
48
 
relative to your <tt class="filename">mplayer.exe</tt>.
49
 
</p><p>
50
 
For best results <span class="application">MPlayer</span> should use a
51
 
colorspace that your video card supports in hardware. Unfortunately many
52
 
Windows graphics drivers wrongly report some colorspaces as supported in
53
 
hardware. To find out which, try
54
 
</p><pre class="screen">
55
 
mplayer -benchmark -nosound -frames 100 -vf format=<em class="replaceable"><code>colorspace</code></em> <em class="replaceable"><code>movie</code></em>
56
 
</pre><p>
57
 
where <em class="replaceable"><code>colorspace</code></em> can be any colorspace
58
 
printed by the <tt class="option">-vf format=fmt=help</tt> option. If you
59
 
find a colorspace your card handles particularly bad
60
 
<tt class="option">-vf noformat=<em class="replaceable"><code>colorspace</code></em></tt>
61
 
will keep it from being used. Add this to your config file to permanently
62
 
keep it from being used.
63
 
</p><p>There are special codec packages for Windows available on our
64
 
  <a href="http://www.mplayerhq.hu/design7/dload.html" target="_top">download page</a>
65
 
  to allow playing formats for which there is no native support yet.
66
 
  Put the codecs somewhere in your path or pass
67
 
  <tt class="option">--codecsdir=<em class="replaceable"><code>c:/path/to/your/codecs</code></em></tt>
68
 
  (alternatively
69
 
  <tt class="option">--codecsdir=<em class="replaceable"><code>/path/to/your/codecs</code></em></tt>
70
 
  only on <span class="application">Cygwin</span>) to <tt class="filename">configure</tt>.
71
 
  We have had some reports that Real DLLs need to be writable by the user
72
 
  running <span class="application">MPlayer</span>, but only on some systems (NT4).
73
 
  Try making them writable if you have problems.
74
 
  </p><p>
75
 
You can play VCDs by playing the <tt class="filename">.DAT</tt> or
76
 
<tt class="filename">.MPG</tt> files that Windows exposes on VCDs. It works like
77
 
this (adjust for the drive letter of your CD-ROM):
78
 
</p><pre class="screen">mplayer <em class="replaceable"><code>d:/mpegav/avseq01.dat</code></em></pre><p>
79
 
DVDs also work, adjust <tt class="option">-dvd-device</tt> for the drive letter
80
 
of your DVD-ROM:
81
 
</p><pre class="screen">
82
 
mplayer dvd://<em class="replaceable"><code>&lt;title&gt;</code></em> -dvd-device <em class="replaceable"><code>d</code></em>:
83
 
</pre><p>
84
 
The <span class="application">Cygwin</span>/<span class="application">MinGW</span>
85
 
console is rather slow. Redirecting output or using the
86
 
<tt class="option">-quiet</tt> option has been reported to improve performance on
87
 
some systems. Direct rendering (<tt class="option">-dr</tt>) may also help.
88
 
If playback is jerky, try
89
 
<tt class="option">-autosync 100</tt>. If some of these options help you, you
90
 
may want to put them in your config file.
91
 
</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">注意</h3><p>
92
 
On Windows the runtime CPU detection disables SSE support
93
 
because of recurring and hard-to-trace SSE-related crashes. If you
94
 
wish to have SSE support under Windows, you will have to compile without
95
 
runtime CPU-detection.
96
 
</p><p>
97
 
If you have a Pentium 4 and are experiencing a crash using the
98
 
RealPlayer codecs, you may need to disable hyperthreading support.
99
 
</p></div><div class="sect2" lang="zh-CN"><div class="titlepage"><div><div><h3 class="title"><a name="cygwin"></a>12.4.1. <span class="application">Cygwin</span></h3></div></div></div><p>
100
 
You need to run <span class="application">Cygwin</span> 1.5.0 or later in
101
 
order to compile <span class="application">MPlayer</span>.
102
 
</p><p>
103
 
DirectX header files need to be extracted to
104
 
<tt class="filename">/usr/include/</tt> or
105
 
<tt class="filename">/usr/local/include/</tt>.
106
 
</p><p>
107
 
Instructions and files for making SDL run under
108
 
<span class="application">Cygwin</span> can be found on the
109
 
<a href="http://www.libsdl.org/extras/win32/cygwin/" target="_top">libsdl site</a>.
110
 
</p></div><div class="sect2" lang="zh-CN"><div class="titlepage"><div><div><h3 class="title"><a name="mingw"></a>12.4.2. <span class="application">MinGW</span></h3></div></div></div><p>
111
 
Installing a version of <span class="application">MinGW</span> that could
112
 
compile <span class="application">MPlayer</span> used to be quite tricky, but it
113
 
works out of the box now. Just install <span class="application">MinGW</span>
114
 
3.1.0 or later and MSYS 1.0.9 or later and tell the MSYS postinstall that
115
 
<span class="application">MinGW</span> is installed.
116
 
</p><p>
117
 
Extract DirectX header files to
118
 
<tt class="filename">/mingw/include/</tt>.
119
 
</p><p>
120
 
MOV compressed header support requires
121
 
<a href="http://www.gzip.org/zlib/" target="_top">zlib</a>,
122
 
which <span class="application">MinGW</span> does not provide by default.
123
 
Configure it with <tt class="option">--prefix=/mingw</tt> and install
124
 
it before compiling <span class="application">MPlayer</span>.
125
 
</p><p>
126
 
Complete instructions for building <span class="application">MPlayer</span>
127
 
and necessary libraries can be found in the
128
 
<a href="http://www.mplayerhq.hu/MPlayer/releases/win32/contrib/MPlayer-MinGW-Howto.txt" target="_top">MPlayer MinGW HOWTO</a>.
129
 
</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="unix.html">上一页</a> </td><td width="20%" align="center"><a accesskey="u" href="ports.html">上一级</a></td><td width="40%" align="right"> <a accesskey="n" href="macos.html">下一页</a></td></tr><tr><td width="40%" align="left" valign="top">12.3. Commercial Unix </td><td width="20%" align="center"><a accesskey="h" href="index.html">起始页</a></td><td width="40%" align="right" valign="top"> 12.5. Mac OS</td></tr></table></div></body></html>