1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY xvid-download-http "http://ed.gomez.free.fr/releases/xvid-&xvid-version;/xvidcore-&xvid-version;.tar.bz2">
|
---|
8 | <!ENTITY xvid-download-ftp " ">
|
---|
9 | <!ENTITY xvid-md5sum "1487c4dd4449aedeb695807467e69054">
|
---|
10 | <!ENTITY xvid-size "541 KB">
|
---|
11 | <!ENTITY xvid-buildsize "7.2 MB">
|
---|
12 | <!ENTITY xvid-time "0.2 SBU">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="xvid" xreflabel="XviD-&xvid-version;">
|
---|
16 | <?dbhtml filename="xvid.html"?>
|
---|
17 |
|
---|
18 | <sect1info>
|
---|
19 | <othername>$LastChangedBy$</othername>
|
---|
20 | <date>$Date$</date>
|
---|
21 | <keywordset>
|
---|
22 | <keyword role="package">xvidcore-&xvid-version;.tar</keyword>
|
---|
23 | <keyword role="ftpdir">xvidcore</keyword>
|
---|
24 | </keywordset>
|
---|
25 | </sect1info>
|
---|
26 |
|
---|
27 | <title>XviD-&xvid-version;</title>
|
---|
28 |
|
---|
29 | <indexterm zone="xvid">
|
---|
30 | <primary sortas="a-XviD">XviD</primary>
|
---|
31 | </indexterm>
|
---|
32 |
|
---|
33 | <sect2 role="package">
|
---|
34 | <title>Introduction to XviD</title>
|
---|
35 |
|
---|
36 | <!--
|
---|
37 | OpenDivX or Xvid?
|
---|
38 |
|
---|
39 | OpenDivX is a free implementation of the mpeg4-codec. Alas, the
|
---|
40 | developers at ProjectMayo didn't gratefully release their actual source
|
---|
41 | in compileable versions, so the displeasure of the users majority
|
---|
42 | canalized into a new project named Xvid.
|
---|
43 |
|
---|
44 | Xvid development was interrupted in Autumn 2002 due to a code-theft
|
---|
45 | the developers at Sigma design committed but it is continued now.
|
---|
46 |
|
---|
47 | For worse luck, OpenDivX and Xvid are using the same header file
|
---|
48 | names (an issue that wouldn't be resolved easily) and function
|
---|
49 | namespace, so you'll have to choose which one to use.
|
---|
50 |
|
---|
51 | I personally vote for Xvid, because the installation from sources
|
---|
52 | is much smoother. If you use mencoder and transcode at the same time,
|
---|
53 | you may want to choose different codecs for each.
|
---|
54 | -->
|
---|
55 |
|
---|
56 | <para><application>XviD</application> is an MPEG-4
|
---|
57 | compliant video CODEC.</para>
|
---|
58 |
|
---|
59 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
60 | <itemizedlist spacing="compact">
|
---|
61 | <listitem>
|
---|
62 | <para>Download (HTTP): <ulink url="&xvid-download-http;"/></para>
|
---|
63 | </listitem>
|
---|
64 | <listitem>
|
---|
65 | <para>Download (FTP): <ulink url="&xvid-download-ftp;"/></para>
|
---|
66 | </listitem>
|
---|
67 | <listitem>
|
---|
68 | <para>Download MD5 sum: &xvid-md5sum;</para>
|
---|
69 | </listitem>
|
---|
70 | <listitem>
|
---|
71 | <para>Download size: &xvid-size;</para>
|
---|
72 | </listitem>
|
---|
73 | <listitem>
|
---|
74 | <para>Estimated disk space required: &xvid-buildsize;</para>
|
---|
75 | </listitem>
|
---|
76 | <listitem>
|
---|
77 | <para>Estimated build time: &xvid-time;</para>
|
---|
78 | </listitem>
|
---|
79 | </itemizedlist>
|
---|
80 |
|
---|
81 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
82 | <itemizedlist spacing="compact">
|
---|
83 | <listitem>
|
---|
84 | <para>Required patch: <ulink
|
---|
85 | url="&patch-root;/xvidcore-&xvid-version;-gcc4-1.patch"/></para>
|
---|
86 | </listitem>
|
---|
87 | </itemizedlist>
|
---|
88 |
|
---|
89 | <bridgehead renderas="sect3">XviD Dependencies</bridgehead>
|
---|
90 |
|
---|
91 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
92 | <para role="optional"><xref linkend="NASM"/></para>
|
---|
93 |
|
---|
94 | </sect2>
|
---|
95 |
|
---|
96 | <sect2 role="installation">
|
---|
97 | <title>Installation of XviD</title>
|
---|
98 |
|
---|
99 | <para>Install <application>XviD</application> by running the following
|
---|
100 | commands:</para>
|
---|
101 |
|
---|
102 | <screen><userinput>patch -Np1 -i ../xvidcore-&xvid-version;-gcc4-1.patch &&
|
---|
103 | cd build/generic &&
|
---|
104 | ./configure --prefix=/usr &&
|
---|
105 | make</userinput></screen>
|
---|
106 |
|
---|
107 | <para>This package does not come with a test suite.</para>
|
---|
108 |
|
---|
109 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
110 |
|
---|
111 | <screen role="root"><userinput>make install &&
|
---|
112 | chmod -v 644 /usr/lib/libxvidcore.a &&
|
---|
113 | ln -v -sf libxvidcore.so.4.0 /usr/lib/libxvidcore.so.4 &&
|
---|
114 | ln -v -sf libxvidcore.so.4 /usr/lib/libxvidcore.so &&
|
---|
115 | install -v -m755 -d /usr/share/doc/xvidcore-&xvid-version;/examples &&
|
---|
116 | install -v -m644 ../../examples/* \
|
---|
117 | /usr/share/doc/xvidcore-&xvid-version;/examples</userinput></screen>
|
---|
118 |
|
---|
119 | </sect2>
|
---|
120 |
|
---|
121 | <sect2 role="commands">
|
---|
122 | <title>Command Explanations</title>
|
---|
123 |
|
---|
124 | <para><command>ln -v -sf libxvidcore.so.4 /usr/lib/libxvidcore.so</command>:
|
---|
125 | This command makes applications linked against
|
---|
126 | <filename class="libraryfile">.so</filename> names, link to
|
---|
127 | <filename class="libraryfile">.so.<replaceable>MAJOR</replaceable></filename>.
|
---|
128 | This ensures better binary compatibility, as
|
---|
129 | <application>XviD</application> developers take care not changing the
|
---|
130 | <replaceable>MAJOR</replaceable> number until there is an incompatible
|
---|
131 | ABI change.</para>
|
---|
132 |
|
---|
133 | </sect2>
|
---|
134 |
|
---|
135 | <sect2 role="content">
|
---|
136 | <title>Contents</title>
|
---|
137 |
|
---|
138 | <segmentedlist>
|
---|
139 | <segtitle>Installed Programs</segtitle>
|
---|
140 | <segtitle>Installed Library</segtitle>
|
---|
141 | <segtitle>Installed Directory</segtitle>
|
---|
142 |
|
---|
143 | <seglistitem>
|
---|
144 | <seg>None</seg>
|
---|
145 | <seg>libxvidcore.[so,a]</seg>
|
---|
146 | <seg>/usr/share/doc/xvidcore-&xvid-version;</seg>
|
---|
147 | </seglistitem>
|
---|
148 | </segmentedlist>
|
---|
149 |
|
---|
150 | <variablelist>
|
---|
151 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
152 | <?dbfo list-presentation="list"?>
|
---|
153 | <?dbhtml list-presentation="table"?>
|
---|
154 |
|
---|
155 | <varlistentry id="libxvidcore">
|
---|
156 | <term><filename class='libraryfile'>libxvidcore.[so,a]</filename></term>
|
---|
157 | <listitem>
|
---|
158 | <para>provides functions to encode and decode most
|
---|
159 | MPEG-4 video data.</para>
|
---|
160 | <indexterm zone="xvid libxvidcore">
|
---|
161 | <primary sortas="c-libxvidcore">libxvidcore.[so,a]</primary>
|
---|
162 | </indexterm>
|
---|
163 | </listitem>
|
---|
164 | </varlistentry>
|
---|
165 |
|
---|
166 | </variablelist>
|
---|
167 |
|
---|
168 | <!--
|
---|
169 | <para>Following features of MPEG-4 are supported:</para>
|
---|
170 | <para><emphasis>I, P Frame encoding</emphasis></para>
|
---|
171 | <para>I-Frames are image frames, while P-Frames are Pattern Frames.
|
---|
172 | Image Frames contain full images. P-Frames contain patterns of what changes in
|
---|
173 | the image, thusly saving a lot of space.</para>
|
---|
174 | <para><emphasis>PMVFast and EPZS with diamond a sqare pattern motion
|
---|
175 | estimation</emphasis></para>
|
---|
176 | <para>Fast Motion detection that can refer a square or diamond
|
---|
177 | shaped pattern to different directions.</para>
|
---|
178 | <para><emphasis>inter4v mode</emphasis></para>
|
---|
179 | <para>Fast interpolation ability.</para>
|
---|
180 | <para><emphasis>fullpixel and halfpixel precision</emphasis></para>
|
---|
181 | <para>Even halfpixel movements can be encoded. Better precision
|
---|
182 | results in better compression at better quality.</para>
|
---|
183 | <para><emphasis>both MPEG-4 and H263 quantizations</emphasis></para>
|
---|
184 | <para>MPEG-4 is the standard DivX was derived from. H263 is a
|
---|
185 | slightly changed subset of that standard made by Microsoft. Quantization
|
---|
186 | means to map the quantity of color values to numbers.</para>
|
---|
187 | <para><emphasis>custom quant matrices</emphasis></para>
|
---|
188 | <para>The quantization can be done using custom matrices,
|
---|
189 | possibly giving better results if the matrix is made to suit the video
|
---|
190 | data. Every normal user should be fine with the default matrix that comes
|
---|
191 | with <application>XviD</application>.</para>
|
---|
192 | <para><emphasis>Adaptive quantization / Luminance masking</emphasis></para>
|
---|
193 | <para>Qantization and Luminance masking are variant, depending
|
---|
194 | on the input material, therefore providing better results on dark or very
|
---|
195 | contrasting images.</para>
|
---|
196 | -->
|
---|
197 |
|
---|
198 | </sect2>
|
---|
199 |
|
---|
200 | </sect1>
|
---|