1 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
---|
2 | "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
3 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
4 | %general-entities;
|
---|
5 |
|
---|
6 | <!ENTITY xvid-download-http "http://files.xvid.org/downloads/xvidcore-&xvid-version;.tar.bz2">
|
---|
7 | <!ENTITY xvid-download-ftp " ">
|
---|
8 | <!ENTITY xvid-size "524 KB">
|
---|
9 | <!ENTITY xvid-buildsize "5.5 MB">
|
---|
10 | <!ENTITY xvid-time "0.19 SBU">
|
---|
11 | ]>
|
---|
12 |
|
---|
13 | <sect1 id="xvid" xreflabel="XviD-&xvid-version;">
|
---|
14 | <?dbhtml filename="xvid.html"?>
|
---|
15 | <title>XviD-&xvid-version;</title>
|
---|
16 |
|
---|
17 | <sect2>
|
---|
18 | <title>Introduction to <application>XviD</application></title>
|
---|
19 |
|
---|
20 | <!--
|
---|
21 | OpenDivX or Xvid?
|
---|
22 |
|
---|
23 | OpenDivX is a free implementation of the mpeg4-codec. Alas, the
|
---|
24 | developers at ProjectMayo didn't gratefully release their actual source
|
---|
25 | in compileable versions, so the displeasure of the users majority
|
---|
26 | canalized into a new project named Xvid.
|
---|
27 |
|
---|
28 | Xvid development was interrupted in Autumn 2002 due to a code-theft
|
---|
29 | the developers at Sigma design committed but it is continued now.
|
---|
30 |
|
---|
31 | For worse luck, OpenDivX and Xvid are using the same header file
|
---|
32 | names (an issue that wouldn't be resolved easily) and function
|
---|
33 | namespace, so you'll have to choose which one to use.
|
---|
34 |
|
---|
35 | I personally vote for Xvid, because the installation from sources
|
---|
36 | is much smoother. If you use mencoder and transcode at the same time,
|
---|
37 | you may want to choose different codecs for each.
|
---|
38 | -->
|
---|
39 |
|
---|
40 | <para><application>XviD</application> is a <acronym>MPEG</acronym>-4
|
---|
41 | compliant video <acronym>CODEC</acronym>.</para>
|
---|
42 |
|
---|
43 | <sect3><title>Package information</title>
|
---|
44 | <itemizedlist spacing='compact'>
|
---|
45 | <listitem><para>Download (HTTP): <ulink url="&xvid-download-http;"/></para></listitem>
|
---|
46 | <listitem><para>Download (FTP): <ulink url="&xvid-download-ftp;"/></para></listitem>
|
---|
47 | <listitem><para>Download size: &xvid-size;</para></listitem>
|
---|
48 | <listitem><para>Estimated Disk space required: &xvid-buildsize;</para></listitem>
|
---|
49 | <listitem><para>Estimated build time: &xvid-time;</para></listitem></itemizedlist>
|
---|
50 | </sect3>
|
---|
51 |
|
---|
52 | <sect3><title><application>XviD</application> dependencies</title>
|
---|
53 | <sect4><title>Optional</title>
|
---|
54 | <para><xref linkend="NASM"/>
|
---|
55 | </para></sect4>
|
---|
56 | </sect3>
|
---|
57 |
|
---|
58 | </sect2>
|
---|
59 |
|
---|
60 | <sect2>
|
---|
61 | <title>Installation of <application>XviD</application></title>
|
---|
62 |
|
---|
63 | <para>Install <application>XviD</application> by running the following commands:</para>
|
---|
64 |
|
---|
65 | <screen><userinput><command>cd build/generic &&
|
---|
66 | ./configure --prefix=/usr &&
|
---|
67 | make &&
|
---|
68 | make install &&
|
---|
69 | ln -sf libxvidcore.so.4.0 /usr/lib/libxvidcore.so.4 &&
|
---|
70 | ln -sf libxvidcore.so.4 /usr/lib/libxvidcore.so</command></userinput></screen>
|
---|
71 |
|
---|
72 | </sect2>
|
---|
73 |
|
---|
74 | <sect2>
|
---|
75 | <title>Command explanations</title>
|
---|
76 |
|
---|
77 | <para><command>ln -s libxvidcore.so.4 /usr/lib/libxvidcore.so</command>:
|
---|
78 | This command makes applications linked against
|
---|
79 | <filename class="libraryfile">.so</filename> names, link to
|
---|
80 | <filename class="libraryfile">.so.<replaceable>MAJOR</replaceable></filename>.
|
---|
81 | This ensures better binary compatibility, as
|
---|
82 | <application>XviD</application> developers take care not changing the
|
---|
83 | <replaceable>MAJOR</replaceable> number until there is an incompatible
|
---|
84 | <acronym>ABI</acronym> change.</para>
|
---|
85 |
|
---|
86 | </sect2>
|
---|
87 |
|
---|
88 | <sect2>
|
---|
89 | <title>Contents</title>
|
---|
90 |
|
---|
91 | <para>The <application>XviD</application> core package contains the <filename
|
---|
92 | class="libraryfile">libxvidcore</filename> library.</para>
|
---|
93 |
|
---|
94 | </sect2>
|
---|
95 |
|
---|
96 | <sect2><title>Description</title>
|
---|
97 |
|
---|
98 | <sect3><title>libxvidcore</title>
|
---|
99 | <para><filename class="libraryfile">libxvidcore</filename> provides
|
---|
100 | functions to encode and decode most <acronym>MPEG</acronym>-4 video
|
---|
101 | data.</para></sect3>
|
---|
102 |
|
---|
103 | <!--
|
---|
104 | <para>Following features of MPEG-4 are supported:</para>
|
---|
105 | <para><emphasis>I, P Frame encoding</emphasis></para>
|
---|
106 | <para>I-Frames are image frames, while P-Frames are Pattern Frames.
|
---|
107 | Image Frames contain full images. P-Frames contain patterns of what changes in
|
---|
108 | the image, thusly saving a lot of space.</para>
|
---|
109 | <para><emphasis>PMVFast and EPZS with diamond a sqare pattern motion
|
---|
110 | estimation</emphasis></para>
|
---|
111 | <para>Fast Motion detection that can refer a square or diamond
|
---|
112 | shaped pattern to different directions.</para>
|
---|
113 | <para><emphasis>inter4v mode</emphasis></para>
|
---|
114 | <para>Fast interpolation ability.</para>
|
---|
115 | <para><emphasis>fullpixel and halfpixel precision</emphasis></para>
|
---|
116 | <para>Even halfpixel movements can be encoded. Better precision
|
---|
117 | results in better compression at better quality.</para>
|
---|
118 | <para><emphasis>both MPEG-4 and H263 quantizations</emphasis></para>
|
---|
119 | <para>MPEG-4 is the standard DivX was derived from. H263 is a
|
---|
120 | slightly changed subset of that standard made by Microsoft. Quantization
|
---|
121 | means to map the quantity of color values to numbers.</para>
|
---|
122 | <para><emphasis>custom quant matrices</emphasis></para>
|
---|
123 | <para>The quantization can be done using custom matrices,
|
---|
124 | possibly giving better results if the matrix is made to suit the video
|
---|
125 | data. Every normal user should be fine with the default matrix that comes
|
---|
126 | with <application>XviD</application>.</para>
|
---|
127 | <para><emphasis>Adaptive quantization / Luminance masking</emphasis></para>
|
---|
128 | <para>Qantization and Luminance masking are variant, depending
|
---|
129 | on the input material, therefore providing better results on dark or very
|
---|
130 | contrasting images.</para>
|
---|
131 | -->
|
---|
132 |
|
---|
133 | </sect2>
|
---|
134 |
|
---|
135 | </sect1>
|
---|
136 |
|
---|