[bf1b5bf9] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[8dfc5c3] | 7 | <!ENTITY libtheora-download-http "https://downloads.xiph.org/releases/theora/libtheora-&libtheora-version;.tar.xz">
|
---|
[bf1b5bf9] | 8 | <!ENTITY libtheora-download-ftp " ">
|
---|
[5be9f63f] | 9 | <!ENTITY libtheora-md5sum "9eeabf1ad65b7f41533854a59f7a716d">
|
---|
| 10 | <!ENTITY libtheora-size "1.4 MB">
|
---|
[6d09537c] | 11 | <!ENTITY libtheora-buildsize "13.4 MB (without static libs or API docs and without installing the examples)">
|
---|
[bf1b5bf9] | 12 | <!ENTITY libtheora-time "0.2 SBU">
|
---|
| 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="libtheora" xreflabel="libtheora-&libtheora-version;">
|
---|
| 16 | <?dbhtml filename="libtheora.html"?>
|
---|
| 17 |
|
---|
| 18 |
|
---|
| 19 | <title>libtheora-&libtheora-version;</title>
|
---|
| 20 |
|
---|
| 21 | <indexterm zone="libtheora">
|
---|
| 22 | <primary sortas="a-Libtheora">Libtheora</primary>
|
---|
| 23 | </indexterm>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="package">
|
---|
| 26 | <title>Introduction to libtheora</title>
|
---|
| 27 |
|
---|
[f3763adf] | 28 | <para>
|
---|
| 29 | <application>libtheora</application> is a reference implementation of the
|
---|
| 30 | Theora video compression format being developed by the Xiph.Org
|
---|
| 31 | Foundation.
|
---|
| 32 | </para>
|
---|
[bf1b5bf9] | 33 |
|
---|
[332bad2a] | 34 | &lfs120_checked;
|
---|
[e355f3c6] | 35 |
|
---|
[bf1b5bf9] | 36 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 37 | <itemizedlist spacing="compact">
|
---|
| 38 | <listitem>
|
---|
[2eeb8695] | 39 | <para>
|
---|
| 40 | Download (HTTP): <ulink url="&libtheora-download-http;"/>
|
---|
| 41 | </para>
|
---|
[bf1b5bf9] | 42 | </listitem>
|
---|
| 43 | <listitem>
|
---|
[2eeb8695] | 44 | <para>
|
---|
| 45 | Download (FTP): <ulink url="&libtheora-download-ftp;"/>
|
---|
| 46 | </para>
|
---|
[bf1b5bf9] | 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
[2eeb8695] | 49 | <para>
|
---|
| 50 | Download MD5 sum: &libtheora-md5sum;
|
---|
| 51 | </para>
|
---|
[bf1b5bf9] | 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
[2eeb8695] | 54 | <para>
|
---|
| 55 | Download size: &libtheora-size;
|
---|
| 56 | </para>
|
---|
[bf1b5bf9] | 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
[2eeb8695] | 59 | <para>
|
---|
| 60 | Estimated disk space required: &libtheora-buildsize;
|
---|
| 61 | </para>
|
---|
[bf1b5bf9] | 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
[2eeb8695] | 64 | <para>
|
---|
| 65 | Estimated build time: &libtheora-time;
|
---|
| 66 | </para>
|
---|
[bf1b5bf9] | 67 | </listitem>
|
---|
| 68 | </itemizedlist>
|
---|
| 69 |
|
---|
| 70 | <bridgehead renderas="sect3">libtheora Dependencies</bridgehead>
|
---|
| 71 |
|
---|
| 72 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[47274444] | 73 | <para role="required">
|
---|
| 74 | <xref linkend="libogg"/>
|
---|
| 75 | </para>
|
---|
[bf1b5bf9] | 76 |
|
---|
| 77 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
[47274444] | 78 | <para role="recommended">
|
---|
| 79 | <xref linkend="libvorbis"/>
|
---|
| 80 | </para>
|
---|
[bf1b5bf9] | 81 |
|
---|
| 82 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[f1607a4] | 83 | <para role="optional">
|
---|
| 84 | <xref linkend="sdl"/> and
|
---|
| 85 | <xref linkend="libpng"/> (both to build the example players),
|
---|
| 86 | <xref linkend="doxygen"/>,
|
---|
[2d98031c] | 87 | <xref linkend="texlive"/> (or <xref linkend="tl-installer"/>),
|
---|
[17aa21c] | 88 | <ulink url="https://bibtexml.sourceforge.net">BibTex</ulink>, and
|
---|
| 89 | <ulink url="https://mcj.sourceforge.net/">Transfig</ulink>
|
---|
[f1607a4] | 90 | (all four to build the API documentation), and
|
---|
| 91 | <xref linkend="valgrind"/>
|
---|
| 92 | </para>
|
---|
[bf1b5bf9] | 93 |
|
---|
| 94 | </sect2>
|
---|
| 95 |
|
---|
| 96 | <sect2 role="installation">
|
---|
| 97 | <title>Installation of libtheora</title>
|
---|
| 98 |
|
---|
[2eeb8695] | 99 | <para>
|
---|
| 100 | Install <application>libtheora</application> by running the following
|
---|
| 101 | commands:
|
---|
| 102 | </para>
|
---|
[bf1b5bf9] | 103 |
|
---|
[31ab0f7] | 104 | <screen><userinput>sed -i 's/png_\(sizeof\)/\1/g' examples/png2theora.c &&
|
---|
[1ce810f4] | 105 | ./configure --prefix=/usr --disable-static &&
|
---|
[bf1b5bf9] | 106 | make</userinput></screen>
|
---|
| 107 |
|
---|
[2eeb8695] | 108 | <para>
|
---|
| 109 | If you wish to run the tests, issue: <command>make check</command>.
|
---|
| 110 | </para>
|
---|
[bf1b5bf9] | 111 |
|
---|
[2eeb8695] | 112 | <para>
|
---|
| 113 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 114 | </para>
|
---|
[bf1b5bf9] | 115 |
|
---|
[739dfc8] | 116 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[bf1b5bf9] | 117 |
|
---|
[2eeb8695] | 118 | <para>
|
---|
| 119 | If you wish to install the examples (so that you can hack on
|
---|
| 120 | <literal>theora</literal>), install them as the <systemitem
|
---|
| 121 | class="username">root</systemitem> user:
|
---|
| 122 | </para>
|
---|
[bf1b5bf9] | 123 |
|
---|
| 124 | <screen role="root"><userinput>cd examples/.libs &&
|
---|
| 125 | for E in *; do
|
---|
[7bb72e0] | 126 | install -v -m755 $E /usr/bin/theora_${E}
|
---|
| 127 | done</userinput></screen>
|
---|
[bf1b5bf9] | 128 |
|
---|
| 129 | </sect2>
|
---|
| 130 |
|
---|
| 131 | <sect2 role="commands">
|
---|
| 132 | <title>Command Explanations</title>
|
---|
| 133 |
|
---|
[31ab0f7] | 134 | <para>
|
---|
| 135 | <command>sed -i 's/png_\(sizeof\)/\1/g' examples/png2theora.c</command>:
|
---|
| 136 | This <command>sed</command> fixes build with
|
---|
| 137 | <application>libpng</application> 1.6.
|
---|
| 138 | </para>
|
---|
| 139 |
|
---|
[1ce810f4] | 140 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 141 | href="../../xincludes/static-libraries.xml"/>
|
---|
[bf1b5bf9] | 142 |
|
---|
| 143 | </sect2>
|
---|
| 144 |
|
---|
| 145 | <sect2 role="content">
|
---|
| 146 | <title>Contents</title>
|
---|
| 147 |
|
---|
| 148 | <segmentedlist>
|
---|
| 149 | <segtitle>Installed Programs</segtitle>
|
---|
| 150 | <segtitle>Installed Libraries</segtitle>
|
---|
| 151 | <segtitle>Installed Directories</segtitle>
|
---|
| 152 |
|
---|
| 153 | <seglistitem>
|
---|
| 154 | <seg>None, unless you installed the examples</seg>
|
---|
[1ce810f4] | 155 | <seg>libtheora.so, libtheoraenc.so, and
|
---|
| 156 | libtheoradec.so</seg>
|
---|
[bf1b5bf9] | 157 | <seg>/usr/include/theora and /usr/share/doc/libtheora-&libtheora-version;</seg>
|
---|
| 158 | </seglistitem>
|
---|
| 159 | </segmentedlist>
|
---|
| 160 |
|
---|
| 161 | <variablelist>
|
---|
| 162 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 163 | <?dbfo list-presentation="list"?>
|
---|
| 164 | <?dbhtml list-presentation="table"?>
|
---|
| 165 |
|
---|
| 166 | <varlistentry id="libtheora-lib">
|
---|
[4c24eb0a] | 167 | <term><filename class="libraryfile">libtheora*.so</filename></term>
|
---|
[bf1b5bf9] | 168 | <listitem>
|
---|
[2eeb8695] | 169 | <para>
|
---|
[4c24eb0a] | 170 | contains the functions to read and write video files
|
---|
[2eeb8695] | 171 | </para>
|
---|
[bf1b5bf9] | 172 | <indexterm zone="libtheora libtheora-lib">
|
---|
[1ce810f4] | 173 | <primary sortas="c-libtheora">libtheora*.so</primary>
|
---|
[bf1b5bf9] | 174 | </indexterm>
|
---|
| 175 | </listitem>
|
---|
| 176 | </varlistentry>
|
---|
| 177 |
|
---|
| 178 | </variablelist>
|
---|
| 179 |
|
---|
| 180 | </sect2>
|
---|
| 181 |
|
---|
| 182 | </sect1>
|
---|