[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 |
|
---|
| 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 |
|
---|
[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 |
|
---|
| 87 | <para>Install <application>XviD</application> by running the following
|
---|
| 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 &&
|
---|
[33555d9] | 101 | ln -v -sf libxvidcore.so.4 /usr/lib/libxvidcore.so</userinput></screen>
|
---|
| 102 |
|
---|
| 103 | </sect2>
|
---|
| 104 |
|
---|
| 105 | <sect2 role="commands">
|
---|
| 106 | <title>Command Explanations</title>
|
---|
| 107 |
|
---|
| 108 | <para><command>ln -v -sf libxvidcore.so.4 /usr/lib/libxvidcore.so</command>:
|
---|
| 109 | This command makes applications linked against
|
---|
| 110 | <filename class="libraryfile">.so</filename> names, link to
|
---|
| 111 | <filename class="libraryfile">.so.<replaceable>MAJOR</replaceable></filename>.
|
---|
| 112 | This ensures better binary compatibility, as
|
---|
| 113 | <application>XviD</application> developers take care not changing the
|
---|
| 114 | <replaceable>MAJOR</replaceable> number until there is an incompatible
|
---|
| 115 | ABI change.</para>
|
---|
| 116 |
|
---|
| 117 | </sect2>
|
---|
| 118 |
|
---|
| 119 | <sect2 role="content">
|
---|
| 120 | <title>Contents</title>
|
---|
| 121 |
|
---|
| 122 | <segmentedlist>
|
---|
| 123 | <segtitle>Installed Programs</segtitle>
|
---|
| 124 | <segtitle>Installed Library</segtitle>
|
---|
| 125 | <segtitle>Installed Directories</segtitle>
|
---|
| 126 |
|
---|
| 127 | <seglistitem>
|
---|
| 128 | <seg>None</seg>
|
---|
| 129 | <seg>libxvidcore.[so,a]</seg>
|
---|
| 130 | <seg>None</seg>
|
---|
| 131 | </seglistitem>
|
---|
| 132 | </segmentedlist>
|
---|
| 133 |
|
---|
| 134 | <variablelist>
|
---|
| 135 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 136 | <?dbfo list-presentation="list"?>
|
---|
| 137 | <?dbhtml list-presentation="table"?>
|
---|
| 138 |
|
---|
| 139 | <varlistentry id="libxvidcore">
|
---|
| 140 | <term><filename class='libraryfile'>libxvidcore.[so,a]</filename></term>
|
---|
| 141 | <listitem>
|
---|
| 142 | <para>provides functions to encode and decode most
|
---|
| 143 | MPEG-4 video data.</para>
|
---|
| 144 | <indexterm zone="xvid libxvidcore">
|
---|
| 145 | <primary sortas="c-libxvidcore">libxvidcore.[so,a]</primary>
|
---|
| 146 | </indexterm>
|
---|
| 147 | </listitem>
|
---|
| 148 | </varlistentry>
|
---|
| 149 |
|
---|
| 150 | </variablelist>
|
---|
[48b7295] | 151 |
|
---|
| 152 | <!--
|
---|
| 153 | <para>Following features of MPEG-4 are supported:</para>
|
---|
| 154 | <para><emphasis>I, P Frame encoding</emphasis></para>
|
---|
| 155 | <para>I-Frames are image frames, while P-Frames are Pattern Frames.
|
---|
| 156 | Image Frames contain full images. P-Frames contain patterns of what changes in
|
---|
| 157 | the image, thusly saving a lot of space.</para>
|
---|
| 158 | <para><emphasis>PMVFast and EPZS with diamond a sqare pattern motion
|
---|
| 159 | estimation</emphasis></para>
|
---|
| 160 | <para>Fast Motion detection that can refer a square or diamond
|
---|
| 161 | shaped pattern to different directions.</para>
|
---|
| 162 | <para><emphasis>inter4v mode</emphasis></para>
|
---|
| 163 | <para>Fast interpolation ability.</para>
|
---|
| 164 | <para><emphasis>fullpixel and halfpixel precision</emphasis></para>
|
---|
| 165 | <para>Even halfpixel movements can be encoded. Better precision
|
---|
| 166 | results in better compression at better quality.</para>
|
---|
| 167 | <para><emphasis>both MPEG-4 and H263 quantizations</emphasis></para>
|
---|
| 168 | <para>MPEG-4 is the standard DivX was derived from. H263 is a
|
---|
| 169 | slightly changed subset of that standard made by Microsoft. Quantization
|
---|
| 170 | means to map the quantity of color values to numbers.</para>
|
---|
| 171 | <para><emphasis>custom quant matrices</emphasis></para>
|
---|
| 172 | <para>The quantization can be done using custom matrices,
|
---|
| 173 | possibly giving better results if the matrix is made to suit the video
|
---|
| 174 | data. Every normal user should be fine with the default matrix that comes
|
---|
| 175 | with <application>XviD</application>.</para>
|
---|
| 176 | <para><emphasis>Adaptive quantization / Luminance masking</emphasis></para>
|
---|
| 177 | <para>Qantization and Luminance masking are variant, depending
|
---|
| 178 | on the input material, therefore providing better results on dark or very
|
---|
| 179 | contrasting images.</para>
|
---|
| 180 | -->
|
---|
| 181 |
|
---|
[33555d9] | 182 | </sect2>
|
---|
[9a2b9dcb] | 183 |
|
---|
| 184 | </sect1>
|
---|
| 185 |
|
---|