comparison DOCS/codecs.html @ 2745:62bcea66003e

oh my god what have i done... format.html, codecs, video, sound.html renumbered, etc
author gabucino
date Tue, 06 Nov 2001 17:04:56 +0000
parents a2bb142ce67d
children 33c32f3d9f1f
comparison
equal deleted inserted replaced
2744:205deb33f8ee 2745:62bcea66003e
1 <HTML> 1 <HTML>
2 <BODY BGCOLOR=WHITE> 2 <BODY BGCOLOR=WHITE>
3 3
4 <FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> 4 <FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>
5 5
6 <P><B><A NAME=2.1>2.1. Video Formats, Audio &amp; Video Codecs</A></B></P> 6 <P><B><A NAME=2.2>2.2. Supported codecs</A></B></P>
7 7
8 <P><B><A NAME=2.1.1>2.1.1. Supported input formats</A></B></P> 8
9 9 <P><B><A NAME=2.2.1>2.2.1. Video codecs</A></B></P>
10 <P><B>MPlayer</B> can read/play from the following devices/formats:<BR>
11 <UL>
12 <LI> VCD (Video CD) directly from CD-ROM or from CDRwin's .bin image file
13 <LI> DVD, directly from your DVD disk, using libdvdread for decryption
14 <LI> MPEG 1/2 System Stream (PS/PES/VOB) and Elementary Stream (ES) file
15 formats
16 <LI> RIFF AVI file format
17 <LI> ASF/WMV 1.0 file format
18 <LI> QT/MOV file format with (un)compressed headers
19 <LI> VIVO format (.viv files)
20 <LI> supports reading from file, stdin, or network via HTTP
21 </UL></P>
22
23 <P>Note: about realmedia (.ra/.rm) support read the FAQ!</P>
24
25
26 <P><B><A NAME=2.1.2>2.1.2. Supported audio &amp; video codecs</A></B></P>
27 10
28 <P>See <A HREF="http://www.mplayerhq.hu/DOCS/codecs-status.html">http://www.mplayerhq.hu/DOCS/codecs-status.html</A> for the complete, 11 <P>See <A HREF="http://www.mplayerhq.hu/DOCS/codecs-status.html">http://www.mplayerhq.hu/DOCS/codecs-status.html</A> for the complete,
29 daily generated list!!!</P> 12 daily generated list!!!</P>
30 13
31 <P>The most important video codecs:<BR> 14 <P>The most important ones above all:<BR>
32 <UL> 15 <UL>
33 <LI>MPEG1 (VCD) and MPEG2 (DVD) video</LI> 16 <LI>MPEG1 (VCD) and MPEG2 (DVD) video</LI>
34 <LI>DivX ;-), OpenDivX (DivX4), 3ivx and other MPEG4 variants</LI> 17 <LI>DivX ;-), OpenDivX (DivX4), 3ivx and other MPEG4 variants</LI>
35 <LI>Windows Media Video 7 (WMV1) and 8 (WMV2) used in .wmv files</LI> 18 <LI>Windows Media Video 7 (WMV1) and 8 (WMV2) used in .wmv files</LI>
36 <LI>Intel Indeo codecs (3.1,3.2,4.1,5.0)</LI> 19 <LI>Intel Indeo codecs (3.1,3.2,4.1,5.0)</LI>
37 <LI>MJPEG, ASV2 and other hardware formats</LI> 20 <LI>MJPEG, ASV2 and other hardware formats</LI>
38 <LI>XAnim codecs</LI> 21 <LI>XAnim codecs</LI>
39 </UL></P> 22 <LI>VIVO</LI>
40 23 </UL></P>
41 <P>The most important audio codecs:<BR> 24
42 <UL> 25 <P>If you have a Win32 codec not listed here, and not supported yet, just read the <A
43 <LI>MPEG layer 2, and layer 3 (MP3) audio (native code, with MMX/SSE/3DNow! optimization)</LI> 26 HREF="#2.2.3">codec importing</A> to get info about how to help us adding support
44 <LI>AC3 dolby audio (native code, with SSE/3DNow! optimization)</LI>
45 <LI>Ogg Vorbis audio codec (native lib)</LI>
46 <LI>Voxware audio (using directshow DLL)</LI>
47 <LI>alaw, msgsm, pcm and other simple old audio formats</LI>
48 </UL></P>
49
50 <P>If you have a codec not listed here, and not supported yet, just read <A
51 HREF="#2.1.3">section 2.1.3</A> to get info about how to help us adding support
52 for it!</P> 27 for it!</P>
53 28
54 <P><B><A NAME=2.1.2.1>2.1.2.1. DivX4</A></B></P> 29 <P><B><A NAME=2.2.1.1>2.2.1.1. DivX4</A></B></P>
55 30
56 <P>This section contains information about the DivX4 codec of 31 <P>This section contains information about the DivX4 codec of
57 <A HREF="http://www.projectmayo.com">ProjectMayo</A>. Their first available alpha version was the OpenDivX 4.0 32 <A HREF="http://www.projectmayo.com">ProjectMayo</A>. Their first available alpha version was the OpenDivX 4.0
58 alpha 47 and 48. Support for this was/is included in <B>MPlayer</B>, and built by 33 alpha 47 and 48. Support for this was/is included in <B>MPlayer</B>, and built by
59 default. We used to use its postprocessing code to optionally enhance visual 34 default. We used to use its postprocessing code to optionally enhance visual
108 <TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>postprocessing, normal (like level 2 with divxds)</TD><TR> 83 <TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>postprocessing, normal (like level 2 with divxds)</TD><TR>
109 <TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>30 .. 60</TD> 84 <TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>30 .. 60</TD>
110 <TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>hard prostprocessing, eats many CPU (like level 4 with divxds</TD><TR> 85 <TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>hard prostprocessing, eats many CPU (like level 4 with divxds</TD><TR>
111 </TABLE></P> 86 </TABLE></P>
112 87
113 <P><B><A NAME=2.1.2.2>2.1.2.2. ffmpeg's DivX/libavcodec</A></B></P> 88 <P><B><A NAME=2.2.1.2>2.2.1.2. ffmpeg's DivX/libavcodec</A></B></P>
114 89
115 <P>Beginning with version 0.4.2 , <A HREF="http://ffmpeg.sourceforge.net">ffmpeg</A> contains an <B>opensource</B> DivX codec, 90 <P>Beginning with version 0.4.2 , <A HREF="http://ffmpeg.sourceforge.net">ffmpeg</A> contains an <B>opensource</B> DivX codec,
116 which is compatible with the traditional DivX. <B>MPlayer</B> supports this codec, 91 which is compatible with the traditional DivX. <B>MPlayer</B> supports this codec,
117 and this makes it possible to <B>watch DivX/DivX4 movies on non-x86 platforms</B>, 92 and this makes it possible to <B>watch DivX/DivX4 movies on non-x86 platforms</B>,
118 and gain much faster <B>DivX/DivX4</B> decoding speed than the Win32 codecs and 93 and gain much faster <B>DivX/DivX4</B> decoding speed than the Win32 codecs and
148 Then <B>MPlayer</B> always uses <B>ffdivx/ffodivx</B> to decode 123 Then <B>MPlayer</B> always uses <B>ffdivx/ffodivx</B> to decode
149 <B>DivX/DivX4</B> files, and libmpeg2 for MPEG1/2 . With this and my Matrox G400, I can view even the 124 <B>DivX/DivX4</B> files, and libmpeg2 for MPEG1/2 . With this and my Matrox G400, I can view even the
150 highest resolution DivX/DivX4 movies on my K6/2 500, without framedrop.</P> 125 highest resolution DivX/DivX4 movies on my K6/2 500, without framedrop.</P>
151 126
152 127
153 <P><B><A NAME=2.1.2.3>2.1.2.3. Hardware AC3 decoding</A></B></P> 128 <P><B><A NAME=2.2.1.3>2.2.1.3. XAnim codecs</A></B></P>
129
130 <P>Foreword: using (some) XAnim codecs with other program than XAnim, is
131 <B><I>ILLEGAL</I></B>. It is <B>YOUR</B> responsibility to read its license,
132 and do accordingly. The authors of <B>MPlayer</B> can't be held responsible for
133 any unlawful act of the user.</P>
134
135 <P>So yes, <B>MPlayer</B> can use XAnim's codecs for decoding. It's very
136 easy to enable them:</P>
137
138 <P>
139 <UL>
140 <LI>download the codecs you wish to use from the
141 <A HREF="http://xanim.va.pubnix.com">XAnim site</A>. The <B>3ivx</B> codec
142 isn't there, so download it from the <A HREF="http://www.3ivx.com">3ivx site</A>.</LI>
143
144 <LI>use the <CODE>--with-xanimlibdir</CODE> option to tell configure where
145 it can find the xanim codecs. By default, it checks them at <CODE>/usr/lib/xanim/mods</CODE> .</LI>
146 </UL>
147 </P>
148
149 <P>They are video codec family number 10, so you may want to use <CODE>-vfm 10</CODE>
150 option to tell <B>MPlayer</B> to use them if possible.</P>
151
152 <P>Tested codecs are: <B>Indeo 3.2</B>, <B>4.1</B>, <B>5.0</B>, <B>CVID</B>, <B>3ivX</B>, <B>h263</B>.</P>
153
154
155 <P><B><A NAME=2.2.1.4>2.2.1.4. VIVO video</A></B></P>
156
157 <P>TODO</P>
158
159
160 <P><B><A NAME=2.2.1.5>2.2.1.5. MPEG 1/2 video</A></B></P>
161
162 <P>MPEG1 and MPEG2 are decoded with the native library <B>libmpeg2</B>.
163 Its source code is included in <B>MPlayer</B>, and of course is multiplatform.
164 We handle buggy MPEG1/2 video files by checking for what signature does
165 libmpeg2 return, and when it gives sig11 (segmentation fault), we quickly
166 reinitialize the codec, and continue exactly from where the failure did occur.
167 No speed decrease is measurable.</P>
168
169
170 <P><B><A NAME=2.2.2>2.2.2. Audio codecs</A></B></P>
171
172 <P>The most important audio codecs above all :<BR>
173 <UL>
174 <LI>MPEG layer 2, and layer 3 (MP3) audio (<B>native</B> code, with MMX/SSE/3DNow! optimization)</LI>
175 <LI>MPEG layer 1 audio (<B>native</B> code, with libavcodec)</LI>
176 <LI>AC3 Dolby audio (<B>native</B> code, with SSE/3DNow! optimization)</LI>
177 <LI>Ogg Vorbis audio codec (<B>native</B> lib)</LI>
178 <LI>Voxware audio (using DirectShow DLL)</LI>
179 <LI>alaw, msgsm, pcm and other simple old audio formats</LI>
180 </UL></P>
181
182
183 <P><B><A NAME=2.2.2.1>2.2.2.1. Hardware AC3 decoding</A></B></P>
154 184
155 <P>You'll need an AC3 capable soundcard, with digital out (SP/DIF). The 185 <P>You'll need an AC3 capable soundcard, with digital out (SP/DIF). The
156 card's driver must support the AFMT_AC3 format (like SB Live! does). 186 card's driver must support the AFMT_AC3 format (like SB Live! does).
157 Connect your AC3 decoder to the SP/DIF output, and use the '-ac hwac3' 187 Connect your AC3 decoder to the SP/DIF output, and use the '-ac hwac3'
158 option. It may or may not work (experimental). (probably won't...)</P> 188 option. It may or may not work (experimental). (probably won't...)</P>
159 189
160 190
161 <P><B><A NAME=2.1.2.4>2.1.2.4. XAnim codecs</A></B></P> 191 <P><B><A NAME=2.2.2.2>2.2.2.2. libmad support</A></B></P>
162
163 <P>Foreword: using (some) XAnim codecs with other program than XAnim, is
164 <B><I>ILLEGAL</I></B>. It is <B>YOUR</B> responsibility to read its license,
165 and do accordingly. The authors of <B>MPlayer</B> can't be held responsible for
166 any unlawful act of the user.</P>
167
168 <P>So yes, <B>MPlayer</B> can use XAnim's codecs for decoding. It's very
169 easy to enable them:</P>
170
171 <P>
172 <UL>
173 <LI>download the codecs you wish to use from the
174 <A HREF="http://xanim.va.pubnix.com">XAnim site</A>. The <B>3ivx</B> codec
175 isn't there, so download it from the <A HREF="http://www.3ivx.com">3ivx site</A>.</LI>
176
177 <LI>use the <CODE>--with-xanimlibdir</CODE> option to tell configure where
178 it can find the xanim codecs. By default, it checks them at <CODE>/usr/lib/xanim/mods</CODE> .</LI>
179 </UL>
180 </P>
181
182 <P>They are video codec family number 10, so you may want to use <CODE>-vfm 10</CODE>
183 option to tell <B>MPlayer</B> to use them if possible.</P>
184
185 <P>Tested codecs are: <B>Indeo 3.2</B>, <B>4.1</B>, <B>5.0</B>, <B>CVID</B>, <B>3ivX</B>, <B>h263</B>.</P>
186
187
188 <P><B><A NAME=2.1.2.5>2.1.2.5. libmad support</A></B></P>
189 192
190 <P><A HREF="http://mad.sourceforge.net">libmad</A> is a multiplatform MPEG audio 193 <P><A HREF="http://mad.sourceforge.net">libmad</A> is a multiplatform MPEG audio
191 decoding library. If you don't know why is it good, you probably don't need it.</P> 194 decoding library. If you don't know why is it good, you probably don't need it.</P>
192 195
193 <P>To enable support, compile with the <CODE>--enable-mad</CODE> configure 196 <P>To enable support, compile with the <CODE>--enable-mad</CODE> configure
194 option.</P> 197 option.</P>
195 198
196 199
197 <P><B><A NAME=2.1.3>2.1.3. Codec importing howto</A></B></P> 200 <P><B><A NAME=2.2.3>2.2.3. Win32 codec importing howto</A></B></P>
198 201
199 <P><B><A NAME=2.1.3.1>2.1.3.1. VFW codecs</A></B></P> 202 <P><B><A NAME=2.2.3.1>2.2.3.1. VFW codecs</A></B></P>
200 203
201 <P>VfW (Video for Windows) is the old Video API for Windows. Its codecs have 204 <P>VfW (Video for Windows) is the old Video API for Windows. Its codecs have
202 the .DLL or (rarely) .DRV extension. 205 the .DLL or (rarely) .DRV extension.
203 If <B>MPlayer</B> fails with your AVI:</P> 206 If <B>MPlayer</B> fails with your AVI:</P>
204 207
222 your codec support request in mail, and upload these files to the FTP:</P> 225 your codec support request in mail, and upload these files to the FTP:</P>
223 226
224 <P>&nbsp;&nbsp;&nbsp;&nbsp;<CODE>ftp://ftp.mplayerhq.hu/MPlayer/incoming/[codecname]/</CODE></P> 227 <P>&nbsp;&nbsp;&nbsp;&nbsp;<CODE>ftp://ftp.mplayerhq.hu/MPlayer/incoming/[codecname]/</CODE></P>
225 228
226 229
227 <P><B><A NAME=2.1.3.2>2.1.3.2. DirectShow codecs</A></B></P> 230 <P><B><A NAME=2.2.3.2>2.2.3.2. DirectShow codecs</A></B></P>
228 231
229 <P>DirectShow is the newer Video API, which is even worse than its predecessor. 232 <P>DirectShow is the newer Video API, which is even worse than its predecessor.
230 Things are harder with DirectShow, since 233 Things are harder with DirectShow, since
231 <UL> 234 <UL>
232 <LI>system.ini doesn't contain the needed information, instead it's stored in 235 <LI>system.ini doesn't contain the needed information, instead it's stored in