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