comparison DOCS/codecs.html @ 6960:87deea511b1f

continuing paragraph reformatting
author gabucino
date Sat, 10 Aug 2002 20:26:43 +0000
parents 3274d0725fde
children 916f62dd0910
comparison
equal deleted inserted replaced
6959:f7d8c02536e4 6960:87deea511b1f
18 <P>See the <A HREF="http://www.mplayerhq.hu/DOCS/codecs-status.html">codec status table</A> for the complete, 18 <P>See the <A HREF="http://www.mplayerhq.hu/DOCS/codecs-status.html">codec status table</A> for the complete,
19 daily generated list!!!</P> 19 daily generated list!!!</P>
20 20
21 <P>The most important ones above all:</P> 21 <P>The most important ones above all:</P>
22 <UL> 22 <UL>
23 <LI>MPEG1 (VCD) and MPEG2 (DVD) video</LI> 23 <LI>MPEG1 (VCD) and MPEG2 (DVD) video</LI>
24 <LI>native decoders for DivX ;-), OpenDivX (DivX4), DivX 5.01, 3ivX, M$ MPEG4 v1, v2 and other MPEG4 variants</LI> 24 <LI>native decoders for DivX ;-), OpenDivX, DivX4, DivX5,
25 <LI>native decoder for Windows Media Video 7 (WMV1), and Win32 DLL decoder for 25 M$ MPEG4 v1, v2 and other MPEG4 variants</LI>
26 Windows Media Video 8 (WMV2), both used in .wmv files</LI> 26 <LI>native decoder for Windows Media Video 7 (WMV1), and Win32 DLL decoder for
27 <LI><B>native Sorenson (SVQ1) decoder</B></LI> 27 Windows Media Video 8 (WMV2), both used in .wmv files</LI>
28 <LI>Cinepak and Intel Indeo codecs (3.1,3.2,4.1,5.0)</LI> 28 <LI><B>native Sorenson (SVQ1) decoder</B></LI>
29 <LI>MJPEG, AVID, VCR2, ASV2 and other hardware formats</LI> 29 <LI>3ivx decoder</LI>
30 <LI>VIVO 1.0, 2.0, I263 and other h263(+) variants</LI> 30 <LI>Cinepak and Intel Indeo codecs (3.1,3.2,4.1,5.0)</LI>
31 <LI>FLI/FLC</LI> 31 <LI>MJPEG, AVID, VCR2, ASV2 and other hardware formats</LI>
32 <LI>RealVideo 1.0 from ffmpeg, and RealVideo 2.0, 3.0 using RealPlayer 32 <LI>VIVO 1.0, 2.0, I263 and other h263(+) variants</LI>
33 libraries</LI> 33 <LI>FLI/FLC</LI>
34 <LI>native decoder for HuffYUV</LI> 34 <LI>RealVideo 1.0 codec from libavcodec, and RealVideo 2.0, 3.0 codecs using
35 <LI>Various old simple RLE-like formats</LI> 35 RealPlayer libraries</LI>
36 </UL> 36 <LI>native decoder for HuffYUV</LI>
37 37 <LI>Various old simple RLE-like formats</LI>
38 <P>If you have a Win32 codec not listed here which is not supported yet, please read the 38 </UL>
39 <A HREF="#importing">codec importing HOWTO</A> and help us add support 39
40 for it!</P> 40 <P>If you have a Win32 codec not listed here which is not supported yet, please
41 read the <A HREF="#importing">codec importing HOWTO</A> and help us add support
42 for it!</P>
41 43
42 <P><B><A NAME="divx">2.2.1.1 DivX4/DivX5</A></B></P> 44 <P><B><A NAME="divx">2.2.1.1 DivX4/DivX5</A></B></P>
43 45
44 <P>This section contains information about the DivX4 codec of 46 <P>This section contains information about the DivX4 and DivX5 codecs of
45 <A HREF="http://www.projectmayo.com">Project Mayo</A>. Their first available alpha version was OpenDivX 4.0 47 <A HREF="http://www.projectmayo.com">Project Mayo</A>. Their first available
46 alpha 47 and 48. Support for this was included in <B>MPlayer</B> in the past, 48 alpha version was OpenDivX 4.0 alpha 47 and 48. Support for this was included
47 and built by default. We also used its postprocessing code to optionally 49 in <B>MPlayer</B> in the past, and built by default. We also used its
48 enhance visual quality of MPEG1/2 movies. Now we use our own, for all file 50 postprocessing code to optionally enhance visual quality of MPEG1/2 movies.
49 types.</P> 51 Now we use our own, for all file types.</P>
50 52
51 <P>The new generation of this codec is called DivX4Linux and can even decode 53 <P>The new generation of this codec is called DivX4 and can even decode
52 movies made with the infamous DivX codec! In addition it is much faster than the 54 movies made with the infamous DivX codec! In addition it is much faster than
53 native Win32 DivX DLLs but slower than libavcodec. 55 the native Win32 DivX DLLs but slower than libavcodec. Hence its usage as a
54 Hence its usage as a decoder is <B>DISCOURAGED</B>. However, it is useful for 56 decoder is <B>DISCOURAGED</B>. However, it is useful for encoding. One
55 encoding. One disadvantage of this codec is that it is currently closed source.</P> 57 disadvantage of this codec is that it is currently closed source.</P>
56 58
57 <P>The codec can be downloaded from one of the following URLs:</P> 59 <P>The codec can be downloaded from one of the following URLs:</P>
58 60
59 <P>&nbsp;&nbsp;&nbsp;&nbsp;<A HREF="http://avifile.sourceforge.net">http://avifile.sourceforge.net</A><BR> 61 <P>&nbsp;&nbsp;&nbsp;&nbsp;<A HREF="http://avifile.sourceforge.net">http://avifile.sourceforge.net</A><BR>
60 &nbsp;&nbsp;&nbsp;&nbsp;<A HREF="http://divx.com">http://divx.com</A></P> 62 &nbsp;&nbsp;&nbsp;&nbsp;<A HREF="http://divx.com">http://divx.com</A></P>
61 63
62 <P>Unpack it, and run <CODE>./install.sh</CODE> as root.</P> 64 <P>Unpack it, and run <CODE>./install.sh</CODE> as root.</P>
63 65
64 <P><B>Note:</B> Do <B>not</B> forget adding <CODE>/usr/local/lib</CODE> to your 66 <P><B>Note:</B> Do <B>not</B> forget adding <CODE>/usr/local/lib</CODE> to your
65 <CODE>/etc/ld.so.conf</CODE> and running <CODE>ldconfig</CODE>!</P> 67 <CODE>/etc/ld.so.conf</CODE> and running <CODE>ldconfig</CODE>!</P>
66 68
67 <P><B>MPlayer</B> autodetects DivX4/DivX5 if it is properly installed, just 69 <P><B>MPlayer</B> autodetects DivX4/DivX5 if it is properly installed, just
68 compile as usual. If it does not detect it, you did not install or configure 70 compile as usual. If it does not detect it, you did not install or configure
69 it correctly.</P> 71 it correctly.</P>
70 72
71 <P>DivX4Linux works in two modes:</P> 73 <P>DivX4Linux works in two modes:</P>
72 74
73 <TABLE BORDER=0> 75 <TABLE BORDER=0>
74 <TR><TD>&nbsp;&nbsp;</TD><TD VALIGN=top><CODE>-vc&nbsp;odivx</CODE></TD><TD>&nbsp;&nbsp;</TD> 76 <TR><TD>&nbsp;&nbsp;</TD><TD VALIGN=top><CODE>-vc&nbsp;odivx</CODE></TD><TD>&nbsp;&nbsp;</TD>
78 <TR><TD></TD><TD VALIGN=top><CODE>-vc&nbsp;divx4</CODE></TD><TD></TD> 80 <TR><TD></TD><TD VALIGN=top><CODE>-vc&nbsp;divx4</CODE></TD><TD></TD>
79 <TD>Uses the colorspace conversion of the codec. 81 <TD>Uses the colorspace conversion of the codec.
80 In this mode you can use YUY2/UYVY, too. (<B>SLOW</B>)</TD></TR> 82 In this mode you can use YUY2/UYVY, too. (<B>SLOW</B>)</TD></TR>
81 </TABLE> 83 </TABLE>
82 84
83 <P>The <CODE>-vc odivx</CODE> method is usually faster, due to the fact that it transfers 85 <P>The <CODE>-vc odivx</CODE> method is usually faster, due to the fact that it
84 image data in YV12 (planar YUV 4:2:0) format, thus requiring much less 86 transfers image data in YV12 (planar YUV 4:2:0) format, thus requiring much
85 bandwidth on the bus. For packed YUV modes (YUY2, UYVY) use the <CODE>-vc divx4</CODE> 87 less bandwidth on the bus. For packed YUV modes (YUY2, UYVY) use the
86 method. For RGB modes the speed is the same, differing at best 88 <CODE>-vc divx4</CODE> method. For RGB modes the speed is the same, differing
87 according to your current color depth.</P> 89 at best according to your current color depth.</P>
88 90
89 <P><B>Note:</B> If your <CODE>-vo</CODE> driver supports direct rendering, then 91 <P><B>Note:</B> If your <CODE>-vo</CODE> driver supports direct rendering, then
90 <CODE>-vc divx4</CODE> may be faster or even the fastest solution.</P> 92 <CODE>-vc divx4</CODE> may be faster or even the fastest solution.</P>
91 93
92 94
93 <P><B><A NAME="libavcodec">2.2.1.2 FFmpeg DivX/libavcodec</A></B></P> 95 <P><B><A NAME="libavcodec">2.2.1.2 FFmpeg DivX/libavcodec</A></B></P>
94 96
95 <P>Beginning with version 0.4.2, 97 <P><A HREF="http://ffmpeg.sourceforge.net">FFmpeg</A> contains an
96 <A HREF="http://ffmpeg.sourceforge.net">FFmpeg</A> contains an 98 <B>opensource</B> codec package, which is capable of decoding video streams
97 <B>open source</B> DivX codec, which is compatible with traditional DivX. 99 encoded with
98 <B>MPlayer</B> supports this codec, making it possible to <B>watch 100 H263/MJPEG/RV10/DivX3/DivX4/DivX5/MP41/MP42/WMV1
99 DivX/DivX4/DivX5/MP41/MP42 movies on non-x86 platforms</B>. Furthermore it 101 codecs. Not only some of them can be encoded with, but it also offers higher
100 offers higher decoding speed than the Win32 codecs or the original 102 speed than the Win32 codecs or the ProjectMayo DivX4/5 library!</P>
101 DivX4 library!</P> 103
102 104 <P>It contains a lot of nice codecs, especially important are the MPEG4
103 <P>It also contains a lot of nice codecs, such as RealVideo 1.0, WMV7, 105 variants:
104 MJPEG, h263, h263+, etc.</P> 106 DivX 3, DivX 4, DivX 5, Windows Media Video 7 (WMV1)</P>
105 107
106 <P>If you use an <B>MPlayer</B> release you have libavcodec right in the package, 108 <P>If you use an <B>MPlayer</B> release you have libavcodec right in the
107 just build as usual. If you use <B>MPlayer</B> from CVS you have to extract 109 package, just build as usual. If you use <B>MPlayer</B> from CVS you have to
108 libavcodec from the FFmpeg CVS tree as FFmpeg 0.4.5 does <B>not</B> work with 110 extract libavcodec from the FFmpeg CVS tree as FFmpeg 0.4.5 does <B>not</B>
109 <B>MPlayer</B>. In order to achieve this do:</P> 111 work with <B>MPlayer</B>. In order to achieve this do:</P>
110 112
111 <OL> 113 <OL>
112 <LI><CODE>cvs -d:pserver:anonymous@cvs.ffmpeg.sourceforge.net:/cvsroot/ffmpeg login</CODE></LI> 114 <LI><CODE>cvs -d:pserver:anonymous@cvs.ffmpeg.sourceforge.net:/cvsroot/ffmpeg login</CODE></LI>
113 <LI><CODE>cvs -d:pserver:anonymous@cvs.ffmpeg.sourceforge.net:/cvsroot/ffmpeg co ffmpeg</CODE></LI> 115 <LI><CODE>cvs -d:pserver:anonymous@cvs.ffmpeg.sourceforge.net:/cvsroot/ffmpeg co ffmpeg</CODE></LI>
114 <LI>Move the <CODE>libavcodec</CODE> directory from the FFmpeg sources to the 116 <LI>Move the <CODE>libavcodec</CODE> directory from the FFmpeg sources to the
117 Symlinking is <B>not</B> enough, you have to copy/move it!!!</LI> 119 Symlinking is <B>not</B> enough, you have to copy/move it!!!</LI>
118 <LI>Compile. Configure should detect problems before compilation.</LI> 120 <LI>Compile. Configure should detect problems before compilation.</LI>
119 </OL> 121 </OL>
120 122
121 <P><B>Note:</B> MPlayer from CVS does contain a libavcodec 123 <P><B>Note:</B> MPlayer from CVS does contain a libavcodec
122 subdirectory, but it does NOT contain the source for libavcodec! 124 subdirectory, but it does NOT contain the source for libavcodec!
123 You must follow the steps above to obtain the source for this library.</P> 125 You must follow the steps above to obtain the source for this library.</P>
124 126
125 <P>With FFmpeg and my Matrox G400, I can view even the highest resolution DivX 127 <P>With FFmpeg and my Matrox G400, I can view even the highest resolution DivX
126 movies without dropped frames on my K6/2 500.</P> 128 movies without dropped frames on my K6/2 500.</P>
127 129
128 130
129 <P><B><A NAME="xanim">2.2.1.3 XAnim codecs</A></B></P> 131 <P><B><A NAME="xanim">2.2.1.3 XAnim codecs</A></B></P>
130 132
131 <P>Foreword:<BR> 133 <P>Foreword:<BR>
132 Be advised that the XAnim binary codecs are packaged with a piece of text 134 Be advised that the XAnim binary codecs are packaged with a piece of text
133 claiming to be a legally binding software license which, besides other 135 claiming to be a legally binding software license which, besides other
134 restrictions, forbids the user to use the codecs in conjunction with any 136 restrictions, forbids the user to use the codecs in conjunction with any
135 program other than XAnim. However, the XAnim author has yet to bring legal 137 program other than XAnim. However, the XAnim author has yet to bring legal
136 action against anyone for codec-related issues. 138 action against anyone for codec-related issues.
137 </P> 139 </P>
138 140
139 <P><B>MPlayer</B> is capable of employing the XAnim codecs for decoding. Follow 141 <P><B>MPlayer</B> is capable of employing the XAnim codecs for decoding. Follow
140 the instructions to enable them:</P> 142 the instructions to enable them:</P>
141 143
142 <UL> 144 <UL>
143 <LI>Download the codecs you wish to use from the 145 <LI>Download the codecs you wish to use from the
144 <A HREF="http://xanim.va.pubnix.com">XAnim site</A>. The <B>3ivx</B> codec 146 <A HREF="http://xanim.va.pubnix.com">XAnim site</A>. The <B>3ivx</B> codec
145 is not there, but at the <A HREF="http://www.3ivx.com">3ivx site</A>.</LI> 147 is not there, but at the <A HREF="http://www.3ivx.com">3ivx site</A>.</LI>
154 have filenames like these: <CODE>vid_cvid.xa, vid_h263.xa, vid_iv50.xa</CODE> 156 have filenames like these: <CODE>vid_cvid.xa, vid_h263.xa, vid_iv50.xa</CODE>
155 157
156 </UL> 158 </UL>
157 159
158 <P>XAnim is video codec family number 10, so you may want to use the <CODE>-vfm 10</CODE> 160 <P>XAnim is video codec family number 10, so you may want to use the <CODE>-vfm 10</CODE>
159 option to tell <B>MPlayer</B> to use them if possible.</P> 161 option to tell <B>MPlayer</B> to use them if possible.</P>
160 162
161 <P>Tested codecs include: <B>Indeo 3.2</B>, <B>4.1</B>, <B>5.0</B>, <B>CVID</B>, <B>3ivX</B>, <B>h263</B>.</P> 163 <P>Tested codecs include: <B>Indeo 3.2</B>, <B>4.1</B>, <B>5.0</B>, <B>CVID</B>, <B>3ivX</B>, <B>h263</B>.</P>
162 164
163 165
164 <P><B><A NAME="vivo_video">2.2.1.4 VIVO video</A></B></P> 166 <P><B><A NAME="vivo_video">2.2.1.4 VIVO video</A></B></P>
165 167
166 <P><B>MPlayer</B> can play Vivo (1.0 and 2.0) videos. The most suitable codec 168 <P><B>MPlayer</B> can play Vivo (1.0 and 2.0) videos. The most suitable codec
167 for 1.0 files is FFmpeg's H263 decoder, you can use it with the <CODE>-vc 169 for 1.0 files is FFmpeg's H263 decoder, you can use it with the <CODE>-vc
168 ffh263</CODE> option (default) (requires up-to-date libavcodec). For 2.0 files, use 170 ffh263</CODE> option (default) (requires up-to-date libavcodec). For 2.0
169 the <CODE>ivvideo.dll</CODE> Win32 DLL file (from <A 171 files, use the <CODE>ivvideo.dll</CODE> Win32 DLL file (from
170 HREF="http://www.mplayerhq.hu/MPlayer/samples/drivers32/ivvideo.dll">here</A>), 172 <A HREF="http://www.mplayerhq.hu/MPlayer/samples/drivers32/ivvideo.dll">here</A>),
171 and install it under <CODE>/usr/lib/win32</CODE> or wherever you store the 173 and install it under <CODE>/usr/lib/win32</CODE> or wherever you store the
172 Win32 codecs. This latter codec does not support YV12 nor YUY2 only BGR modes, 174 Win32 codecs. This latter codec does not support YV12 nor YUY2 only BGR
173 restricting it to the X11 and OpenGL outputs. Hopefully ffh263 will support 175 modes, restricting it to the X11 and OpenGL outputs. Hopefully ffh263 will
174 VIVO 2.0 files in the future.</P> 176 support VIVO 2.0 files in the future.</P>
175 177
176 178
177 <P><B><A NAME="mpeg">2.2.1.5 MPEG 1/2 video</A></B></P> 179 <P><B><A NAME="mpeg">2.2.1.5 MPEG 1/2 video</A></B></P>
178 180
179 <P>MPEG1 and MPEG2 are decoded by the multiplatform native <B>libmpeg2</B> library, 181 <P>MPEG1 and MPEG2 are decoded by the multiplatform native <B>libmpeg2</B>
180 whose source code is included in <B>MPlayer</B>. 182 library, whose source code is included in <B>MPlayer</B>. We handle buggy
181 We handle buggy MPEG 1/2 video files by catching sig11 (segmentation fault), 183 MPEG 1/2 video files by catching sig11 (segmentation fault), and quickly
182 and quickly reinitializing the codec, continuing exactly from where the failure 184 reinitializing the codec, continuing exactly from where the failure occurred.
183 occurred. 185 This recovery technique has no measurable speed penalty.</P>
184 This recovery technique has no measurable speed penalty.</P>
185 186
186 187
187 <P><B><A NAME="ms_video1">2.2.1.6 MS Video1</A></B></P> 188 <P><B><A NAME="ms_video1">2.2.1.6 MS Video1</A></B></P>
188 189
189 <P>This is a very old and very bad codec from Microsoft. In the past it was 190 <P>This is a very old and very bad codec from Microsoft. In the past it was
190 decoded with the <CODE>msvidc32.dll</CODE> Win32 codec, now we have our own 191 decoded with the <CODE>msvidc32.dll</CODE> Win32 codec, now we have our own
191 open source implementation (by <A HREF="mailto:melanson@pcisys.net">Mike 192 open source implementation (by <A HREF="mailto:melanson@pcisys.net">Mike
192 Melanson</A>).</P> 193 Melanson</A>).</P>
193 194
194 195
195 <P><B><A NAME="cinepak">2.2.1.7 Cinepak CVID</A></B></P> 196 <P><B><A NAME="cinepak">2.2.1.7 Cinepak CVID</A></B></P>
196 197
197 <P><B>MPlayer</B> uses its own open source, multiplatform Cinepak decoder by 198 <P><B>MPlayer</B> uses its own open source, multiplatform Cinepak decoder by
198 default. It supports YUV outputs, so that hardware scaling is possible if the 199 default. It supports YUV outputs, so that hardware scaling is possible if the
199 video output driver permits it.</P> 200 video output driver permits it.</P>
200 201
201 202
202 <P><B><A NAME="realvideo">2.2.1.8 RealVideo</A></B></P> 203 <P><B><A NAME="realvideo">2.2.1.8 RealVideo</A></B></P>
203 204
204 <B>MPlayer</B> supports decoding all versions of RealVideo: 205 <B>MPlayer</B> supports decoding all versions of RealVideo:
208 <LI>RealVideo 3.0 (fourcc RV30) - decoding supported by <B>RealPlayer libraries</B></LI> 209 <LI>RealVideo 3.0 (fourcc RV30) - decoding supported by <B>RealPlayer libraries</B></LI>
209 </UL> 210 </UL>
210 211
211 <P>It is recommended to download and install RealPlayer8 or RealONE, because 212 <P>It is recommended to download and install RealPlayer8 or RealONE, because
212 <B>MPlayer</B> can use their libraries to decode files with RealVideo 2.0 or 213 <B>MPlayer</B> can use their libraries to decode files with RealVideo 2.0 or
213 RealVideo 3.0 video. You may also just take the RealPlayer libraries from a 214 RealVideo 3.0 video. The <B>MPlayer</B> configure script should detect the
214 full installation and put them in a suitable directory like 215 RealPlayer libraries in the standard locations of a full installation. If it
215 <CODE>/usr/lib/real</CODE> or <CODE>$LIBDIR/real</CODE>. The <B>MPlayer</B> 216 does not, tell configure where to look with the
216 configure script should detect the RealPlayer libraries there or in the 217 <CODE>--with-reallibdir</CODE> switch.</P>
217 standard locations of a full installation. If it does not, tell configure
218 where to look with the <CODE>--with-reallibdir</CODE> switch.</P>
219 218
220 <P><B>Note:</B> RealPlayer libraries currently <B>only work with Linux, FreeBSD, 219 <P><B>Note:</B> RealPlayer libraries currently <B>only work with Linux, FreeBSD,
221 NetBSD and Cygwin on the x86 platform</B>!</P> 220 NetBSD and Cygwin on the x86 platform</B>!</P>
222 221
223 <P><B>Note2:</B> We cannot distribute the RealPlayer libraries, the license does 222 <P><B>Note2:</B> We cannot distribute the RealPlayer libraries, the license does
283 282
284 <P><B><A NAME="audio_codecs">2.2.2 Audio codecs</A></B></P> 283 <P><B><A NAME="audio_codecs">2.2.2 Audio codecs</A></B></P>
285 284
286 <P>The most important audio codecs above all:<BR></P> 285 <P>The most important audio codecs above all:<BR></P>
287 <UL> 286 <UL>
288 <LI>MPEG layer 2, and layer 3 (MP3) audio (<B>native</B> code, with MMX/SSE/3DNow! optimization)</LI> 287 <LI>MPEG layer 2, and layer 3 (MP3) audio (<B>native</B> code, with
289 <LI>MPEG layer 1 audio (<B>native</B> code, with libavcodec)</LI> 288 MMX/SSE/3DNow! optimization)</LI>
290 <LI>AC3 Dolby audio (<B>native</B> code, with MMX/SSE/3DNow! optimization)</LI> 289 <LI>MPEG layer 1 audio (<B>native</B> code, with libavcodec)</LI>
291 <LI>Ogg Vorbis audio codec (<B>native</B> library)</LI> 290 <LI>AC3 Dolby audio (<B>native</B> code, with MMX/SSE/3DNow!
292 <LI>Voxware audio (using DirectShow DLL)</LI> 291 optimization)</LI>
293 <LI>alaw, msgsm, pcm and other simple old audio formats</LI> 292 <LI>Ogg Vorbis audio codec (<B>native</B> library)</LI>
294 <LI>VIVO audio (g723, Vivo Siren)</LI> 293 <LI>Voxware audio (using DirectShow DLL)</LI>
295 <LI>RealAudio: DNET (low bitrate AC3), Cook, Sipro</LI> 294 <LI>alaw, msgsm, pcm and other simple old audio formats</LI>
295 <LI>VIVO audio (g723, Vivo Siren)</LI>
296 <LI>RealAudio: DNET (low bitrate AC3), Cook</LI>
296 </UL> 297 </UL>
297 298
298 299
299 <P><B><A NAME="software_ac3">2.2.2.1 Software AC3 decoding</A></B></P> 300 <P><B><A NAME="software_ac3">2.2.2.1 Software AC3 decoding</A></B></P>
300 301
301 <P>This is the default decoder used for files with AC3 audio.</P> 302 <P>This is the default decoder used for files with AC3 audio.</P>
302 303
303 <P>The AC3 decoder can create audio output mixes for 2, 4, or 6 304 <P>The AC3 decoder can create audio output mixes for 2, 4, or 6 speakers. When
304 speakers. When configured for 6 speakers, this decoder provides 305 configured for 6 speakers, this decoder provides separate output of all the
305 separate output of all the AC3 channels to the sound driver, 306 AC3 channels to the sound driver, allowing for full "surround sound"
306 allowing for full "surround sound" experience without the external AC3 307 experience without the external AC3 decoder required to use the hwac3
307 decoder required to use the hwac3 codec.</P> 308 codec.</P>
308 309
309 <P>Use the <CODE>-channels</CODE> option to select the number of output channels. 310 <P>Use the <CODE>-channels</CODE> option to select the number of output
310 Use <CODE>-channels 2</CODE> for a stereo downmix. For a 4 channel downmix (Left 311 channels. Use <CODE>-channels 2</CODE> for a stereo downmix. For a 4
311 Front, Right Front, Left Surround and Right Surround outputs), use 312 channel downmix (Left Front, Right Front, Left Surround and Right Surround
312 <CODE>-channels 4</CODE>. In this case, any center channel will be mixed 313 outputs), use <CODE>-channels 4</CODE>. In this case, any center channel will
313 equally to the front channels. <CODE>-channels 6</CODE> will output all the AC3 314 be mixed equally to the front channels. <CODE>-channels 6</CODE> will output
314 channels as they are encoded - in the order Left, Right, Left Surround, Right 315 all the AC3 channels as they are encoded - in the order Left, Right, Left
315 Surround, Center and LFE.</P> 316 Surround, Right Surround, Center and LFE.</P>
316 317
317 <P>The default number of output channels is 2.</P> 318 <P>The default number of output channels is 2.</P>
318 319
319 <P>To use more than 2 output channels, you will need to use OSS, and have a sound 320 <P>To use more than 2 output channels, you will need to use OSS, and have a
320 card that supports the appropriate number of output channels via the 321 sound card that supports the appropriate number of output channels via the
321 SNDCTL_DSP_CHANNELS ioctl. An example of a suitable driver is emu10k1 (used by 322 SNDCTL_DSP_CHANNELS ioctl. An example of a suitable driver is emu10k1 (used
322 Soundblaster Live! cards) from August 2001 or newer (ALSA CVS is also supposed to 323 by Soundblaster Live! cards) from August 2001 or newer (ALSA CVS is also
323 work).</P> 324 supposed to work).</P>
324 325
325 326
326 <P><B><A NAME="hardware_ac3">2.2.2.2 Hardware AC3 decoding</A></B></P> 327 <P><B><A NAME="hardware_ac3">2.2.2.2 Hardware AC3 decoding</A></B></P>
327 328
328 <P>You need an AC3 capable sound card, with digital out (SP/DIF). The 329 <P>You need an AC3 capable sound card, with digital out (SP/DIF). The card's
329 card's driver must properly support the AFMT_AC3 format (C-Media does). 330 driver must properly support the AFMT_AC3 format (C-Media does). Connect
330 Connect your AC3 decoder to the SP/DIF output, and use the <CODE>-ac hwac3</CODE> 331 your AC3 decoder to the SP/DIF output, and use the <CODE>-ac hwac3</CODE>
331 option. It is experimental but known to work with C-Media cards and Soundblaster 332 option. It is experimental but known to work with C-Media cards and
332 Live! + ALSA (but not OSS) drivers.</P> 333 Soundblaster Live! + ALSA (but not OSS) drivers.</P>
333 334
334 335
335 <P><B><A NAME="libmad">2.2.2.3 libmad support</A></B></P> 336 <P><B><A NAME="libmad">2.2.2.3 libmad support</A></B></P>
336 337
337 <P><A HREF="http://mad.sourceforge.net">libmad</A> is a multiplatform MPEG audio 338 <P><A HREF="http://mad.sourceforge.net">libmad</A> is a multiplatform MPEG
338 decoding library. It does not handle broken files well, and it sometimes has 339 audio decoding library. It does not handle broken files well, and it
339 problems with seeking.</P> 340 sometimes has problems with seeking.</P>
340 341
341 <P>To enable support, compile with the <CODE>--enable-mad</CODE> configure 342 <P>To enable support, compile with the <CODE>--enable-mad</CODE> configure
342 option.</P> 343 option.</P>
343 344
344 345
345 <P><B><A NAME="vivo_audio">2.2.2.4 VIVO audio</A></B></P> 346 <P><B><A NAME="vivo_audio">2.2.2.4 VIVO audio</A></B></P>
346 347
347 <P>The audio codec used in VIVO files depends on whether it is a VIVO/1.0 or 348 <P>The audio codec used in VIVO files depends on whether it is a VIVO/1.0 or
348 VIVO/2.0 file. VIVO/1.0 files have <B>g.723</B> audio, and VIVO/2.0 files 349 VIVO/2.0 file. VIVO/1.0 files have <B>g.723</B> audio, and VIVO/2.0 files
349 have <B>Vivo Siren</B> audio. Both are supported. You can grab the g.723/Siren 350 have <B>Vivo Siren</B> audio. Both are supported. You can grab the
350 Win32 DLL from 351 g.723/Siren Win32 DLL from
351 <A HREF="http://www.mplayerhq.hu/MPlayer/samples/drivers32/vivog723.acm">here</A>, 352 <A HREF="http://www.mplayerhq.hu/MPlayer/samples/drivers32/vivog723.acm">here</A>,
352 then copy it into the <CODE>/usr/lib/win32</CODE> directory.</P> 353 then copy it into the <CODE>/usr/lib/win32</CODE> directory.</P>
353 354
354 355
355 <P><B><A NAME="realaudio">2.2.2.5 RealAudio</A></B></P> 356 <P><B><A NAME="realaudio">2.2.2.5 RealAudio</A></B></P>
356 357
357 <B>MPlayer</B> supports decoding all versions of RealAudio: 358 <B>MPlayer</B> supports decoding nearly all versions of RealAudio:
358 <UL> 359 <UL>
359 <LI>RealAudio DNET - decoding supported by <B>liba52</B></LI> 360 <LI>RealAudio DNET - decoding supported by <B>liba52</B></LI>
360 <LI>RealAudio Cook - decoding supported by <B>RealPlayer libraries</B></LI> 361 <LI>RealAudio Cook - decoding supported by <B>RealPlayer libraries</B></LI>
361 <LI>RealAudio Sipro - decoding supported by <B>RealPlayer libraries</B></LI> 362 <LI>RealAudio Sipro - not yet supported</LI>
362 </UL> 363 </UL>
363
364 364
365 <P>On how to install RealPlayer libraries, see the 365 <P>On how to install RealPlayer libraries, see the
366 <A HREF="formats.html#real">RealMedia file format</A> section.</P> 366 <A HREF="formats.html#real">RealMedia file format</A> section.</P>
367 367
368 368