[ab4fdfc] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[1fb813d] | 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 |
|
---|
[fc8a910] | 7 | <!ENTITY libvpx-download-http "https://github.com/webmproject/libvpx/archive/v&libvpx-version;/libvpx-&libvpx-version;.tar.gz">
|
---|
[13bd274] | 8 | <!ENTITY libvpx-download-ftp " ">
|
---|
[f53c7ac] | 9 | <!ENTITY libvpx-md5sum "1d2a1c594587ee1f26a4f017becddcd5">
|
---|
| 10 | <!ENTITY libvpx-size "5.4 MB">
|
---|
| 11 | <!ENTITY libvpx-buildsize "68 MB (add 1.6 GB for tests)">
|
---|
| 12 | <!ENTITY libvpx-time "0.5 SBU (Using parallelism=4; add approx 11 SBU for tests using parallelism=4, including download time)">
|
---|
[1fb813d] | 13 | ]>
|
---|
| 14 |
|
---|
[14897252] | 15 | <sect1 id="libvpx" xreflabel="libvpx-&libvpx-version;">
|
---|
[1fb813d] | 16 | <?dbhtml filename="libvpx.html"?>
|
---|
| 17 |
|
---|
| 18 |
|
---|
[e04cfef] | 19 | <title>libvpx-&libvpx-version;</title>
|
---|
[1fb813d] | 20 |
|
---|
| 21 | <indexterm zone="libvpx">
|
---|
| 22 | <primary sortas="a-libvpx">libvpx</primary>
|
---|
| 23 | </indexterm>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="package">
|
---|
| 26 | <title>Introduction to libvpx</title>
|
---|
| 27 |
|
---|
[2eeb8695] | 28 | <para>
|
---|
| 29 | This package, from the WebM project, provides the reference
|
---|
[bd9fcbc] | 30 | implementations of the VP8 Codec (used in most current HTML5 video)
|
---|
[2eeb8695] | 31 | and of the next-generation VP9 Codec.
|
---|
| 32 | </para>
|
---|
[1fb813d] | 33 |
|
---|
[5efdd78] | 34 | &lfs122_checked;
|
---|
[1fb813d] | 35 |
|
---|
| 36 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 37 | <itemizedlist spacing="compact">
|
---|
| 38 | <listitem>
|
---|
[2eeb8695] | 39 | <para>
|
---|
| 40 | Download (HTTP): <ulink url="&libvpx-download-http;"/>
|
---|
| 41 | </para>
|
---|
[1fb813d] | 42 | </listitem>
|
---|
| 43 | <listitem>
|
---|
[2eeb8695] | 44 | <para>
|
---|
| 45 | Download (FTP): <ulink url="&libvpx-download-ftp;"/>
|
---|
| 46 | </para>
|
---|
[1fb813d] | 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
[2eeb8695] | 49 | <para>
|
---|
| 50 | Download MD5 sum: &libvpx-md5sum;
|
---|
| 51 | </para>
|
---|
[1fb813d] | 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
[2eeb8695] | 54 | <para>
|
---|
| 55 | Download size: &libvpx-size;
|
---|
| 56 | </para>
|
---|
[1fb813d] | 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
[2eeb8695] | 59 | <para>
|
---|
| 60 | Estimated disk space required: &libvpx-buildsize;
|
---|
| 61 | </para>
|
---|
[1fb813d] | 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
[2eeb8695] | 64 | <para>
|
---|
| 65 | Estimated build time: &libvpx-time;
|
---|
| 66 | </para>
|
---|
[1fb813d] | 67 | </listitem>
|
---|
| 68 | </itemizedlist>
|
---|
| 69 |
|
---|
| 70 | <bridgehead renderas="sect3">libvpx Dependencies</bridgehead>
|
---|
| 71 |
|
---|
[431d921] | 72 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 73 | <para role="recommended">
|
---|
[8558044] | 74 | <xref linkend="yasm"/> or <xref role="nodep" linkend="nasm"/>, and
|
---|
[f95e57bf] | 75 | <xref linkend="which"/> (so <command>configure</command> can find yasm)
|
---|
| 76 | </para>
|
---|
[793932fd] | 77 |
|
---|
[1fb813d] | 78 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[e915fec] | 79 | <para role="optional">
|
---|
[8558044] | 80 | <xref linkend="curl"/> (to download test files) and
|
---|
[37ede2a] | 81 | <xref linkend="doxygen"/> (to build documentation)
|
---|
[e915fec] | 82 | </para>
|
---|
[1fb813d] | 83 |
|
---|
[afb71d0a] | 84 | &test-use-internet;
|
---|
| 85 |
|
---|
[1fb813d] | 86 | </sect2>
|
---|
| 87 |
|
---|
| 88 | <sect2 role="installation">
|
---|
| 89 | <title>Installation of libvpx</title>
|
---|
| 90 |
|
---|
[2eeb8695] | 91 | <para>
|
---|
| 92 | Install <application>libvpx</application> by running the
|
---|
| 93 | following commands:
|
---|
| 94 | </para>
|
---|
[1fb813d] | 95 |
|
---|
[71b2520e] | 96 | <screen><userinput>sed -i 's/cp -p/cp/' build/make/Makefile &&
|
---|
[e04cfef] | 97 |
|
---|
[71b2520e] | 98 | mkdir libvpx-build &&
|
---|
| 99 | cd libvpx-build &&
|
---|
[e04cfef] | 100 |
|
---|
[71b2520e] | 101 | ../configure --prefix=/usr \
|
---|
| 102 | --enable-shared \
|
---|
| 103 | --disable-static &&
|
---|
[1fb813d] | 104 | make</userinput></screen>
|
---|
| 105 |
|
---|
[2eeb8695] | 106 | <para>
|
---|
[37ede2a] | 107 | To test the results, issue:
|
---|
| 108 | <command>LD_LIBRARY_PATH=. make test</command>.
|
---|
[2e0fbc6] | 109 | The test suite downloads many files as part of its test process.
|
---|
[f719350] | 110 | A few parts of it will use all available cores.
|
---|
[2eeb8695] | 111 | </para>
|
---|
[1fb813d] | 112 |
|
---|
[2eeb8695] | 113 | <para>
|
---|
[37ede2a] | 114 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
[2eeb8695] | 115 | </para>
|
---|
[1fb813d] | 116 |
|
---|
| 117 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 118 |
|
---|
| 119 | </sect2>
|
---|
| 120 |
|
---|
| 121 | <sect2 role="commands">
|
---|
| 122 | <title>Command Explanations</title>
|
---|
| 123 |
|
---|
[2eeb8695] | 124 | <para>
|
---|
| 125 | <command>sed ... </command>: This command
|
---|
[bd9fcbc] | 126 | corrects the ownership and permissions of installed files.
|
---|
[2eeb8695] | 127 | </para>
|
---|
[b63e0be1] | 128 |
|
---|
[2eeb8695] | 129 | <para>
|
---|
| 130 | <command>mkdir libvpx-build && cd libvpx-build</command>:
|
---|
| 131 | The <application>libvpx</application> developers
|
---|
| 132 | recommend building in a dedicated build directory.
|
---|
| 133 | </para>
|
---|
[0d7900a] | 134 |
|
---|
[f719350] | 135 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 136 | href="../../xincludes/static-libraries.xml"/>
|
---|
| 137 |
|
---|
[2eeb8695] | 138 | <para>
|
---|
[bd9fcbc] | 139 | <option>--disable-vp8</option>: This switch prevents building support for
|
---|
| 140 | the VP8 codec.
|
---|
[2eeb8695] | 141 | </para>
|
---|
[6c52b1a] | 142 |
|
---|
[2eeb8695] | 143 | <para>
|
---|
[bd9fcbc] | 144 | <option>--disable-vp9</option>: This switch prevents building support for
|
---|
| 145 | the VP9 codec.
|
---|
[2eeb8695] | 146 | </para>
|
---|
[6c52b1a] | 147 |
|
---|
[431d921] | 148 | <para>
|
---|
| 149 | <option>--target=generic-gnu</option>: This switch disables
|
---|
[bd9fcbc] | 150 | optimizations specific to x86 and x86-64, allowing to build this
|
---|
[431d921] | 151 | package without <command>nasm</command> and <command>yasm</command>
|
---|
| 152 | installed.
|
---|
| 153 | </para>
|
---|
| 154 |
|
---|
[37ede2a] | 155 | <para>
|
---|
[48771ae] | 156 | <command>LD_LIBRARY_PATH=.</command>: This is needed for the test suite
|
---|
[6700d12] | 157 | to use the library that was just built.
|
---|
[37ede2a] | 158 | </para>
|
---|
| 159 |
|
---|
[1fb813d] | 160 | </sect2>
|
---|
| 161 |
|
---|
| 162 | <sect2 role="content">
|
---|
| 163 | <title>Contents</title>
|
---|
| 164 |
|
---|
| 165 | <segmentedlist>
|
---|
| 166 | <segtitle>Installed Programs</segtitle>
|
---|
[5aac2b97] | 167 | <segtitle>Installed Libraries</segtitle>
|
---|
[1fb813d] | 168 | <segtitle>Installed Directories</segtitle>
|
---|
| 169 |
|
---|
| 170 | <seglistitem>
|
---|
[e04cfef] | 171 | <seg>vpxdec and vpxenc</seg>
|
---|
[5aac2b97] | 172 | <seg>libvpx.so</seg>
|
---|
[1fb813d] | 173 | <seg>/usr/include/vpx</seg>
|
---|
| 174 | </seglistitem>
|
---|
| 175 | </segmentedlist>
|
---|
| 176 |
|
---|
| 177 | <variablelist>
|
---|
| 178 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 179 | <?dbfo list-presentation="list"?>
|
---|
| 180 | <?dbhtml list-presentation="table"?>
|
---|
| 181 |
|
---|
| 182 | <varlistentry id="vpxdec">
|
---|
| 183 | <term><command>vpxdec</command></term>
|
---|
| 184 | <listitem>
|
---|
[2eeb8695] | 185 | <para>
|
---|
[4c24eb0a] | 186 | is the WebM Project VP8 and VP9 decoder
|
---|
[2eeb8695] | 187 | </para>
|
---|
[1fb813d] | 188 | <indexterm zone="libvpx vpxdec">
|
---|
| 189 | <primary sortas="b-vpxdec">vpxdec</primary>
|
---|
| 190 | </indexterm>
|
---|
| 191 | </listitem>
|
---|
| 192 | </varlistentry>
|
---|
| 193 |
|
---|
| 194 | <varlistentry id="vpxenc">
|
---|
| 195 | <term><command>vpxenc</command></term>
|
---|
| 196 | <listitem>
|
---|
[2eeb8695] | 197 | <para>
|
---|
[4c24eb0a] | 198 | is the WebM project VP8 and VP9 encoder
|
---|
[2eeb8695] | 199 | </para>
|
---|
[1fb813d] | 200 | <indexterm zone="libvpx vpxenc">
|
---|
| 201 | <primary sortas="b-vpxenc">vpxenc</primary>
|
---|
| 202 | </indexterm>
|
---|
| 203 | </listitem>
|
---|
| 204 | </varlistentry>
|
---|
| 205 |
|
---|
| 206 | <varlistentry id="libvpx-lib">
|
---|
[4c24eb0a] | 207 | <term><filename class="libraryfile">libvpx.so</filename></term>
|
---|
[1fb813d] | 208 | <listitem>
|
---|
[2eeb8695] | 209 | <para>
|
---|
[4c24eb0a] | 210 | provides functions to use the VP8 and VP9 video codecs
|
---|
[2eeb8695] | 211 | </para>
|
---|
[1fb813d] | 212 | <indexterm zone="libvpx libvpx-lib">
|
---|
[e114b7b9] | 213 | <primary sortas="c-libvpx">libvpx.so</primary>
|
---|
[1fb813d] | 214 | </indexterm>
|
---|
| 215 | </listitem>
|
---|
| 216 | </varlistentry>
|
---|
| 217 |
|
---|
| 218 | </variablelist>
|
---|
| 219 |
|
---|
| 220 | </sect2>
|
---|
| 221 |
|
---|
| 222 | </sect1>
|
---|