[ab4fdfc] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[aef261a] | 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 |
|
---|
[30596408] | 7 | <!ENTITY x265-download-http "https://bitbucket.org/multicoreware/x265_git/downloads/x265_&x265-version;.tar.gz">
|
---|
[aef261a] | 8 | <!ENTITY x265-download-ftp " ">
|
---|
[362cd58] | 9 | <!ENTITY x265-md5sum "99997ecc8ee4d3575ba7715c759ad3bb">
|
---|
[30596408] | 10 | <!ENTITY x265-size "1.6 MB">
|
---|
[99c3e425] | 11 | <!ENTITY x265-buildsize "45 MB">
|
---|
[e9d2365] | 12 | <!ENTITY x265-time "0.5 SBU (using parallelism=4)">
|
---|
[aef261a] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="x265" xreflabel="x265-&x265-version;">
|
---|
| 16 | <?dbhtml filename="x265.html"?>
|
---|
| 17 |
|
---|
| 18 |
|
---|
| 19 | <title>x265-&x265-version;</title>
|
---|
| 20 |
|
---|
| 21 | <indexterm zone="x265">
|
---|
| 22 | <primary sortas="a-x265">x265</primary>
|
---|
| 23 | </indexterm>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="package">
|
---|
| 26 | <title>Introduction to x265</title>
|
---|
| 27 |
|
---|
| 28 | <para>
|
---|
| 29 | <application>x265</application> package provides a library for encoding
|
---|
| 30 | video streams into the H.265/HEVC format.
|
---|
| 31 | </para>
|
---|
| 32 |
|
---|
[5efdd78] | 33 | &lfs122_checked;
|
---|
[aef261a] | 34 |
|
---|
| 35 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 36 | <itemizedlist spacing="compact">
|
---|
| 37 | <listitem>
|
---|
| 38 | <para>
|
---|
| 39 | Download (HTTP): <ulink url="&x265-download-http;"/>
|
---|
| 40 | </para>
|
---|
| 41 | </listitem>
|
---|
| 42 | <listitem>
|
---|
| 43 | <para>
|
---|
| 44 | Download (FTP): <ulink url="&x265-download-ftp;"/>
|
---|
| 45 | </para>
|
---|
| 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
| 48 | <para>
|
---|
| 49 | Download MD5 sum: &x265-md5sum;
|
---|
| 50 | </para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>
|
---|
| 54 | Download size: &x265-size;
|
---|
| 55 | </para>
|
---|
| 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
| 58 | <para>
|
---|
| 59 | Estimated disk space required: &x265-buildsize;
|
---|
| 60 | </para>
|
---|
| 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
| 63 | <para>
|
---|
| 64 | Estimated build time: &x265-time;
|
---|
| 65 | </para>
|
---|
| 66 | </listitem>
|
---|
| 67 | </itemizedlist>
|
---|
[e024fe4] | 68 |
|
---|
[aef261a] | 69 | <bridgehead renderas="sect3">x265 Dependencies</bridgehead>
|
---|
| 70 |
|
---|
| 71 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 72 | <para role="required">
|
---|
| 73 | <xref linkend="cmake"/>
|
---|
| 74 | </para>
|
---|
| 75 |
|
---|
| 76 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 77 | <para role="recommended">
|
---|
[b20230b] | 78 | <xref linkend="nasm"/>
|
---|
[aef261a] | 79 | </para>
|
---|
| 80 |
|
---|
[3fa31b47] | 81 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 82 | <para role="optional">
|
---|
[27c8cca] | 83 | <ulink url="https://github.com/numactl/numactl">numactl</ulink>
|
---|
[3fa31b47] | 84 | </para>
|
---|
| 85 |
|
---|
[aef261a] | 86 | </sect2>
|
---|
| 87 |
|
---|
| 88 | <sect2 role="installation">
|
---|
| 89 | <title>Installation of x265</title>
|
---|
| 90 |
|
---|
| 91 | <para>
|
---|
| 92 | Install <application>x265</application> by running the following
|
---|
| 93 | commands:
|
---|
| 94 | </para>
|
---|
| 95 |
|
---|
[6293999] | 96 | <!-- the default build is Release, no need to specify that -->
|
---|
[f9bf7d4a] | 97 | <screen><userinput>mkdir bld &&
|
---|
[dccd96de] | 98 | cd bld &&
|
---|
[8e236eb] | 99 |
|
---|
[cbfa153] | 100 | cmake -D CMAKE_INSTALL_PREFIX=/usr \
|
---|
[e75b6d4] | 101 | -D GIT_ARCHETYPE=1 \
|
---|
[cbfa153] | 102 | -W no-dev ../source &&
|
---|
[aef261a] | 103 | make</userinput></screen>
|
---|
| 104 |
|
---|
| 105 | <para>
|
---|
| 106 | This package does not come with a test suite.
|
---|
| 107 | </para>
|
---|
| 108 |
|
---|
[362cd58] | 109 | <!-- To editors: hard coded versions "209", "212", and "3.6" are not a
|
---|
| 110 | bug. This <important> block should be removed when we update x265
|
---|
| 111 | to 3.7 (or 4.0 or whatever new version). The problem only happens
|
---|
| 112 | when we downgrade libx265.so, upgrading is OK (as long as following
|
---|
| 113 | the LFS package management page). -->
|
---|
| 114 | <important>
|
---|
| 115 | <para>
|
---|
| 116 | If downgrading from the bleeding-edge x265-20240812 (it had been
|
---|
| 117 | mistakenly used in the BLFS development book for several days),
|
---|
| 118 | remove the shared library from x265-20240812 as the &root; user:
|
---|
| 119 | </para>
|
---|
| 120 |
|
---|
| 121 | <screen role='root'><userinput>rm -fv /usr/lib/libx265.so.212</userinput></screen>
|
---|
| 122 |
|
---|
| 123 | <para>
|
---|
| 124 | This is for preventing <command>ldconfig</command> from recreating
|
---|
| 125 | the symlink <filename>libx265.so</filename> with the target
|
---|
| 126 | <filename>/usr/lib/libx265.so.212</filename> which seems to be
|
---|
| 127 | <quote>a newer version</quote> of <filename>libx265.so.209</filename>
|
---|
| 128 | from x265-3.6.
|
---|
| 129 | </para>
|
---|
| 130 | </important>
|
---|
| 131 |
|
---|
[aef261a] | 132 | <para>
|
---|
[9a45b052] | 133 | To install the package, first remove any old library versions.
|
---|
| 134 | After installation, remove a static library.
|
---|
| 135 | As the &root; user:
|
---|
[aef261a] | 136 | </para>
|
---|
| 137 |
|
---|
[ef35d61] | 138 | <screen role="root"><userinput>make install &&
|
---|
| 139 | rm -vf /usr/lib/libx265.a</userinput></screen>
|
---|
[f9bf7d4a] | 140 |
|
---|
| 141 | </sect2>
|
---|
| 142 |
|
---|
| 143 | <sect2 role="commands">
|
---|
| 144 | <title>Command Explanations</title>
|
---|
[aef261a] | 145 |
|
---|
[3f24c6c] | 146 | <para>
|
---|
[9a45b052] | 147 | <parameter>-W no-dev</parameter>: This switch is used to suppress warnings
|
---|
| 148 | intended for the package developers.
|
---|
[6293999] | 149 | </para>
|
---|
| 150 |
|
---|
[e75b6d4] | 151 | <para>
|
---|
| 152 | <parameter>-D GIT_ARCHETYPE=1</parameter>: This switch is needed
|
---|
| 153 | because the build system will not generate a pkg-config file or install
|
---|
| 154 | a shared library unless <xref linkend="git"/> is installed. Git isn't
|
---|
| 155 | required for anything else in this package, so this switch is used to
|
---|
| 156 | work around it for users who do not want to install Git as a build
|
---|
| 157 | dependency.
|
---|
| 158 | </para>
|
---|
| 159 |
|
---|
[6293999] | 160 | <para>
|
---|
[875b3b57] | 161 | <command>rm -vf /usr/lib/libx265.a</command>: BLFS does not recommend
|
---|
[8558044] | 162 | using static libraries.
|
---|
[f9bf7d4a] | 163 | </para>
|
---|
[aef261a] | 164 | </sect2>
|
---|
| 165 |
|
---|
| 166 | <sect2 role="content">
|
---|
| 167 | <title>Contents</title>
|
---|
| 168 |
|
---|
| 169 | <segmentedlist>
|
---|
[d7015e7] | 170 | <segtitle>Installed Program</segtitle>
|
---|
[aef261a] | 171 | <segtitle>Installed Library</segtitle>
|
---|
[d7015e7] | 172 | <segtitle>Installed Directories</segtitle>
|
---|
[aef261a] | 173 |
|
---|
| 174 | <seglistitem>
|
---|
| 175 | <seg>
|
---|
| 176 | x265
|
---|
| 177 | </seg>
|
---|
| 178 | <seg>
|
---|
[d7015e7] | 179 | libx265.so
|
---|
| 180 | </seg>
|
---|
| 181 | <seg>
|
---|
| 182 | None
|
---|
[aef261a] | 183 | </seg>
|
---|
| 184 | </seglistitem>
|
---|
| 185 | </segmentedlist>
|
---|
| 186 |
|
---|
| 187 | <variablelist>
|
---|
| 188 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 189 | <?dbfo list-presentation="list"?>
|
---|
| 190 | <?dbhtml list-presentation="table"?>
|
---|
| 191 |
|
---|
| 192 | <varlistentry id="libx265">
|
---|
| 193 | <term><filename class="libraryfile">libx265.so</filename></term>
|
---|
| 194 | <listitem>
|
---|
| 195 | <para>
|
---|
| 196 | provides the functions used to encode video streams into the
|
---|
[4c24eb0a] | 197 | H.265/HEVC format
|
---|
[aef261a] | 198 | </para>
|
---|
| 199 | <indexterm zone="x265 libx265">
|
---|
| 200 | <primary sortas="c-libx265">libx265.so</primary>
|
---|
| 201 | </indexterm>
|
---|
| 202 | </listitem>
|
---|
| 203 | </varlistentry>
|
---|
| 204 |
|
---|
| 205 | </variablelist>
|
---|
| 206 |
|
---|
| 207 | </sect2>
|
---|
| 208 |
|
---|
| 209 | </sect1>
|
---|