comparison DOCS/codecs.html @ 5018:0cb063e71d9a

DivX5 support
author gabucino
date Sun, 10 Mar 2002 08:12:24 +0000
parents 6cb9d9a1716d
children f30ea91ce6f9
comparison
equal deleted inserted replaced
5017:940f3bf0c3a0 5018:0cb063e71d9a
35 35
36 <P>If you have a Win32 codec not listed here, and not supported yet, just read the <A 36 <P>If you have a Win32 codec not listed here, and not supported yet, just read the <A
37 HREF="#2.2.3">codec importing</A> to get info about how to help us adding support 37 HREF="#2.2.3">codec importing</A> to get info about how to help us adding support
38 for it!</P> 38 for it!</P>
39 39
40 <P><B><A NAME=2.2.1.1>2.2.1.1. DivX4</A></B></P> 40 <P><B><A NAME=2.2.1.1>2.2.1.1. DivX4/DivX5</A></B></P>
41 41
42 <P>This section contains information about the DivX4 codec of 42 <P>This section contains information about the DivX4 codec of
43 <A HREF="http://www.projectmayo.com">ProjectMayo</A>. Their first available alpha version was the OpenDivX 4.0 43 <A HREF="http://www.projectmayo.com">ProjectMayo</A>. Their first available alpha version was the OpenDivX 4.0
44 alpha 47 and 48. Support for this was/is included in <B>MPlayer</B>, and built by 44 alpha 47 and 48. Support for this was/is included in <B>MPlayer</B>, and built by
45 default. We used to use its postprocessing code to optionally enhance visual 45 default. We used to use its postprocessing code to optionally enhance visual
46 quality of MPEG1/2 movies. Now we use our own.</P> 46 quality of MPEG1/2 movies. Now we use our own.</P>
47 47
48 <P>The new generation of this codec can even decode movies made with the 48 <P>The new generation of this codec can even decode movies made with the
49 infamous DivX codec! And it's not everything, it's MUCH faster than the 49 infamous DivX codec! And it's not everything, it's MUCH faster than the
50 traditional Win32 DivX DLL's (note that libavcodec's decoder is EVEN FASTER :). 50 traditional Win32 DivX DLL's (note that libavcodec's decoder is EVEN FASTER,
51 See below for configuration. The only disadvantage of this codec is that it's 51 so the usage of this codec is <B>DISCOURAGED</B> - you need it only for
52 currently closed-source. :(</P> 52 encoding). See below for configuration. The only disadvantage of this codec is
53 that it's currently closed-source. :(</P>
53 54
54 <P>The codec can be downloaded from the following URL:</P> 55 <P>The codec can be downloaded from the following URL:</P>
55 56
56 <P>&nbsp;&nbsp;&nbsp;&nbsp;<A HREF="http://avifile.sourceforge.net">http://avifile.sourceforge.net</A></P> 57 <P>&nbsp;&nbsp;&nbsp;&nbsp;<A HREF="http://avifile.sourceforge.net">http://avifile.sourceforge.net</A></P>
57 58
62 <P>Unpack it, and run <CODE>./install.sh</CODE> as root.</P> 63 <P>Unpack it, and run <CODE>./install.sh</CODE> as root.</P>
63 64
64 <P>Note: do NOT forget to add <CODE>/usr/local/lib</CODE> to your 65 <P>Note: do NOT forget to add <CODE>/usr/local/lib</CODE> to your
65 <CODE>/etc/ld.so.conf</CODE> and running <CODE>ldconfig</CODE> !</P> 66 <CODE>/etc/ld.so.conf</CODE> and running <CODE>ldconfig</CODE> !</P>
66 67
67 <P><B>MPlayer</B> autodetects if DivX4 is (properly) installed, just compile 68 <P><B>MPlayer</B> autodetects if DivX4/DivX5 is (properly) installed, just
68 as usual. If it doesn't detect it, you didn't install it exactly as above, 69 compile as usual. If it doesn't detect it, you didn't install it exactly as
69 and/or has messed up config (see last question of 5.1 section).</P> 70 above, and/or has messed up config (see last question of 5.1 section).</P>
70 71
71 <P>Using it is a bit tricky. As it conflicts with the old OpenDivX (its API is 72 <P>Using it is a bit tricky. As it conflicts with the old OpenDivX (its API is
72 very similar to OpenDivX's), OpenDivX code is disabled, and the OpenDivX 73 very similar to OpenDivX's), OpenDivX code is disabled, and the OpenDivX
73 driver calls this library too.</P> 74 driver calls this library too.</P>
74 75
75 <P>Generally we can pinpoint this issue to that you have two options to use 76 <P>Generally we can pinpoint this issue to that you have two options to use
76 this codec:</P> 77 this codec:</P>
77 78
78 <P><TABLE BORDER=0> 79 <P><TABLE BORDER=0>
79 <TD>&nbsp;&nbsp;</TD><TD VALIGN=top><FONT CLASS="text">-vc&nbsp;odivx</TD><TD>&nbsp;&nbsp;</TD> 80 <TD>&nbsp;&nbsp;</TD><TD VALIGN=top><FONT CLASS="text">-vc&nbsp;odivx</TD><TD>&nbsp;&nbsp;</TD>
80 <TD><FONT CLASS="text">using divx4 codec as a new version of OpenDivX. 81 <TD><FONT CLASS="text">using the codec as a new version of OpenDivX.
81 in this case it produces YV12 image in its own buffer, 82 in this case it produces YV12 image in its own buffer,
82 and <B>MPlayer</B> (libvo) does colorspace conversion. (<B>RECOMMENDED!</B>)</TD><TR> 83 and <B>MPlayer</B> (libvo) does colorspace conversion. (<B>RECOMMENDED!</B>)</TD><TR>
83 <TD></TD><TD VALIGN=top><FONT CLASS="text">-vc&nbsp;divx4</TD><TD></TD> 84 <TD></TD><TD VALIGN=top><FONT CLASS="text">-vc&nbsp;divx4</TD><TD></TD>
84 <TD><FONT CLASS="text">using divx4 codec's colorspace conversion. 85 <TD><FONT CLASS="text">using the codec's colorspace conversion.
85 in this mode, you can use YUY2/UYVY too.</TD></TR> 86 in this mode, you can use YUY2/UYVY too.</TD></TR>
86 </TABLE></P> 87 </TABLE></P>
87 88
88 <P>The 'odivx' method is usually faster, due to the fact that it transfers 89 <P>The 'odivx' method is usually faster, due to the fact that it transfers
89 image data in YV12 (planar YUV 4:2:0) format, thus requiring much less 90 image data in YV12 (planar YUV 4:2:0) format, thus requiring much less
103 <TD></TD><TD><FONT CLASS="text">hard prostprocessing, eats many CPU (like level 4 with divxds</TD><TR> 104 <TD></TD><TD><FONT CLASS="text">hard prostprocessing, eats many CPU (like level 4 with divxds</TD><TR>
104 </TABLE></P> 105 </TABLE></P>
105 106
106 <P><B><A NAME=2.2.1.2>2.2.1.2. ffmpeg's DivX/libavcodec</A></B></P> 107 <P><B><A NAME=2.2.1.2>2.2.1.2. ffmpeg's DivX/libavcodec</A></B></P>
107 108
108 <P>Beginning with version 0.4.2 , <A HREF="http://ffmpeg.sourceforge.net">ffmpeg</A> contains an <B>opensource</B> DivX codec, 109 <P>Beginning with version 0.4.2 ,
109 which is compatible with the traditional DivX. <B>MPlayer</B> supports this codec, 110 <A HREF="http://ffmpeg.sourceforge.net">ffmpeg</A> contains an
110 and this makes it possible to <B>watch DivX/DivX4 movies on non-x86 platforms</B>, 111 <B>opensource</B> DivX codec, which is compatible with the traditional DivX.
111 and gain much faster <B>DivX/DivX4</B> decoding speed than the Win32 codecs and 112 <B>MPlayer</B> supports this codec, and this makes it possible to <B>watch
112 the original DivX4 library has!</P> 113 DivX/DivX4/DivX5 movies on non-x86 platforms</B>, and gain much faster
114 <B>DivX/DivX4/DivX5</B> decoding speed than the Win32 codecs and the original
115 DivX4 library has!</P>
113 116
114 <P>It also contains lots of nice codecs, such as RealVideo 1.0, MJPEG, h263, 117 <P>It also contains lots of nice codecs, such as RealVideo 1.0, MJPEG, h263,
115 h263+, etc.</P> 118 h263+, etc.</P>
116 119
117 <P>If you use MPlayer 120 <P>If you use MPlayer
149 152
150 <P>To achieve the <B>greatest speed</B> on my K6, I remove the 153 <P>To achieve the <B>greatest speed</B> on my K6, I remove the
151 <CODE>ffmpeg12</CODE> section from codecs.conf (this codec isn't optimized, and 154 <CODE>ffmpeg12</CODE> section from codecs.conf (this codec isn't optimized, and
152 libmpeg2 is twice as fast), and place <CODE>vfm=5</CODE> in my config file. 155 libmpeg2 is twice as fast), and place <CODE>vfm=5</CODE> in my config file.
153 Then <B>MPlayer</B> always uses <B>ffdivx/ffodivx</B> to decode 156 Then <B>MPlayer</B> always uses <B>ffdivx/ffodivx</B> to decode
154 <B>DivX/DivX4</B> files, and libmpeg2 for MPEG1/2 . With this and my Matrox G400, I can view even the 157 <B>DivX</B> files, and libmpeg2 for MPEG1/2 . With this and my
155 highest resolution DivX/DivX4 movies on my K6/2 500, without framedrop.</P> 158 Matrox G400, I can view even the highest resolution DivX movies on my
159 K6/2 500, without framedrop.</P>
156 160
157 161
158 <P><B><A NAME=2.2.1.3>2.2.1.3. XAnim codecs</A></B></P> 162 <P><B><A NAME=2.2.1.3>2.2.1.3. XAnim codecs</A></B></P>
159 163
160 <P>Foreword: using (some) XAnim codecs with other program than XAnim, is 164 <P>Foreword: using (some) XAnim codecs with other program than XAnim, is