comparison DOCS/codecs.html @ 8944:44a4f3cd8d88

DivX CVS instructions as provided by Alex Kloss <alex@22-music.com>.
author diego
date Mon, 13 Jan 2003 13:43:48 +0000
parents ffbe67e968e2
children 4b23db031bed
comparison
equal deleted inserted replaced
8943:f55308c2973b 8944:44a4f3cd8d88
54 54
55 <P>The new generation of this codec is called DivX4 and can even decode 55 <P>The new generation of this codec is called DivX4 and can even decode
56 movies made with the infamous DivX codec! In addition it is much faster than 56 movies made with the infamous DivX codec! In addition it is much faster than
57 the native Win32 DivX DLLs but slower than libavcodec. Hence its usage as a 57 the native Win32 DivX DLLs but slower than libavcodec. Hence its usage as a
58 decoder is <B>DISCOURAGED</B>. However, it is useful for encoding. One 58 decoder is <B>DISCOURAGED</B>. However, it is useful for encoding. One
59 disadvantage of this codec is that it is currently closed source.</P> 59 disadvantage of this codec is that it is not available under an Open Source
60 60 license.</P>
61 <P>The codec can be downloaded from one of the following URLs:</P>
62
63 <P>&nbsp;&nbsp;&nbsp;&nbsp;<A HREF="http://avifile.sourceforge.net">http://avifile.sourceforge.net</A><BR>
64 &nbsp;&nbsp;&nbsp;&nbsp;<A HREF="http://divx.com">http://divx.com</A></P>
65
66 <P>Unpack it, and run <CODE>./install.sh</CODE> as root.</P>
67
68 <P><B>Note:</B> Do <B>not</B> forget adding <CODE>/usr/local/lib</CODE> to your
69 <CODE>/etc/ld.so.conf</CODE> and running <CODE>ldconfig</CODE>!</P>
70
71 <P>MPlayer autodetects DivX4/DivX5 if it is properly installed, just
72 compile as usual. If it does not detect it, you did not install or configure
73 it correctly.</P>
74 61
75 <P>DivX4Linux works in two modes:</P> 62 <P>DivX4Linux works in two modes:</P>
76 63
77 <DL> 64 <DL>
78 <DT><CODE>-vc odivx</CODE></DT> 65 <DT><CODE>-vc odivx</CODE></DT>
91 <CODE>-vc divx4</CODE> method. For RGB modes the speed is the same, differing 78 <CODE>-vc divx4</CODE> method. For RGB modes the speed is the same, differing
92 at best according to your current color depth.</P> 79 at best according to your current color depth.</P>
93 80
94 <P><B>Note:</B> If your <CODE>-vo</CODE> driver supports direct rendering, then 81 <P><B>Note:</B> If your <CODE>-vo</CODE> driver supports direct rendering, then
95 <CODE>-vc divx4</CODE> may be faster or even the fastest solution.</P> 82 <CODE>-vc divx4</CODE> may be faster or even the fastest solution.</P>
83
84 <P>The codec can be downloaded from
85 <A HREF="http://avifile.sourceforge.net">avifile</A>.
86 Unpack it, run <CODE>./install.sh</CODE> as root and do not forget adding
87 <CODE>/usr/local/lib</CODE> to your <CODE>/etc/ld.so.conf</CODE> and running
88 <CODE>ldconfig</CODE>.</P>
89
90 <P>Get the CVS version of the core library like this:</P>
91
92 <OL>
93 <LI><CODE>cvs -d:pserver:anonymous@cvs.projectmayo.com:/cvsroot login</CODE></LI>
94 <LI><CODE>cvs -d:pserver:anonymous@cvs.projectmayo.com:/cvsroot co divxcore</CODE></LI>
95 <LI>This core library is split into a decore and encore library that have to
96 be compiled separately. For the decore Library, simply type
97 <PRE>
98 cd divxcore/decore/build/linux
99 make
100 cp libdivxdecore.so /usr/local/lib
101 ln -s /usr/local/lib/libdivxdecore.so /usr/local/lib/libdivxdecore.so.0
102 cp ../../src/decore.h /usr/local/include
103 </PRE>
104 </LI>
105 <LI>Alas, for the encore library there is no Linux Makefile available, and the
106 MMX optimized code only works on Windows. You can still compile it, though,
107 by using this
108 <A HREF="ftp://ftp.mplayerhq.hu/MPlayer/contrib/divx-mf/Makefile">Makefile</A>.
109 <PRE>
110 cd ../../../encore/build
111 mkdir linux
112 cd linux
113 cp path/Makefile .
114 make
115 cp libdivxencore.so /usr/local/lib
116 ln -s /usr/local/lib/libdivxdecore.so /usr/local/lib/libdivxdecore.so.0
117 cp ../../src/encore.h /usr/local/include
118 </PRE>
119 </LI>
120 </OL>
121
122 <P>MPlayer autodetects DivX4/DivX5 if it is properly installed, just
123 compile as usual. If it does not detect it, you did not install or configure
124 it correctly.</P>
96 125
97 126
98 <H4><A NAME="libavcodec">2.2.1.2 FFmpeg DivX/libavcodec</A></H4> 127 <H4><A NAME="libavcodec">2.2.1.2 FFmpeg DivX/libavcodec</A></H4>
99 128
100 <P><A HREF="http://ffmpeg.sourceforge.net">FFmpeg</A> contains an 129 <P><A HREF="http://ffmpeg.sourceforge.net">FFmpeg</A> contains an