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