15496
|
1 <?xml version="1.0" encoding="iso-8859-2"?>
|
16568
|
2 <!-- Synced with: 1.70 -->
|
15496
|
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>
|
16568
|
63 RPM balíčky pro Mandrake/Mandriva jsou dostupné z
|
15496
|
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>.
|
16568
|
421 It does not have an official GUI yet, but the command line version
|
|
422 is completely functional. You should check out the
|
|
423 <ulink url="http://mplayerhq.hu/mailman/listinfo/mplayer-cygwin/">MPlayer-cygwin</ulink>
|
|
424 mailing list for help and latest information.
|
|
425 Official Windows binaries can be found on the
|
|
426 <ulink url="http://www.mplayerhq.hu/homepage/design7/dload.html">download page</ulink>.
|
|
427 Installer packages and simple GUI frontends are available from external
|
|
428 sources, we have collected then in the Windows section of our
|
|
429 <ulink url="http://www.mplayerhq.hu/homepage/design7/projects.html#windows">projects page</ulink>.
|
|
430 </para>
|
|
431
|
|
432 <para>If you wish to avoid using the command line, a simple trick is
|
|
433 to put a shortcut on your desktop that contains something like the
|
|
434 following in the execute section:
|
|
435 <screen><replaceable>c:\path\to\</replaceable>mplayer.exe %1</screen>
|
|
436 This will make <application>MPlayer</application> play any movie that is
|
|
437 dropped on the shortcut. Add <option>-fs</option> for fullscreen mode.
|
|
438 </para>
|
15496
|
439
|
|
440 <para>Best results are achieved with the native DirectX video output driver
|
|
441 (<option>-vo directx</option>) and the native Windows waveout audio driver
|
|
442 (<option>-ao win32</option>). Alternatives are OpenGL and SDL, but OpenGL
|
|
443 performance varies greatly between systems and SDL is known to
|
|
444 distort sound and video or crash on some systems. If the image is
|
|
445 distorted, try turning off hardware acceleration with
|
|
446 <option>-vo directx:noaccel</option>. Download
|
15687
|
447 <ulink url="http://www.mplayerhq.hu/MPlayer/releases/win32/contrib/dx7headers.tgz">DirectX 7 header files</ulink>
|
15496
|
448 to compile the DirectX video output driver. Furthermore you need to have
|
|
449 DirectX 7 or later installed for the DirectX video output driver to work.
|
|
450 </para>
|
|
451
|
|
452 <para><link linkend="vidix">VIDIX</link> now works under Windows as
|
|
453 <option>-vo winvidix</option>, although it is still experimental
|
|
454 and needs a bit of manual setup. Download
|
15687
|
455 <ulink url="http://www.mplayerhq.hu/MPlayer/releases/win32/dhahelperwin/dhahelper.sys">dhahelper.sys</ulink> or
|
|
456 <ulink url="http://www.mplayerhq.hu/MPlayer/releases/win32/dhahelperwin/withmtrr/dhahelper.sys">dhahelper.sys (with MTRR support)</ulink>
|
15496
|
457 and copy it to the
|
|
458 <filename class="directory">libdha/dhahelperwin</filename> directory in your
|
|
459 <application>MPlayer</application> source tree.
|
|
460 Open a console and change to that directory. Then type
|
|
461
|
|
462 <screen>gcc -o dhasetup.exe dhasetup.c</screen>
|
|
463
|
|
464 and execute
|
|
465
|
|
466 <screen>dhasetup.exe install</screen>
|
|
467
|
|
468 as Administrator. After that you will have to reboot. When you are
|
|
469 done, copy the <systemitem class="library">.so</systemitem> files from
|
|
470 <filename class="directory">vidix/drivers</filename> to the
|
|
471 <filename class="directory">mplayer/vidix</filename> directory
|
|
472 relative to your <filename>mplayer.exe</filename>.</para>
|
|
473
|
|
474 <para>For best results <application>MPlayer</application> should use a
|
|
475 colorspace that your video card supports in hardware. Unfortunately many
|
|
476 Windows graphics drivers wrongly report some colorspaces as supported in
|
|
477 hardware. To find out which, try
|
|
478
|
|
479 <screen>mplayer -benchmark -nosound -frames 100 -vf format=<replaceable>colorspace</replaceable> <replaceable>movie</replaceable></screen>
|
|
480
|
|
481 where <replaceable>colorspace</replaceable> can be any colorspace
|
|
482 printed by the <option>-vf format=fmt=help</option> option. If you
|
|
483 find a colorspace your card handles particularly bad
|
|
484 <option>-vf noformat=<replaceable>colorspace</replaceable></option>
|
|
485 will keep it from being used. Add this to your config file to permanently
|
|
486 keep it from being used.</para>
|
|
487
|
|
488 <para>There are special codec packages for Windows available on our
|
|
489 <ulink url="http://mplayerhq.hu/homepage/design7/codecs.html">codecs page</ulink>
|
|
490 to allow playing formats for which there is no native support yet.
|
|
491 Put the codecs somewhere in your path or pass
|
|
492 <option>--with-codecsdir=<replaceable>c:/path/to/your/codecs</replaceable></option>
|
|
493 (alternatively
|
|
494 <option>--with-codecsdir=<replaceable>/path/to/your/codecs</replaceable></option>
|
|
495 only on <application>Cygwin</application>) to <filename>configure</filename>.
|
|
496 We have had some reports that Real DLLs need to be writable by the user
|
|
497 running <application>MPlayer</application>, but only on some systems (NT4).
|
|
498 Try making them writable if you have problems.</para>
|
|
499
|
|
500 <para>You can play VCDs by playing the <filename>.DAT</filename> or <filename>.MPG</filename> files
|
|
501 that Windows exposes on VCDs. It works like this (adjust for the drive letter
|
|
502 of your CD-ROM):</para>
|
|
503
|
|
504 <screen>mplayer <replaceable>d:/mpegav/avseq01.dat</replaceable></screen>
|
|
505
|
|
506 <para>DVDs also work, adjust <option>-dvd-device</option> for the drive letter
|
|
507 of your DVD-ROM:</para>
|
|
508
|
|
509 <screen>mplayer dvd://<replaceable><title></replaceable> -dvd-device <replaceable>d</replaceable>:</screen>
|
|
510
|
|
511 <para>The <application>Cygwin</application>/<application>MinGW</application>
|
|
512 console is rather slow. Redirecting output or using the
|
|
513 <option>-quiet</option> option has been reported to improve performance on
|
|
514 some systems. Direct rendering (<option>-dr</option>) may also help.
|
|
515 You can prevent OSD flicker through double buffering with the
|
|
516 <option>-double</option> option. If playback is jerky, try
|
|
517 <option>-autosync 100</option>. If some of these options help you, you
|
|
518 may want to put them in your config file.</para>
|
|
519
|
|
520 <sect2 id="cygwin">
|
|
521 <title><application>Cygwin</application></title>
|
|
522
|
|
523 <para>You need to run <application>Cygwin</application> 1.5.0 or later in
|
|
524 order to compile <application>MPlayer</application>.</para>
|
|
525
|
|
526 <para>DirectX header files need to be extracted to <filename class="directory">/usr/include/</filename> or
|
|
527 <filename class="directory">/usr/local/include/</filename>.</para>
|
|
528
|
|
529 <para>Instructions and files for making SDL run under
|
|
530 <application>Cygwin</application> can be found on the
|
|
531 <ulink url="http://www.libsdl.org/extras/win32/cygwin/">libsdl site</ulink>.</para>
|
|
532
|
|
533 </sect2>
|
|
534
|
|
535
|
|
536 <sect2 id="mingw">
|
|
537 <title><application>MinGW</application></title>
|
|
538
|
|
539 <para>Installing a version of <application>MinGW</application> that could
|
|
540 compile <application>MPlayer</application> used to be quite tricky, but it
|
|
541 works out of the box now. Just install <application>MinGW</application>
|
|
542 3.1.0 or later and MSYS 1.0.9 or later and tell the MSYS postinstall that
|
|
543 <application>MinGW</application> is installed.</para>
|
|
544
|
|
545 <para>Extract DirectX header files to <filename class="directory">/mingw/include/</filename>.</para>
|
|
546
|
|
547 <para>MOV compressed header support requires
|
|
548 <ulink url="http://www.gzip.org/zlib/">zlib</ulink>, which
|
|
549 <application>MinGW</application> does not provide by default.
|
|
550 Configure it with <option>--prefix=/mingw</option> and install
|
|
551 it before compiling <application>MPlayer</application>.</para>
|
|
552
|
16568
|
553 <para>Complete instructions for building <application>MPlayer</application>
|
|
554 and necessary libraries can be found in the
|
|
555 <ulink url="http://mplayerhq.hu/MPlayer/releases/win32/contrib/MPlayer-MinGW-Howto.txt">MPlayer MinGW HOWTO</ulink>.</para>
|
|
556
|
15496
|
557 </sect2>
|
|
558
|
|
559
|
|
560 </sect1>
|
|
561
|
|
562 <sect1 id="macos">
|
|
563 <title>Mac OS</title>
|
|
564 <para>
|
16568
|
565 <application>MPlayer</application> should compile out-of-the-box on
|
|
566 Mac OS X 10.2 and up. The preferred compiler is the Apple version of
|
|
567 GCC 3.x or later. If you have Mac OS X 10.3.9 or later and QuickTime 7
|
|
568 you can use the macosx video output driver.
|
|
569 </para>
|
|
570
|
|
571 <sect2 id="mplayerosx">
|
|
572 <title>MPlayer OS X</title>
|
|
573
|
|
574 <para>
|
|
575 You can get a native GUI for <application>MPlayer</application> together with
|
|
576 precompiled <application>MPlayer</application> binaries for Mac OS X from the
|
|
577 <ulink url="http://mplayerosx.sf.net/">MPlayerOSX</ulink> project, but be
|
|
578 warned: that project is not active anymore.
|
|
579 </para>
|
|
580
|
|
581 <para>
|
|
582 Fortunately, <application>MPlayerOSX</application> has been taken over
|
|
583 by a member of the <application>MPlayer</application> team.
|
|
584 Preview releases are available from our
|
|
585 <ulink url="http://mplayerhq.hu/dload.html">download page</ulink>
|
|
586 and an official release should arrive soon.
|
|
587 </para>
|
|
588
|
|
589 <para>
|
|
590 In order to build <application>MPlayerOSX</application> from source
|
|
591 yourself, you need the <systemitem>mplayerosx</systemitem>, the
|
|
592 <systemitem>main</systemitem> and a copy of the
|
|
593 <systemitem>main</systemitem> CVS module named
|
|
594 <systemitem>main_noaltivec</systemitem>.
|
|
595 <systemitem>mplayerosx</systemitem> is the GUI frontend,
|
|
596 <systemitem>main</systemitem> is MPlayer and
|
|
597 <systemitem>main_noaltivec</systemitem> is MPlayer built without AltiVec
|
|
598 support.
|
|
599 </para>
|
|
600
|
|
601 <para>
|
|
602 To check out CVS modules use:
|
|
603
|
|
604 <screen>
|
|
605 cvs -d:pserver:anonymous@mplayerhq.hu:/cvsroot/mplayer login
|
|
606 cvs -z3 -d:pserver:anonymous@mplayerhq.hu:/cvsroot/mplayer co -P mplayerosx
|
|
607 cvs -z3 -d:pserver:anonymous@mplayerhq.hu:/cvsroot/mplayer co -P main
|
|
608 </screen>
|
15496
|
609 </para>
|
|
610
|
|
611 <para>
|
16568
|
612 In order to build <application>MPlayerOSX</application> you will need to
|
|
613 set up something like this:
|
|
614
|
|
615 <screen>
|
|
616 MPlayer_source_directory
|
|
617 |
|
|
618 |--->main (MPlayer CVS source)
|
|
619 |
|
|
620 |--->main_noaltivec (MPlayer CVS source configured with --disable-altivec)
|
|
621 |
|
|
622 |--->mplayerosx (MPlayer OS X CVS source)
|
|
623 </screen>
|
|
624
|
|
625 You first need to build main and main_noaltivec.
|
|
626 </para>
|
|
627
|
|
628 <para>
|
|
629 Next, set a global variable:
|
|
630
|
|
631 <screen>export MACOSX_DEPLOYMENT_TARGET=10.3</screen>
|
|
632 </para>
|
|
633
|
|
634 <para>
|
|
635 Then, configure:
|
15496
|
636 </para>
|
|
637
|
|
638 <para>
|
16568
|
639 If you configure for a G4 or later CPU with AltiVec support, do as follows:
|
|
640 <screen>
|
|
641 ./configure --with-termcaplib=ncurses.5 --disable-gl --disable-x11
|
|
642 </screen>
|
|
643 If you configure for a G3-powered machine without AltiVec, use:
|
|
644 <screen>
|
|
645 ./configure --with-termcaplib=ncurses.5 --disable-gl --disable-x11
|
|
646 --disable-altivec
|
|
647 </screen>
|
|
648 You may need to edit <filename>config.mak</filename> and change
|
|
649 <systemitem>-mcpu</systemitem> and <systemitem>-mtune</systemitem>
|
|
650 from <systemitem>74XX</systemitem> to <systemitem>G3</systemitem>.
|
15496
|
651 </para>
|
16568
|
652
|
|
653 <para>
|
|
654 Continue with
|
|
655 <screen>
|
|
656 make
|
|
657 </screen>
|
|
658 then go to the mplayerosx directory and type
|
|
659
|
|
660 <screen>
|
|
661 make dist
|
|
662 </screen>
|
|
663 This will create a compressed <systemitem>.dmg</systemitem> archive
|
|
664 with the ready to use binary.
|
|
665 </para>
|
|
666
|
|
667 <para>
|
|
668 You can also use the <application>Xcode</application> 2.1 project;
|
|
669 the old project for <application>Xcode</application> 1.x does
|
|
670 not work anymore.
|
|
671 </para>
|
|
672 </sect2>
|
15496
|
673 </sect1>
|
|
674
|
|
675 <sect1 id="amiga">
|
|
676 <title>Amiga/MorphOS (GeekGadgets)</title>
|
|
677 <para>
|
16568
|
678 The people over at <ulink url="www.amigasoft.net">www.amigasoft.net</ulink>
|
|
679 make current <application>MPlayer</application> and
|
|
680 <application>MEncoder</application> packages.
|
|
681 </para>
|
|
682
|
|
683 <para>
|
15496
|
684 Nicholas Det at Genesi has done a big and powerful port of <application>MPlayer
|
|
685 </application> for MorphOS. Sadly it's based on the 0.90 series.
|
|
686 </para>
|
|
687
|
|
688 <para>
|
|
689 Get if from <ulink url="http://www.morphzone.org/">MorphZone</ulink>:
|
|
690 <itemizedlist>
|
|
691 <listitem><para>
|
|
692 <ulink url="http://www.morphzone.org/modules/mydownloads/singlefile.php?lid=90">
|
|
693 <application>MPlayer</application> 0.91 binary</ulink>
|
|
694 </para></listitem>
|
|
695 <listitem><para>
|
|
696 <ulink url="http://www.morphzone.org/modules/mydownloads/singlefile.php?lid=91">
|
|
697 <application>MPlayer</application> 0.91 source</ulink>
|
|
698 </para></listitem>
|
|
699 <listitem><para>
|
|
700 <ulink url="http://www.morphzone.org/modules/mydownloads/singlefile.php?lid=92">
|
|
701 <application>MEncoder</application> 1.0pre3 binary</ulink>
|
|
702 </para></listitem>
|
|
703 </itemizedlist>
|
|
704 </para>
|
|
705 </sect1>
|
|
706
|
|
707 </chapter>
|