Mercurial > mplayer.hg
annotate DOCS/xml/en/codecs.xml @ 10913:49b1a67e7381
Add revision keyword to english xml files, to ease translation synchronization
(as in help/help_mp-en.h)
author | lumag |
---|---|
date | Sun, 21 Sep 2003 13:05:42 +0000 |
parents | 364d43cee33e |
children | f57563a141aa |
rev | line source |
---|---|
9675 | 1 <?xml version="1.0" encoding="iso-8859-1"?> |
10913
49b1a67e7381
Add revision keyword to english xml files, to ease translation synchronization
lumag
parents:
10869
diff
changeset
|
2 <!-- $Revision$ --> |
9675 | 3 <sect1 id="codecs"> |
4 <title>Supported codecs</title> | |
5 | |
6 <sect2 id="video-codecs"> | |
7 <title>Video codecs</title> | |
8 | |
9 <para> | |
10 See the <ulink url="http://www.mplayerhq.hu/DOCS/codecs-status.html">codec status table</ulink> | |
11 for the complete, daily generated list. Quite a few codecs are available for | |
12 download from our homepage. Grab them from our | |
13 <ulink url="http://www.mplayerhq.hu/MPlayer/releases/codecs/">codecs page</ulink>. | |
14 </para> | |
15 | |
16 <para> | |
17 The most important ones above all: | |
18 </para> | |
19 | |
20 <itemizedlist> | |
21 <listitem><simpara> | |
22 <emphasis role="bold">MPEG1</emphasis> (<emphasis role="bold">VCD</emphasis>) and | |
23 <emphasis role="bold">MPEG2</emphasis> (<emphasis role="bold">DVD</emphasis>) video | |
24 </simpara></listitem> | |
25 <listitem><simpara> | |
26 native decoders for <emphasis role="bold">DivX ;-), OpenDivX (DivX4), | |
27 DivX 5.01, 3ivX, M$ MPEG4</emphasis> v1, v2 and other MPEG4 variants | |
28 </simpara></listitem> | |
29 <listitem><simpara> | |
30 native decoder for <emphasis role="bold">Windows Media Video 7/8</emphasis> | |
31 (<emphasis role="bold">WMV1/WMV2</emphasis>), and Win32 DLL decoder | |
32 for <emphasis role="bold">Windows Media Video 9</emphasis> | |
33 (<emphasis role="bold">WMV3</emphasis>), both used in <filename>.wmv</filename> | |
34 files | |
35 </simpara></listitem> | |
36 <listitem><simpara> | |
37 native <emphasis role="bold">Sorenson 1 (SVQ1)</emphasis> decoder | |
38 </simpara></listitem> | |
39 <listitem><simpara> | |
10132 | 40 native <emphasis role="bold">Sorenson 3 (SVQ3)</emphasis> decoder |
9675 | 41 </simpara></listitem> |
42 <listitem><simpara> | |
43 <emphasis role="bold">3ivx</emphasis> v1, v2 decoder | |
44 </simpara></listitem> | |
45 <listitem><simpara> | |
46 Cinepak and <emphasis role="bold">Intel Indeo</emphasis> codecs (3.1,3.2,4.1,5.0) | |
47 </simpara></listitem> | |
48 <listitem><simpara> | |
49 <emphasis role="bold">MJPEG</emphasis>, AVID, VCR2, ASV2 and other hardware | |
50 formats | |
51 </simpara></listitem> | |
52 <listitem><simpara> | |
53 VIVO 1.0, 2.0, I263 and other <emphasis role="bold">h263(+)</emphasis> variants | |
54 </simpara></listitem> | |
55 <listitem><simpara> | |
56 FLI/FLC | |
57 </simpara></listitem> | |
58 <listitem><simpara> | |
59 <emphasis role="bold">RealVideo 1.0</emphasis> from libavcodec, and | |
60 <emphasis role="bold">RealVideo 2.0, 3.0</emphasis> and | |
61 <emphasis role="bold">4.0</emphasis> codecs using RealPlayer libraries | |
62 </simpara></listitem> | |
63 <listitem><simpara> | |
64 native decoder for HuffYUV | |
65 </simpara></listitem> | |
66 <listitem><simpara> | |
67 Various old simple RLE-like formats | |
68 </simpara></listitem> | |
69 </itemizedlist> | |
70 | |
71 <para> | |
72 If you have a Win32 codec not listed here which is not supported yet, | |
73 please read the <link linkend="win32-codecs">codec importing HOWTO</link> | |
74 and help us add support for it. | |
75 </para> | |
76 | |
77 | |
78 <sect3 id="divx4-5"> | |
79 <title>DivX4/DivX5</title> | |
80 | |
81 <para> | |
9683 | 82 This section contains information about the DivX4 and DivX5 codecs of |
9675 | 83 <ulink url="http://www.projectmayo.com">Project Mayo</ulink>. |
84 Their first available alpha version was OpenDivX 4.0 alpha 47 and 48. | |
85 Support for this was included in <application>MPlayer</application> in the | |
86 past, and built by default. We also used its postprocessing code to | |
87 optionally enhance visual quality of MPEG1/2 movies. Now we use our own, | |
88 for all file types. | |
89 </para> | |
90 | |
91 <para> | |
92 The new generation of this codec is called DivX4 and can even decode | |
93 movies made with the infamous DivX codec! In addition it is much faster | |
94 than the native Win32 DivX DLLs but slower than <systemitem | |
95 class="library">libavcodec</systemitem>. Hence its usage as a decoder is | |
96 <emphasis role="bold">DISCOURAGED</emphasis>. However, it is useful for | |
97 encoding. One disadvantage of this codec is that it is not available under an | |
98 Open Source license. | |
99 </para> | |
100 | |
101 <para> | |
102 DivX4 works in two modes: | |
103 <variablelist> | |
104 <varlistentry><term><option>-vc odivx</option></term> | |
105 <listitem><simpara> | |
106 Uses the codec in OpenDivX fashion. In this case it produces YV12 images | |
107 in its own buffer, and <application>MPlayer</application> does colorspace | |
108 conversion via libvo. (<emphasis role="bold">Fast, recommended!</emphasis>) | |
109 </simpara></listitem> | |
110 </varlistentry> | |
111 <varlistentry><term><option>-vc divx4</option></term> | |
112 <listitem><simpara> | |
113 Uses the colorspace conversion of the codec. In this mode you can use | |
114 YUY2/UYVY, too. (<emphasis role="bold">SLOW</emphasis>) | |
115 </simpara></listitem> | |
116 </varlistentry> | |
117 </variablelist> | |
118 </para> | |
119 | |
120 <para> | |
121 The <option>-vc odivx</option> method is usually faster, due to the fact | |
122 that it transfers image data in YV12 (planar YUV 4:2:0) format, thus | |
123 requiring much less bandwidth on the bus. For packed YUV modes (YUY2, UYVY) | |
124 use the <option>-vc divx4</option> method. For RGB modes the speed is the | |
125 same, differing at best according to your current color depth. | |
126 <note> | |
127 <para> | |
128 If your <option>-vo</option> driver supports direct rendering, then <option>-vc | |
129 divx4</option> may be faster, or even the fastest solution. | |
130 </para> | |
131 | |
132 <para> | |
133 The Divx4/5 binary codec library can be downloaded from | |
134 <ulink url="http://avifile.sourceforge.net">avifile</ulink> or | |
135 <ulink url="http://www.divx.com">divx.com</ulink> | |
136 Unpack it, run <filename>./install.sh</filename> as root and do not forget adding | |
137 <filename class="directory">/usr/local/lib</filename> to your | |
138 <filename>/etc/ld.so.conf</filename> and running <command>ldconfig</command>. | |
139 </para> | |
140 | |
141 <para> | |
142 Get the CVS version of the OLD OpenDivx core library like this: | |
143 </para> | |
144 | |
145 <procedure> | |
146 <step><para> | |
147 <screen>cvs -d:pserver:anonymous@cvs.projectmayo.com:/cvsroot login</screen> | |
148 </para></step> | |
149 <step><para> | |
150 <screen>cvs -d:pserver:anonymous@cvs.projectmayo.com:/cvsroot co divxcore</screen> | |
151 </para></step> | |
152 <step><para> | |
153 This core library is split into a decore and encore library that have to be | |
154 compiled separately. For the decore Library, simply type | |
155 <screen> | |
156 cd divxcore/decore/build/linux | |
157 make | |
158 cp libdivxdecore.so /usr/local/lib | |
9815
eb55fee443d2
Make absolute symlinks relative as suggested by Rich, fix typo.
diego
parents:
9802
diff
changeset
|
159 ln -s libdivxdecore.so /usr/local/lib/libdivxdecore.so.0 |
9675 | 160 cp ../../src/decore.h /usr/local/include |
161 </screen> | |
162 </para></step> | |
163 <step><para> | |
164 Alas, for the encore library there is no Linux Makefile available, and the | |
165 MMX optimized code only works on Windows. You can still compile it, though, | |
166 by using this | |
167 <ulink url="ftp://ftp.mplayerhq.hu/MPlayer/contrib/divx-mf/Makefile">Makefile</ulink>. | |
168 <screen> | |
169 cd ../../../encore/build | |
170 mkdir linux | |
171 cd linux | |
172 cp path/Makefile . | |
173 make | |
174 cp libdivxencore.so /usr/local/lib | |
9815
eb55fee443d2
Make absolute symlinks relative as suggested by Rich, fix typo.
diego
parents:
9802
diff
changeset
|
175 ln -s libdivxencore.so /usr/local/lib/libdivxencore.so.0 |
9675 | 176 cp ../../src/encore.h /usr/local/include |
177 </screen> | |
178 </para></step> | |
179 </procedure> | |
180 | |
181 <para> | |
182 <application>MPlayer</application> autodetects DivX4/DivX5 if it is | |
183 properly installed, just compile as usual. If it does not detect it, you | |
184 did not install or configure it correctly. | |
185 </para> | |
186 | |
187 </note> | |
188 </para> | |
189 </sect3> | |
190 | |
191 | |
10869 | 192 <sect3 id="ffmpeg" xreflabel="FFmpeg/libavcodec"> |
9675 | 193 <title>FFmpeg DivX/libavcodec</title> |
194 | |
195 <para> | |
196 <ulink url="http://ffmpeg.sourceforge.net">FFmpeg</ulink> contains an | |
197 <emphasis role="bold">open source</emphasis> codec package, which is capable | |
10869 | 198 of decoding streams encoded with H263/MJPEG/LJPEG/RV10/DivX3/DivX4/DivX5/MP41/ |
199 MP42/WMV1/WMV2/HuffYUV/SVQ1/SVQ3/MPEG1/MPEG2/VCR1/VCR2/ASV1/ASV2/CLJR | |
9675 | 200 video, or WMA (Windows Media Audio) audio codecs. Not only some of them can be |
201 encoded with, but it also offers higher speed than the Win32 codecs or the | |
202 DivX.com DivX4/5 library! | |
203 </para> | |
204 | |
205 <para> | |
206 It contains a lot of nice codecs, especially important are the MPEG4 variants: | |
10132 | 207 DivX3, DivX4, DivX5, Windows Media Video 7/8 (WMV1/WMV2). Also a very interesting one |
9675 | 208 is the WMA decoder. |
209 </para> | |
210 | |
211 <para> | |
10132 | 212 The most recent codec deserving credit is the <emphasis role="bold">Sorenson 3</emphasis> |
213 (SVQ3) codec. This is the first, completely opensource implementation of this | |
214 codec. It's even faster than the original. Be sure to prefer this instead | |
215 of the binary codec! | |
216 </para> | |
217 | |
218 <para> | |
9675 | 219 If you use an <application>MPlayer</application> release you have libavcodec |
220 right in the package, just build as usual. If you use | |
221 <application>MPlayer</application> from CVS you have to extract libavcodec from | |
222 the FFmpeg CVS tree as FFmpeg releases <emphasis role="bold">don't</emphasis> | |
223 work with <application>MPlayer</application>. In order to achieve this do: | |
224 </para> | |
225 | |
226 <procedure> | |
227 <step><para> | |
228 <screen>cvs -d:pserver:anonymous@cvs.ffmpeg.sourceforge.net:/cvsroot/ffmpeg login</screen> | |
229 </para></step> | |
230 <step><para> | |
231 <screen>cvs -d:pserver:anonymous@cvs.ffmpeg.sourceforge.net:/cvsroot/ffmpeg co ffmpeg</screen> | |
232 </para></step> | |
233 <step><para> | |
234 Move the <filename>libavcodec</filename> directory from the FFmpeg | |
235 sources to the root of the <application>MPlayer</application> CVS tree. | |
236 It should look like this: | |
237 <filename>main/libavcodec</filename> | |
238 </para><para> | |
239 Symlinking is <emphasis role="bold">not</emphasis> enough, you have to | |
240 copy/move it! | |
241 </para></step> | |
242 <step><para> | |
243 Compile. <filename>configure</filename> should detect problems before | |
244 compilation. | |
245 </para></step> | |
246 </procedure> | |
247 | |
248 <note> | |
249 <para> | |
250 <application>MPlayer</application> from CVS does contain a | |
251 <filename>libavcodec</filename> subdirectory, but it does | |
252 <emphasis role="bold">not</emphasis> contain the source for libavcodec! | |
253 You must follow the steps above to obtain the source for this library. | |
254 </para> | |
255 </note> | |
256 | |
257 <para> | |
258 With FFmpeg and my Matrox G400, I can view even the highest resolution DivX | |
259 movies without dropped frames on my K6/2 500. | |
260 </para> | |
261 </sect3> | |
262 | |
263 | |
264 <sect3 id="xanim"> | |
265 <title>XAnim codecs</title> | |
266 | |
267 <note> | |
268 <para> | |
269 Be advised that the XAnim binary codecs are packaged with a piece of text | |
270 claiming to be a legally binding software license which, besides other | |
271 restrictions, forbids the user to use the codecs in conjunction with any | |
272 program other than <application>XAnim</application>. However, the XAnim | |
273 author has yet to bring legal action against anyone for codec-related issues. | |
274 </para> | |
275 </note> | |
276 | |
277 <formalpara> | |
278 <title>INSTALLATION AND USAGE</title> | |
279 <para> | |
280 <application>MPlayer</application> is capable of employing the XAnim codecs | |
281 for decoding. Follow the instructions to enable them: | |
282 </para> | |
283 </formalpara> | |
284 | |
285 <procedure> | |
286 <step><para> | |
287 Download the codecs you wish to use from the | |
288 <ulink url="http://xanim.va.pubnix.com">XAnim site</ulink>. | |
9683 | 289 The <emphasis role="bold">3ivx</emphasis> codec is not there, but at the |
9675 | 290 <ulink url="http://www.3ivx.com">3ivx site</ulink>. |
291 </para></step> | |
292 <step><para> | |
9683 | 293 <emphasis role="bold">OR</emphasis> download the codecs pack from our |
294 <ulink url="http://www.mplayerhq.hu/MPlayer/releases/codecs/">codecs page</ulink> | |
295 </para></step> | |
296 <step><para> | |
9675 | 297 Use the <option>--with-xanimlibdir</option> option to tell |
298 <filename>configure</filename> where | |
299 to find the XAnim codecs. By default, it looks for them at | |
10229 | 300 <filename class="directory">/usr/local/lib/codecs</filename>, |
9675 | 301 <filename class="directory">/usr/local/lib/xanim/mods</filename>, |
302 <filename class="directory">/usr/lib/xanim/mods</filename> and | |
303 <filename class="directory">/usr/lib/xanim</filename>. | |
304 Alternatively you can set the environment variable | |
305 <envar>XANIM_MOD_DIR</envar> to the directory of the XAnim codecs. | |
306 </para></step> | |
307 <step><para> | |
308 Rename/symlink the files, cutting out the architecture stuff, so they | |
309 will have filenames like these: <filename>vid_cvid.xa</filename>, | |
310 <filename>vid_h263.xa</filename>, <filename>vid_iv50.xa</filename> | |
311 </para></step> | |
312 </procedure> | |
313 | |
314 <para> | |
315 XAnim is video codec family <systemitem>xanim</systemitem>, so you may want | |
316 to use the <option>-vfm xanim</option> option to tell <application>MPlayer</application> | |
317 to use them if possible. | |
318 </para> | |
319 | |
320 <para> | |
321 Tested codecs include: <emphasis role="bold">Indeo 3.2, 4.1, 5.0, CVID, 3ivX, | |
322 h263.</emphasis> | |
323 </para> | |
324 </sect3> | |
325 | |
326 | |
327 <sect3 id="vivo-video"> | |
328 <title>VIVO video</title> | |
329 <para> | |
330 <application>MPlayer</application> can play Vivo (1.0 and 2.0) videos. The | |
331 most suitable codec for 1.0 files is FFmpeg's H263 decoder, you can use it | |
332 with the <option>-vc ffh263</option> option. For 2.0 files, use the | |
333 Win32 DLL through the <option>-vc vivo</option> option. If you do not supply | |
334 command line options <application>MPlayer</application> selects the best codec | |
335 automatically. | |
336 </para> | |
337 </sect3> | |
338 | |
339 | |
340 <sect3 id="mpeg12"> | |
341 <title>MPEG 1/2 video</title> | |
342 <para> | |
343 MPEG1 and MPEG2 are decoded by the multiplatform native <systemitem | |
344 class="library">libmpeg2</systemitem> library, whose source code is | |
345 included in <application>MPlayer</application>. We handle buggy MPEG 1/2 | |
346 video files by catching <systemitem>Signal 11</systemitem> | |
347 (<systemitem>segmentation fault</systemitem>), and quickly | |
348 reinitializing the codec, continuing exactly from where the failure | |
349 occurred. This recovery technique has no measurable speed penalty. | |
350 </para> | |
351 </sect3> | |
352 | |
353 | |
354 <sect3 id="msvideo1"> | |
355 <title>MS Video1</title> | |
356 <para> | |
357 This is a very old and very bad codec from Microsoft. In the past it was | |
358 decoded with the <filename>msvidc32.dll</filename> Win32 codec, now we have | |
359 our own open source implementation | |
360 (by <ulink url="mailto:melanson@pcisys.net">Mike Melanson</ulink>). | |
361 </para> | |
362 </sect3> | |
363 | |
364 | |
365 <sect3 id="cinepak-cvid"> | |
366 <title>Cinepak CVID</title> | |
367 <para> | |
368 <application>MPlayer</application> uses its own open source, multiplatform | |
369 Cinepak decoder (by <ulink url="mailto:timf@csse.monash.edu.au">Dr. Tim Ferguson</ulink>) | |
370 by default. It supports YUV outputs, so that hardware | |
371 scaling is possible if the video output driver permits it. | |
372 </para> | |
373 </sect3> | |
374 | |
375 | |
376 <sect3 id="realvideo"> | |
377 <title>RealVideo</title> | |
378 | |
379 <para> | |
380 <application>MPlayer</application> supports decoding all versions of | |
381 RealVideo: | |
382 | |
383 <itemizedlist> | |
384 <listitem><simpara> | |
385 RealVideo 1.0 (fourcc RV10) - en/decoding supported by | |
386 <systemitem class="library">libavcodec</systemitem> | |
387 </simpara></listitem> | |
388 <listitem><simpara> | |
389 RealVideo 2.0, 3.0, 4.0 (fourcc RV20, RV30, RV40) - decoding supported by | |
390 <emphasis role="bold">RealPlayer libraries</emphasis> | |
391 </simpara></listitem> | |
392 </itemizedlist> | |
393 </para> | |
394 | |
395 <para> | |
396 It is recommended to download and install <application>RealPlayer8</application> | |
397 or <application>RealONE</application>, because <application>MPlayer</application> | |
398 can use their libraries to decode files with RealVideo 2.0 - 4.0 video. The | |
399 <application>MPlayer</application> <filename>configure</filename> script should | |
400 detect the <application>RealPlayer</application> libraries in the standard | |
401 locations of a full installation. If it does not, tell <filename>configure</filename> | |
402 where to look with the <option>--with-reallibdir</option> option. | |
403 </para> | |
404 | |
10229 | 405 <para> |
406 As a second chance you can download the codecs from | |
407 <ulink url="http://www.mplayerhq.hu/MPlayer/releases/codecs/">http://www.mplayerhq.hu/MPlayer/releases/codecs/</ulink>. | |
408 After downloading the Real codecs package, extract it to the | |
409 <filename class="directory">/usr/local/lib/codecs</filename> directory, or you can | |
410 specify a unique path with the <option>--with-reallibdir</option> option. | |
411 </para> | |
412 | |
9675 | 413 <note><para> |
414 <application>RealPlayer</application> libraries currently | |
415 <emphasis role="bold">only work with Linux, FreeBSD, NetBSD and Cygwin on the x86, | |
416 Alpha and PowerPC (Linux/Alpha and Linux/PowerPC have been tested) platforms</emphasis>. | |
417 </para></note> | |
418 </sect3> | |
419 | |
420 | |
421 <sect3 id="xvid"> | |
9720
5cd40fe6ba7e
Updated XviD CVS instructions by Dmitry Baryshkov <lumag@qnc.ru>.
diego
parents:
9683
diff
changeset
|
422 <title>XviD</title> |
9675 | 423 |
424 <para> | |
9720
5cd40fe6ba7e
Updated XviD CVS instructions by Dmitry Baryshkov <lumag@qnc.ru>.
diego
parents:
9683
diff
changeset
|
425 <ulink url="http://www.xvid.org">XviD</ulink> is a forked development of the |
9675 | 426 OpenDivX codec. It happened when ProjectMayo changed OpenDivX to closed source |
427 DivX4 (now DivX5), and the non-ProjectMayo people working on OpenDivX got angry, | |
9720
5cd40fe6ba7e
Updated XviD CVS instructions by Dmitry Baryshkov <lumag@qnc.ru>.
diego
parents:
9683
diff
changeset
|
428 then started XviD. So both projects have the same origin. |
9675 | 429 |
430 <itemizedlist> | |
431 <title>ADVANTAGES</title> | |
432 <listitem><simpara> | |
433 open source | |
434 </simpara></listitem> | |
435 <listitem><simpara> | |
436 its API is compatible with DivX4 so adding support for it is easy | |
437 </simpara></listitem> | |
438 <listitem><simpara> | |
439 2-pass encoding support | |
440 </simpara></listitem> | |
441 <listitem><simpara> | |
442 nice encoding quality, higher speed than DivX4 (you can optimize it for | |
443 your box while compiling) | |
444 </simpara></listitem> | |
445 </itemizedlist> | |
446 | |
447 <itemizedlist> | |
448 <title>DISADVANTAGES</title> | |
449 <listitem><simpara> | |
450 currently it does not properly <emphasis role="bold">decode</emphasis> all | |
451 DivX/DivX4 files (no problem as <link linkend="ffmpeg">libavcodec</link> | |
452 can play them) | |
453 </simpara></listitem> | |
454 <listitem><simpara> | |
455 under development | |
456 </simpara></listitem> | |
457 </itemizedlist> | |
458 </para> | |
459 | |
460 <procedure> | |
461 <title>INSTALLING XVID CVS</title> | |
462 <para> | |
9720
5cd40fe6ba7e
Updated XviD CVS instructions by Dmitry Baryshkov <lumag@qnc.ru>.
diego
parents:
9683
diff
changeset
|
463 It is currently available only from CVS. Here are download and installation |
5cd40fe6ba7e
Updated XviD CVS instructions by Dmitry Baryshkov <lumag@qnc.ru>.
diego
parents:
9683
diff
changeset
|
464 instructions (you need at least autoconf 2.50, automake and libtool): |
9675 | 465 </para> |
466 <step><para> | |
467 <screen>cvs -z3 -d:pserver:anonymous@cvs.xvid.org:/xvid login</screen> | |
468 </para></step> | |
469 <step><para> | |
470 <screen>cvs -z3 -d:pserver:anonymous@cvs.xvid.org:/xvid co xvidcore</screen> | |
471 </para></step> | |
472 <step><para> | |
473 <screen>cd xvidcore/build/generic</screen> | |
474 </para></step> | |
475 <step><para> | |
9720
5cd40fe6ba7e
Updated XviD CVS instructions by Dmitry Baryshkov <lumag@qnc.ru>.
diego
parents:
9683
diff
changeset
|
476 <screen>./bootstrap.sh</screen> |
9675 | 477 </para></step> |
478 <step><para> | |
9720
5cd40fe6ba7e
Updated XviD CVS instructions by Dmitry Baryshkov <lumag@qnc.ru>.
diego
parents:
9683
diff
changeset
|
479 <screen>./configure</screen> |
5cd40fe6ba7e
Updated XviD CVS instructions by Dmitry Baryshkov <lumag@qnc.ru>.
diego
parents:
9683
diff
changeset
|
480 You may have to add some options (examine the output of |
5cd40fe6ba7e
Updated XviD CVS instructions by Dmitry Baryshkov <lumag@qnc.ru>.
diego
parents:
9683
diff
changeset
|
481 <screen>./configure --help</screen>). |
9675 | 482 </para></step> |
483 <step><para> | |
9720
5cd40fe6ba7e
Updated XviD CVS instructions by Dmitry Baryshkov <lumag@qnc.ru>.
diego
parents:
9683
diff
changeset
|
484 <screen>make && make install</screen> |
5cd40fe6ba7e
Updated XviD CVS instructions by Dmitry Baryshkov <lumag@qnc.ru>.
diego
parents:
9683
diff
changeset
|
485 </para></step> |
5cd40fe6ba7e
Updated XviD CVS instructions by Dmitry Baryshkov <lumag@qnc.ru>.
diego
parents:
9683
diff
changeset
|
486 <step><para> |
5cd40fe6ba7e
Updated XviD CVS instructions by Dmitry Baryshkov <lumag@qnc.ru>.
diego
parents:
9683
diff
changeset
|
487 If you specified <option>--enable-divxcompat</option>, |
5cd40fe6ba7e
Updated XviD CVS instructions by Dmitry Baryshkov <lumag@qnc.ru>.
diego
parents:
9683
diff
changeset
|
488 copy <filename>../../src/divx4.h</filename> to |
9675 | 489 <filename class="directory">/usr/local/include/</filename>. |
490 </para></step> | |
491 <step><para> | |
492 Recompile <application>MPlayer</application> with | |
9720
5cd40fe6ba7e
Updated XviD CVS instructions by Dmitry Baryshkov <lumag@qnc.ru>.
diego
parents:
9683
diff
changeset
|
493 <option>--with-xvidcore=<replaceable>/path/to/</replaceable>libxvidcore.a</option>. |
9675 | 494 </para></step> |
495 </procedure> | |
496 </sect3> | |
497 | |
498 | |
499 <sect3 id="sorenson"> | |
500 <title>Sorenson</title> | |
501 | |
502 <para> | |
503 Sorenson is a video codec developed by Sorenson Media and licensed to Apple who | |
504 distribute it with their <application>QuickTime Player</application>. We are | |
505 currently able to decode all version of Sorenson video files with the following | |
10132 | 506 decoders: |
9675 | 507 </para> |
508 | |
509 <itemizedlist> | |
510 <listitem><simpara> | |
10430 | 511 Sorenson Video v1 (fourcc <emphasis>SVQ1</emphasis>) - decoding supported |
512 by <emphasis role="bold">native codec</emphasis> | |
513 (<link linkend="ffmpeg">libavcodec</link>) | |
9675 | 514 </simpara></listitem> |
515 <listitem><simpara> | |
10430 | 516 Sorenson Video v3 (fourcc <emphasis>SVQ3</emphasis>) - decoding supported by |
517 <emphasis role="bold">native codec</emphasis> | |
518 (<link linkend="ffmpeg">libavcodec</link>) | |
9675 | 519 </simpara></listitem> |
520 </itemizedlist> | |
521 | |
522 <procedure> | |
9837 | 523 <title>COMPILING MPLAYER WITH QUICKTIME LIBRARIES SUPPORT</title> |
9675 | 524 <note><para>currently only 32bit Intel platforms are supported.</para></note> |
525 <step><para>download MPlayer CVS</para></step> | |
526 <step><para>download QuickTime DLL pack from | |
527 <ulink url="http://www.mplayerhq.hu/MPlayer/releases/codecs/"/> | |
528 </para></step> | |
529 <step><para>extract QuickTime DLL pack to your Win32 codecs directory | |
10188 | 530 (default: <filename class="directory">/usr/local/lib/codecs/</filename>) |
9675 | 531 </para></step> |
10318 | 532 <step><para>compile MPlayer</para></step> |
9675 | 533 </procedure> |
534 | |
535 </sect3> | |
536 </sect2> | |
537 | |
538 <!-- ********** --> | |
539 | |
540 <sect2 id="audio-codecs"> | |
541 <title>Audio codecs</title> | |
542 | |
543 <itemizedlist> | |
544 <title>The most important audio codecs above all:</title> | |
545 <listitem><simpara> | |
546 MPEG layer 2 (MP2), and layer 3 (MP3) audio (<emphasis role="bold">native</emphasis> | |
547 code, with MMX/SSE/3DNow! optimization) | |
548 </simpara></listitem> | |
549 <listitem><simpara> | |
550 MPEG layer 1 audio (<emphasis role="bold">native</emphasis> code, with libavcodec) | |
551 </simpara></listitem> | |
552 <listitem><simpara> | |
553 Windows Media Audio v1, v2 (<emphasis role="bold">native</emphasis> code, with | |
554 libavcodec) | |
555 </simpara></listitem> | |
556 <listitem><simpara> | |
557 Windows Media Audio 9 (WMAv3) (using DMO DLL) | |
558 </simpara></listitem> | |
559 <listitem><simpara> | |
560 AC3 Dolby audio (<emphasis role="bold">native</emphasis> code, with | |
561 MMX/SSE/3DNow! optimization) | |
562 </simpara></listitem> | |
563 <listitem><simpara> | |
564 AC3 passing through soundcard hardware | |
565 </simpara></listitem> | |
566 <listitem><simpara> | |
567 Ogg Vorbis audio codec (<emphasis role="bold">native</emphasis> library) | |
568 </simpara></listitem> | |
569 <listitem><simpara> | |
570 RealAudio: DNET (low bitrate AC3), Cook, Sipro and ATRAC3 | |
571 </simpara></listitem> | |
572 <listitem><simpara> | |
573 QuickTime: Qualcomm and QDesign audio codecs | |
574 </simpara></listitem> | |
575 <listitem><simpara> | |
576 VIVO audio (g723, Vivo Siren) | |
577 </simpara></listitem> | |
578 <listitem><simpara> | |
579 Voxware audio (using DirectShow DLL) | |
580 </simpara></listitem> | |
581 <listitem><simpara> | |
582 alaw and ulaw, various gsm, adpcm and pcm formats and other simple old | |
583 audio codecs | |
584 </simpara></listitem> | |
9802 | 585 <listitem><simpara> |
586 AAC | |
587 </simpara></listitem> | |
9675 | 588 </itemizedlist> |
589 | |
590 | |
591 <sect3 id="swac3"> | |
592 <title>Software AC3 decoding</title> | |
593 | |
594 <para> | |
595 This is the default decoder used for files with AC3 audio. | |
596 </para> | |
597 | |
598 <para> | |
599 The AC3 decoder can create audio output mixes for 2, 4, or 6 speakers. | |
600 When configured for 6 speakers, this decoder provides separate output of | |
601 all the AC3 channels to the sound driver, allowing for full "surround | |
602 sound" experience without the external AC3 decoder required to use the | |
603 hwac3 codec. | |
604 </para> | |
605 | |
606 <para> | |
607 Use the <option>-channels</option> option to select the number of output | |
608 channels. Use <option>-channels 2</option> for a stereo downmix. For a 4 | |
609 channel downmix (Left Front, Right Front, Left Surround and Right Surround | |
610 outputs), use <option>-channels 4</option>. In this case, any center | |
611 channel will be mixed equally to the front channels. <option>-channels | |
612 6</option> will output all the AC3 channels as they are encoded - in the | |
613 order Left, Right, Left Surround, Right Surround, Center and LFE. | |
614 </para> | |
615 | |
616 <para> | |
617 The default number of output channels is 2. | |
618 </para> | |
619 | |
620 <para> | |
621 To use more than 2 output channels, you will need to use OSS, and have a | |
622 sound card that supports the appropriate number of output channels via the | |
623 SNDCTL_DSP_CHANNELS ioctl. An example of a suitable driver is emu10k1 | |
624 (used by Soundblaster Live! cards) from August 2001 or newer (ALSA CVS is | |
625 also supposed to work). | |
626 </para> | |
627 </sect3> | |
628 | |
629 | |
630 <sect3 id="hwac3"> | |
631 <title>Hardware AC3 decoding</title> | |
632 <para> | |
633 You need an AC3 capable sound card, with digital out (SP/DIF). The card's | |
634 driver must properly support the AFMT_AC3 format (C-Media does). Connect | |
635 your AC3 decoder to the SP/DIF output, and use the <option>-ac | |
636 hwac3</option> option. It is experimental but known to work with C-Media | |
637 cards and Soundblaster Live! + ALSA (but not OSS) drivers and DXR3/Hollywood+ | |
638 MPEG decoder cards. | |
639 </para> | |
640 </sect3> | |
641 | |
642 | |
643 <sect3 id="libmad"> | |
644 <title>libmad support</title> | |
645 | |
646 <para> | |
647 <ulink url="http://mad.sourceforge.net">libmad</ulink> is a multiplatform | |
648 MPEG audio decoding library. It does not handle broken files well, and it | |
649 sometimes has problems with seeking. | |
650 </para> | |
651 | |
652 <para> | |
653 To enable support, compile with the <option>--enable-mad</option> configure | |
654 option. | |
655 </para> | |
656 </sect3> | |
657 | |
658 | |
659 <sect3 id="vivo-audio"> | |
660 <title>VIVO audio</title> | |
661 <para> | |
662 The audio codec used in VIVO files depends on whether it is a VIVO/1.0 or | |
663 VIVO/2.0 file. VIVO/1.0 files have <emphasis role="bold">g.723</emphasis> audio, | |
664 and VIVO/2.0 files have <emphasis role="bold">Vivo Siren</emphasis> audio. Both are | |
665 supported. | |
666 </para> | |
667 </sect3> | |
668 | |
669 | |
670 <sect3 id="realaudio"> | |
671 <title>RealAudio</title> | |
672 | |
673 <para> | |
674 <application>MPlayer</application> supports decoding nearly all versions of | |
675 RealAudio: | |
676 </para> | |
677 | |
678 <itemizedlist> | |
679 <listitem><simpara> | |
680 RealAudio DNET - decoding supported by | |
681 <systemitem class="library">liba52</systemitem> | |
682 </simpara></listitem> | |
683 <listitem><simpara> | |
684 RealAudio Cook/Sipro/ATRAC3 - decoding supported by | |
685 <emphasis role="bold">RealPlayer libraries</emphasis> | |
686 </simpara></listitem> | |
687 </itemizedlist> | |
688 | |
689 <para> | |
690 On how to install RealPlayer libraries, see the | |
691 <link linkend="realmedia">RealMedia file format</link> section. | |
692 </para> | |
693 </sect3> | |
694 | |
695 <sect3 id="qdesign"> | |
696 <title>QDesign codecs</title> | |
697 <para> | |
698 QDesign audio streams (fourcc:<emphasis>QDMC, QDM2</emphasis>) are found | |
699 in MOV/QT files. Both versions of this codec can be decoded with QuickTime | |
700 libraries. For installation instructions please see the | |
701 <link linkend="sorenson">Sorenson video codec</link> section. | |
702 </para> | |
703 </sect3> | |
704 | |
705 <sect3 id="qualcomm"> | |
706 <title>Qualcomm codecs</title> | |
707 <para> | |
708 Qualcomm audio streams (fourcc:<emphasis>Qclp</emphasis>) is found | |
709 in MOV/QT files. It can be decoded with QuickTime | |
710 libraries. For installation instructions please see the | |
711 <link linkend="sorenson">Sorenson video codec</link> section. | |
712 </para> | |
713 </sect3> | |
9802 | 714 |
715 <sect3 id="aac"> | |
716 <title>AAC codec</title> | |
717 <para> | |
718 AAC (Advanced Audio Coding) is an audio codec sometimes found in MOV and MP4 | |
719 files. An open source decoder called FAAD is available from | |
10766 | 720 <ulink url="http://www.audiocoding.com"/>. |
721 MPlayer includes libfaad 2.0RC1, so you do not need to get it separately. | |
9802 | 722 </para> |
723 </sect3> | |
724 | |
9675 | 725 </sect2> |
726 | |
727 <!-- ********** --> | |
728 | |
729 <sect2 id="win32-codecs"> | |
730 <title>Win32 codecs importing HOWTO</title> | |
731 | |
732 <!-- TODO: a short paragraph of text would be nice here... --> | |
733 | |
734 <sect3 id="vfw-codecs"> | |
735 <title>VFW codecs</title> | |
736 | |
737 <para> | |
738 VFW (Video for Windows) is the old Video API for Windows. Its codecs have | |
739 the <filename>.DLL</filename> or (rarely) <filename>.DRV</filename> | |
740 extension. If <application>MPlayer</application> fails at playing your AVI | |
741 with this kind of message: | |
742 <screen>UNKNOWN video codec: HFYU (0x55594648)</screen> | |
743 </para> | |
744 | |
745 <para> | |
746 It means your AVI is encoded with a codec which has the HFYU fourcc (HFYU = | |
747 HuffYUV codec, DIV3 = DivX Low Motion, etc.). Now that you know this, you | |
748 have to find out which DLL Windows loads in order to play this file. In our | |
749 case, the <filename>system.ini</filename> contains this information in a | |
750 line that reads: | |
751 <programlisting>VIDC.HFYU=huffyuv.dll</programlisting> | |
752 </para> | |
753 | |
754 <para> | |
755 So you need the <filename>huffyuv.dll</filename> file. Note that the audio | |
756 codecs are specified by the MSACM prefix: | |
757 <programlisting>msacm.l3acm=L3codeca.acm</programlisting> | |
758 </para> | |
759 | |
760 <para> | |
761 This is the MP3 codec. Now that you have all the necessary information | |
762 (fourcc, codec file, sample AVI), submit your codec support request by | |
763 mail, and upload these files to the FTP site: | |
764 <systemitem role="url"> | |
765 ftp://ftp.mplayerhq.hu/MPlayer/incoming/[codecname]/ | |
766 </systemitem> | |
767 </para> | |
768 | |
769 <note><para>On Windows NT/2000/XP search for this info in the registry, | |
770 e.g. search for "VIDC.HFYU". To find out how to do this, look at | |
771 the old DirectShow method below. | |
772 </para></note> | |
773 </sect3> | |
774 | |
775 | |
776 <sect3 id="dshow-codecs"> | |
777 <title>DirectShow codecs</title> | |
778 | |
779 <para> | |
780 DirectShow is the newer Video API, which is even worse than its predecessor. | |
781 Things are harder with DirectShow, since | |
782 <itemizedlist> | |
783 <listitem><simpara> | |
784 <filename>system.ini</filename> does not contain the needed information, | |
785 instead it is stored in the registry and | |
786 </simpara></listitem> | |
787 <listitem><simpara> | |
788 we need the GUID of the codec. | |
789 </simpara></listitem> | |
790 </itemizedlist> | |
791 </para> | |
792 | |
793 <procedure> | |
794 <title>New Method:</title> | |
795 <para> | |
796 Using <application>Microsoft GraphEdit</application> (fast) | |
797 </para> | |
798 <step><para> | |
799 Get <application>GraphEdit</application> from either DirectX SDK or | |
800 <ulink url="http://doom9.org">doom9</ulink> | |
801 </para></step> | |
802 <step><para> | |
803 Start <command>graphedit.exe</command>. | |
804 </para></step> | |
805 <step><para> | |
806 From the menu select Graph -> Insert Filters. | |
807 </para></step> | |
808 <step><para> | |
809 Expand item <systemitem>DirectShow Filters</systemitem> | |
810 </para></step> | |
811 <step><para> | |
812 Select the right codec name and expand item. | |
813 </para></step> | |
814 <step><para> | |
815 In the entry <systemitem>DisplayName</systemitem> look at the text in | |
816 winged brackets after the backslash and write it down (five dash-delimited | |
817 blocks, the GUID). | |
818 </para></step> | |
819 <step><para> | |
820 The codec binary is the file specified in the <systemitem>Filename</systemitem> | |
821 entry. | |
822 </para></step> | |
823 </procedure> | |
824 | |
825 <note> | |
826 <para> | |
827 If there is no <systemitem>Filename</systemitem> and | |
828 <systemitem>DisplayName</systemitem> contains something like | |
829 <systemitem>device:dmo</systemitem>, then it is a DMO-Codec. | |
830 </para> | |
831 </note> | |
832 | |
833 <procedure> | |
834 <title>Old Method:</title> | |
835 <para> | |
836 Take a deep breath and start searching the registry... | |
837 </para> | |
838 <step><para> | |
839 Start <command>regedit</command>. | |
840 </para></step> | |
841 <step><para> | |
842 Press <keycap>Ctrl</keycap>+<keycap>F</keycap>, disable the first two | |
843 checkboxes, and enable the third. Type in the fourcc of the codec (e.g. | |
844 <userinput>TM20</userinput>). | |
845 </para></step> | |
846 <step><para> | |
847 You should see a field which contains the path and the filename (e.g. | |
848 <filename>C:\WINDOWS\SYSTEM\TM20DEC.AX</filename>). | |
849 </para></step> | |
850 <step><para> | |
851 Now that you have the file, we need the GUID. Try searching again, but | |
852 now search for the codec's name, not the fourcc. Its name can be acquired | |
853 when Media Player is playing the file, by checking | |
854 <guimenu>File</guimenu> -> <guisubmenu>Properties</guisubmenu> -> | |
855 <guimenuitem>Advanced</guimenuitem>. | |
856 If not, you are out of luck. Try guessing (e.g. search for TrueMotion). | |
857 </para></step> | |
858 <step><para> | |
859 If the GUID is found you should see a <guilabel>FriendlyName</guilabel> | |
860 and a <guilabel>CLSID</guilabel> field. Write down the 16 byte CLSID, | |
861 this is the GUID we need. | |
862 </para></step> | |
863 </procedure> | |
864 | |
865 <note> | |
866 <para> | |
867 If searching fails, try enabling all the checkboxes. You may have | |
868 false hits, but you may get lucky... | |
869 </para> | |
870 </note> | |
871 | |
872 <para> | |
873 Now that you have all the necessary information (fourcc, GUID, codec file, | |
874 sample AVI), submit your codec support request by mail, and upload these files | |
875 to the FTP site: | |
876 <systemitem | |
877 role="url">ftp://ftp.mplayerhq.hu/MPlayer/incoming/[codecname]/ | |
878 </systemitem> | |
879 </para> | |
880 </sect3> | |
881 </sect2> | |
882 </sect1> |