Mercurial > mplayer.hg
annotate DOCS/xml/en/codecs.xml @ 15942:3eaceddfd30c
Last nit for this entry, by "The Wanderer"
author | gpoirier |
---|---|
date | Fri, 08 Jul 2005 12:12:32 +0000 |
parents | b3924612667a |
children | f9ffda85aeee |
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> | |
15710 | 421 <ulink url="http://www.xvid.org">XviD</ulink> is a free software MPEG-4 ASP |
15871 | 422 compliant video codec, which features two pass encoding and full MPEG-4 ASP |
15709 | 423 support, making it a lot more efficient than the well-known DivX codec. |
424 It yields very good video quality and good performance due to CPU | |
425 optimizations for most modern processors. | |
426 </para> | |
427 <para> | |
428 It began as a forked development of the OpenDivX codec. | |
429 This happened when ProjectMayo changed OpenDivX to closed source | |
9675 | 430 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
|
431 then started XviD. So both projects have the same origin. |
9675 | 432 </para> |
433 | |
434 <procedure> | |
15709 | 435 <title>Installing <systemitem class="library">XviD</systemitem></title> |
9675 | 436 <para> |
15709 | 437 Like most open source software, it is available in two flavors: |
438 <ulink url="http://www.xvid.org/downloads.html">official releases</ulink> | |
439 and the CVS version. | |
440 The CVS version is usually stable enough to use, as most of the time it | |
441 features fixes for bugs that exist in releases. | |
442 Here is what to do to make <systemitem class="library">XviD</systemitem> | |
443 CVS work with <application>MEncoder</application> (you need at least | |
444 autoconf 2.50, automake and libtool): | |
9675 | 445 </para> |
446 <step><para> | |
447 <screen>cvs -z3 -d:pserver:anonymous@cvs.xvid.org:/xvid login</screen> | |
448 </para></step> | |
449 <step><para> | |
450 <screen>cvs -z3 -d:pserver:anonymous@cvs.xvid.org:/xvid co xvidcore</screen> | |
451 </para></step> | |
452 <step><para> | |
453 <screen>cd xvidcore/build/generic</screen> | |
454 </para></step> | |
455 <step><para> | |
9720
5cd40fe6ba7e
Updated XviD CVS instructions by Dmitry Baryshkov <lumag@qnc.ru>.
diego
parents:
9683
diff
changeset
|
456 <screen>./bootstrap.sh</screen> |
9675 | 457 </para></step> |
458 <step><para> | |
9720
5cd40fe6ba7e
Updated XviD CVS instructions by Dmitry Baryshkov <lumag@qnc.ru>.
diego
parents:
9683
diff
changeset
|
459 <screen>./configure</screen> |
5cd40fe6ba7e
Updated XviD CVS instructions by Dmitry Baryshkov <lumag@qnc.ru>.
diego
parents:
9683
diff
changeset
|
460 You may have to add some options (examine the output of |
13223
4d3536e69177
- <screen> -> <command>, improves readibility and sense.
wight
parents:
13222
diff
changeset
|
461 <command>./configure --help</command>). |
9675 | 462 </para></step> |
463 <step><para> | |
9720
5cd40fe6ba7e
Updated XviD CVS instructions by Dmitry Baryshkov <lumag@qnc.ru>.
diego
parents:
9683
diff
changeset
|
464 <screen>make && make install</screen> |
5cd40fe6ba7e
Updated XviD CVS instructions by Dmitry Baryshkov <lumag@qnc.ru>.
diego
parents:
9683
diff
changeset
|
465 </para></step> |
5cd40fe6ba7e
Updated XviD CVS instructions by Dmitry Baryshkov <lumag@qnc.ru>.
diego
parents:
9683
diff
changeset
|
466 <step><para> |
5cd40fe6ba7e
Updated XviD CVS instructions by Dmitry Baryshkov <lumag@qnc.ru>.
diego
parents:
9683
diff
changeset
|
467 If you specified <option>--enable-divxcompat</option>, |
5cd40fe6ba7e
Updated XviD CVS instructions by Dmitry Baryshkov <lumag@qnc.ru>.
diego
parents:
9683
diff
changeset
|
468 copy <filename>../../src/divx4.h</filename> to |
9675 | 469 <filename class="directory">/usr/local/include/</filename>. |
470 </para></step> | |
471 <step><para> | |
472 Recompile <application>MPlayer</application> with | |
12000 | 473 <option>--with-xvidlibdir=<replaceable>/path/to/</replaceable>libxvidcore.a</option> |
474 <option>--with-xvidincdir=<replaceable>/path/to/</replaceable>xvid.h</option> | |
9675 | 475 </para></step> |
476 </procedure> | |
477 </sect3> | |
478 | |
479 | |
480 <sect3 id="sorenson"> | |
481 <title>Sorenson</title> | |
482 | |
483 <para> | |
484 Sorenson is a video codec developed by Sorenson Media and licensed to Apple who | |
485 distribute it with their <application>QuickTime Player</application>. We are | |
486 currently able to decode all version of Sorenson video files with the following | |
10132 | 487 decoders: |
9675 | 488 </para> |
489 | |
490 <itemizedlist> | |
491 <listitem><simpara> | |
10430 | 492 Sorenson Video v1 (fourcc <emphasis>SVQ1</emphasis>) - decoding supported |
493 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
|
494 (<link linkend="ffmpeg"><systemitem class="library">libavcodec</systemitem></link>) |
9675 | 495 </simpara></listitem> |
496 <listitem><simpara> | |
10430 | 497 Sorenson Video v3 (fourcc <emphasis>SVQ3</emphasis>) - decoding supported by |
498 <emphasis role="bold">native codec</emphasis> | |
11822
359eaf957bf1
Add <systemitem class="library"> tags to libavcodec and a few others.
diego
parents:
11758
diff
changeset
|
499 (<link linkend="ffmpeg"><systemitem class="library">libavcodec</systemitem></link>) |
9675 | 500 </simpara></listitem> |
501 </itemizedlist> | |
502 | |
503 <procedure> | |
9837 | 504 <title>COMPILING MPLAYER WITH QUICKTIME LIBRARIES SUPPORT</title> |
13223
4d3536e69177
- <screen> -> <command>, improves readibility and sense.
wight
parents:
13222
diff
changeset
|
505 <note><para>Currently only 32-bit Intel platforms are supported.</para></note> |
11540 | 506 <step><para>download <application>MPlayer</application> CVS</para></step> |
9675 | 507 <step><para>download QuickTime DLL pack from |
508 <ulink url="http://www.mplayerhq.hu/MPlayer/releases/codecs/"/> | |
509 </para></step> | |
510 <step><para>extract QuickTime DLL pack to your Win32 codecs directory | |
10188 | 511 (default: <filename class="directory">/usr/local/lib/codecs/</filename>) |
9675 | 512 </para></step> |
11540 | 513 <step><para>compile <application>MPlayer</application></para></step> |
9675 | 514 </procedure> |
515 | |
516 </sect3> | |
15326 | 517 |
518 <sect3 id="codec-x264"> | |
519 <title>x264</title> | |
520 | |
521 <sect4 id="codec-x264-whatis"> | |
522 <title>What is x264?</title> | |
523 <para> | |
524 <systemitem class="library">x264</systemitem> is a library for | |
525 creating H.264 video streams. | |
526 It is not 100% complete, but currently it has at least some kind | |
527 of support for most of the H.264 features which impact quality. | |
528 There are also many advanced features in the H.264 specification | |
529 which have nothing to do with video quality per se; many of these | |
530 are not yet implemented in | |
531 <systemitem class="library">x264</systemitem>. | |
532 </para> | |
533 | |
534 <itemizedlist> | |
535 <title>Encoder features</title> | |
536 <listitem><para>CAVLC/CABAC</para></listitem> | |
537 <listitem><para>Multi-references</para></listitem> | |
538 <listitem><para>Intra: all macroblock types (16x16 and 4x4 with | |
539 all predictions)</para></listitem> | |
540 <listitem><para>Inter P: all partitions (from 16x16 down to | |
541 4x4)</para></listitem> | |
542 <listitem><para>Inter B: partitions from 16x16 down to 8x8 | |
543 (including SKIP/DIRECT)</para></listitem> | |
544 <listitem><para>Ratecontrol: constant quantizer, constant bitrate, | |
545 or multipass ABR</para></listitem> | |
546 <listitem><para>Scene cut detection</para></listitem> | |
547 <listitem><para>Adaptive B-frame placement</para></listitem> | |
548 <listitem><para>B-frames as references / arbitrary frame | |
549 order</para></listitem> | |
550 </itemizedlist> | |
551 | |
552 <itemizedlist> | |
553 <title>Encoder limitations</title> | |
554 <listitem><para>No real RD</para></listitem> | |
555 </itemizedlist> | |
556 | |
557 | |
558 </sect4> | |
559 | |
15335 | 560 <sect4 id="codec-h264-whatis"> |
15326 | 561 <title>What is H.264?</title> |
562 <para> | |
563 H.264 is one name for a new digital video codec jointly developed | |
564 by the ITU and MPEG. | |
565 It can also be correctly referred to by the cumbersome names of | |
566 "ISO/IEC 14496-10" or "MPEG-4 Part 10". | |
567 More frequently, it is referred to as "MPEG-4 AVC" or just "AVC". | |
568 </para> | |
569 <para> | |
570 Whatever you call it, H.264 may be worth trying because it can | |
571 typically match the quality of MPEG-4 ASP with 5%-30% less | |
572 bitrate. | |
573 Actual results will depend on both the source material and the | |
574 encoder. | |
15370 | 575 The gains from using H.264 do not come for free: Decoding H.264 |
15326 | 576 streams seems to have steep CPU and memory requirements. |
15915 | 577 For instance, on a 1733 MHz Athlon, a DVD-resolution 1500kbps H.264 |
578 video requires around 35% CPU to decode. | |
579 By comparison, decoding a DVD-resolution 1500kbps MPEG-4 ASP stream | |
580 requires around 10% CPU. | |
15326 | 581 This means that decoding high-definition streams is almost out of |
582 the question for most users. | |
583 It also means that even a decent DVD rip may sometimes stutter on | |
584 processors slower than 2.0 GHz or so. | |
585 </para> | |
586 <para> | |
587 At least with <systemitem class="library">x264</systemitem>, | |
588 encoding requirements are not much worse than what you are used to | |
15370 | 589 with MPEG-4 ASP. |
15326 | 590 For instance, on a 1733 MHz Athlon a typical DVD encode would run |
591 at 5-15fps. | |
592 </para> | |
593 <para> | |
594 This document is not intended to explain the details of H.264, | |
595 but if you are interested in a brief overview, you may want to read | |
596 <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>. | |
597 </para> | |
598 </sect4> | |
599 | |
600 <sect4 id="codec-x264-playback"> | |
601 <title>How can I play H.264 videos with <application>MPlayer</application>?</title> | |
602 <para> | |
603 <application>MPlayer</application> uses | |
604 <systemitem class="library">libavcodec</systemitem>'s H.264 | |
605 decoder. | |
606 <systemitem class="library">libavcodec</systemitem> has had at | |
607 least minimally usable H.264 decoding since around July 2004, | |
608 however major changes and improvements have been implemented since | |
609 that time, both in terms of more functionalities supported and in | |
610 terms of improved CPU usage. | |
611 Just to be certain, it is always a good idea to use a recent CVS | |
612 checkout. | |
613 </para> | |
614 <para> | |
615 If you want a quick and easy way to know whether there have been | |
616 recent changes to <systemitem class="library">libavcodec</systemitem>'s | |
617 H.264 decoding, you might keep an eye on | |
618 <ulink url="http://mplayerhq.hu/cgi-bin/cvsweb.cgi/ffmpeg/libavcodec/h264.c?cvsroot=FFMpeg">FFmpeg CVS repository's web interface</ulink>. | |
619 </para> | |
620 </sect4> | |
621 | |
622 <sect4 id="codec-x264-encode"> | |
623 <title>How can I encode videos using <application>MEncoder</application> and <systemitem class="library">x264</systemitem>?</title> | |
624 <para> | |
625 If you have the subversion client installed, the latest x264 | |
626 sources can be gotten with this command: | |
627 <screen> | |
628 svn co svn://svn.videolan.org/x264/trunk x264 | |
629 </screen> | |
630 <application>MPlayer</application> sources are updated whenever | |
631 an <systemitem class="library">x264</systemitem> API change | |
632 occurs, so it is always suggested to use CVS | |
633 <application>MPlayer</application> as well. | |
634 Perhaps this situation will change when and if an | |
635 <systemitem class="library">x264</systemitem> "release" occurs. | |
636 Meanwhile, <systemitem class="library">x264</systemitem> should | |
637 be considered very unstable, in the sense that its programming | |
638 interface is subject to change. | |
639 </para> | |
640 <para> | |
641 <systemitem class="library">x264</systemitem> is built and | |
642 installed in the standard way: | |
643 <screen> | |
644 ./configure && make && sudo make install | |
645 </screen> | |
646 This installs libx264.a in /usr/local/lib and x264.h is placed in | |
647 /usr/local/include. | |
648 | |
649 With the <systemitem class="library">x264</systemitem> library | |
650 and header placed in the standard locations, building | |
651 <application>MPlayer</application> with | |
652 <systemitem class="library">x264</systemitem> support is easy. | |
653 Just run the standard: | |
654 <screen>./configure && make && sudo make install</screen> | |
655 The configure script will autodetect that you have satisfied the | |
656 requirements for <systemitem class="library">x264</systemitem>. | |
657 </para> | |
658 </sect4> | |
659 </sect3> | |
9675 | 660 </sect2> |
661 | |
662 <!-- ********** --> | |
663 | |
664 <sect2 id="audio-codecs"> | |
665 <title>Audio codecs</title> | |
666 | |
667 <itemizedlist> | |
668 <title>The most important audio codecs above all:</title> | |
669 <listitem><simpara> | |
11342 | 670 MPEG layer 1/2/3 (MP1/2/3) audio (<emphasis role="bold">native</emphasis> |
9675 | 671 code, with MMX/SSE/3DNow! optimization) |
672 </simpara></listitem> | |
673 <listitem><simpara> | |
13222 | 674 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
|
675 <link linkend="ffmpeg"><systemitem class="library">libavcodec</systemitem></link>) |
9675 | 676 </simpara></listitem> |
677 <listitem><simpara> | |
678 Windows Media Audio 9 (WMAv3) (using DMO DLL) | |
679 </simpara></listitem> | |
680 <listitem><simpara> | |
681 AC3 Dolby audio (<emphasis role="bold">native</emphasis> code, with | |
682 MMX/SSE/3DNow! optimization) | |
683 </simpara></listitem> | |
684 <listitem><simpara> | |
13532 | 685 AC3 passing through sound card hardware |
9675 | 686 </simpara></listitem> |
687 <listitem><simpara> | |
11342 | 688 AAC |
689 </simpara></listitem> | |
690 <listitem><simpara> | |
9675 | 691 Ogg Vorbis audio codec (<emphasis role="bold">native</emphasis> library) |
692 </simpara></listitem> | |
693 <listitem><simpara> | |
694 RealAudio: DNET (low bitrate AC3), Cook, Sipro and ATRAC3 | |
695 </simpara></listitem> | |
696 <listitem><simpara> | |
697 QuickTime: Qualcomm and QDesign audio codecs | |
698 </simpara></listitem> | |
699 <listitem><simpara> | |
700 VIVO audio (g723, Vivo Siren) | |
701 </simpara></listitem> | |
702 <listitem><simpara> | |
703 Voxware audio (using DirectShow DLL) | |
704 </simpara></listitem> | |
705 <listitem><simpara> | |
706 alaw and ulaw, various gsm, adpcm and pcm formats and other simple old | |
707 audio codecs | |
708 </simpara></listitem> | |
709 </itemizedlist> | |
710 | |
711 | |
712 <sect3 id="swac3"> | |
713 <title>Software AC3 decoding</title> | |
714 | |
715 <para> | |
716 This is the default decoder used for files with AC3 audio. | |
717 </para> | |
718 | |
719 <para> | |
720 The AC3 decoder can create audio output mixes for 2, 4, or 6 speakers. | |
721 When configured for 6 speakers, this decoder provides separate output of | |
722 all the AC3 channels to the sound driver, allowing for full "surround | |
723 sound" experience without the external AC3 decoder required to use the | |
724 hwac3 codec. | |
725 </para> | |
726 | |
727 <para> | |
728 Use the <option>-channels</option> option to select the number of output | |
729 channels. Use <option>-channels 2</option> for a stereo downmix. For a 4 | |
730 channel downmix (Left Front, Right Front, Left Surround and Right Surround | |
731 outputs), use <option>-channels 4</option>. In this case, any center | |
732 channel will be mixed equally to the front channels. <option>-channels | |
733 6</option> will output all the AC3 channels as they are encoded - in the | |
734 order Left, Right, Left Surround, Right Surround, Center and LFE. | |
735 </para> | |
736 | |
737 <para> | |
738 The default number of output channels is 2. | |
739 </para> | |
740 | |
741 <para> | |
742 To use more than 2 output channels, you will need to use OSS, and have a | |
743 sound card that supports the appropriate number of output channels via the | |
744 SNDCTL_DSP_CHANNELS ioctl. An example of a suitable driver is emu10k1 | |
745 (used by Soundblaster Live! cards) from August 2001 or newer (ALSA CVS is | |
746 also supposed to work). | |
747 </para> | |
748 </sect3> | |
749 | |
750 | |
751 <sect3 id="hwac3"> | |
752 <title>Hardware AC3 decoding</title> | |
753 <para> | |
12369 | 754 You need an AC3 capable sound card, with digital out (S/PDIF). The card's |
9675 | 755 driver must properly support the AFMT_AC3 format (C-Media does). Connect |
12369 | 756 your AC3 decoder to the S/PDIF output, and use the <option>-ac |
9675 | 757 hwac3</option> option. It is experimental but known to work with C-Media |
758 cards and Soundblaster Live! + ALSA (but not OSS) drivers and DXR3/Hollywood+ | |
759 MPEG decoder cards. | |
760 </para> | |
761 </sect3> | |
762 | |
763 | |
764 <sect3 id="libmad"> | |
765 <title>libmad support</title> | |
766 | |
767 <para> | |
13977 | 768 <ulink url="http://www.underbit.com/products/mad/">libmad</ulink> is a multiplatform, |
11342 | 769 integer (internally 24bit PCM) only |
9675 | 770 MPEG audio decoding library. It does not handle broken files well, and it |
11342 | 771 sometimes has problems with seeking, but it may perform better on FPU-less |
11343 | 772 (such as <link linkend="arm">ARM</link>) platform than mp3lib. |
9675 | 773 </para> |
774 | |
775 <para> | |
776 To enable support, compile with the <option>--enable-mad</option> configure | |
777 option. | |
778 </para> | |
779 </sect3> | |
780 | |
781 | |
782 <sect3 id="vivo-audio"> | |
783 <title>VIVO audio</title> | |
784 <para> | |
785 The audio codec used in VIVO files depends on whether it is a VIVO/1.0 or | |
786 VIVO/2.0 file. VIVO/1.0 files have <emphasis role="bold">g.723</emphasis> audio, | |
787 and VIVO/2.0 files have <emphasis role="bold">Vivo Siren</emphasis> audio. Both are | |
788 supported. | |
789 </para> | |
790 </sect3> | |
791 | |
792 | |
793 <sect3 id="realaudio"> | |
794 <title>RealAudio</title> | |
795 | |
796 <para> | |
797 <application>MPlayer</application> supports decoding nearly all versions of | |
798 RealAudio: | |
799 </para> | |
800 | |
801 <itemizedlist> | |
802 <listitem><simpara> | |
803 RealAudio DNET - decoding supported by | |
804 <systemitem class="library">liba52</systemitem> | |
805 </simpara></listitem> | |
806 <listitem><simpara> | |
807 RealAudio Cook/Sipro/ATRAC3 - decoding supported by | |
808 <emphasis role="bold">RealPlayer libraries</emphasis> | |
809 </simpara></listitem> | |
810 </itemizedlist> | |
811 | |
812 <para> | |
12695 | 813 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
|
814 <link linkend="realvideo">RealVideo</link> section. |
9675 | 815 </para> |
816 </sect3> | |
817 | |
818 <sect3 id="qdesign"> | |
819 <title>QDesign codecs</title> | |
820 <para> | |
821 QDesign audio streams (fourcc:<emphasis>QDMC, QDM2</emphasis>) are found | |
822 in MOV/QT files. Both versions of this codec can be decoded with QuickTime | |
823 libraries. For installation instructions please see the | |
824 <link linkend="sorenson">Sorenson video codec</link> section. | |
825 </para> | |
826 </sect3> | |
827 | |
828 <sect3 id="qualcomm"> | |
829 <title>Qualcomm codecs</title> | |
830 <para> | |
831 Qualcomm audio streams (fourcc:<emphasis>Qclp</emphasis>) is found | |
832 in MOV/QT files. It can be decoded with QuickTime | |
833 libraries. For installation instructions please see the | |
834 <link linkend="sorenson">Sorenson video codec</link> section. | |
835 </para> | |
836 </sect3> | |
9802 | 837 |
838 <sect3 id="aac"> | |
839 <title>AAC codec</title> | |
840 <para> | |
841 AAC (Advanced Audio Coding) is an audio codec sometimes found in MOV and MP4 | |
842 files. An open source decoder called FAAD is available from | |
10766 | 843 <ulink url="http://www.audiocoding.com"/>. |
14658 | 844 <application>MPlayer</application> includes a CVS snapshot of libfaad 2.1 |
845 beta, so you do not need to get it separately. | |
9802 | 846 </para> |
11031 | 847 |
848 <para> | |
849 If you use gcc 3.2 which fails to compile our internal FAAD or want to use | |
850 the external library for some other reason, download the library from the | |
14113 | 851 <ulink url="http://www.audiocoding.com/modules/mydownloads/">download page</ulink> |
13687 | 852 and pass <option>--enable-external-faad</option> to <filename>configure</filename>. |
11031 | 853 You do not need all of faad2 to decode AAC files, libfaad is enough. Build |
854 it like this: | |
855 <screen> | |
856 cd faad2/ | |
14700 | 857 sh bootstrap |
11031 | 858 ./configure |
859 cd libfaad | |
860 make | |
861 make install | |
862 </screen> | |
863 Binaries are not available from audiocoding.com, but you can (apt-)get Debian | |
14113 | 864 packages from <ulink url="http://hpisi.nerim.net">Christian Marillat's homepage</ulink>, |
15894 | 865 Mandrake/Mandriva RPMs from the <ulink url="http://plf.zarb.org">P.L.F</ulink> and RedHat RPMs |
12882 | 866 from <ulink url="http://greysector.rangers.eu.org/">Grey Sector</ulink>. |
11031 | 867 </para> |
9802 | 868 </sect3> |
869 | |
9675 | 870 </sect2> |
871 | |
872 <!-- ********** --> | |
873 | |
14061 | 874 <sect2 id="codec-importing"> |
9675 | 875 <title>Win32 codecs importing HOWTO</title> |
876 | |
877 <!-- TODO: a short paragraph of text would be nice here... --> | |
878 | |
879 <sect3 id="vfw-codecs"> | |
880 <title>VFW codecs</title> | |
881 | |
882 <para> | |
883 VFW (Video for Windows) is the old Video API for Windows. Its codecs have | |
884 the <filename>.DLL</filename> or (rarely) <filename>.DRV</filename> | |
885 extension. If <application>MPlayer</application> fails at playing your AVI | |
886 with this kind of message: | |
887 <screen>UNKNOWN video codec: HFYU (0x55594648)</screen> | |
888 </para> | |
889 | |
890 <para> | |
891 It means your AVI is encoded with a codec which has the HFYU fourcc (HFYU = | |
892 HuffYUV codec, DIV3 = DivX Low Motion, etc.). Now that you know this, you | |
893 have to find out which DLL Windows loads in order to play this file. In our | |
894 case, the <filename>system.ini</filename> contains this information in a | |
895 line that reads: | |
896 <programlisting>VIDC.HFYU=huffyuv.dll</programlisting> | |
897 </para> | |
898 | |
899 <para> | |
900 So you need the <filename>huffyuv.dll</filename> file. Note that the audio | |
901 codecs are specified by the MSACM prefix: | |
902 <programlisting>msacm.l3acm=L3codeca.acm</programlisting> | |
903 </para> | |
904 | |
905 <para> | |
906 This is the MP3 codec. Now that you have all the necessary information | |
907 (fourcc, codec file, sample AVI), submit your codec support request by | |
908 mail, and upload these files to the FTP site: | |
909 <systemitem role="url"> | |
910 ftp://ftp.mplayerhq.hu/MPlayer/incoming/[codecname]/ | |
911 </systemitem> | |
912 </para> | |
913 | |
914 <note><para>On Windows NT/2000/XP search for this info in the registry, | |
915 e.g. search for "VIDC.HFYU". To find out how to do this, look at | |
916 the old DirectShow method below. | |
917 </para></note> | |
918 </sect3> | |
919 | |
920 | |
921 <sect3 id="dshow-codecs"> | |
922 <title>DirectShow codecs</title> | |
923 | |
924 <para> | |
925 DirectShow is the newer Video API, which is even worse than its predecessor. | |
926 Things are harder with DirectShow, since | |
927 <itemizedlist> | |
928 <listitem><simpara> | |
929 <filename>system.ini</filename> does not contain the needed information, | |
930 instead it is stored in the registry and | |
931 </simpara></listitem> | |
932 <listitem><simpara> | |
933 we need the GUID of the codec. | |
934 </simpara></listitem> | |
935 </itemizedlist> | |
936 </para> | |
937 | |
938 <procedure> | |
939 <title>New Method:</title> | |
940 <para> | |
941 Using <application>Microsoft GraphEdit</application> (fast) | |
942 </para> | |
943 <step><para> | |
944 Get <application>GraphEdit</application> from either DirectX SDK or | |
13927 | 945 <ulink url="http://doom9.net">doom9</ulink> |
9675 | 946 </para></step> |
947 <step><para> | |
948 Start <command>graphedit.exe</command>. | |
949 </para></step> | |
950 <step><para> | |
951 From the menu select Graph -> Insert Filters. | |
952 </para></step> | |
953 <step><para> | |
954 Expand item <systemitem>DirectShow Filters</systemitem> | |
955 </para></step> | |
956 <step><para> | |
957 Select the right codec name and expand item. | |
958 </para></step> | |
959 <step><para> | |
960 In the entry <systemitem>DisplayName</systemitem> look at the text in | |
961 winged brackets after the backslash and write it down (five dash-delimited | |
962 blocks, the GUID). | |
963 </para></step> | |
964 <step><para> | |
965 The codec binary is the file specified in the <systemitem>Filename</systemitem> | |
966 entry. | |
967 </para></step> | |
968 </procedure> | |
969 | |
970 <note> | |
971 <para> | |
972 If there is no <systemitem>Filename</systemitem> and | |
973 <systemitem>DisplayName</systemitem> contains something like | |
974 <systemitem>device:dmo</systemitem>, then it is a DMO-Codec. | |
975 </para> | |
976 </note> | |
977 | |
978 <procedure> | |
979 <title>Old Method:</title> | |
980 <para> | |
981 Take a deep breath and start searching the registry... | |
982 </para> | |
983 <step><para> | |
984 Start <command>regedit</command>. | |
985 </para></step> | |
986 <step><para> | |
987 Press <keycap>Ctrl</keycap>+<keycap>F</keycap>, disable the first two | |
988 checkboxes, and enable the third. Type in the fourcc of the codec (e.g. | |
989 <userinput>TM20</userinput>). | |
990 </para></step> | |
991 <step><para> | |
992 You should see a field which contains the path and the filename (e.g. | |
993 <filename>C:\WINDOWS\SYSTEM\TM20DEC.AX</filename>). | |
994 </para></step> | |
995 <step><para> | |
996 Now that you have the file, we need the GUID. Try searching again, but | |
997 now search for the codec's name, not the fourcc. Its name can be acquired | |
998 when Media Player is playing the file, by checking | |
999 <guimenu>File</guimenu> -> <guisubmenu>Properties</guisubmenu> -> | |
1000 <guimenuitem>Advanced</guimenuitem>. | |
1001 If not, you are out of luck. Try guessing (e.g. search for TrueMotion). | |
1002 </para></step> | |
1003 <step><para> | |
1004 If the GUID is found you should see a <guilabel>FriendlyName</guilabel> | |
1005 and a <guilabel>CLSID</guilabel> field. Write down the 16 byte CLSID, | |
1006 this is the GUID we need. | |
1007 </para></step> | |
1008 </procedure> | |
1009 | |
1010 <note> | |
1011 <para> | |
1012 If searching fails, try enabling all the checkboxes. You may have | |
1013 false hits, but you may get lucky... | |
1014 </para> | |
1015 </note> | |
1016 | |
1017 <para> | |
1018 Now that you have all the necessary information (fourcc, GUID, codec file, | |
1019 sample AVI), submit your codec support request by mail, and upload these files | |
1020 to the FTP site: | |
1021 <systemitem | |
1022 role="url">ftp://ftp.mplayerhq.hu/MPlayer/incoming/[codecname]/ | |
1023 </systemitem> | |
1024 </para> | |
14004
3d698ac7ec9a
Explain what you need to read to add a codec yourself, patch by
diego
parents:
13977
diff
changeset
|
1025 |
3d698ac7ec9a
Explain what you need to read to add a codec yourself, patch by
diego
parents:
13977
diff
changeset
|
1026 <para> |
3d698ac7ec9a
Explain what you need to read to add a codec yourself, patch by
diego
parents:
13977
diff
changeset
|
1027 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
|
1028 <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
|
1029 </para> |
3d698ac7ec9a
Explain what you need to read to add a codec yourself, patch by
diego
parents:
13977
diff
changeset
|
1030 |
9675 | 1031 </sect3> |
1032 </sect2> | |
1033 </sect1> |