[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 |
|
---|
[b5d7180] | 34 | &lfs112_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 | <para condition="html" role="usernotes">User Notes:
|
---|
| 95 | <ulink url='&blfs-wiki;/Libtheora'/></para>
|
---|
| 96 |
|
---|
| 97 | </sect2>
|
---|
| 98 |
|
---|
| 99 | <sect2 role="installation">
|
---|
| 100 | <title>Installation of libtheora</title>
|
---|
| 101 |
|
---|
[2eeb8695] | 102 | <para>
|
---|
| 103 | Install <application>libtheora</application> by running the following
|
---|
| 104 | commands:
|
---|
| 105 | </para>
|
---|
[bf1b5bf9] | 106 |
|
---|
[31ab0f7] | 107 | <screen><userinput>sed -i 's/png_\(sizeof\)/\1/g' examples/png2theora.c &&
|
---|
[1ce810f4] | 108 | ./configure --prefix=/usr --disable-static &&
|
---|
[bf1b5bf9] | 109 | make</userinput></screen>
|
---|
| 110 |
|
---|
[2eeb8695] | 111 | <para>
|
---|
| 112 | If you wish to run the tests, issue: <command>make check</command>.
|
---|
| 113 | </para>
|
---|
[bf1b5bf9] | 114 |
|
---|
[2eeb8695] | 115 | <para>
|
---|
| 116 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 117 | </para>
|
---|
[bf1b5bf9] | 118 |
|
---|
[739dfc8] | 119 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[bf1b5bf9] | 120 |
|
---|
[2eeb8695] | 121 | <para>
|
---|
| 122 | If you wish to install the examples (so that you can hack on
|
---|
| 123 | <literal>theora</literal>), install them as the <systemitem
|
---|
| 124 | class="username">root</systemitem> user:
|
---|
| 125 | </para>
|
---|
[bf1b5bf9] | 126 |
|
---|
| 127 | <screen role="root"><userinput>cd examples/.libs &&
|
---|
| 128 | for E in *; do
|
---|
[7bb72e0] | 129 | install -v -m755 $E /usr/bin/theora_${E}
|
---|
| 130 | done</userinput></screen>
|
---|
[bf1b5bf9] | 131 |
|
---|
| 132 | </sect2>
|
---|
| 133 |
|
---|
| 134 | <sect2 role="commands">
|
---|
| 135 | <title>Command Explanations</title>
|
---|
| 136 |
|
---|
[31ab0f7] | 137 | <para>
|
---|
| 138 | <command>sed -i 's/png_\(sizeof\)/\1/g' examples/png2theora.c</command>:
|
---|
| 139 | This <command>sed</command> fixes build with
|
---|
| 140 | <application>libpng</application> 1.6.
|
---|
| 141 | </para>
|
---|
| 142 |
|
---|
[1ce810f4] | 143 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 144 | href="../../xincludes/static-libraries.xml"/>
|
---|
[bf1b5bf9] | 145 |
|
---|
| 146 | </sect2>
|
---|
| 147 |
|
---|
| 148 | <sect2 role="content">
|
---|
| 149 | <title>Contents</title>
|
---|
| 150 |
|
---|
| 151 | <segmentedlist>
|
---|
| 152 | <segtitle>Installed Programs</segtitle>
|
---|
| 153 | <segtitle>Installed Libraries</segtitle>
|
---|
| 154 | <segtitle>Installed Directories</segtitle>
|
---|
| 155 |
|
---|
| 156 | <seglistitem>
|
---|
| 157 | <seg>None, unless you installed the examples</seg>
|
---|
[1ce810f4] | 158 | <seg>libtheora.so, libtheoraenc.so, and
|
---|
| 159 | libtheoradec.so</seg>
|
---|
[bf1b5bf9] | 160 | <seg>/usr/include/theora and /usr/share/doc/libtheora-&libtheora-version;</seg>
|
---|
| 161 | </seglistitem>
|
---|
| 162 | </segmentedlist>
|
---|
| 163 |
|
---|
| 164 | <variablelist>
|
---|
| 165 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 166 | <?dbfo list-presentation="list"?>
|
---|
| 167 | <?dbhtml list-presentation="table"?>
|
---|
| 168 |
|
---|
| 169 | <varlistentry id="libtheora-lib">
|
---|
[4c24eb0a] | 170 | <term><filename class="libraryfile">libtheora*.so</filename></term>
|
---|
[bf1b5bf9] | 171 | <listitem>
|
---|
[2eeb8695] | 172 | <para>
|
---|
[4c24eb0a] | 173 | contains the functions to read and write video files
|
---|
[2eeb8695] | 174 | </para>
|
---|
[bf1b5bf9] | 175 | <indexterm zone="libtheora libtheora-lib">
|
---|
[1ce810f4] | 176 | <primary sortas="c-libtheora">libtheora*.so</primary>
|
---|
[bf1b5bf9] | 177 | </indexterm>
|
---|
| 178 | </listitem>
|
---|
| 179 | </varlistentry>
|
---|
| 180 |
|
---|
| 181 | </variablelist>
|
---|
| 182 |
|
---|
| 183 | </sect2>
|
---|
| 184 |
|
---|
| 185 | </sect1>
|
---|