15496
|
1 <?xml version="1.0" encoding="iso-8859-2"?>
|
|
2 <!-- Synced with: 1.60 -->
|
|
3 <chapter id="ports" xreflabel="Ports">
|
|
4 <title>Porty</title>
|
|
5
|
|
6 <sect1 id="linux">
|
|
7 <title>Linux</title>
|
|
8 <para>
|
|
9 Hlavní vývojovou platformou je Linux na x86, ačkoli
|
|
10 <application>MPlayer</application> pracuje na mnoha jiných portech Linuxu.
|
|
11 Binární balíčky <application>MPlayer</application>u jsou dostupné z několika
|
|
12 zdrojů. Nicméně <emphasis role="bold">není žádný z těchto balíčků podporován</emphasis>.
|
|
13 Hlaste tedy problémy jejich autorům, nikoli nám.
|
|
14 </para>
|
|
15
|
|
16 <sect2 id="debian">
|
|
17 <title>Vytvoření balíčku pro Debian</title>
|
|
18 <para>
|
|
19 Pro vytvoření balíčku pro Debian spusťte následující příkaz v adresáři se
|
|
20 zdrojovým kódem <application>MPlayer</application>u:
|
|
21
|
|
22 <screen>fakeroot debian/rules binary</screen>
|
|
23
|
|
24 Pokud chcete předat nějaké volby pro configure, můžete nastavit proměnnou
|
|
25 prostředí <envar>DEB_BUILD_OPTIONS</envar>. Například, pokud chcete GUI a
|
|
26 podporu OSD menu, měli byste použít:
|
|
27
|
|
28 <screen>DEB_BUILD_OPTIONS="--enable-gui --enable-menu" fakeroot debian/rules binary</screen>
|
|
29
|
|
30 Rovněž můžete předat některé proměnné do Makefile. Například, pokud chcete
|
|
31 kompilovat pomocí gcc 3.4 i v případě, že to není výchozí kompilátor:
|
|
32
|
|
33 <screen>CC=gcc-3.4 DEB_BUILD_OPTIONS="--enable-gui" fakeroot debian/rules binary</screen>
|
|
34
|
|
35 K vyčistění zdrojového stromu spusťte následující příkaz:
|
|
36
|
|
37 <screen>fakeroot debian/rules clean</screen>
|
|
38
|
|
39 Jako root můžete nainstalovat <filename>.deb</filename> balíček obvyklým
|
|
40 způsobem:
|
|
41
|
|
42 <screen>dpkg -i ../mplayer_<replaceable>version</replaceable>.deb</screen>
|
|
43 </para>
|
|
44
|
|
45 <para>
|
|
46 Christian Marillat vytvářel jistou dobu neoficiální Debianí balíčky
|
|
47 <application>MPlayer</application>u, <application>MEncoder</application>u a
|
|
48 našich bitmapových fontů, můžete si je stáhnout (apt-get) z
|
|
49 <ulink url="http://hpisi.nerim.net/">jeho domácí stránky</ulink>.
|
|
50 </para>
|
|
51 </sect2>
|
|
52
|
|
53 <sect2 id="rpm">
|
|
54 <title>Balení RPM</title>
|
|
55 <para>
|
15677
|
56 Dominik Mierzejewski vytvořil a udržuje oficiální RPM balíčky
|
|
57 <application>MPlayer</application>u pro Red Hat a Fedora Core. Ty jsou dostupné
|
|
58 z jeho
|
|
59 <ulink url="http://rpm.greysector.net/mplayer/">repozitáře</ulink>.
|
15496
|
60 </para>
|
|
61
|
|
62 <para>
|
|
63 RPM balíčky pro Mandrake jsou dostupné z
|
|
64 <ulink url="http://plf.zarb.org/">P.L.F.</ulink>.
|
|
65 SuSE zařadilo do své distribuce zmrzačenou verzi
|
|
66 <application>MPlayer</application>u. V posledních verzích ji odstranili. Funkční
|
|
67 RPM naleznete na
|
|
68 <ulink url="http://packman.links2linux.de/?action=128">links2linux.de</ulink>.
|
|
69 </para>
|
|
70 </sect2>
|
|
71
|
|
72 <sect2 id="arm">
|
|
73 <title>ARM</title>
|
|
74 <para>
|
|
75 <application>MPlayer</application> pracuje na Linuxových PDA s ARM CPU např.
|
|
76 Sharp Zaurus, Compaq Ipaq. Nejjednodušší způsob jak si opatřit
|
|
77 <application>MPlayer</application> je, stáhnout si jej z některého
|
|
78 <ulink url="http://www.openzaurus.org">OpenZaurus</ulink> balíčkového kanálu.
|
|
79 Pokud si jej chcete skompilovat sami, měli byste nahlédnout do adresáře
|
|
80 <ulink url="http://openzaurus.bkbits.net:8080/buildroot/src/packages/mplayer?nav=index.html|src/.|src/packages">mplayer</ulink>
|
|
81 a
|
|
82 <ulink url="http://openzaurus.bkbits.net:8080/buildroot/src/packages/libavcodec?nav=index.html|src/.|src/packages">libavcodec</ulink>
|
|
83 v buildroot OpenZaurus distribuce. Zde mají vždy poslední Makefile a patche používané
|
|
84 pro sestavení CVS verze <application>MPlayer</application>u s
|
|
85 <systemitem class="library">libavcodec</systemitem>em.
|
|
86 Pokud potřebujete GUI rozhraní, můžete použít xmms-embedded.
|
|
87 </para>
|
|
88 </sect2>
|
|
89 </sect1>
|
|
90
|
|
91 <sect1 id="bsd">
|
|
92 <title>*BSD</title>
|
|
93 <para>
|
|
94 <application>MPlayer</application> běží na FreeBSD, OpenBSD, NetBSD,
|
|
95 BSD/OS a Darwinu. Existují portované/pkgsrc/fink/atd verze
|
|
96 <application>MPlayer</application>u, které lze pravděpodobně snadněji použít,
|
|
97 než naše surové zdrojové kódy.
|
|
98 </para>
|
|
99
|
|
100 <para>
|
|
101 K sestavení <application>MPlayer</application>u budete potřebovat GNU make
|
|
102 (gmake - nativní BSD make nebude pracovat) a současnou verzi binutils.
|
|
103 </para>
|
|
104
|
|
105 <para>
|
|
106 Pokud si <application>MPlayer</application> stěžuje, že nemůže najít
|
|
107 <filename>/dev/cdrom</filename> nebo <filename>/dev/dvd</filename>,
|
|
108 vytvořte příslušný symbolický link:
|
|
109 <screen>ln -s /dev/<replaceable>vaše_cdrom_zařízení</replaceable> /dev/cdrom</screen>
|
|
110 </para>
|
|
111
|
|
112 <para>
|
|
113 Chcete-li používat Win32 DLL v <application>MPlayer</application>u, budete muset
|
|
114 rekompilovat jádro s volbou "<envar>USER_LDT</envar>"
|
|
115 (pokud nepoužíváte FreeBSD-CURRENT, kde je to výchozí).
|
|
116 </para>
|
|
117
|
|
118
|
|
119 <sect2 id="freebsd">
|
|
120 <title>FreeBSD</title>
|
|
121 <para>
|
|
122 Pokud váš procesor má SSE, rekompilujte jádro s volbami
|
|
123 "<envar>CPU_ENABLE_SSE</envar>" (vyžaduje FreeBSD-STABLE nebo patche
|
|
124 do jádra).
|
|
125 </para>
|
|
126 </sect2>
|
|
127
|
|
128 <sect2 id="openbsd">
|
|
129 <title>OpenBSD</title>
|
|
130 <para>
|
|
131 Vzhledem k omezením v různých verzích gas (GNU assembleru – pozn. překl.)
|
|
132 (relokace vs MMX), budete muset kompilovat ve dvou krocích:
|
|
133 Nejprve se ujistěte že je nenativní as jako první ve vaší <envar>$PATH</envar>
|
|
134 a proveďte <command>gmake -k</command>, pak zajistěte, aby se použila nativní
|
|
135 verze a proveďte <command>gmake</command>.
|
|
136 </para>
|
|
137 <para>
|
|
138 Od OpenBSD 3.4 není již výše uvedená metoda potřeba.
|
|
139 </para>
|
|
140 </sect2>
|
|
141
|
|
142 <sect2 id="darwin">
|
|
143 <title>Darwin</title>
|
|
144 <para>
|
|
145 Viz sekce <link linkend="macos">Mac OS</link>.
|
|
146 </para>
|
|
147 </sect2>
|
|
148 </sect1>
|
|
149
|
|
150 <sect1 id="solaris">
|
|
151 <title>Sun Solaris</title>
|
|
152 <para>
|
|
153 <application>MPlayer</application> by měl běžet na Solarisu 2.6 nebo novějším.
|
|
154 Použijte SUN audio rozhraní pomocí volby <option>-ao sun</option> pro přehrávání
|
|
155 zvuku.
|
|
156 </para>
|
|
157
|
|
158 <para>
|
15677
|
159 Na <emphasis role="bold">UltraSPARC</emphasis>ích, <application>MPlayer</application>
|
|
160 využívá jejich rozšíření <emphasis role="bold">VIS</emphasis>
|
|
161 (ekvivalentní MMX), zatím jen v
|
15496
|
162 <systemitem class="library">libmpeg2</systemitem>,
|
|
163 <systemitem class="library">libvo</systemitem>
|
15677
|
164 a <systemitem class="library">libavcodec</systemitem>, ale nikoli v
|
|
165 <systemitem class="library">mp3lib</systemitem>. Můžete přehrávat VOB soubor
|
|
166 na 400MHz CPU. Budete k tomu potřebovat nainstalovanou
|
|
167 <ulink url="http://www.sun.com/sparc/vis/mediaLib.html"><systemitem class="library">mLib</systemitem></ulink>.
|
15496
|
168 </para>
|
|
169
|
|
170 <para>
|
15677
|
171 Pro kompilaci balíku budete potřebovat GNU <application>make</application>
|
|
172 (<filename>gmake</filename>, <filename>/opt/sfw/gmake</filename>), jelikož
|
|
173 nativní make Solarisu nebude pracovat. Typickou chybou kompilace s make
|
|
174 Solarisu namísto GNU make je:
|
15496
|
175 <screen>
|
|
176 % /usr/ccs/bin/make
|
|
177 make: Fatal error in reader: Makefile, line 25: Unexpected end of line seen
|
|
178 </screen>
|
|
179 </para>
|
|
180
|
|
181 <para>
|
15677
|
182 Na Solarisu SPARC, potřebujete GNU C/C++ Compiler; nezáleží na tom, zda je
|
|
183 GNU C/C++ compiler konfigurován s nebo bez GNU assembleru.
|
15496
|
184 </para>
|
|
185
|
|
186 <para>
|
15677
|
187 Na Solarisu x86, potřebujete GNU assembler a GNU C/C++ compiler,
|
|
188 konfigurovaný pro použití GNU assembleru! Kód <application>MPlayer</application>u
|
|
189 na platformě x86 intenzivně používá MMX, SSE a 3DNOW! instrukce,
|
|
190 které nemůže být kompilovány Sun assemblerem <filename>/usr/ccs/bin/as</filename>.
|
15496
|
191 </para>
|
|
192
|
|
193 <para>
|
15677
|
194 Skript <filename>configure</filename> zkouší zjistit, který assembler je použitý
|
|
195 vaším příkazem "gcc" (v případě že autodetekce selže, použijte volbu
|
|
196 <option>--as=<replaceable>/kdekoli/máte/nainstalován/gnu-as</replaceable></option>
|
|
197 pro nastavení <filename>configure</filename> skriptu tak, aby našel GNU
|
|
198 "as" na vašem systému).
|
15496
|
199 </para>
|
|
200
|
|
201 <para>
|
15677
|
202 Chybová zpráva z <filename>configure</filename> na systému Solaris x86
|
|
203 s použitím GCC bez GNU assembleru:
|
15496
|
204 <screen>
|
|
205 % configure
|
|
206 ...
|
|
207 Checking assembler (/usr/ccs/bin/as) ... , failed
|
|
208 Please upgrade(downgrade) binutils to 2.10.1...
|
|
209 </screen>
|
15677
|
210 (Řešení: Nainstalujte a použijte gcc konfigurovaný s <option>--with-as=gas</option>)
|
15496
|
211 </para>
|
|
212
|
|
213 <para>
|
15677
|
214 Typická chyba, kterou dostanete při kompilaci pomocí GNU C kompilátoru, který
|
|
215 nepoužívá GNU as:
|
15496
|
216 <screen>
|
|
217 % gmake
|
|
218 ...
|
|
219 gcc -c -Iloader -Ilibvo -O4 -march=i686 -mcpu=i686 -pipe -ffast-math
|
|
220 -fomit-frame-pointer -I/usr/local/include -o mplayer.o mplayer.c
|
|
221 Assembler: mplayer.c
|
|
222 "(stdin)", line 3567 : Illegal mnemonic
|
|
223 "(stdin)", line 3567 : Syntax error
|
|
224 ... more "Illegal mnemonic" and "Syntax error" errors ...
|
|
225 </screen>
|
|
226 </para>
|
|
227
|
|
228 <para>
|
15677
|
229 Díky chybám v Solarisu 8, nemůžete přehrávat DVD disky větší než 4 GB:
|
15496
|
230 </para>
|
|
231
|
|
232 <itemizedlist>
|
|
233 <listitem><para>
|
15677
|
234 Ovladač sd(7D) na Solarisu 8 x86 má chybu v přístupu k diskovému bloku >4GB
|
|
235 na zařízeních, které mají logical blocksize != DEV_BSIZE (čili CD-ROM a DVD média).
|
|
236 Díky 32Bit int overflow, dostanete přístupovou diskovou adresu modulo 4GB
|
15496
|
237 (<ulink url="http://groups.yahoo.com/group/solarisonintel/message/22516"/>).
|
15677
|
238 Tento problém neexistuje ve SPARC verzi Solarisu 8.
|
15496
|
239 </para></listitem>
|
|
240
|
|
241 <listitem><para>
|
15677
|
242 Podobná chyba je i v kódu systému souborů hsfs(7FS) (AKA ISO9660),
|
|
243 hsfs nemusí podporovat oddíly/disky větší než 4GB, ke všem datům je přistupováno
|
|
244 modulo 4GB
|
15496
|
245 (<ulink url="http://groups.yahoo.com/group/solarisonintel/message/22592"/>).
|
15677
|
246 Problém hsfs může být odstraněn nainstalováním patche 109764-04 (sparc) / 109765-04 (x86).
|
15496
|
247 </para></listitem>
|
|
248 </itemizedlist>
|
|
249 </sect1>
|
|
250
|
|
251 <sect1 id="irix">
|
|
252 <title>Silicon Graphics Irix</title>
|
|
253 <para>
|
|
254 You can either try to install the GNU install program, and (if you did
|
|
255 not put it in your global path) then point to the location with:
|
|
256 <screen>./configure --with-install=<replaceable>/path/and/name/of/install</replaceable></screen>
|
|
257 </para>
|
|
258
|
|
259 <para>
|
|
260 Or you can use the default install delivered with IRIX 6.5 in which case
|
|
261 you will have to edit the <filename>Makefile</filename> by hand a little bit.
|
|
262 Change the following two lines:
|
|
263 <programlisting>
|
|
264 $(INSTALL) -c -m 644 DOCS/mplayer.1 $(MANDIR)/man1/mplayer.1
|
|
265
|
|
266 $(INSTALL) -c -m 644 etc/codecs.conf $(CONFDIR)/codecs.conf
|
|
267 </programlisting>
|
|
268 to:
|
|
269 <programlisting>
|
|
270 $(INSTALL) -m 644 mplayer.1 $(MANDIR)/man1/
|
|
271
|
|
272 $(INSTALL) -m 644 codecs.conf $(CONFDIR)/
|
|
273 </programlisting>
|
|
274 And then do (from within the <application>MPlayer</application> source dir):
|
|
275 <screen>cp DOCS/mplayer.1 . ; cp etc/codecs.conf .</screen>
|
|
276 and then go on with building and installing.
|
|
277 </para>
|
|
278 </sect1>
|
|
279
|
|
280
|
|
281 <sect1 id="hp-ux">
|
|
282 <title>HP-UX</title>
|
|
283 <para>
|
|
284 Joe Page hosts a detailed HP-UX <application>MPlayer</application>
|
|
285 <ulink url="http://users.rcn.com/joepage/mplayer_on_hpux11.htm">HOWTO</ulink>
|
|
286 by Martin Gansser on his homepage. With these instructions the build should
|
|
287 work out of the box. The following information is taken from this HOWTO.
|
|
288 </para>
|
|
289
|
|
290 <para>
|
|
291 You need GCC 3.4.0 or later, GNU make 3.80 or later and SDL 1.2.7 or later.
|
|
292 HP cc will not produce a working program, prior GCC versions are buggy.
|
|
293 For OpenGL functionality you need to install Mesa and the gl and gl2 video
|
|
294 output drivers should work, speed may be very bad, depending on the CPU speed,
|
|
295 though. A good replacement for the rather poor native HP-UX sound system is
|
|
296 GNU esound.
|
|
297 </para>
|
|
298
|
|
299 <para>
|
|
300 Create the DVD device
|
|
301 scan the SCSI bus with:
|
|
302 </para>
|
|
303
|
|
304 <screen>
|
|
305 # ioscan -fn
|
|
306
|
|
307 Class I H/W Path Driver S/W State H/W Type Description
|
|
308 ...
|
|
309 ext_bus 1 8/16/5 c720 CLAIMED INTERFACE Built-in SCSI
|
|
310 target 3 8/16/5.2 tgt CLAIMED DEVICE
|
|
311 disk 4 8/16/5.<emphasis role="bold">2</emphasis>.<emphasis role="bold">0</emphasis> sdisk CLAIMED DEVICE <emphasis role="bold">PIONEER DVD-ROM DVD-305</emphasis>
|
|
312 /dev/dsk/c1t2d0 <emphasis role="bold">/dev/rdsk/c1t2d0</emphasis>
|
|
313 target 4 8/16/5.7 tgt CLAIMED DEVICE
|
|
314 ctl <emphasis role="bold">1</emphasis> 8/16/5.7.0 sctl CLAIMED DEVICE Initiator
|
|
315 /dev/rscsi/c1t7d0 /dev/rscsi/c1t7l0 /dev/scsi/c1t7l0
|
|
316 ...
|
|
317 </screen>
|
|
318
|
|
319 <para>
|
|
320 The screen output shows a Pioneer DVD-ROM at SCSI address 2.
|
|
321 The card instance for hardware path 8/16 is 1.
|
|
322 </para>
|
|
323
|
|
324 <para>
|
|
325 Create a link from the raw device to the DVD device.
|
|
326 </para>
|
|
327
|
|
328 <screen>
|
|
329 # ln -s /dev/rdsk/c<replaceable><SCSI bus instance></replaceable>t<replaceable><SCSI target ID></replaceable>d<replaceable><LUN></replaceable> /dev/<replaceable><device></replaceable>
|
|
330 </screen>
|
|
331
|
|
332 <para>
|
|
333 Example:
|
|
334 </para>
|
|
335
|
|
336 <screen>
|
|
337 # ln -s /dev/rdsk/c1t2d0 /dev/dvd
|
|
338 </screen>
|
|
339
|
|
340 <para>
|
|
341 Below are solutions for some common problems:
|
|
342 </para>
|
|
343
|
|
344 <itemizedlist>
|
|
345 <listitem>
|
|
346 <para>
|
|
347 Crash at Start with the following error message:
|
|
348 <screen>
|
|
349 /usr/lib/dld.sl: Unresolved symbol: finite (code) from /usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.2/../../../libGL.sl
|
|
350 </screen>
|
|
351 </para>
|
|
352
|
|
353 <para>
|
|
354 This means that the function <systemitem>.finite().</systemitem> is not
|
|
355 available in the standard HP-UX math library.
|
|
356 Instead there is <systemitem>.isfinite().</systemitem>.
|
|
357 Solution: Use the latest Mesa depot file.
|
|
358 </para>
|
|
359 </listitem>
|
|
360
|
|
361 <listitem>
|
|
362 <para>
|
|
363 Crash at playback with the following error message:
|
|
364 <screen>
|
|
365 /usr/lib/dld.sl: Unresolved symbol: sem_init (code) from /usr/local/lib/libSDL-1.2.sl.0
|
|
366 </screen>
|
|
367 </para>
|
|
368
|
|
369 <para>
|
|
370 Solution: Use the extralibdir option of configure
|
|
371 <option>--with-extralibdir="/usr/lib -lrt"</option>
|
|
372 </para>
|
|
373 </listitem>
|
|
374
|
|
375 <listitem>
|
|
376 <para>
|
|
377 MPlayer segfaults with a message like this:
|
|
378 <screen>
|
|
379 Pid 10166 received a SIGSEGV for stack growth failure.
|
|
380 Possible causes: insufficient memory or swap space, or stack size exceeded maxssiz.
|
|
381 Segmentation fault
|
|
382 </screen>
|
|
383 </para>
|
|
384
|
|
385 <para>
|
|
386 Solution:
|
|
387 The HP-UX kernel has a default stack size of 8MB(?) per process.(11.0 and
|
|
388 newer 10.20 patches let you increase <systemitem>maxssiz</systemitem> up to
|
|
389 350MB for 32-bit programs). You need to extend <systemitem>maxssiz</systemitem>
|
|
390 and recompile the kernel (and reboot). You can use SAM to do this. (While at
|
|
391 it, check out the <systemitem>maxdsiz</systemitem> parameter for the maximum
|
|
392 amount of data a program can use. It depends on your applications, if the
|
|
393 default of 64MB is enough or not.)
|
|
394 </para>
|
|
395 </listitem>
|
|
396 </itemizedlist>
|
|
397
|
|
398 </sect1>
|
|
399
|
|
400
|
|
401 <sect1 id="qnx">
|
|
402 <title>QNX</title>
|
|
403 <para>
|
|
404 Works. You'll need to download SDL for QNX, and install it. Then run
|
|
405 <application>MPlayer</application> with <option>-vo sdl:photon</option>
|
|
406 and <option>-ao sdl:nto</option> options, and it should be fast.
|
|
407 </para>
|
|
408
|
|
409 <para>
|
|
410 The <option>-vo x11</option> output will be even slower than on Linux,
|
|
411 since QNX has only X <emphasis>emulation</emphasis> which is VERY slow. Use SDL.
|
|
412 </para>
|
|
413 </sect1>
|
|
414
|
|
415 <sect1 id="windows">
|
|
416 <title>Windows</title>
|
|
417
|
|
418 <para>Yes, <application>MPlayer</application> runs on Windows under
|
|
419 <ulink url="http://www.cygwin.com/"><application>Cygwin</application></ulink> and
|
|
420 <ulink url="http://www.mingw.org/"><application>MinGW</application></ulink>.
|
|
421 It does not have a GUI yet, but the command line version is almost completely
|
|
422 functional. <ulink url="../../tech/patches.txt">Patches</ulink> are always welcome.
|
|
423 You should check out the
|
|
424 <ulink url="http://mplayerhq.hu/mailman/listinfo/mplayer-cygwin/">mplayer-cygwin</ulink>
|
|
425 mailing list for help and latest information.</para>
|
|
426
|
|
427 <para>Best results are achieved with the native DirectX video output driver
|
|
428 (<option>-vo directx</option>) and the native Windows waveout audio driver
|
|
429 (<option>-ao win32</option>). Alternatives are OpenGL and SDL, but OpenGL
|
|
430 performance varies greatly between systems and SDL is known to
|
|
431 distort sound and video or crash on some systems. If the image is
|
|
432 distorted, try turning off hardware acceleration with
|
|
433 <option>-vo directx:noaccel</option>. Download
|
15687
|
434 <ulink url="http://www.mplayerhq.hu/MPlayer/releases/win32/contrib/dx7headers.tgz">DirectX 7 header files</ulink>
|
15496
|
435 to compile the DirectX video output driver. Furthermore you need to have
|
|
436 DirectX 7 or later installed for the DirectX video output driver to work.
|
|
437 </para>
|
|
438
|
|
439 <para><link linkend="vidix">VIDIX</link> now works under Windows as
|
|
440 <option>-vo winvidix</option>, although it is still experimental
|
|
441 and needs a bit of manual setup. Download
|
15687
|
442 <ulink url="http://www.mplayerhq.hu/MPlayer/releases/win32/dhahelperwin/dhahelper.sys">dhahelper.sys</ulink> or
|
|
443 <ulink url="http://www.mplayerhq.hu/MPlayer/releases/win32/dhahelperwin/withmtrr/dhahelper.sys">dhahelper.sys (with MTRR support)</ulink>
|
15496
|
444 and copy it to the
|
|
445 <filename class="directory">libdha/dhahelperwin</filename> directory in your
|
|
446 <application>MPlayer</application> source tree.
|
|
447 Open a console and change to that directory. Then type
|
|
448
|
|
449 <screen>gcc -o dhasetup.exe dhasetup.c</screen>
|
|
450
|
|
451 and execute
|
|
452
|
|
453 <screen>dhasetup.exe install</screen>
|
|
454
|
|
455 as Administrator. After that you will have to reboot. When you are
|
|
456 done, copy the <systemitem class="library">.so</systemitem> files from
|
|
457 <filename class="directory">vidix/drivers</filename> to the
|
|
458 <filename class="directory">mplayer/vidix</filename> directory
|
|
459 relative to your <filename>mplayer.exe</filename>.</para>
|
|
460
|
|
461 <para>For best results <application>MPlayer</application> should use a
|
|
462 colorspace that your video card supports in hardware. Unfortunately many
|
|
463 Windows graphics drivers wrongly report some colorspaces as supported in
|
|
464 hardware. To find out which, try
|
|
465
|
|
466 <screen>mplayer -benchmark -nosound -frames 100 -vf format=<replaceable>colorspace</replaceable> <replaceable>movie</replaceable></screen>
|
|
467
|
|
468 where <replaceable>colorspace</replaceable> can be any colorspace
|
|
469 printed by the <option>-vf format=fmt=help</option> option. If you
|
|
470 find a colorspace your card handles particularly bad
|
|
471 <option>-vf noformat=<replaceable>colorspace</replaceable></option>
|
|
472 will keep it from being used. Add this to your config file to permanently
|
|
473 keep it from being used.</para>
|
|
474
|
|
475 <para>There are special codec packages for Windows available on our
|
|
476 <ulink url="http://mplayerhq.hu/homepage/design7/codecs.html">codecs page</ulink>
|
|
477 to allow playing formats for which there is no native support yet.
|
|
478 Put the codecs somewhere in your path or pass
|
|
479 <option>--with-codecsdir=<replaceable>c:/path/to/your/codecs</replaceable></option>
|
|
480 (alternatively
|
|
481 <option>--with-codecsdir=<replaceable>/path/to/your/codecs</replaceable></option>
|
|
482 only on <application>Cygwin</application>) to <filename>configure</filename>.
|
|
483 We have had some reports that Real DLLs need to be writable by the user
|
|
484 running <application>MPlayer</application>, but only on some systems (NT4).
|
|
485 Try making them writable if you have problems.</para>
|
|
486
|
|
487 <para>You can play VCDs by playing the <filename>.DAT</filename> or <filename>.MPG</filename> files
|
|
488 that Windows exposes on VCDs. It works like this (adjust for the drive letter
|
|
489 of your CD-ROM):</para>
|
|
490
|
|
491 <screen>mplayer <replaceable>d:/mpegav/avseq01.dat</replaceable></screen>
|
|
492
|
|
493 <para>DVDs also work, adjust <option>-dvd-device</option> for the drive letter
|
|
494 of your DVD-ROM:</para>
|
|
495
|
|
496 <screen>mplayer dvd://<replaceable><title></replaceable> -dvd-device <replaceable>d</replaceable>:</screen>
|
|
497
|
|
498 <para>The <application>Cygwin</application>/<application>MinGW</application>
|
|
499 console is rather slow. Redirecting output or using the
|
|
500 <option>-quiet</option> option has been reported to improve performance on
|
|
501 some systems. Direct rendering (<option>-dr</option>) may also help.
|
|
502 You can prevent OSD flicker through double buffering with the
|
|
503 <option>-double</option> option. If playback is jerky, try
|
|
504 <option>-autosync 100</option>. If some of these options help you, you
|
|
505 may want to put them in your config file.</para>
|
|
506
|
|
507 <para>Sascha Sommer releases official Windows binaries from time to time,
|
|
508 Joey Parrish makes unofficial Windows packages complete with installer.
|
|
509 Look for these in the Windows section of
|
|
510 <ulink url="http://www.mplayerhq.hu/homepage/design7/projects.html#windows">our projects page</ulink>.</para>
|
|
511
|
|
512 <sect2 id="cygwin">
|
|
513 <title><application>Cygwin</application></title>
|
|
514
|
|
515 <para>You need to run <application>Cygwin</application> 1.5.0 or later in
|
|
516 order to compile <application>MPlayer</application>.</para>
|
|
517
|
|
518 <para>DirectX header files need to be extracted to <filename class="directory">/usr/include/</filename> or
|
|
519 <filename class="directory">/usr/local/include/</filename>.</para>
|
|
520
|
|
521 <para>Instructions and files for making SDL run under
|
|
522 <application>Cygwin</application> can be found on the
|
|
523 <ulink url="http://www.libsdl.org/extras/win32/cygwin/">libsdl site</ulink>.</para>
|
|
524
|
|
525 </sect2>
|
|
526
|
|
527
|
|
528 <sect2 id="mingw">
|
|
529 <title><application>MinGW</application></title>
|
|
530
|
|
531 <para>Installing a version of <application>MinGW</application> that could
|
|
532 compile <application>MPlayer</application> used to be quite tricky, but it
|
|
533 works out of the box now. Just install <application>MinGW</application>
|
|
534 3.1.0 or later and MSYS 1.0.9 or later and tell the MSYS postinstall that
|
|
535 <application>MinGW</application> is installed.</para>
|
|
536
|
|
537 <para>Extract DirectX header files to <filename class="directory">/mingw/include/</filename>.</para>
|
|
538
|
|
539 <para>MOV compressed header support requires
|
|
540 <ulink url="http://www.gzip.org/zlib/">zlib</ulink>, which
|
|
541 <application>MinGW</application> does not provide by default.
|
|
542 Configure it with <option>--prefix=/mingw</option> and install
|
|
543 it before compiling <application>MPlayer</application>.</para>
|
|
544
|
|
545 </sect2>
|
|
546
|
|
547
|
|
548 </sect1>
|
|
549
|
|
550 <sect1 id="macos">
|
|
551 <title>Mac OS</title>
|
|
552 <para>
|
|
553 Only Mac OS X 10.2 and up is supported by the "raw"
|
|
554 <application>MPlayer</application> source. Feel free to make support for older
|
|
555 Mac OS versions and send patches!
|
|
556 </para>
|
|
557
|
|
558 <para>
|
|
559 Apple's modified GCC 3.x is preferred for compiling
|
|
560 <application>MPlayer</application> especially when using
|
|
561 <systemitem class="library">libavcodec</systemitem> as Apple's
|
|
562 modified GCC 2.95.x doesn't support C99 syntax well.
|
|
563 </para>
|
|
564
|
|
565 <para>
|
|
566 One can get an Aqua GUI for <application>MPlayer</application> together with
|
|
567 compiled <application>MPlayer</application> binaries for Mac OS X from the
|
|
568 <ulink url="http://mplayerosx.sf.net/">MPlayerOSX</ulink> project.
|
|
569 </para>
|
|
570 </sect1>
|
|
571
|
|
572 <sect1 id="amiga">
|
|
573 <title>Amiga/MorphOS (GeekGadgets)</title>
|
|
574 <para>
|
|
575 Nicholas Det at Genesi has done a big and powerful port of <application>MPlayer
|
|
576 </application> for MorphOS. Sadly it's based on the 0.90 series.
|
|
577 </para>
|
|
578
|
|
579 <para>
|
|
580 Get if from <ulink url="http://www.morphzone.org/">MorphZone</ulink>:
|
|
581 <itemizedlist>
|
|
582 <listitem><para>
|
|
583 <ulink url="http://www.morphzone.org/modules/mydownloads/singlefile.php?lid=90">
|
|
584 <application>MPlayer</application> 0.91 binary</ulink>
|
|
585 </para></listitem>
|
|
586 <listitem><para>
|
|
587 <ulink url="http://www.morphzone.org/modules/mydownloads/singlefile.php?lid=91">
|
|
588 <application>MPlayer</application> 0.91 source</ulink>
|
|
589 </para></listitem>
|
|
590 <listitem><para>
|
|
591 <ulink url="http://www.morphzone.org/modules/mydownloads/singlefile.php?lid=92">
|
|
592 <application>MEncoder</application> 1.0pre3 binary</ulink>
|
|
593 </para></listitem>
|
|
594 </itemizedlist>
|
|
595 </para>
|
|
596 </sect1>
|
|
597
|
|
598 </chapter>
|