[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 " ">
|
---|
[37ede2a] | 9 | <!ENTITY libvpx-md5sum "cded283be38dc0078c3fbe751722efc5">
|
---|
| 10 | <!ENTITY libvpx-size "5.1 MB">
|
---|
| 11 | <!ENTITY libvpx-buildsize "64 MB (add 1.3GB if running tests)">
|
---|
| 12 | <!ENTITY libvpx-time "1.5 SBU, add 41 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 |
|
---|
[d437f756] | 37 | &lfs101_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 |
|
---|
[793932fd] | 75 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[f95e57bf] | 76 | <para role="required">
|
---|
[cac7f93] | 77 | <xref linkend="yasm"/> or <xref role="nodep" linkend="nasm"/>, and
|
---|
| 78 | <!-- see
|
---|
| 79 | http://lists.linuxfromscratch.org/pipermail/blfs-book/2019-August/083164.html
|
---|
| 80 | and references therein -->
|
---|
[f95e57bf] | 81 | <xref linkend="which"/> (so <command>configure</command> can find yasm)
|
---|
| 82 | </para>
|
---|
[793932fd] | 83 |
|
---|
[1fb813d] | 84 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[e915fec] | 85 | <para role="optional">
|
---|
[37ede2a] | 86 | <xref linkend="curl"/> (to download test files) and
|
---|
| 87 | <xref linkend="doxygen"/> (to build documentation)
|
---|
[e915fec] | 88 | </para>
|
---|
[1fb813d] | 89 |
|
---|
| 90 | <para condition="html" role="usernotes">User Notes:
|
---|
| 91 | <ulink url="&blfs-wiki;/libvpx"/></para>
|
---|
| 92 |
|
---|
| 93 | </sect2>
|
---|
| 94 |
|
---|
| 95 | <sect2 role="installation">
|
---|
| 96 | <title>Installation of libvpx</title>
|
---|
| 97 |
|
---|
[2eeb8695] | 98 | <para>
|
---|
| 99 | Install <application>libvpx</application> by running the
|
---|
| 100 | following commands:
|
---|
| 101 | </para>
|
---|
[1fb813d] | 102 |
|
---|
[71b2520e] | 103 | <screen><userinput>sed -i 's/cp -p/cp/' build/make/Makefile &&
|
---|
[e04cfef] | 104 |
|
---|
[71b2520e] | 105 | mkdir libvpx-build &&
|
---|
| 106 | cd libvpx-build &&
|
---|
[e04cfef] | 107 |
|
---|
[71b2520e] | 108 | ../configure --prefix=/usr \
|
---|
| 109 | --enable-shared \
|
---|
| 110 | --disable-static &&
|
---|
[1fb813d] | 111 | make</userinput></screen>
|
---|
| 112 |
|
---|
[2eeb8695] | 113 | <para>
|
---|
[37ede2a] | 114 | To test the results, issue:
|
---|
| 115 | <command>LD_LIBRARY_PATH=. make test</command>.
|
---|
| 116 | The test suite downloads several files as part of its test process.
|
---|
[2eeb8695] | 117 | </para>
|
---|
[1fb813d] | 118 |
|
---|
[2eeb8695] | 119 | <para>
|
---|
[37ede2a] | 120 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
[2eeb8695] | 121 | </para>
|
---|
[1fb813d] | 122 |
|
---|
| 123 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 124 |
|
---|
| 125 | </sect2>
|
---|
| 126 |
|
---|
| 127 | <sect2 role="commands">
|
---|
| 128 | <title>Command Explanations</title>
|
---|
| 129 |
|
---|
[2eeb8695] | 130 | <para>
|
---|
| 131 | <command>sed ... </command>: This command
|
---|
| 132 | corrects ownership and permissions of installed files.
|
---|
| 133 | </para>
|
---|
[b63e0be1] | 134 |
|
---|
[2eeb8695] | 135 | <para>
|
---|
| 136 | <command>mkdir libvpx-build && cd libvpx-build</command>:
|
---|
| 137 | The <application>libvpx</application> developers
|
---|
| 138 | recommend building in a dedicated build directory.
|
---|
| 139 | </para>
|
---|
[0d7900a] | 140 |
|
---|
[2eeb8695] | 141 | <para>
|
---|
| 142 | <option>--disable-vp8</option>: This switch prevents building of VP8
|
---|
| 143 | codec support.
|
---|
| 144 | </para>
|
---|
[6c52b1a] | 145 |
|
---|
[2eeb8695] | 146 | <para>
|
---|
| 147 | <option>--disable-vp9</option>: This switch prevents building of VP9
|
---|
| 148 | codec support.
|
---|
| 149 | </para>
|
---|
[6c52b1a] | 150 |
|
---|
[1a518e97] | 151 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 152 | href="../../xincludes/static-libraries.xml"/>
|
---|
[1fb813d] | 153 |
|
---|
[37ede2a] | 154 | <para>
|
---|
| 155 | <command>LD_LIBRARY_PATH=.</command>: This is needed for the testsuite
|
---|
| 156 | to use the just built library.
|
---|
| 157 | </para>
|
---|
| 158 |
|
---|
[1fb813d] | 159 | </sect2>
|
---|
| 160 |
|
---|
| 161 | <sect2 role="content">
|
---|
| 162 | <title>Contents</title>
|
---|
| 163 |
|
---|
| 164 | <segmentedlist>
|
---|
| 165 | <segtitle>Installed Programs</segtitle>
|
---|
[5aac2b97] | 166 | <segtitle>Installed Libraries</segtitle>
|
---|
[1fb813d] | 167 | <segtitle>Installed Directories</segtitle>
|
---|
| 168 |
|
---|
| 169 | <seglistitem>
|
---|
[e04cfef] | 170 | <seg>vpxdec and vpxenc</seg>
|
---|
[5aac2b97] | 171 | <seg>libvpx.so</seg>
|
---|
[1fb813d] | 172 | <seg>/usr/include/vpx</seg>
|
---|
| 173 | </seglistitem>
|
---|
| 174 | </segmentedlist>
|
---|
| 175 |
|
---|
| 176 | <variablelist>
|
---|
| 177 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 178 | <?dbfo list-presentation="list"?>
|
---|
| 179 | <?dbhtml list-presentation="table"?>
|
---|
| 180 |
|
---|
| 181 | <varlistentry id="vpxdec">
|
---|
| 182 | <term><command>vpxdec</command></term>
|
---|
| 183 | <listitem>
|
---|
[2eeb8695] | 184 | <para>
|
---|
[4c24eb0a] | 185 | is the WebM Project VP8 and VP9 decoder
|
---|
[2eeb8695] | 186 | </para>
|
---|
[1fb813d] | 187 | <indexterm zone="libvpx vpxdec">
|
---|
| 188 | <primary sortas="b-vpxdec">vpxdec</primary>
|
---|
| 189 | </indexterm>
|
---|
| 190 | </listitem>
|
---|
| 191 | </varlistentry>
|
---|
| 192 |
|
---|
| 193 | <varlistentry id="vpxenc">
|
---|
| 194 | <term><command>vpxenc</command></term>
|
---|
| 195 | <listitem>
|
---|
[2eeb8695] | 196 | <para>
|
---|
[4c24eb0a] | 197 | is the WebM project VP8 and VP9 encoder
|
---|
[2eeb8695] | 198 | </para>
|
---|
[1fb813d] | 199 | <indexterm zone="libvpx vpxenc">
|
---|
| 200 | <primary sortas="b-vpxenc">vpxenc</primary>
|
---|
| 201 | </indexterm>
|
---|
| 202 | </listitem>
|
---|
| 203 | </varlistentry>
|
---|
| 204 |
|
---|
| 205 | <varlistentry id="libvpx-lib">
|
---|
[4c24eb0a] | 206 | <term><filename class="libraryfile">libvpx.so</filename></term>
|
---|
[1fb813d] | 207 | <listitem>
|
---|
[2eeb8695] | 208 | <para>
|
---|
[4c24eb0a] | 209 | provides functions to use the VP8 and VP9 video codecs
|
---|
[2eeb8695] | 210 | </para>
|
---|
[1fb813d] | 211 | <indexterm zone="libvpx libvpx-lib">
|
---|
[e114b7b9] | 212 | <primary sortas="c-libvpx">libvpx.so</primary>
|
---|
[1fb813d] | 213 | </indexterm>
|
---|
| 214 | </listitem>
|
---|
| 215 | </varlistentry>
|
---|
| 216 |
|
---|
| 217 | </variablelist>
|
---|
| 218 |
|
---|
| 219 | </sect2>
|
---|
| 220 |
|
---|
| 221 | </sect1>
|
---|