Mercurial > mplayer.hg
annotate DOCS/xml/en/codecs.xml @ 15569:dff7e79b194f
quicktime fix update
- check for existence of sh->ImageDesc instead of h263 fourcc
- honor -lavdopts lowres
author | henry |
---|---|
date | Wed, 25 May 2005 16:29:53 +0000 |
parents | bd6adbd632e4 |
children | c5d60b8f3fa9 |
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> | |
15316 | 10 See the <ulink url="../../codecs-status.html">codec status table</ulink> |
9675 | 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> | |
14024 | 22 <emphasis role="bold">MPEG-1</emphasis> (<emphasis role="bold">VCD</emphasis>) and |
23 <emphasis role="bold">MPEG-2</emphasis> (<emphasis role="bold">DVD</emphasis>) video | |
9675 | 24 </simpara></listitem> |
25 <listitem><simpara> | |
26 native decoders for <emphasis role="bold">DivX ;-), OpenDivX (DivX4), | |
14024 | 27 DivX 5 (Pro), 3ivX, M$ MPEG-4</emphasis> v1, v2 and other MPEG-4 variants |
9675 | 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> | |
13111 | 53 VIVO 1.0, 2.0, I263 and other <emphasis role="bold">H.263(+)</emphasis> variants |
9675 | 54 </simpara></listitem> |
55 <listitem><simpara> | |
56 FLI/FLC | |
57 </simpara></listitem> | |
58 <listitem><simpara> | |
11822
359eaf957bf1
Add <systemitem class="library"> tags to libavcodec and a few others.
diego
parents:
11758
diff
changeset
|
59 <emphasis role="bold">RealVideo 1.0 & 2.0</emphasis> from |
359eaf957bf1
Add <systemitem class="library"> tags to libavcodec and a few others.
diego
parents:
11758
diff
changeset
|
60 <systemitem class="library">libavcodec</systemitem>, and |
11638 | 61 <emphasis role="bold">RealVideo 3.0 & 4.0</emphasis> codecs using RealPlayer |
11637 | 62 libraries |
9675 | 63 </simpara></listitem> |
64 <listitem><simpara> | |
65 native decoder for HuffYUV | |
66 </simpara></listitem> | |
67 <listitem><simpara> | |
68 Various old simple RLE-like formats | |
69 </simpara></listitem> | |
70 </itemizedlist> | |
71 | |
72 <para> | |
73 If you have a Win32 codec not listed here which is not supported yet, | |
14061 | 74 please read the <link linkend="codec-importing">codec importing HOWTO</link> |
9675 | 75 and help us add support for it. |
76 </para> | |
77 | |
78 | |
79 <sect3 id="divx4-5"> | |
80 <title>DivX4/DivX5</title> | |
81 | |
82 <para> | |
9683 | 83 This section contains information about the DivX4 and DivX5 codecs of |
9675 | 84 <ulink url="http://www.projectmayo.com">Project Mayo</ulink>. |
85 Their first available alpha version was OpenDivX 4.0 alpha 47 and 48. | |
86 Support for this was included in <application>MPlayer</application> in the | |
87 past, and built by default. We also used its postprocessing code to | |
14024 | 88 optionally enhance visual quality of MPEG-1/2 movies. Now we use our own, |
9675 | 89 for all file types. |
90 </para> | |
91 | |
92 <para> | |
93 The new generation of this codec is called DivX4 and can even decode | |
94 movies made with the infamous DivX codec! In addition it is much faster | |
11822
359eaf957bf1
Add <systemitem class="library"> tags to libavcodec and a few others.
diego
parents:
11758
diff
changeset
|
95 than the native Win32 DivX DLLs but slower than |
359eaf957bf1
Add <systemitem class="library"> tags to libavcodec and a few others.
diego
parents:
11758
diff
changeset
|
96 <systemitem class="library">libavcodec</systemitem>. |
359eaf957bf1
Add <systemitem class="library"> tags to libavcodec and a few others.
diego
parents:
11758
diff
changeset
|
97 Hence its usage as a decoder is |
359eaf957bf1
Add <systemitem class="library"> tags to libavcodec and a few others.
diego
parents:
11758
diff
changeset
|
98 <emphasis role="bold">discouraged</emphasis>. However, it is useful for |
9675 | 99 encoding. One disadvantage of this codec is that it is not available under an |
100 Open Source license. | |
101 </para> | |
102 | |
103 <para> | |
104 DivX4 works in two modes: | |
105 <variablelist> | |
106 <varlistentry><term><option>-vc odivx</option></term> | |
107 <listitem><simpara> | |
108 Uses the codec in OpenDivX fashion. In this case it produces YV12 images | |
109 in its own buffer, and <application>MPlayer</application> does colorspace | |
110 conversion via libvo. (<emphasis role="bold">Fast, recommended!</emphasis>) | |
111 </simpara></listitem> | |
112 </varlistentry> | |
113 <varlistentry><term><option>-vc divx4</option></term> | |
114 <listitem><simpara> | |
115 Uses the colorspace conversion of the codec. In this mode you can use | |
116 YUY2/UYVY, too. (<emphasis role="bold">SLOW</emphasis>) | |
117 </simpara></listitem> | |
118 </varlistentry> | |
119 </variablelist> | |
120 </para> | |
121 | |
122 <para> | |
123 The <option>-vc odivx</option> method is usually faster, due to the fact | |
124 that it transfers image data in YV12 (planar YUV 4:2:0) format, thus | |
125 requiring much less bandwidth on the bus. For packed YUV modes (YUY2, UYVY) | |
126 use the <option>-vc divx4</option> method. For RGB modes the speed is the | |
127 same, differing at best according to your current color depth. | |
128 <note> | |
129 <para> | |
130 If your <option>-vo</option> driver supports direct rendering, then <option>-vc | |
131 divx4</option> may be faster, or even the fastest solution. | |
132 </para> | |
133 | |
134 <para> | |
11758 | 135 The DivX4/5 binary codec library can be downloaded from |
13977 | 136 <ulink url="http://avifile.sf.net">avifile</ulink> or |
9675 | 137 <ulink url="http://www.divx.com">divx.com</ulink> |
138 Unpack it, run <filename>./install.sh</filename> as root and do not forget adding | |
139 <filename class="directory">/usr/local/lib</filename> to your | |
140 <filename>/etc/ld.so.conf</filename> and running <command>ldconfig</command>. | |
141 </para> | |
142 | |
143 <para> | |
11758 | 144 Get the CVS version of the OLD OpenDivX core library like this: |
9675 | 145 </para> |
146 | |
147 <procedure> | |
148 <step><para> | |
149 <screen>cvs -d:pserver:anonymous@cvs.projectmayo.com:/cvsroot login</screen> | |
150 </para></step> | |
151 <step><para> | |
152 <screen>cvs -d:pserver:anonymous@cvs.projectmayo.com:/cvsroot co divxcore</screen> | |
153 </para></step> | |
154 <step><para> | |
155 This core library is split into a decore and encore library that have to be | |
156 compiled separately. For the decore Library, simply type | |
157 <screen> | |
158 cd divxcore/decore/build/linux | |
159 make | |
160 cp libdivxdecore.so /usr/local/lib | |
9815
eb55fee443d2
Make absolute symlinks relative as suggested by Rich, fix typo.
diego
parents:
9802
diff
changeset
|
161 ln -s libdivxdecore.so /usr/local/lib/libdivxdecore.so.0 |
9675 | 162 cp ../../src/decore.h /usr/local/include |
163 </screen> | |
164 </para></step> | |
165 <step><para> | |
166 Alas, for the encore library there is no Linux Makefile available, and the | |
167 MMX optimized code only works on Windows. You can still compile it, though, | |
168 by using this | |
169 <ulink url="ftp://ftp.mplayerhq.hu/MPlayer/contrib/divx-mf/Makefile">Makefile</ulink>. | |
170 <screen> | |
171 cd ../../../encore/build | |
172 mkdir linux | |
173 cd linux | |
174 cp path/Makefile . | |
175 make | |
176 cp libdivxencore.so /usr/local/lib | |
9815
eb55fee443d2
Make absolute symlinks relative as suggested by Rich, fix typo.
diego
parents:
9802
diff
changeset
|
177 ln -s libdivxencore.so /usr/local/lib/libdivxencore.so.0 |
9675 | 178 cp ../../src/encore.h /usr/local/include |
179 </screen> | |
180 </para></step> | |
181 </procedure> | |
182 | |
183 <para> | |
184 <application>MPlayer</application> autodetects DivX4/DivX5 if it is | |
185 properly installed, just compile as usual. If it does not detect it, you | |
186 did not install or configure it correctly. | |
187 </para> | |
188 | |
189 </note> | |
190 </para> | |
191 </sect3> | |
192 | |
193 | |
10869 | 194 <sect3 id="ffmpeg" xreflabel="FFmpeg/libavcodec"> |
11107 | 195 <title>FFmpeg/libavcodec</title> |
9675 | 196 |
197 <para> | |
13977 | 198 <ulink url="http://ffmpeg.org">FFmpeg</ulink> contains an |
9675 | 199 <emphasis role="bold">open source</emphasis> codec package, which is capable |
11089 | 200 of decoding streams with various audio and video codecs. It also offers an |
201 impressing encoding facility and higher speed than the Win32 codecs or the | |
202 DivX.com DivX4/5 libraries! | |
9675 | 203 </para> |
204 | |
205 <para> | |
14024 | 206 It contains a lot of nice codecs, especially important are the MPEG-4 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> |
15329 | 213 (SVQ3) codec. This is the first, completely opensource implementation. It is even |
11089 | 214 faster than the original. Be sure to prefer this instead of the binary codec! |
215 </para> | |
216 | |
217 <para> | |
218 For a complete list of supported codecs please visit the FFmpeg homepage. | |
14113 | 219 Supported <ulink url="http://ffmpeg.org/ffmpeg-doc.html#SEC19">video</ulink> |
220 and <ulink url="http://ffmpeg.org/ffmpeg-doc.html#SEC20">audio</ulink> codecs. | |
10132 | 221 </para> |
222 | |
223 <para> | |
11822
359eaf957bf1
Add <systemitem class="library"> tags to libavcodec and a few others.
diego
parents:
11758
diff
changeset
|
224 If you use an <application>MPlayer</application> release you have |
359eaf957bf1
Add <systemitem class="library"> tags to libavcodec and a few others.
diego
parents:
11758
diff
changeset
|
225 <systemitem class="library">libavcodec</systemitem> |
9675 | 226 right in the package, just build as usual. If you use |
11822
359eaf957bf1
Add <systemitem class="library"> tags to libavcodec and a few others.
diego
parents:
11758
diff
changeset
|
227 <application>MPlayer</application> from CVS you have to extract |
359eaf957bf1
Add <systemitem class="library"> tags to libavcodec and a few others.
diego
parents:
11758
diff
changeset
|
228 <systemitem class="library">libavcodec</systemitem> from |
11089 | 229 the FFmpeg CVS tree as FFmpeg releases are very rare. The CVS is mostly stable |
230 and offers the most features. In order to achieve this do: | |
9675 | 231 </para> |
232 | |
233 <procedure> | |
234 <step><para> | |
11074 | 235 <screen>cvs -d:pserver:anonymous@mplayerhq.hu:/cvsroot/ffmpeg login</screen> |
9675 | 236 </para></step> |
237 <step><para> | |
12457 | 238 <screen>cvs -z3 -d:pserver:anonymous@mplayerhq.hu:/cvsroot/ffmpeg co -P ffmpeg/libavcodec</screen> |
9675 | 239 </para></step> |
240 <step><para> | |
241 Move the <filename>libavcodec</filename> directory from the FFmpeg | |
242 sources to the root of the <application>MPlayer</application> CVS tree. | |
243 It should look like this: | |
11089 | 244 <filename class="directory">main/libavcodec</filename> |
9675 | 245 </para><para> |
246 Symlinking is <emphasis role="bold">not</emphasis> enough, you have to | |
247 copy/move it! | |
248 </para></step> | |
249 <step><para> | |
11822
359eaf957bf1
Add <systemitem class="library"> tags to libavcodec and a few others.
diego
parents:
11758
diff
changeset
|
250 If you prefer having <systemitem class="library">libavcodec</systemitem> |
359eaf957bf1
Add <systemitem class="library"> tags to libavcodec and a few others.
diego
parents:
11758
diff
changeset
|
251 updated at the same time you update |
11089 | 252 <application>MPlayer</application> CVS, put the following line into the |
11090 | 253 <filename>main/CVS/Entries</filename> file: |
11089 | 254 <screen>D/libavcodec////</screen> |
255 </para></step> | |
256 <step><para> | |
9675 | 257 Compile. <filename>configure</filename> should detect problems before |
258 compilation. | |
259 </para></step> | |
260 </procedure> | |
261 | |
262 <note> | |
263 <para> | |
264 <application>MPlayer</application> from CVS does contain a | |
265 <filename>libavcodec</filename> subdirectory, but it does | |
11822
359eaf957bf1
Add <systemitem class="library"> tags to libavcodec and a few others.
diego
parents:
11758
diff
changeset
|
266 <emphasis role="bold">not</emphasis> contain the source for |
359eaf957bf1
Add <systemitem class="library"> tags to libavcodec and a few others.
diego
parents:
11758
diff
changeset
|
267 <systemitem class="library">libavcodec</systemitem>! |
9675 | 268 You must follow the steps above to obtain the source for this library. |
269 </para> | |
270 </note> | |
271 | |
272 <para> | |
273 With FFmpeg and my Matrox G400, I can view even the highest resolution DivX | |
11042 | 274 movies without dropped frames on my K6-2 500. |
9675 | 275 </para> |
276 </sect3> | |
277 | |
278 | |
279 <sect3 id="xanim"> | |
280 <title>XAnim codecs</title> | |
281 | |
282 <note> | |
283 <para> | |
284 Be advised that the XAnim binary codecs are packaged with a piece of text | |
285 claiming to be a legally binding software license which, besides other | |
286 restrictions, forbids the user to use the codecs in conjunction with any | |
287 program other than <application>XAnim</application>. However, the XAnim | |
288 author has yet to bring legal action against anyone for codec-related issues. | |
289 </para> | |
290 </note> | |
291 | |
292 <formalpara> | |
293 <title>INSTALLATION AND USAGE</title> | |
294 <para> | |
295 <application>MPlayer</application> is capable of employing the XAnim codecs | |
296 for decoding. Follow the instructions to enable them: | |
297 </para> | |
298 </formalpara> | |
299 | |
300 <procedure> | |
301 <step><para> | |
302 Download the codecs you wish to use from the | |
303 <ulink url="http://xanim.va.pubnix.com">XAnim site</ulink>. | |
9683 | 304 The <emphasis role="bold">3ivx</emphasis> codec is not there, but at the |
9675 | 305 <ulink url="http://www.3ivx.com">3ivx site</ulink>. |
306 </para></step> | |
307 <step><para> | |
9683 | 308 <emphasis role="bold">OR</emphasis> download the codecs pack from our |
309 <ulink url="http://www.mplayerhq.hu/MPlayer/releases/codecs/">codecs page</ulink> | |
310 </para></step> | |
311 <step><para> | |
9675 | 312 Use the <option>--with-xanimlibdir</option> option to tell |
313 <filename>configure</filename> where | |
314 to find the XAnim codecs. By default, it looks for them at | |
10229 | 315 <filename class="directory">/usr/local/lib/codecs</filename>, |
9675 | 316 <filename class="directory">/usr/local/lib/xanim/mods</filename>, |
317 <filename class="directory">/usr/lib/xanim/mods</filename> and | |
318 <filename class="directory">/usr/lib/xanim</filename>. | |
319 Alternatively you can set the environment variable | |
320 <envar>XANIM_MOD_DIR</envar> to the directory of the XAnim codecs. | |
321 </para></step> | |
322 <step><para> | |
323 Rename/symlink the files, cutting out the architecture stuff, so they | |
324 will have filenames like these: <filename>vid_cvid.xa</filename>, | |
325 <filename>vid_h263.xa</filename>, <filename>vid_iv50.xa</filename> | |
326 </para></step> | |
327 </procedure> | |
328 | |
329 <para> | |
330 XAnim is video codec family <systemitem>xanim</systemitem>, so you may want | |
331 to use the <option>-vfm xanim</option> option to tell <application>MPlayer</application> | |
332 to use them if possible. | |
333 </para> | |
334 | |
335 <para> | |
336 Tested codecs include: <emphasis role="bold">Indeo 3.2, 4.1, 5.0, CVID, 3ivX, | |
13111 | 337 H.263.</emphasis> |
9675 | 338 </para> |
339 </sect3> | |
340 | |
341 | |
342 <sect3 id="vivo-video"> | |
343 <title>VIVO video</title> | |
344 <para> | |
345 <application>MPlayer</application> can play Vivo (1.0 and 2.0) videos. The | |
13111 | 346 most suitable codec for 1.0 files is FFmpeg's H.263 decoder, you can use it |
9675 | 347 with the <option>-vc ffh263</option> option. For 2.0 files, use the |
348 Win32 DLL through the <option>-vc vivo</option> option. If you do not supply | |
349 command line options <application>MPlayer</application> selects the best codec | |
350 automatically. | |
351 </para> | |
352 </sect3> | |
353 | |
354 | |
355 <sect3 id="mpeg12"> | |
14024 | 356 <title>MPEG-1/2 video</title> |
9675 | 357 <para> |
14024 | 358 MPEG-1 and MPEG-2 are decoded by the multiplatform native <systemitem |
9675 | 359 class="library">libmpeg2</systemitem> library, whose source code is |
14024 | 360 included in <application>MPlayer</application>. We handle buggy MPEG-1/2 |
9675 | 361 video files by catching <systemitem>Signal 11</systemitem> |
362 (<systemitem>segmentation fault</systemitem>), and quickly | |
363 reinitializing the codec, continuing exactly from where the failure | |
364 occurred. This recovery technique has no measurable speed penalty. | |
365 </para> | |
366 </sect3> | |
367 | |
368 | |
12759
111a9feec18c
NSV added to formats, cinepak etc codec updates by Roberto Togni.
diego
parents:
12695
diff
changeset
|
369 <sect3 id="avicodecs"> |
111a9feec18c
NSV added to formats, cinepak etc codec updates by Roberto Togni.
diego
parents:
12695
diff
changeset
|
370 <title>MS Video1, Cinepak CVID, and other older codecs</title> |
9675 | 371 <para> |
12832 | 372 <application>MPlayer</application> is able to play most of the older codecs |
373 used in AVI and MOV files. | |
12759
111a9feec18c
NSV added to formats, cinepak etc codec updates by Roberto Togni.
diego
parents:
12695
diff
changeset
|
374 In the past they were decoded with binary Win32 codecs, but now we have |
111a9feec18c
NSV added to formats, cinepak etc codec updates by Roberto Togni.
diego
parents:
12695
diff
changeset
|
375 <emphasis role="bold">native codecs</emphasis> for most of them using |
111a9feec18c
NSV added to formats, cinepak etc codec updates by Roberto Togni.
diego
parents:
12695
diff
changeset
|
376 <link linkend="ffmpeg"><systemitem class="library">libavcodec</systemitem></link>. |
9675 | 377 </para> |
378 </sect3> | |
379 | |
380 | |
381 <sect3 id="realvideo"> | |
382 <title>RealVideo</title> | |
383 | |
384 <para> | |
385 <application>MPlayer</application> supports decoding all versions of | |
386 RealVideo: | |
387 | |
388 <itemizedlist> | |
389 <listitem><simpara> | |
11555 | 390 RealVideo 1.0, 2.0 (fourcc RV10, RV20) - en/decoding supported by |
9675 | 391 <systemitem class="library">libavcodec</systemitem> |
392 </simpara></listitem> | |
393 <listitem><simpara> | |
11555 | 394 RealVideo 3.0, 4.0 (fourcc RV30, RV40) - decoding supported by |
9675 | 395 <emphasis role="bold">RealPlayer libraries</emphasis> |
396 </simpara></listitem> | |
397 </itemizedlist> | |
398 </para> | |
399 | |
400 <para> | |
12648
c12639f67b24
Real codecs and Mac OS X, don't recommend installing Real player.
diego
parents:
12457
diff
changeset
|
401 Download Real codecs from |
12832 | 402 <ulink url="http://www.mplayerhq.hu/MPlayer/releases/codecs/">http://www.mplayerhq.hu/MPlayer/releases/codecs/</ulink> |
12648
c12639f67b24
Real codecs and Mac OS X, don't recommend installing Real player.
diego
parents:
12457
diff
changeset
|
403 and extract them to the |
c12639f67b24
Real codecs and Mac OS X, don't recommend installing Real player.
diego
parents:
12457
diff
changeset
|
404 <filename class="directory">/usr/local/lib/codecs</filename> directory. |
c12639f67b24
Real codecs and Mac OS X, don't recommend installing Real player.
diego
parents:
12457
diff
changeset
|
405 If you want to store them in a different location, pass the |
c12639f67b24
Real codecs and Mac OS X, don't recommend installing Real player.
diego
parents:
12457
diff
changeset
|
406 <option>--with-reallibdir</option> option to <command>configure</command>. |
9675 | 407 </para> |
408 | |
409 <note><para> | |
410 <application>RealPlayer</application> libraries currently | |
411 <emphasis role="bold">only work with Linux, FreeBSD, NetBSD and Cygwin on the x86, | |
12648
c12639f67b24
Real codecs and Mac OS X, don't recommend installing Real player.
diego
parents:
12457
diff
changeset
|
412 Alpha and PowerPC (Linux/Alpha and Linux/PowerPC have been tested) platforms and with Mac OS X</emphasis>. |
9675 | 413 </para></note> |
414 </sect3> | |
415 | |
416 | |
417 <sect3 id="xvid"> | |
9720
5cd40fe6ba7e
Updated XviD CVS instructions by Dmitry Baryshkov <lumag@qnc.ru>.
diego
parents:
9683
diff
changeset
|
418 <title>XviD</title> |
9675 | 419 |
420 <para> | |
9720
5cd40fe6ba7e
Updated XviD CVS instructions by Dmitry Baryshkov <lumag@qnc.ru>.
diego
parents:
9683
diff
changeset
|
421 <ulink url="http://www.xvid.org">XviD</ulink> is a forked development of the |
9675 | 422 OpenDivX codec. It happened when ProjectMayo changed OpenDivX to closed source |
423 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
|
424 then started XviD. So both projects have the same origin. |
9675 | 425 |
426 <itemizedlist> | |
427 <title>ADVANTAGES</title> | |
428 <listitem><simpara> | |
429 open source | |
430 </simpara></listitem> | |
431 <listitem><simpara> | |
432 its API is compatible with DivX4 so adding support for it is easy | |
433 </simpara></listitem> | |
434 <listitem><simpara> | |
435 2-pass encoding support | |
436 </simpara></listitem> | |
437 <listitem><simpara> | |
438 nice encoding quality, higher speed than DivX4 (you can optimize it for | |
439 your box while compiling) | |
440 </simpara></listitem> | |
441 </itemizedlist> | |
442 | |
443 <itemizedlist> | |
444 <title>DISADVANTAGES</title> | |
445 <listitem><simpara> | |
446 currently it does not properly <emphasis role="bold">decode</emphasis> all | |
11822
359eaf957bf1
Add <systemitem class="library"> tags to libavcodec and a few others.
diego
parents:
11758
diff
changeset
|
447 DivX/DivX4 files (no problem as |
359eaf957bf1
Add <systemitem class="library"> tags to libavcodec and a few others.
diego
parents:
11758
diff
changeset
|
448 <link linkend="ffmpeg"><systemitem class="library">libavcodec</systemitem></link> |
9675 | 449 can play them) |
450 </simpara></listitem> | |
451 <listitem><simpara> | |
452 under development | |
453 </simpara></listitem> | |
454 </itemizedlist> | |
455 </para> | |
456 | |
457 <procedure> | |
458 <title>INSTALLING XVID CVS</title> | |
459 <para> | |
9720
5cd40fe6ba7e
Updated XviD CVS instructions by Dmitry Baryshkov <lumag@qnc.ru>.
diego
parents:
9683
diff
changeset
|
460 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
|
461 instructions (you need at least autoconf 2.50, automake and libtool): |
9675 | 462 </para> |
463 <step><para> | |
464 <screen>cvs -z3 -d:pserver:anonymous@cvs.xvid.org:/xvid login</screen> | |
465 </para></step> | |
466 <step><para> | |
467 <screen>cvs -z3 -d:pserver:anonymous@cvs.xvid.org:/xvid co xvidcore</screen> | |
468 </para></step> | |
469 <step><para> | |
470 <screen>cd xvidcore/build/generic</screen> | |
471 </para></step> | |
472 <step><para> | |
9720
5cd40fe6ba7e
Updated XviD CVS instructions by Dmitry Baryshkov <lumag@qnc.ru>.
diego
parents:
9683
diff
changeset
|
473 <screen>./bootstrap.sh</screen> |
9675 | 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>./configure</screen> |
5cd40fe6ba7e
Updated XviD CVS instructions by Dmitry Baryshkov <lumag@qnc.ru>.
diego
parents:
9683
diff
changeset
|
477 You may have to add some options (examine the output of |
13223
4d3536e69177
- <screen> -> <command>, improves readibility and sense.
wight
parents:
13222
diff
changeset
|
478 <command>./configure --help</command>). |
9675 | 479 </para></step> |
480 <step><para> | |
9720
5cd40fe6ba7e
Updated XviD CVS instructions by Dmitry Baryshkov <lumag@qnc.ru>.
diego
parents:
9683
diff
changeset
|
481 <screen>make && make install</screen> |
5cd40fe6ba7e
Updated XviD CVS instructions by Dmitry Baryshkov <lumag@qnc.ru>.
diego
parents:
9683
diff
changeset
|
482 </para></step> |
5cd40fe6ba7e
Updated XviD CVS instructions by Dmitry Baryshkov <lumag@qnc.ru>.
diego
parents:
9683
diff
changeset
|
483 <step><para> |
5cd40fe6ba7e
Updated XviD CVS instructions by Dmitry Baryshkov <lumag@qnc.ru>.
diego
parents:
9683
diff
changeset
|
484 If you specified <option>--enable-divxcompat</option>, |
5cd40fe6ba7e
Updated XviD CVS instructions by Dmitry Baryshkov <lumag@qnc.ru>.
diego
parents:
9683
diff
changeset
|
485 copy <filename>../../src/divx4.h</filename> to |
9675 | 486 <filename class="directory">/usr/local/include/</filename>. |
487 </para></step> | |
488 <step><para> | |
489 Recompile <application>MPlayer</application> with | |
12000 | 490 <option>--with-xvidlibdir=<replaceable>/path/to/</replaceable>libxvidcore.a</option> |
491 <option>--with-xvidincdir=<replaceable>/path/to/</replaceable>xvid.h</option> | |
9675 | 492 </para></step> |
493 </procedure> | |
494 </sect3> | |
495 | |
496 | |
497 <sect3 id="sorenson"> | |
498 <title>Sorenson</title> | |
499 | |
500 <para> | |
501 Sorenson is a video codec developed by Sorenson Media and licensed to Apple who | |
502 distribute it with their <application>QuickTime Player</application>. We are | |
503 currently able to decode all version of Sorenson video files with the following | |
10132 | 504 decoders: |
9675 | 505 </para> |
506 | |
507 <itemizedlist> | |
508 <listitem><simpara> | |
10430 | 509 Sorenson Video v1 (fourcc <emphasis>SVQ1</emphasis>) - decoding supported |
510 by <emphasis role="bold">native codec</emphasis> | |
11822
359eaf957bf1
Add <systemitem class="library"> tags to libavcodec and a few others.
diego
parents:
11758
diff
changeset
|
511 (<link linkend="ffmpeg"><systemitem class="library">libavcodec</systemitem></link>) |
9675 | 512 </simpara></listitem> |
513 <listitem><simpara> | |
10430 | 514 Sorenson Video v3 (fourcc <emphasis>SVQ3</emphasis>) - decoding supported by |
515 <emphasis role="bold">native codec</emphasis> | |
11822
359eaf957bf1
Add <systemitem class="library"> tags to libavcodec and a few others.
diego
parents:
11758
diff
changeset
|
516 (<link linkend="ffmpeg"><systemitem class="library">libavcodec</systemitem></link>) |
9675 | 517 </simpara></listitem> |
518 </itemizedlist> | |
519 | |
520 <procedure> | |
9837 | 521 <title>COMPILING MPLAYER WITH QUICKTIME LIBRARIES SUPPORT</title> |
13223
4d3536e69177
- <screen> -> <command>, improves readibility and sense.
wight
parents:
13222
diff
changeset
|
522 <note><para>Currently only 32-bit Intel platforms are supported.</para></note> |
11540 | 523 <step><para>download <application>MPlayer</application> CVS</para></step> |
9675 | 524 <step><para>download QuickTime DLL pack from |
525 <ulink url="http://www.mplayerhq.hu/MPlayer/releases/codecs/"/> | |
526 </para></step> | |
527 <step><para>extract QuickTime DLL pack to your Win32 codecs directory | |
10188 | 528 (default: <filename class="directory">/usr/local/lib/codecs/</filename>) |
9675 | 529 </para></step> |
11540 | 530 <step><para>compile <application>MPlayer</application></para></step> |
9675 | 531 </procedure> |
532 | |
533 </sect3> | |
15326 | 534 |
535 <sect3 id="codec-x264"> | |
536 <title>x264</title> | |
537 | |
538 <sect4 id="codec-x264-whatis"> | |
539 <title>What is x264?</title> | |
540 <para> | |
541 <systemitem class="library">x264</systemitem> is a library for | |
542 creating H.264 video streams. | |
543 It is not 100% complete, but currently it has at least some kind | |
544 of support for most of the H.264 features which impact quality. | |
545 There are also many advanced features in the H.264 specification | |
546 which have nothing to do with video quality per se; many of these | |
547 are not yet implemented in | |
548 <systemitem class="library">x264</systemitem>. | |
549 </para> | |
550 | |
551 <itemizedlist> | |
552 <title>Encoder features</title> | |
553 <listitem><para>CAVLC/CABAC</para></listitem> | |
554 <listitem><para>Multi-references</para></listitem> | |
555 <listitem><para>Intra: all macroblock types (16x16 and 4x4 with | |
556 all predictions)</para></listitem> | |
557 <listitem><para>Inter P: all partitions (from 16x16 down to | |
558 4x4)</para></listitem> | |
559 <listitem><para>Inter B: partitions from 16x16 down to 8x8 | |
560 (including SKIP/DIRECT)</para></listitem> | |
561 <listitem><para>Ratecontrol: constant quantizer, constant bitrate, | |
562 or multipass ABR</para></listitem> | |
563 <listitem><para>Scene cut detection</para></listitem> | |
564 <listitem><para>Adaptive B-frame placement</para></listitem> | |
565 <listitem><para>B-frames as references / arbitrary frame | |
566 order</para></listitem> | |
567 </itemizedlist> | |
568 | |
569 <itemizedlist> | |
570 <title>Encoder limitations</title> | |
571 <listitem><para>No real RD</para></listitem> | |
572 </itemizedlist> | |
573 | |
574 | |
575 </sect4> | |
576 | |
15335 | 577 <sect4 id="codec-h264-whatis"> |
15326 | 578 <title>What is H.264?</title> |
579 <para> | |
580 H.264 is one name for a new digital video codec jointly developed | |
581 by the ITU and MPEG. | |
582 It can also be correctly referred to by the cumbersome names of | |
583 "ISO/IEC 14496-10" or "MPEG-4 Part 10". | |
584 More frequently, it is referred to as "MPEG-4 AVC" or just "AVC". | |
585 </para> | |
586 <para> | |
587 Whatever you call it, H.264 may be worth trying because it can | |
588 typically match the quality of MPEG-4 ASP with 5%-30% less | |
589 bitrate. | |
590 Actual results will depend on both the source material and the | |
591 encoder. | |
15370 | 592 The gains from using H.264 do not come for free: Decoding H.264 |
15326 | 593 streams seems to have steep CPU and memory requirements. |
594 For instance, on a 1733 MHz Athlon, a 1500kbps H.264 video uses | |
595 around 50% CPU to decode. | |
15370 | 596 By comparison, decoding a 1500kbps MPEG-4 ASP stream requires |
15326 | 597 around 10% CPU. |
598 This means that decoding high-definition streams is almost out of | |
599 the question for most users. | |
600 It also means that even a decent DVD rip may sometimes stutter on | |
601 processors slower than 2.0 GHz or so. | |
602 </para> | |
603 <para> | |
604 At least with <systemitem class="library">x264</systemitem>, | |
605 encoding requirements are not much worse than what you are used to | |
15370 | 606 with MPEG-4 ASP. |
15326 | 607 For instance, on a 1733 MHz Athlon a typical DVD encode would run |
608 at 5-15fps. | |
609 </para> | |
610 <para> | |
611 This document is not intended to explain the details of H.264, | |
612 but if you are interested in a brief overview, you may want to read | |
613 <ulink url="http://www.cdt.luth.se/~peppar/kurs/smd151/spie04-h264OverviewPaper.pdf">The H.264/AVC Advanced Video Coding Standard: Overview and Introduction to the Fidelity Range Extensions</ulink>. | |
614 </para> | |
615 </sect4> | |
616 | |
617 <sect4 id="codec-x264-playback"> | |
618 <title>How can I play H.264 videos with <application>MPlayer</application>?</title> | |
619 <para> | |
620 <application>MPlayer</application> uses | |
621 <systemitem class="library">libavcodec</systemitem>'s H.264 | |
622 decoder. | |
623 <systemitem class="library">libavcodec</systemitem> has had at | |
624 least minimally usable H.264 decoding since around July 2004, | |
625 however major changes and improvements have been implemented since | |
626 that time, both in terms of more functionalities supported and in | |
627 terms of improved CPU usage. | |
628 Just to be certain, it is always a good idea to use a recent CVS | |
629 checkout. | |
630 </para> | |
631 <para> | |
632 If you want a quick and easy way to know whether there have been | |
633 recent changes to <systemitem class="library">libavcodec</systemitem>'s | |
634 H.264 decoding, you might keep an eye on | |
635 <ulink url="http://mplayerhq.hu/cgi-bin/cvsweb.cgi/ffmpeg/libavcodec/h264.c?cvsroot=FFMpeg">FFmpeg CVS repository's web interface</ulink>. | |
636 </para> | |
637 </sect4> | |
638 | |
639 <sect4 id="codec-x264-encode"> | |
640 <title>How can I encode videos using <application>MEncoder</application> and <systemitem class="library">x264</systemitem>?</title> | |
641 <para> | |
642 If you have the subversion client installed, the latest x264 | |
643 sources can be gotten with this command: | |
644 <screen> | |
645 svn co svn://svn.videolan.org/x264/trunk x264 | |
646 </screen> | |
647 <application>MPlayer</application> sources are updated whenever | |
648 an <systemitem class="library">x264</systemitem> API change | |
649 occurs, so it is always suggested to use CVS | |
650 <application>MPlayer</application> as well. | |
651 Perhaps this situation will change when and if an | |
652 <systemitem class="library">x264</systemitem> "release" occurs. | |
653 Meanwhile, <systemitem class="library">x264</systemitem> should | |
654 be considered very unstable, in the sense that its programming | |
655 interface is subject to change. | |
656 </para> | |
657 <para> | |
658 <systemitem class="library">x264</systemitem> is built and | |
659 installed in the standard way: | |
660 <screen> | |
661 ./configure && make && sudo make install | |
662 </screen> | |
663 This installs libx264.a in /usr/local/lib and x264.h is placed in | |
664 /usr/local/include. | |
665 | |
666 With the <systemitem class="library">x264</systemitem> library | |
667 and header placed in the standard locations, building | |
668 <application>MPlayer</application> with | |
669 <systemitem class="library">x264</systemitem> support is easy. | |
670 Just run the standard: | |
671 <screen>./configure && make && sudo make install</screen> | |
672 The configure script will autodetect that you have satisfied the | |
673 requirements for <systemitem class="library">x264</systemitem>. | |
674 </para> | |
675 </sect4> | |
676 </sect3> | |
9675 | 677 </sect2> |
678 | |
679 <!-- ********** --> | |
680 | |
681 <sect2 id="audio-codecs"> | |
682 <title>Audio codecs</title> | |
683 | |
684 <itemizedlist> | |
685 <title>The most important audio codecs above all:</title> | |
686 <listitem><simpara> | |
11342 | 687 MPEG layer 1/2/3 (MP1/2/3) audio (<emphasis role="bold">native</emphasis> |
9675 | 688 code, with MMX/SSE/3DNow! optimization) |
689 </simpara></listitem> | |
690 <listitem><simpara> | |
13222 | 691 Windows Media Audio 7 and 8 (AKA WMAv1 and WMAv2) (<emphasis role="bold">native</emphasis> code, with |
11822
359eaf957bf1
Add <systemitem class="library"> tags to libavcodec and a few others.
diego
parents:
11758
diff
changeset
|
692 <link linkend="ffmpeg"><systemitem class="library">libavcodec</systemitem></link>) |
9675 | 693 </simpara></listitem> |
694 <listitem><simpara> | |
695 Windows Media Audio 9 (WMAv3) (using DMO DLL) | |
696 </simpara></listitem> | |
697 <listitem><simpara> | |
698 AC3 Dolby audio (<emphasis role="bold">native</emphasis> code, with | |
699 MMX/SSE/3DNow! optimization) | |
700 </simpara></listitem> | |
701 <listitem><simpara> | |
13532 | 702 AC3 passing through sound card hardware |
9675 | 703 </simpara></listitem> |
704 <listitem><simpara> | |
11342 | 705 AAC |
706 </simpara></listitem> | |
707 <listitem><simpara> | |
9675 | 708 Ogg Vorbis audio codec (<emphasis role="bold">native</emphasis> library) |
709 </simpara></listitem> | |
710 <listitem><simpara> | |
711 RealAudio: DNET (low bitrate AC3), Cook, Sipro and ATRAC3 | |
712 </simpara></listitem> | |
713 <listitem><simpara> | |
714 QuickTime: Qualcomm and QDesign audio codecs | |
715 </simpara></listitem> | |
716 <listitem><simpara> | |
717 VIVO audio (g723, Vivo Siren) | |
718 </simpara></listitem> | |
719 <listitem><simpara> | |
720 Voxware audio (using DirectShow DLL) | |
721 </simpara></listitem> | |
722 <listitem><simpara> | |
723 alaw and ulaw, various gsm, adpcm and pcm formats and other simple old | |
724 audio codecs | |
725 </simpara></listitem> | |
726 </itemizedlist> | |
727 | |
728 | |
729 <sect3 id="swac3"> | |
730 <title>Software AC3 decoding</title> | |
731 | |
732 <para> | |
733 This is the default decoder used for files with AC3 audio. | |
734 </para> | |
735 | |
736 <para> | |
737 The AC3 decoder can create audio output mixes for 2, 4, or 6 speakers. | |
738 When configured for 6 speakers, this decoder provides separate output of | |
739 all the AC3 channels to the sound driver, allowing for full "surround | |
740 sound" experience without the external AC3 decoder required to use the | |
741 hwac3 codec. | |
742 </para> | |
743 | |
744 <para> | |
745 Use the <option>-channels</option> option to select the number of output | |
746 channels. Use <option>-channels 2</option> for a stereo downmix. For a 4 | |
747 channel downmix (Left Front, Right Front, Left Surround and Right Surround | |
748 outputs), use <option>-channels 4</option>. In this case, any center | |
749 channel will be mixed equally to the front channels. <option>-channels | |
750 6</option> will output all the AC3 channels as they are encoded - in the | |
751 order Left, Right, Left Surround, Right Surround, Center and LFE. | |
752 </para> | |
753 | |
754 <para> | |
755 The default number of output channels is 2. | |
756 </para> | |
757 | |
758 <para> | |
759 To use more than 2 output channels, you will need to use OSS, and have a | |
760 sound card that supports the appropriate number of output channels via the | |
761 SNDCTL_DSP_CHANNELS ioctl. An example of a suitable driver is emu10k1 | |
762 (used by Soundblaster Live! cards) from August 2001 or newer (ALSA CVS is | |
763 also supposed to work). | |
764 </para> | |
765 </sect3> | |
766 | |
767 | |
768 <sect3 id="hwac3"> | |
769 <title>Hardware AC3 decoding</title> | |
770 <para> | |
12369 | 771 You need an AC3 capable sound card, with digital out (S/PDIF). The card's |
9675 | 772 driver must properly support the AFMT_AC3 format (C-Media does). Connect |
12369 | 773 your AC3 decoder to the S/PDIF output, and use the <option>-ac |
9675 | 774 hwac3</option> option. It is experimental but known to work with C-Media |
775 cards and Soundblaster Live! + ALSA (but not OSS) drivers and DXR3/Hollywood+ | |
776 MPEG decoder cards. | |
777 </para> | |
778 </sect3> | |
779 | |
780 | |
781 <sect3 id="libmad"> | |
782 <title>libmad support</title> | |
783 | |
784 <para> | |
13977 | 785 <ulink url="http://www.underbit.com/products/mad/">libmad</ulink> is a multiplatform, |
11342 | 786 integer (internally 24bit PCM) only |
9675 | 787 MPEG audio decoding library. It does not handle broken files well, and it |
11342 | 788 sometimes has problems with seeking, but it may perform better on FPU-less |
11343 | 789 (such as <link linkend="arm">ARM</link>) platform than mp3lib. |
9675 | 790 </para> |
791 | |
792 <para> | |
793 To enable support, compile with the <option>--enable-mad</option> configure | |
794 option. | |
795 </para> | |
796 </sect3> | |
797 | |
798 | |
799 <sect3 id="vivo-audio"> | |
800 <title>VIVO audio</title> | |
801 <para> | |
802 The audio codec used in VIVO files depends on whether it is a VIVO/1.0 or | |
803 VIVO/2.0 file. VIVO/1.0 files have <emphasis role="bold">g.723</emphasis> audio, | |
804 and VIVO/2.0 files have <emphasis role="bold">Vivo Siren</emphasis> audio. Both are | |
805 supported. | |
806 </para> | |
807 </sect3> | |
808 | |
809 | |
810 <sect3 id="realaudio"> | |
811 <title>RealAudio</title> | |
812 | |
813 <para> | |
814 <application>MPlayer</application> supports decoding nearly all versions of | |
815 RealAudio: | |
816 </para> | |
817 | |
818 <itemizedlist> | |
819 <listitem><simpara> | |
820 RealAudio DNET - decoding supported by | |
821 <systemitem class="library">liba52</systemitem> | |
822 </simpara></listitem> | |
823 <listitem><simpara> | |
824 RealAudio Cook/Sipro/ATRAC3 - decoding supported by | |
825 <emphasis role="bold">RealPlayer libraries</emphasis> | |
826 </simpara></listitem> | |
827 </itemizedlist> | |
828 | |
829 <para> | |
12695 | 830 Instructions on how to install the RealPlayer libraries are in the |
12648
c12639f67b24
Real codecs and Mac OS X, don't recommend installing Real player.
diego
parents:
12457
diff
changeset
|
831 <link linkend="realvideo">RealVideo</link> section. |
9675 | 832 </para> |
833 </sect3> | |
834 | |
835 <sect3 id="qdesign"> | |
836 <title>QDesign codecs</title> | |
837 <para> | |
838 QDesign audio streams (fourcc:<emphasis>QDMC, QDM2</emphasis>) are found | |
839 in MOV/QT files. Both versions of this codec can be decoded with QuickTime | |
840 libraries. For installation instructions please see the | |
841 <link linkend="sorenson">Sorenson video codec</link> section. | |
842 </para> | |
843 </sect3> | |
844 | |
845 <sect3 id="qualcomm"> | |
846 <title>Qualcomm codecs</title> | |
847 <para> | |
848 Qualcomm audio streams (fourcc:<emphasis>Qclp</emphasis>) is found | |
849 in MOV/QT files. It can be decoded with QuickTime | |
850 libraries. For installation instructions please see the | |
851 <link linkend="sorenson">Sorenson video codec</link> section. | |
852 </para> | |
853 </sect3> | |
9802 | 854 |
855 <sect3 id="aac"> | |
856 <title>AAC codec</title> | |
857 <para> | |
858 AAC (Advanced Audio Coding) is an audio codec sometimes found in MOV and MP4 | |
859 files. An open source decoder called FAAD is available from | |
10766 | 860 <ulink url="http://www.audiocoding.com"/>. |
14658 | 861 <application>MPlayer</application> includes a CVS snapshot of libfaad 2.1 |
862 beta, so you do not need to get it separately. | |
9802 | 863 </para> |
11031 | 864 |
865 <para> | |
866 If you use gcc 3.2 which fails to compile our internal FAAD or want to use | |
867 the external library for some other reason, download the library from the | |
14113 | 868 <ulink url="http://www.audiocoding.com/modules/mydownloads/">download page</ulink> |
13687 | 869 and pass <option>--enable-external-faad</option> to <filename>configure</filename>. |
11031 | 870 You do not need all of faad2 to decode AAC files, libfaad is enough. Build |
871 it like this: | |
872 <screen> | |
873 cd faad2/ | |
14700 | 874 sh bootstrap |
11031 | 875 ./configure |
876 cd libfaad | |
877 make | |
878 make install | |
879 </screen> | |
880 Binaries are not available from audiocoding.com, but you can (apt-)get Debian | |
14113 | 881 packages from <ulink url="http://hpisi.nerim.net">Christian Marillat's homepage</ulink>, |
11033
668f6aef703d
From: "Dominik 'Rathann' Mierzejewski" <dominik@rangers.eu.org>
gabucino
parents:
11031
diff
changeset
|
882 Mandrake RPMs from the <ulink url="http://plf.zarb.org">P.L.F</ulink> and RedHat RPMs |
12882 | 883 from <ulink url="http://greysector.rangers.eu.org/">Grey Sector</ulink>. |
11031 | 884 </para> |
9802 | 885 </sect3> |
886 | |
9675 | 887 </sect2> |
888 | |
889 <!-- ********** --> | |
890 | |
14061 | 891 <sect2 id="codec-importing"> |
9675 | 892 <title>Win32 codecs importing HOWTO</title> |
893 | |
894 <!-- TODO: a short paragraph of text would be nice here... --> | |
895 | |
896 <sect3 id="vfw-codecs"> | |
897 <title>VFW codecs</title> | |
898 | |
899 <para> | |
900 VFW (Video for Windows) is the old Video API for Windows. Its codecs have | |
901 the <filename>.DLL</filename> or (rarely) <filename>.DRV</filename> | |
902 extension. If <application>MPlayer</application> fails at playing your AVI | |
903 with this kind of message: | |
904 <screen>UNKNOWN video codec: HFYU (0x55594648)</screen> | |
905 </para> | |
906 | |
907 <para> | |
908 It means your AVI is encoded with a codec which has the HFYU fourcc (HFYU = | |
909 HuffYUV codec, DIV3 = DivX Low Motion, etc.). Now that you know this, you | |
910 have to find out which DLL Windows loads in order to play this file. In our | |
911 case, the <filename>system.ini</filename> contains this information in a | |
912 line that reads: | |
913 <programlisting>VIDC.HFYU=huffyuv.dll</programlisting> | |
914 </para> | |
915 | |
916 <para> | |
917 So you need the <filename>huffyuv.dll</filename> file. Note that the audio | |
918 codecs are specified by the MSACM prefix: | |
919 <programlisting>msacm.l3acm=L3codeca.acm</programlisting> | |
920 </para> | |
921 | |
922 <para> | |
923 This is the MP3 codec. Now that you have all the necessary information | |
924 (fourcc, codec file, sample AVI), submit your codec support request by | |
925 mail, and upload these files to the FTP site: | |
926 <systemitem role="url"> | |
927 ftp://ftp.mplayerhq.hu/MPlayer/incoming/[codecname]/ | |
928 </systemitem> | |
929 </para> | |
930 | |
931 <note><para>On Windows NT/2000/XP search for this info in the registry, | |
932 e.g. search for "VIDC.HFYU". To find out how to do this, look at | |
933 the old DirectShow method below. | |
934 </para></note> | |
935 </sect3> | |
936 | |
937 | |
938 <sect3 id="dshow-codecs"> | |
939 <title>DirectShow codecs</title> | |
940 | |
941 <para> | |
942 DirectShow is the newer Video API, which is even worse than its predecessor. | |
943 Things are harder with DirectShow, since | |
944 <itemizedlist> | |
945 <listitem><simpara> | |
946 <filename>system.ini</filename> does not contain the needed information, | |
947 instead it is stored in the registry and | |
948 </simpara></listitem> | |
949 <listitem><simpara> | |
950 we need the GUID of the codec. | |
951 </simpara></listitem> | |
952 </itemizedlist> | |
953 </para> | |
954 | |
955 <procedure> | |
956 <title>New Method:</title> | |
957 <para> | |
958 Using <application>Microsoft GraphEdit</application> (fast) | |
959 </para> | |
960 <step><para> | |
961 Get <application>GraphEdit</application> from either DirectX SDK or | |
13927 | 962 <ulink url="http://doom9.net">doom9</ulink> |
9675 | 963 </para></step> |
964 <step><para> | |
965 Start <command>graphedit.exe</command>. | |
966 </para></step> | |
967 <step><para> | |
968 From the menu select Graph -> Insert Filters. | |
969 </para></step> | |
970 <step><para> | |
971 Expand item <systemitem>DirectShow Filters</systemitem> | |
972 </para></step> | |
973 <step><para> | |
974 Select the right codec name and expand item. | |
975 </para></step> | |
976 <step><para> | |
977 In the entry <systemitem>DisplayName</systemitem> look at the text in | |
978 winged brackets after the backslash and write it down (five dash-delimited | |
979 blocks, the GUID). | |
980 </para></step> | |
981 <step><para> | |
982 The codec binary is the file specified in the <systemitem>Filename</systemitem> | |
983 entry. | |
984 </para></step> | |
985 </procedure> | |
986 | |
987 <note> | |
988 <para> | |
989 If there is no <systemitem>Filename</systemitem> and | |
990 <systemitem>DisplayName</systemitem> contains something like | |
991 <systemitem>device:dmo</systemitem>, then it is a DMO-Codec. | |
992 </para> | |
993 </note> | |
994 | |
995 <procedure> | |
996 <title>Old Method:</title> | |
997 <para> | |
998 Take a deep breath and start searching the registry... | |
999 </para> | |
1000 <step><para> | |
1001 Start <command>regedit</command>. | |
1002 </para></step> | |
1003 <step><para> | |
1004 Press <keycap>Ctrl</keycap>+<keycap>F</keycap>, disable the first two | |
1005 checkboxes, and enable the third. Type in the fourcc of the codec (e.g. | |
1006 <userinput>TM20</userinput>). | |
1007 </para></step> | |
1008 <step><para> | |
1009 You should see a field which contains the path and the filename (e.g. | |
1010 <filename>C:\WINDOWS\SYSTEM\TM20DEC.AX</filename>). | |
1011 </para></step> | |
1012 <step><para> | |
1013 Now that you have the file, we need the GUID. Try searching again, but | |
1014 now search for the codec's name, not the fourcc. Its name can be acquired | |
1015 when Media Player is playing the file, by checking | |
1016 <guimenu>File</guimenu> -> <guisubmenu>Properties</guisubmenu> -> | |
1017 <guimenuitem>Advanced</guimenuitem>. | |
1018 If not, you are out of luck. Try guessing (e.g. search for TrueMotion). | |
1019 </para></step> | |
1020 <step><para> | |
1021 If the GUID is found you should see a <guilabel>FriendlyName</guilabel> | |
1022 and a <guilabel>CLSID</guilabel> field. Write down the 16 byte CLSID, | |
1023 this is the GUID we need. | |
1024 </para></step> | |
1025 </procedure> | |
1026 | |
1027 <note> | |
1028 <para> | |
1029 If searching fails, try enabling all the checkboxes. You may have | |
1030 false hits, but you may get lucky... | |
1031 </para> | |
1032 </note> | |
1033 | |
1034 <para> | |
1035 Now that you have all the necessary information (fourcc, GUID, codec file, | |
1036 sample AVI), submit your codec support request by mail, and upload these files | |
1037 to the FTP site: | |
1038 <systemitem | |
1039 role="url">ftp://ftp.mplayerhq.hu/MPlayer/incoming/[codecname]/ | |
1040 </systemitem> | |
1041 </para> | |
14004
3d698ac7ec9a
Explain what you need to read to add a codec yourself, patch by
diego
parents:
13977
diff
changeset
|
1042 |
3d698ac7ec9a
Explain what you need to read to add a codec yourself, patch by
diego
parents:
13977
diff
changeset
|
1043 <para> |
3d698ac7ec9a
Explain what you need to read to add a codec yourself, patch by
diego
parents:
13977
diff
changeset
|
1044 If you want to add a codec yourself, read |
3d698ac7ec9a
Explain what you need to read to add a codec yourself, patch by
diego
parents:
13977
diff
changeset
|
1045 <ulink url="http://www.mplayerhq.hu/MPlayer/DOCS/tech/codecs.conf.txt">DOCS/tech/codecs.conf.txt</ulink>. |
3d698ac7ec9a
Explain what you need to read to add a codec yourself, patch by
diego
parents:
13977
diff
changeset
|
1046 </para> |
3d698ac7ec9a
Explain what you need to read to add a codec yourself, patch by
diego
parents:
13977
diff
changeset
|
1047 |
9675 | 1048 </sect3> |
1049 </sect2> | |
1050 </sect1> |