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