[33555d9] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[ff769b8c] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
[48b7295] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
[e9d672f] | 6 |
|
---|
[43e423a7] | 7 | <!ENTITY xvid-download-http "http://ed.gomez.free.fr/releases/xvid-&xvid-version;/xvidcore-&xvid-version;.tar.bz2">
|
---|
[48b7295] | 8 | <!ENTITY xvid-download-ftp " ">
|
---|
[33555d9] | 9 | <!ENTITY xvid-md5sum "1487c4dd4449aedeb695807467e69054">
|
---|
[e9d672f] | 10 | <!ENTITY xvid-size "541 KB">
|
---|
[43e423a7] | 11 | <!ENTITY xvid-buildsize "7.2 MB">
|
---|
| 12 | <!ENTITY xvid-time "0.2 SBU">
|
---|
[48b7295] | 13 | ]>
|
---|
| 14 |
|
---|
[d374b41] | 15 | <sect1 id="xvid" xreflabel="XviD-&xvid-version;">
|
---|
[33555d9] | 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>
|
---|
[48b7295] | 31 |
|
---|
| 32 | <!--
|
---|
| 33 | OpenDivX or Xvid?
|
---|
| 34 |
|
---|
[50b692d] | 35 | OpenDivX is a free implementation of the mpeg4-codec. Alas, the
|
---|
[48b7295] | 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 |
|
---|
[50b692d] | 40 | Xvid development was interrupted in Autumn 2002 due to a code-theft
|
---|
[48b7295] | 41 | the developers at Sigma design committed but it is continued now.
|
---|
| 42 |
|
---|
[50b692d] | 43 | For worse luck, OpenDivX and Xvid are using the same header file
|
---|
[48b7295] | 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 |
|
---|
[33555d9] | 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">XviD Dependencies</bridgehead>
|
---|
| 78 |
|
---|
| 79 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 80 | <para><xref linkend="NASM"/></para>
|
---|
| 81 |
|
---|
| 82 | </sect2>
|
---|
| 83 |
|
---|
| 84 | <sect2 role="installation">
|
---|
| 85 | <title>Installation of XviD</title>
|
---|
| 86 |
|
---|
[50b692d] | 87 | <para>Install <application>XviD</application> by running the following
|
---|
[33555d9] | 88 | commands:</para>
|
---|
| 89 |
|
---|
| 90 | <screen><userinput>cd build/generic &&
|
---|
[48b7295] | 91 | ./configure --prefix=/usr &&
|
---|
[33555d9] | 92 | make</userinput></screen>
|
---|
[43e423a7] | 93 |
|
---|
[33555d9] | 94 | <para>This package does not come with a test suite.</para>
|
---|
[74c721e4] | 95 |
|
---|
[33555d9] | 96 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[43e423a7] | 97 |
|
---|
[33555d9] | 98 | <screen role="root"><userinput>make install &&
|
---|
[43e423a7] | 99 | chmod -v 644 /usr/lib/libxvidcore.a &&
|
---|
| 100 | ln -v -sf libxvidcore.so.4.0 /usr/lib/libxvidcore.so.4 &&
|
---|
[4d32631] | 101 | ln -v -sf libxvidcore.so.4 /usr/lib/libxvidcore.so &&
|
---|
| 102 | install -v -m755 -d /usr/share/doc/xvidcore-&xvid-version;/examples &&
|
---|
| 103 | install -v -m644 ../../examples/* \
|
---|
| 104 | /usr/share/doc/xvidcore-&xvid-version;/examples</userinput></screen>
|
---|
[33555d9] | 105 |
|
---|
| 106 | </sect2>
|
---|
| 107 |
|
---|
| 108 | <sect2 role="commands">
|
---|
| 109 | <title>Command Explanations</title>
|
---|
| 110 |
|
---|
| 111 | <para><command>ln -v -sf libxvidcore.so.4 /usr/lib/libxvidcore.so</command>:
|
---|
| 112 | This command makes applications linked against
|
---|
| 113 | <filename class="libraryfile">.so</filename> names, link to
|
---|
| 114 | <filename class="libraryfile">.so.<replaceable>MAJOR</replaceable></filename>.
|
---|
| 115 | This ensures better binary compatibility, as
|
---|
| 116 | <application>XviD</application> developers take care not changing the
|
---|
| 117 | <replaceable>MAJOR</replaceable> number until there is an incompatible
|
---|
| 118 | ABI change.</para>
|
---|
| 119 |
|
---|
| 120 | </sect2>
|
---|
| 121 |
|
---|
| 122 | <sect2 role="content">
|
---|
| 123 | <title>Contents</title>
|
---|
| 124 |
|
---|
| 125 | <segmentedlist>
|
---|
| 126 | <segtitle>Installed Programs</segtitle>
|
---|
| 127 | <segtitle>Installed Library</segtitle>
|
---|
[4d32631] | 128 | <segtitle>Installed Directory</segtitle>
|
---|
[33555d9] | 129 |
|
---|
| 130 | <seglistitem>
|
---|
| 131 | <seg>None</seg>
|
---|
| 132 | <seg>libxvidcore.[so,a]</seg>
|
---|
[4d32631] | 133 | <seg>/usr/share/doc/xvidcore-&xvid-version;</seg>
|
---|
[33555d9] | 134 | </seglistitem>
|
---|
| 135 | </segmentedlist>
|
---|
| 136 |
|
---|
| 137 | <variablelist>
|
---|
| 138 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 139 | <?dbfo list-presentation="list"?>
|
---|
| 140 | <?dbhtml list-presentation="table"?>
|
---|
| 141 |
|
---|
| 142 | <varlistentry id="libxvidcore">
|
---|
| 143 | <term><filename class='libraryfile'>libxvidcore.[so,a]</filename></term>
|
---|
| 144 | <listitem>
|
---|
[50b692d] | 145 | <para>provides functions to encode and decode most
|
---|
[33555d9] | 146 | MPEG-4 video data.</para>
|
---|
| 147 | <indexterm zone="xvid libxvidcore">
|
---|
| 148 | <primary sortas="c-libxvidcore">libxvidcore.[so,a]</primary>
|
---|
| 149 | </indexterm>
|
---|
| 150 | </listitem>
|
---|
| 151 | </varlistentry>
|
---|
| 152 |
|
---|
| 153 | </variablelist>
|
---|
[48b7295] | 154 |
|
---|
| 155 | <!--
|
---|
| 156 | <para>Following features of MPEG-4 are supported:</para>
|
---|
| 157 | <para><emphasis>I, P Frame encoding</emphasis></para>
|
---|
| 158 | <para>I-Frames are image frames, while P-Frames are Pattern Frames.
|
---|
| 159 | Image Frames contain full images. P-Frames contain patterns of what changes in
|
---|
| 160 | the image, thusly saving a lot of space.</para>
|
---|
[50b692d] | 161 | <para><emphasis>PMVFast and EPZS with diamond a sqare pattern motion
|
---|
[48b7295] | 162 | estimation</emphasis></para>
|
---|
| 163 | <para>Fast Motion detection that can refer a square or diamond
|
---|
| 164 | shaped pattern to different directions.</para>
|
---|
| 165 | <para><emphasis>inter4v mode</emphasis></para>
|
---|
| 166 | <para>Fast interpolation ability.</para>
|
---|
| 167 | <para><emphasis>fullpixel and halfpixel precision</emphasis></para>
|
---|
| 168 | <para>Even halfpixel movements can be encoded. Better precision
|
---|
| 169 | results in better compression at better quality.</para>
|
---|
| 170 | <para><emphasis>both MPEG-4 and H263 quantizations</emphasis></para>
|
---|
| 171 | <para>MPEG-4 is the standard DivX was derived from. H263 is a
|
---|
| 172 | slightly changed subset of that standard made by Microsoft. Quantization
|
---|
| 173 | means to map the quantity of color values to numbers.</para>
|
---|
| 174 | <para><emphasis>custom quant matrices</emphasis></para>
|
---|
| 175 | <para>The quantization can be done using custom matrices,
|
---|
| 176 | possibly giving better results if the matrix is made to suit the video
|
---|
| 177 | data. Every normal user should be fine with the default matrix that comes
|
---|
| 178 | with <application>XviD</application>.</para>
|
---|
| 179 | <para><emphasis>Adaptive quantization / Luminance masking</emphasis></para>
|
---|
| 180 | <para>Qantization and Luminance masking are variant, depending
|
---|
| 181 | on the input material, therefore providing better results on dark or very
|
---|
| 182 | contrasting images.</para>
|
---|
| 183 | -->
|
---|
| 184 |
|
---|
[33555d9] | 185 | </sect2>
|
---|
[9a2b9dcb] | 186 |
|
---|
| 187 | </sect1>
|
---|