Mercurial > mplayer.hg
comparison DOCS/codecs.html @ 7814:988498df1996
<B>MPlayer</B> ---> MPlayer
author | diego |
---|---|
date | Sun, 20 Oct 2002 12:20:39 +0000 |
parents | 5d4b0446a557 |
children | 125515a0c8ed |
comparison
equal
deleted
inserted
replaced
7813:76940a39405a | 7814:988498df1996 |
---|---|
45 <H4><A NAME="divx">2.2.1.1 DivX4/DivX5</A></H4> | 45 <H4><A NAME="divx">2.2.1.1 DivX4/DivX5</A></H4> |
46 | 46 |
47 <P>This section contains information about the DivX4 and DivX5 codecs of | 47 <P>This section contains information about the DivX4 and DivX5 codecs of |
48 <A HREF="http://www.projectmayo.com">Project Mayo</A>. Their first available | 48 <A HREF="http://www.projectmayo.com">Project Mayo</A>. Their first available |
49 alpha version was OpenDivX 4.0 alpha 47 and 48. Support for this was included | 49 alpha version was OpenDivX 4.0 alpha 47 and 48. Support for this was included |
50 in <B>MPlayer</B> in the past, and built by default. We also used its | 50 in MPlayer in the past, and built by default. We also used its |
51 postprocessing code to optionally enhance visual quality of MPEG1/2 movies. | 51 postprocessing code to optionally enhance visual quality of MPEG1/2 movies. |
52 Now we use our own, for all file types.</P> | 52 Now we use our own, for all file types.</P> |
53 | 53 |
54 <P>The new generation of this codec is called DivX4 and can even decode | 54 <P>The new generation of this codec is called DivX4 and can even decode |
55 movies made with the infamous DivX codec! In addition it is much faster than | 55 movies made with the infamous DivX codec! In addition it is much faster than |
65 <P>Unpack it, and run <CODE>./install.sh</CODE> as root.</P> | 65 <P>Unpack it, and run <CODE>./install.sh</CODE> as root.</P> |
66 | 66 |
67 <P><B>Note:</B> Do <B>not</B> forget adding <CODE>/usr/local/lib</CODE> to your | 67 <P><B>Note:</B> Do <B>not</B> forget adding <CODE>/usr/local/lib</CODE> to your |
68 <CODE>/etc/ld.so.conf</CODE> and running <CODE>ldconfig</CODE>!</P> | 68 <CODE>/etc/ld.so.conf</CODE> and running <CODE>ldconfig</CODE>!</P> |
69 | 69 |
70 <P><B>MPlayer</B> autodetects DivX4/DivX5 if it is properly installed, just | 70 <P>MPlayer autodetects DivX4/DivX5 if it is properly installed, just |
71 compile as usual. If it does not detect it, you did not install or configure | 71 compile as usual. If it does not detect it, you did not install or configure |
72 it correctly.</P> | 72 it correctly.</P> |
73 | 73 |
74 <P>DivX4Linux works in two modes:</P> | 74 <P>DivX4Linux works in two modes:</P> |
75 | 75 |
76 <DL> | 76 <DL> |
77 <DT><CODE>-vc odivx</CODE></DT> | 77 <DT><CODE>-vc odivx</CODE></DT> |
78 <DD>Uses the codec in OpenDivX fashion. In this case it | 78 <DD>Uses the codec in OpenDivX fashion. In this case it |
79 produces YV12 images in its own buffer, and <B>MPlayer</B> does colorspace | 79 produces YV12 images in its own buffer, and MPlayer does colorspace |
80 conversion via libvo. (<B>Fast, recommended!</B>)</DD> | 80 conversion via libvo. (<B>Fast, recommended!</B>)</DD> |
81 | 81 |
82 <DT><CODE>-vc divx4</CODE></DT> | 82 <DT><CODE>-vc divx4</CODE></DT> |
83 <DD>Uses the colorspace conversion of the codec. | 83 <DD>Uses the colorspace conversion of the codec. |
84 In this mode you can use YUY2/UYVY, too. (<B>SLOW</B>)</DD> | 84 In this mode you can use YUY2/UYVY, too. (<B>SLOW</B>)</DD> |
105 | 105 |
106 <P>It contains a lot of nice codecs, especially important are the MPEG4 | 106 <P>It contains a lot of nice codecs, especially important are the MPEG4 |
107 variants: | 107 variants: |
108 DivX 3, DivX 4, DivX 5, Windows Media Video 7 (WMV1)</P> | 108 DivX 3, DivX 4, DivX 5, Windows Media Video 7 (WMV1)</P> |
109 | 109 |
110 <P>If you use an <B>MPlayer</B> release you have libavcodec right in the | 110 <P>If you use an MPlayer release you have libavcodec right in the |
111 package, just build as usual. If you use <B>MPlayer</B> from CVS you have to | 111 package, just build as usual. If you use MPlayer from CVS you have to |
112 extract libavcodec from the FFmpeg CVS tree as FFmpeg 0.4.5 does <B>not</B> | 112 extract libavcodec from the FFmpeg CVS tree as FFmpeg 0.4.5 does <B>not</B> |
113 work with <B>MPlayer</B>. In order to achieve this do:</P> | 113 work with MPlayer. In order to achieve this do:</P> |
114 | 114 |
115 <OL> | 115 <OL> |
116 <LI><CODE>cvs -d:pserver:anonymous@cvs.ffmpeg.sourceforge.net:/cvsroot/ffmpeg login</CODE></LI> | 116 <LI><CODE>cvs -d:pserver:anonymous@cvs.ffmpeg.sourceforge.net:/cvsroot/ffmpeg login</CODE></LI> |
117 <LI><CODE>cvs -d:pserver:anonymous@cvs.ffmpeg.sourceforge.net:/cvsroot/ffmpeg co ffmpeg</CODE></LI> | 117 <LI><CODE>cvs -d:pserver:anonymous@cvs.ffmpeg.sourceforge.net:/cvsroot/ffmpeg co ffmpeg</CODE></LI> |
118 <LI>Move the <CODE>libavcodec</CODE> directory from the FFmpeg sources to the | 118 <LI>Move the <CODE>libavcodec</CODE> directory from the FFmpeg sources to the |
119 root of the <B>MPlayer</B> CVS tree. It should look like this: | 119 root of the MPlayer CVS tree. It should look like this: |
120 <P> <CODE>main/libavcodec</CODE></P> | 120 <P> <CODE>main/libavcodec</CODE></P> |
121 Symlinking is <B>not</B> enough, you have to copy or move it!</LI> | 121 Symlinking is <B>not</B> enough, you have to copy or move it!</LI> |
122 <LI>Compile. Configure should detect problems before compilation.</LI> | 122 <LI>Compile. Configure should detect problems before compilation.</LI> |
123 </OL> | 123 </OL> |
124 | 124 |
125 <P><B>Note:</B> <B>MPlayer</B> from CVS does contain a libavcodec | 125 <P><B>Note:</B> MPlayer from CVS does contain a libavcodec |
126 subdirectory, but it does <B>not</B> contain the source for libavcodec! | 126 subdirectory, but it does <B>not</B> contain the source for libavcodec! |
127 You must follow the steps above to obtain the source for this library.</P> | 127 You must follow the steps above to obtain the source for this library.</P> |
128 | 128 |
129 <P>With FFmpeg and my Matrox G400, I can view even the highest resolution DivX | 129 <P>With FFmpeg and my Matrox G400, I can view even the highest resolution DivX |
130 movies without dropped frames on my K6/2 500.</P> | 130 movies without dropped frames on my K6/2 500.</P> |
138 restrictions, forbids the user to use the codecs in conjunction with any | 138 restrictions, forbids the user to use the codecs in conjunction with any |
139 program other than XAnim. However, the XAnim author has yet to bring legal | 139 program other than XAnim. However, the XAnim author has yet to bring legal |
140 action against anyone for codec-related issues. | 140 action against anyone for codec-related issues. |
141 </P> | 141 </P> |
142 | 142 |
143 <P><B>MPlayer</B> is capable of employing the XAnim codecs for decoding. Follow | 143 <P>MPlayer is capable of employing the XAnim codecs for decoding. Follow |
144 the instructions to enable them:</P> | 144 the instructions to enable them:</P> |
145 | 145 |
146 <OL> | 146 <OL> |
147 <LI>Download the codecs you wish to use from the | 147 <LI>Download the codecs you wish to use from the |
148 <A HREF="http://xanim.va.pubnix.com">XAnim site</A>. The <B>3ivx</B> codec | 148 <A HREF="http://xanim.va.pubnix.com">XAnim site</A>. The <B>3ivx</B> codec |
155 <LI>Rename/symlink the files, cutting out the architecture stuff, so they will | 155 <LI>Rename/symlink the files, cutting out the architecture stuff, so they will |
156 have filenames like these: <CODE>vid_cvid.xa, vid_h263.xa, vid_iv50.xa</CODE>.</LI> | 156 have filenames like these: <CODE>vid_cvid.xa, vid_h263.xa, vid_iv50.xa</CODE>.</LI> |
157 </OL> | 157 </OL> |
158 | 158 |
159 <P>XAnim is video codec family number 10, so you may want to use the <CODE>-vfm 10</CODE> | 159 <P>XAnim is video codec family number 10, so you may want to use the <CODE>-vfm 10</CODE> |
160 option to tell <B>MPlayer</B> to use them if possible.</P> | 160 option to tell MPlayer to use them if possible.</P> |
161 | 161 |
162 <P>Tested codecs include: <B>Indeo 3.2</B>, <B>4.1</B>, <B>5.0</B>, <B>CVID</B>, | 162 <P>Tested codecs include: <B>Indeo 3.2</B>, <B>4.1</B>, <B>5.0</B>, <B>CVID</B>, |
163 <B>3ivX</B>, <B>h263</B>.</P> | 163 <B>3ivX</B>, <B>h263</B>.</P> |
164 | 164 |
165 | 165 |
166 <H4><A NAME="vivo_video">2.2.1.4 VIVO video</A></H4> | 166 <H4><A NAME="vivo_video">2.2.1.4 VIVO video</A></H4> |
167 | 167 |
168 <P><B>MPlayer</B> can play Vivo (1.0 and 2.0) videos. The most suitable codec | 168 <P>MPlayer can play Vivo (1.0 and 2.0) videos. The most suitable codec |
169 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 |
170 ffh263</CODE> option (default). For 2.0 files, use the | 170 ffh263</CODE> option (default). For 2.0 files, use the |
171 <A HREF="http://www.mplayerhq.hu/MPlayer/samples/drivers32/ivvideo.dll">ivvideo.dll</A> | 171 <A HREF="http://www.mplayerhq.hu/MPlayer/samples/drivers32/ivvideo.dll">ivvideo.dll</A> |
172 Win32 DLL file, and install it under <CODE>/usr/lib/win32</CODE> or wherever you store the | 172 Win32 DLL file, and install it under <CODE>/usr/lib/win32</CODE> or wherever you store the |
173 Win32 codecs.</P> | 173 Win32 codecs.</P> |
174 | 174 |
175 | 175 |
176 <H4><A NAME="mpeg">2.2.1.5 MPEG 1/2 video</A></H4> | 176 <H4><A NAME="mpeg">2.2.1.5 MPEG 1/2 video</A></H4> |
177 | 177 |
178 <P>MPEG1 and MPEG2 are decoded by the multiplatform native <B>libmpeg2</B> | 178 <P>MPEG1 and MPEG2 are decoded by the multiplatform native <B>libmpeg2</B> |
179 library, whose source code is included in <B>MPlayer</B>. We handle buggy | 179 library, whose source code is included in MPlayer. We handle buggy |
180 MPEG 1/2 video files by catching sig11 (segmentation fault), and quickly | 180 MPEG 1/2 video files by catching sig11 (segmentation fault), and quickly |
181 reinitializing the codec, continuing exactly from where the failure occurred. | 181 reinitializing the codec, continuing exactly from where the failure occurred. |
182 This recovery technique has no measurable speed penalty.</P> | 182 This recovery technique has no measurable speed penalty.</P> |
183 | 183 |
184 | 184 |
190 Melanson</A>).</P> | 190 Melanson</A>).</P> |
191 | 191 |
192 | 192 |
193 <H4><A NAME="cinepak">2.2.1.7 Cinepak CVID</A></H4> | 193 <H4><A NAME="cinepak">2.2.1.7 Cinepak CVID</A></H4> |
194 | 194 |
195 <P><B>MPlayer</B> uses its own open source, multiplatform Cinepak decoder by | 195 <P>MPlayer uses its own open source, multiplatform Cinepak decoder by |
196 default. It supports YUV outputs, so that hardware scaling is possible if the | 196 default. It supports YUV outputs, so that hardware scaling is possible if the |
197 video output driver permits it.</P> | 197 video output driver permits it.</P> |
198 | 198 |
199 | 199 |
200 <H4><A NAME="realvideo">2.2.1.8 RealVideo</A></H4> | 200 <H4><A NAME="realvideo">2.2.1.8 RealVideo</A></H4> |
201 | 201 |
202 <B>MPlayer</B> supports decoding all versions of RealVideo: | 202 MPlayer supports decoding all versions of RealVideo: |
203 | 203 |
204 <UL> | 204 <UL> |
205 <LI>RealVideo 1.0 (fourcc RV10) - en/decoding supported by <B>libavcodec</B></LI> | 205 <LI>RealVideo 1.0 (fourcc RV10) - en/decoding supported by <B>libavcodec</B></LI> |
206 <LI>RealVideo 2.0, 3.0, 4.0 (fourcc RV20, RV30, RV40) - decoding supported by <B>RealPlayer libraries</B></LI> | 206 <LI>RealVideo 2.0, 3.0, 4.0 (fourcc RV20, RV30, RV40) - decoding supported by <B>RealPlayer libraries</B></LI> |
207 </UL> | 207 </UL> |
208 | 208 |
209 <P>It is recommended to download and install RealPlayer8 or RealONE, because | 209 <P>It is recommended to download and install RealPlayer8 or RealONE, because |
210 <B>MPlayer</B> can use their libraries to decode files with RealVideo 2.0 - | 210 MPlayer can use their libraries to decode files with RealVideo 2.0 - |
211 4.0 video. The <B>MPlayer</B> configure script should detect the | 211 4.0 video. The MPlayer configure script should detect the |
212 RealPlayer libraries in the standard locations of a full installation. If it | 212 RealPlayer libraries in the standard locations of a full installation. If it |
213 does not, tell configure where to look with the | 213 does not, tell configure where to look with the |
214 <CODE>--with-reallibdir</CODE> switch.</P> | 214 <CODE>--with-reallibdir</CODE> switch.</P> |
215 | 215 |
216 <P><B>Note:</B> RealPlayer libraries currently <B>only work with Linux, FreeBSD, | 216 <P><B>Note:</B> RealPlayer libraries currently <B>only work with Linux, FreeBSD, |
256 <LI><CODE>cd xvidcore/build/generic</CODE></LI> | 256 <LI><CODE>cd xvidcore/build/generic</CODE></LI> |
257 <LI>Edit <CODE>Makefile.linux</CODE> to fit your needs.</LI> | 257 <LI>Edit <CODE>Makefile.linux</CODE> to fit your needs.</LI> |
258 <LI><CODE>make -f Makefile.linux</CODE></LI> | 258 <LI><CODE>make -f Makefile.linux</CODE></LI> |
259 <LI>Get <CODE>encore2.h</CODE> and <CODE>decore.h</CODE> from the DivX4Linux | 259 <LI>Get <CODE>encore2.h</CODE> and <CODE>decore.h</CODE> from the DivX4Linux |
260 package, and copy them to <CODE>/usr/local/include/</CODE>.</LI> | 260 package, and copy them to <CODE>/usr/local/include/</CODE>.</LI> |
261 <LI>Recompile <B>MPlayer</B> with <CODE>--with-xvidcore=/path/to/libcore.a</CODE>.</LI> | 261 <LI>Recompile MPlayer with <CODE>--with-xvidcore=/path/to/libcore.a</CODE>.</LI> |
262 </OL> | 262 </OL> |
263 | 263 |
264 | 264 |
265 <H4><A NAME="sorenson">2.2.1.10 Sorenson</A></H4> | 265 <H4><A NAME="sorenson">2.2.1.10 Sorenson</A></H4> |
266 | 266 |
352 | 352 |
353 <P>The audio codec used in VIVO files depends on whether it is a VIVO/1.0 or | 353 <P>The audio codec used in VIVO files depends on whether it is a VIVO/1.0 or |
354 VIVO/2.0 file. VIVO/1.0 files have <B>g.723</B> audio, and VIVO/2.0 files | 354 VIVO/2.0 file. VIVO/1.0 files have <B>g.723</B> audio, and VIVO/2.0 files |
355 have <B>Vivo Siren</B> audio. Both are supported. You can grab the | 355 have <B>Vivo Siren</B> audio. Both are supported. You can grab the |
356 <A HREF="http://www.mplayerhq.hu/MPlayer/samples/drivers32/vivog723.acm">g.723/Siren</A> | 356 <A HREF="http://www.mplayerhq.hu/MPlayer/samples/drivers32/vivog723.acm">g.723/Siren</A> |
357 Win32 DLL from the <B>MPlayer</B> site, | 357 Win32 DLL from the MPlayer site, |
358 then copy it into the <CODE>/usr/lib/win32</CODE> directory.</P> | 358 then copy it into the <CODE>/usr/lib/win32</CODE> directory.</P> |
359 | 359 |
360 | 360 |
361 <H4><A NAME="realaudio">2.2.2.5 RealAudio</A></H4> | 361 <H4><A NAME="realaudio">2.2.2.5 RealAudio</A></H4> |
362 | 362 |
363 <B>MPlayer</B> supports decoding nearly all versions of RealAudio: | 363 MPlayer supports decoding nearly all versions of RealAudio: |
364 | 364 |
365 <UL> | 365 <UL> |
366 <LI>RealAudio DNET - decoding supported by <B>liba52</B></LI> | 366 <LI>RealAudio DNET - decoding supported by <B>liba52</B></LI> |
367 <LI>RealAudio Cook/Sipro - decoding supported by <B>RealPlayer libraries</B></LI> | 367 <LI>RealAudio Cook/Sipro - decoding supported by <B>RealPlayer libraries</B></LI> |
368 <LI>RealAudio atrc - decoding not yet supported</LI> | 368 <LI>RealAudio atrc - decoding not yet supported</LI> |
377 | 377 |
378 <H4><A NAME="importing_vfw">2.2.3.1 VFW codecs</A></H4> | 378 <H4><A NAME="importing_vfw">2.2.3.1 VFW codecs</A></H4> |
379 | 379 |
380 <P>VFW (Video for Windows) is the old Video API for Windows. Its codecs have | 380 <P>VFW (Video for Windows) is the old Video API for Windows. Its codecs have |
381 the .DLL or (rarely) .DRV extension. | 381 the .DLL or (rarely) .DRV extension. |
382 If <B>MPlayer</B> fails at playing your AVI with this kind of message:</P> | 382 If MPlayer fails at playing your AVI with this kind of message:</P> |
383 | 383 |
384 <P> <CODE>UNKNOWN video codec: HFYU (0x55594648)</CODE></P> | 384 <P> <CODE>UNKNOWN video codec: HFYU (0x55594648)</CODE></P> |
385 | 385 |
386 <P>It means your AVI is encoded with a codec which has the HFYU fourcc (HFYU = | 386 <P>It means your AVI is encoded with a codec which has the HFYU fourcc (HFYU = |
387 HuffYUV codec, DIV3 = DivX Low Motion, etc...). Now that you know this, you | 387 HuffYUV codec, DIV3 = DivX Low Motion, etc...). Now that you know this, you |
433 entry.</LI> | 433 entry.</LI> |
434 </OL> | 434 </OL> |
435 | 435 |
436 <P><B>Note:</B> If there is no <CODE>Filename</CODE> entry and <CODE>DisplayName</CODE> | 436 <P><B>Note:</B> If there is no <CODE>Filename</CODE> entry and <CODE>DisplayName</CODE> |
437 contains something like <CODE>device:dmo</CODE>, then it is a DMO-Codec, which are | 437 contains something like <CODE>device:dmo</CODE>, then it is a DMO-Codec, which are |
438 currently not supported by <B>MPlayer</B>.</P> | 438 currently not supported by MPlayer.</P> |
439 | 439 |
440 <P><B>Old Method:</B> Take a deep breath and start searching the registry...</P> | 440 <P><B>Old Method:</B> Take a deep breath and start searching the registry...</P> |
441 | 441 |
442 <OL> | 442 <OL> |
443 <LI>Start <CODE>regedit</CODE>.</LI> | 443 <LI>Start <CODE>regedit</CODE>.</LI> |