[ab4fdfc] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[01062dd] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
[560e14cf] | 6 |
|
---|
[c6b192c] | 7 | <!ENTITY ffmpeg-download-http "https://ffmpeg.org/releases/ffmpeg-&ffmpeg-version;.tar.xz">
|
---|
[01062dd] | 8 | <!ENTITY ffmpeg-download-ftp " ">
|
---|
[2397555] | 9 | <!ENTITY ffmpeg-md5sum "623aa63a72139a82ccb99cd6ee477b94">
|
---|
| 10 | <!ENTITY ffmpeg-size "11 MB">
|
---|
| 11 | <!ENTITY ffmpeg-buildsize "205 MB (add 1.5 GB for the FATE suite/tests, add 869 MB for documentation)">
|
---|
| 12 | <!ENTITY ffmpeg-time "1.2 SBU (using parallelism=4; add 3.2 SBU (with THREADS=4) to run the FATE suite after sample files are downloaded; add 0.2 SBU for doxygen docs)">
|
---|
[01062dd] | 13 | ]>
|
---|
| 14 |
|
---|
[0b5a693] | 15 | <sect1 id="ffmpeg" xreflabel="FFmpeg-&ffmpeg-version;">
|
---|
[8a1e4f4] | 16 | <?dbhtml filename="ffmpeg.html"?>
|
---|
| 17 |
|
---|
| 18 |
|
---|
| 19 | <title>FFmpeg-&ffmpeg-version;</title>
|
---|
| 20 |
|
---|
| 21 | <indexterm zone="ffmpeg">
|
---|
| 22 | <primary sortas="a-FFmpeg">FFmpeg</primary>
|
---|
| 23 | </indexterm>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="package">
|
---|
| 26 | <title>Introduction to FFmpeg</title>
|
---|
| 27 |
|
---|
[faec3f7] | 28 | <para>
|
---|
| 29 | <application>FFmpeg</application> is a solution to record, convert and
|
---|
| 30 | stream audio and video. It is a very fast video and audio converter and it
|
---|
| 31 | can also acquire from a live audio/video source. Designed to be intuitive,
|
---|
| 32 | the command-line interface (<command>ffmpeg</command>) tries to figure out
|
---|
| 33 | all the parameters, when possible. <application>FFmpeg</application> can
|
---|
| 34 | also convert from any sample rate to any other, and resize video on the
|
---|
| 35 | fly with a high quality polyphase filter.
|
---|
[a161de9] | 36 | <application>FFmpeg</application> can use a Video4Linux compatible video
|
---|
[faec3f7] | 37 | source and any Open Sound System audio source.
|
---|
| 38 | </para>
|
---|
[9e5b78b] | 39 |
|
---|
[5efdd78] | 40 | &lfs122_checked;
|
---|
[8a1e4f4] | 41 |
|
---|
| 42 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 43 | <itemizedlist spacing="compact">
|
---|
| 44 | <listitem>
|
---|
[ffd1fcc] | 45 | <para>
|
---|
| 46 | Download (HTTP): <ulink url="&ffmpeg-download-http;"/>
|
---|
| 47 | </para>
|
---|
[8a1e4f4] | 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
[ffd1fcc] | 50 | <para>
|
---|
| 51 | Download (FTP): <ulink url="&ffmpeg-download-ftp;"/>
|
---|
| 52 | </para>
|
---|
[8a1e4f4] | 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
[ffd1fcc] | 55 | <para>
|
---|
| 56 | Download MD5 sum: &ffmpeg-md5sum;
|
---|
| 57 | </para>
|
---|
[8a1e4f4] | 58 | </listitem>
|
---|
| 59 | <listitem>
|
---|
[ffd1fcc] | 60 | <para>
|
---|
| 61 | Download size: &ffmpeg-size;
|
---|
| 62 | </para>
|
---|
[8a1e4f4] | 63 | </listitem>
|
---|
| 64 | <listitem>
|
---|
[ffd1fcc] | 65 | <para>
|
---|
| 66 | Estimated disk space required: &ffmpeg-buildsize;
|
---|
| 67 | </para>
|
---|
[8a1e4f4] | 68 | </listitem>
|
---|
| 69 | <listitem>
|
---|
[ffd1fcc] | 70 | <para>
|
---|
| 71 | Estimated build time: &ffmpeg-time;
|
---|
| 72 | </para>
|
---|
[8a1e4f4] | 73 | </listitem>
|
---|
| 74 | </itemizedlist>
|
---|
| 75 |
|
---|
[69b7d08] | 76 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 77 | <itemizedlist spacing="compact">
|
---|
| 78 | <listitem>
|
---|
| 79 | <para>
|
---|
| 80 | Required patch:
|
---|
[bf716e1] | 81 | <ulink url="&patch-root;/ffmpeg-&ffmpeg-version;-chromium_method-1.patch"/>
|
---|
[69b7d08] | 82 | </para>
|
---|
| 83 | </listitem>
|
---|
| 84 | </itemizedlist>
|
---|
| 85 |
|
---|
[f29d6ee] | 86 | <bridgehead renderas="sect3">FFmpeg Dependencies</bridgehead>
|
---|
[8a1e4f4] | 87 |
|
---|
[28cd5ce] | 88 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
[aaa3ccd] | 89 | <para role="recommended">
|
---|
[f6503c73] | 90 | <xref linkend="libaom"/>,
|
---|
[89d37eb8] | 91 | <xref linkend="libass"/>,
|
---|
| 92 | <xref linkend="fdk-aac"/>,
|
---|
[a525ccb] | 93 | <xref linkend="freetype2"/>,
|
---|
[efcf979] | 94 | <xref linkend="lame"/>,
|
---|
| 95 | <xref linkend="libvorbis"/>,
|
---|
[a525ccb] | 96 | <xref linkend="libvpx"/>,
|
---|
[287a07e] | 97 | <xref linkend="opus"/>,
|
---|
[1fa4314] | 98 | <xref linkend="x264"/>,
|
---|
| 99 | <xref linkend="x265"/>, and
|
---|
[34bcb5ec] | 100 | <xref linkend="nasm"/> or <xref linkend="yasm"/>
|
---|
[457568e] | 101 | </para>
|
---|
| 102 |
|
---|
[89d37eb8] | 103 | <bridgehead renderas="sect4">Recommended for desktop use</bridgehead>
|
---|
[7e1afc9] | 104 | <para role="recommended">
|
---|
[89d37eb8] | 105 | <xref linkend="alsa-lib"/>,
|
---|
[287a07e] | 106 | <xref linkend="libva"/>,
|
---|
[bc228ec] | 107 | <xref linkend="sdl2"/>
|
---|
[07584d8] | 108 | </para>
|
---|
| 109 |
|
---|
[91b30845] | 110 | <bridgehead renderas="sect4">Recommended for systems with Intel Video</bridgehead>
|
---|
| 111 | <para role="recommended">
|
---|
| 112 | <xref linkend="libvdpau"/> and
|
---|
| 113 | <xref linkend="libvdpau-va-gl"/>
|
---|
| 114 | </para>
|
---|
| 115 |
|
---|
[457568e] | 116 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 117 | <para role="optional">
|
---|
[a4c3c48] | 118 | <xref linkend="doxygen"/>,
|
---|
[287a07e] | 119 | <xref linkend="fontconfig"/>,
|
---|
[a516869] | 120 | <xref linkend="fribidi"/>,
|
---|
[60d53ec3] | 121 | <xref linkend="frei0r"/>,
|
---|
[287a07e] | 122 | <xref linkend="libcdio"/> (to identify and play CDs),
|
---|
[a5dfb970] | 123 | <xref linkend="libdrm"/> (for <quote>kmsgrab</quote> input),
|
---|
[01b8994d] | 124 | <!--<xref linkend="libtheora"/>,-->
|
---|
[545a53d] | 125 | <xref linkend="libjxl"/>,
|
---|
[2f0f7a0] | 126 | <xref linkend="libwebp"/>,
|
---|
[60d53ec3] | 127 | <xref linkend="opencv"/>,
|
---|
[0fd465f5] | 128 | <xref linkend="openjpeg2"/>,
|
---|
[80d4245] | 129 | <xref linkend="gnutls"/>,
|
---|
[287a07e] | 130 | <xref linkend="pulseaudio"/>,
|
---|
[a516869] | 131 | <xref linkend="samba"/>,
|
---|
[287a07e] | 132 | <xref linkend="speex"/>,
|
---|
[f3429309] | 133 | <xref linkend="texlive"/>
|
---|
[60d53ec3] | 134 | (or <xref linkend="tl-installer"/>) for PDF and PS documentation,
|
---|
[80dbc4c8] | 135 | <xref linkend="v4l-utils"/>,
|
---|
[990c920] | 136 | <xref linkend="vulkan-loader"/>,
|
---|
[287a07e] | 137 | <xref linkend="xvid"/>,
|
---|
| 138 | <xref linkend="x-window-system"/>,
|
---|
[8509951] | 139 | <ulink url="https://code.videolan.org/videolan/dav1d">dav1d</ulink>,
|
---|
[69b7d08] | 140 | <ulink url="https://github.com/festvox/flite">Flite</ulink>,
|
---|
[75b1a338] | 141 | <ulink url="https://www.quut.com/gsm/">GSM</ulink>,
|
---|
| 142 | <ulink url="https://tipok.org.ua/node/17">libaacplus</ulink>,
|
---|
| 143 | <ulink url="https://www.videolan.org/developers/libbluray.html">libbluray</ulink>,
|
---|
| 144 | <ulink url="https://github.com/cacalabs/libcaca">libcaca</ulink>,
|
---|
[93c17b90] | 145 | <ulink url="https://gitlab.xiph.org/xiph/celt">libcelt</ulink>,
|
---|
[c6b192c] | 146 | <ulink url="https://sourceforge.net/projects/libdc1394">libdc1394</ulink>,
|
---|
[287a07e] | 147 | <ulink url="https://www.videolan.org/developers/libdca.html">libdca</ulink>,
|
---|
[a161de9] | 148 | <ulink url="https://ieee1394.wiki.kernel.org/index.php/Libraries">libiec61883</ulink>,
|
---|
| 149 | <ulink url="https://github.com/dekkers/libilbc">libilbc</ulink>,
|
---|
[c6b192c] | 150 | <ulink url="https://sourceforge.net/projects/modplug-xmms/">libmodplug</ulink>,
|
---|
[a754ee2b] | 151 | <ulink url="https://github.com/Distrotech/libnut">libnut</ulink> (Git checkout),
|
---|
[75b1a338] | 152 | <ulink url="https://rtmpdump.mplayerhq.hu/">librtmp</ulink>,
|
---|
| 153 | <ulink url="https://www.libssh.org/">libssh</ulink>,
|
---|
[01b8994d] | 154 | <ulink url="https://www.theora.org">libtheora</ulink>,
|
---|
[a4c3c48] | 155 | <ulink url="https://openal.org/">OpenAL</ulink>,
|
---|
[c6b192c] | 156 | <ulink url="https://sourceforge.net/projects/opencore-amr">OpenCore AMR</ulink>,
|
---|
[4e207bb] | 157 | <ulink url="https://github.com/Haivision/srt">Srt</ulink>,
|
---|
[c6b192c] | 158 | <ulink url="https://sourceforge.net/projects/schrodinger/">Schroedinger</ulink>,
|
---|
[75b1a338] | 159 | <ulink url="https://www.twolame.org/">TwoLAME</ulink>,
|
---|
[c6b192c] | 160 | <ulink url="https://sourceforge.net/projects/opencore-amr/files/vo-aacenc/">vo-aaenc</ulink>,
|
---|
[990c920] | 161 | <ulink url="https://sourceforge.net/projects/opencore-amr/files/vo-amrwbenc/">vo-amrwbenc</ulink>, and
|
---|
| 162 | <!--<ulink url="https://vulkan.org/">Vulkan</ulink>, and-->
|
---|
[17aa21c] | 163 | <ulink url="https://zapping.sourceforge.net/ZVBI/">ZVBI</ulink>
|
---|
[ffd1fcc] | 164 | </para>
|
---|
[8a1e4f4] | 165 |
|
---|
| 166 | </sect2>
|
---|
| 167 |
|
---|
| 168 | <sect2 role="installation">
|
---|
| 169 | <title>Installation of FFmpeg</title>
|
---|
| 170 |
|
---|
[69b7d08] | 171 | <para>
|
---|
| 172 | First, apply a patch that adds an API necessary for some packages to
|
---|
| 173 | build:
|
---|
| 174 | <!-- qtwebengine -->
|
---|
| 175 | </para>
|
---|
| 176 |
|
---|
[bf716e1] | 177 | <screen><userinput remap="pre">patch -Np1 -i ../ffmpeg-&ffmpeg-version;-chromium_method-1.patch</userinput></screen>
|
---|
[69b7d08] | 178 |
|
---|
[faec3f7] | 179 | <para>
|
---|
| 180 | Install <application>FFmpeg</application> by running the following
|
---|
| 181 | commands:
|
---|
| 182 | </para>
|
---|
[8a1e4f4] | 183 |
|
---|
[4a3c628] | 184 | <screen><userinput>./configure --prefix=/usr \
|
---|
[eb32964] | 185 | --enable-gpl \
|
---|
| 186 | --enable-version3 \
|
---|
| 187 | --enable-nonfree \
|
---|
| 188 | --disable-static \
|
---|
| 189 | --enable-shared \
|
---|
| 190 | --disable-debug \
|
---|
[f6503c73] | 191 | --enable-libaom \
|
---|
[eb32964] | 192 | --enable-libass \
|
---|
| 193 | --enable-libfdk-aac \
|
---|
[a525ccb] | 194 | --enable-libfreetype \
|
---|
[eb32964] | 195 | --enable-libmp3lame \
|
---|
| 196 | --enable-libopus \
|
---|
| 197 | --enable-libvorbis \
|
---|
| 198 | --enable-libvpx \
|
---|
| 199 | --enable-libx264 \
|
---|
[1fa4314] | 200 | --enable-libx265 \
|
---|
[a516869] | 201 | --enable-openssl \
|
---|
[426ee9f5] | 202 | --ignore-tests=enhanced-flv-av1 \
|
---|
[791213b] | 203 | --docdir=/usr/share/doc/ffmpeg-&ffmpeg-version; &&
|
---|
[70f1af0] | 204 |
|
---|
[a161de9] | 205 | make &&
|
---|
[70f1af0] | 206 |
|
---|
[0ee2aa3] | 207 | gcc tools/qt-faststart.c -o tools/qt-faststart</userinput></screen>
|
---|
[28cd5ce] | 208 |
|
---|
[a161de9] | 209 | <para>
|
---|
[791213b] | 210 | HTML documentation was built in the previous step. If you have
|
---|
[a161de9] | 211 | <xref linkend="texlive"/> installed and wish to build PDF and
|
---|
| 212 | Postscript versions of the documentation, issue the following commands:
|
---|
| 213 | </para>
|
---|
[fcd201bd] | 214 |
|
---|
[a42c273] | 215 | <screen remap="doc"><userinput>pushd doc &&
|
---|
[a161de9] | 216 | for DOCNAME in `basename -s .html *.html`
|
---|
| 217 | do
|
---|
| 218 | texi2pdf -b $DOCNAME.texi &&
|
---|
| 219 | texi2dvi -b $DOCNAME.texi &&
|
---|
[70f1af0] | 220 |
|
---|
| 221 | dvips -o $DOCNAME.ps \
|
---|
[42160e7] | 222 | $DOCNAME.dvi
|
---|
[70f1af0] | 223 | done &&
|
---|
| 224 | popd &&
|
---|
[a161de9] | 225 | unset DOCNAME</userinput></screen>
|
---|
[c08bd877] | 226 |
|
---|
[faec3f7] | 227 | <para>
|
---|
[8558044] | 228 | If you have <xref linkend="doxygen"/> installed
|
---|
[38290b4] | 229 | and you wish to build (if --disable-doc was
|
---|
[a42c273] | 230 | used) or rebuild the html documentation, issue:
|
---|
[faec3f7] | 231 | </para>
|
---|
[8a1e4f4] | 232 |
|
---|
[a42c273] | 233 | <screen remap="doc"><userinput>doxygen doc/Doxyfile</userinput></screen>
|
---|
| 234 |
|
---|
[a161de9] | 235 | <para>
|
---|
[dc29e3ac] | 236 | The fate-suite tests include comparisons with installed files, and should
|
---|
| 237 | not be run before the package is installed. Therefore, if you desire to
|
---|
| 238 | run them, instructions are given further below.
|
---|
[a161de9] | 239 | </para>
|
---|
[8a1e4f4] | 240 |
|
---|
[a161de9] | 241 | <para>
|
---|
| 242 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 243 | </para>
|
---|
[457568e] | 244 |
|
---|
[a161de9] | 245 | <screen role="root"><userinput>make install &&
|
---|
[70f1af0] | 246 |
|
---|
[a161de9] | 247 | install -v -m755 tools/qt-faststart /usr/bin &&
|
---|
[8e848de9] | 248 | install -v -m755 -d /usr/share/doc/ffmpeg-&ffmpeg-version; &&
|
---|
[0e29df6] | 249 | install -v -m644 doc/*.txt /usr/share/doc/ffmpeg-&ffmpeg-version;</userinput></screen>
|
---|
[9e5b78b] | 250 |
|
---|
[faec3f7] | 251 | <para>
|
---|
[17b685f1] | 252 | If the PDF and Postscript documentation was built, issue the following
|
---|
[791213b] | 253 | commands, as the <systemitem class="username">root</systemitem> user, to
|
---|
| 254 | install them:
|
---|
[faec3f7] | 255 | </para>
|
---|
[fd7e0ed6] | 256 |
|
---|
[a42c273] | 257 | <screen role="root"
|
---|
| 258 | remap="doc"><userinput>install -v -m644 doc/*.pdf /usr/share/doc/ffmpeg-&ffmpeg-version; &&
|
---|
[0e29df6] | 259 | install -v -m644 doc/*.ps /usr/share/doc/ffmpeg-&ffmpeg-version;</userinput></screen>
|
---|
[c08bd877] | 260 |
|
---|
[faec3f7] | 261 | <para>
|
---|
[8558044] | 262 | If you used <command>doxygen</command> to manually create the API
|
---|
[38290b4] | 263 | documentation, install it by issuing the following commands
|
---|
[a161de9] | 264 | as the <systemitem class="username">root</systemitem> user:
|
---|
[faec3f7] | 265 | </para>
|
---|
[c08bd877] | 266 |
|
---|
[a42c273] | 267 | <screen role="root"
|
---|
| 268 | remap="doc"><userinput>install -v -m755 -d /usr/share/doc/ffmpeg-&ffmpeg-version;/api &&
|
---|
[70f1af0] | 269 | cp -vr doc/doxy/html/* /usr/share/doc/ffmpeg-&ffmpeg-version;/api &&
|
---|
| 270 | find /usr/share/doc/ffmpeg-&ffmpeg-version;/api -type f -exec chmod -c 0644 \{} \; &&
|
---|
| 271 | find /usr/share/doc/ffmpeg-&ffmpeg-version;/api -type d -exec chmod -c 0755 \{} \;</userinput></screen>
|
---|
[ffd1fcc] | 272 |
|
---|
[dc29e3ac] | 273 | <para>
|
---|
| 274 | To properly test the installation you must have <xref linkend="rsync"/>
|
---|
| 275 | installed and follow the instructions for the <ulink
|
---|
[75b1a338] | 276 | url="https://www.ffmpeg.org/fate.html"> FFmpeg Automated Testing
|
---|
[7e1afc9] | 277 | Environment</ulink> (FATE). First, about 1 GB of sample files used to
|
---|
[dc29e3ac] | 278 | run FATE are downloaded with the command:
|
---|
| 279 | </para>
|
---|
| 280 |
|
---|
[a42c273] | 281 | <screen remap="test"><userinput>make fate-rsync SAMPLES=fate-suite/</userinput></screen>
|
---|
[dc29e3ac] | 282 |
|
---|
| 283 | <para>
|
---|
| 284 | The <filename class="directory">fate-suite</filename> directory is
|
---|
[2adbd3da] | 285 | created and the files are downloaded there. That command actually runs an
|
---|
[e200fb6] | 286 | rsync command to obtain the sample files. You may want to compress and
|
---|
| 287 | keep this directory for testing again, for testing in another system,
|
---|
| 288 | or for when a new version of ffmpeg is released. Then, unpack the sample
|
---|
| 289 | files in the source directory, and run the <command>make fate-rsync
|
---|
| 290 | ...</command> command above to sync with the upstream repository. The
|
---|
| 291 | download size and time are drastically reduced by doing this. Estimated
|
---|
| 292 | values in "Package Information" do not include the download SBU. Some
|
---|
| 293 | samples may have been removed in newer versions, so in order to be sure
|
---|
| 294 | local and server fate samples are identical when you use previously
|
---|
| 295 | saved samples, run the following command:
|
---|
[2adbd3da] | 296 | </para>
|
---|
| 297 |
|
---|
[2f3e3de9] | 298 | <screen role="nodump"><userinput>rsync -vrltLW --delete --timeout=60 --contimeout=60 \
|
---|
| 299 | rsync://fate-suite.ffmpeg.org/fate-suite/ fate-suite/</userinput></screen>
|
---|
[f3429309] | 300 |
|
---|
[2adbd3da] | 301 | <para>
|
---|
[e200fb6] | 302 | Next, execute FATE with the following commands (there are more than 3800
|
---|
| 303 | tests in the suite):
|
---|
[dc29e3ac] | 304 | </para>
|
---|
| 305 |
|
---|
[a42c273] | 306 | <screen remap="test"><userinput>make fate THREADS=<replaceable>N</replaceable> SAMPLES=fate-suite/ | tee ../fate.log &&
|
---|
[dc29e3ac] | 307 | grep ^TEST ../fate.log | wc -l</userinput></screen>
|
---|
[f3429309] | 308 |
|
---|
[06da9a6] | 309 | <para>
|
---|
| 310 | where <replaceable>N</replaceable> is an integer,
|
---|
[c840bd37] | 311 | <replaceable>N</replaceable> ≤ number of cores in the system.
|
---|
[e200fb6] | 312 | </para>
|
---|
| 313 |
|
---|
| 314 | <para>
|
---|
| 315 | A successful run should return no errors or warnings, just a list of tests
|
---|
| 316 | and total amount at the end.
|
---|
| 317 | </para>
|
---|
[dc29e3ac] | 318 |
|
---|
[8a1e4f4] | 319 | </sect2>
|
---|
| 320 |
|
---|
| 321 | <sect2 role="commands">
|
---|
| 322 | <title>Command Explanations</title>
|
---|
| 323 |
|
---|
[a161de9] | 324 |
|
---|
[43a3a17] | 325 | <para>
|
---|
[a4c3c48] | 326 | <command>find ... ;</command>: Fixes permissions of documentation files
|
---|
[43a3a17] | 327 | and directories.
|
---|
| 328 | </para>
|
---|
| 329 |
|
---|
[05bb3720] | 330 | <para>
|
---|
[1a518e97] | 331 | <parameter>--enable-libfreetype</parameter>: Enables
|
---|
[05bb3720] | 332 | <application>Freetype</application> support.
|
---|
| 333 | </para>
|
---|
| 334 |
|
---|
[a161de9] | 335 | <para>
|
---|
| 336 | <parameter>--enable-gpl</parameter>: Enables the use of GPL code and
|
---|
[baf1e23] | 337 | permits support for postprocessing, swscale and many other features.
|
---|
[faec3f7] | 338 | </para>
|
---|
| 339 |
|
---|
| 340 | <para>
|
---|
[a161de9] | 341 | <parameter>--enable-version3</parameter>: Enables the use of (L)GPL
|
---|
| 342 | version 3 code.
|
---|
| 343 | </para>
|
---|
| 344 |
|
---|
| 345 | <para>
|
---|
[dc29e3ac] | 346 | <parameter>--enable-nonfree</parameter>: Enables the use of nonfree code.
|
---|
| 347 | Note that the resulting libraries and binaries will be unredistributable.
|
---|
[faec3f7] | 348 | </para>
|
---|
[8a1e4f4] | 349 |
|
---|
[baf1e23] | 350 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 351 | href="../../xincludes/static-libraries.xml"/>
|
---|
| 352 |
|
---|
[a161de9] | 353 | <para>
|
---|
[dc29e3ac] | 354 | <parameter>--enable-shared</parameter>: Enables building shared
|
---|
| 355 | libraries, otherwise only static libraries are built and installed.
|
---|
[a161de9] | 356 | </para>
|
---|
| 357 |
|
---|
| 358 | <para>
|
---|
[89d37eb8] | 359 | <parameter>--disable-debug</parameter>: Disables building debugging
|
---|
| 360 | symbols into the programs and libraries.
|
---|
[a161de9] | 361 | </para>
|
---|
| 362 |
|
---|
[f6503c73] | 363 | <para>
|
---|
| 364 | <parameter>--enable-libaom</parameter>: Enables AV1 audio and video
|
---|
| 365 | decoding via <filename class="libraryfile">libaom</filename>.
|
---|
| 366 | </para>
|
---|
| 367 |
|
---|
[a161de9] | 368 | <para>
|
---|
[89d37eb8] | 369 | <parameter>--enable-libass</parameter>: Enables ASS/SSA subtitle format
|
---|
[c0fce1d] | 370 | rendering via <filename class="libraryfile">libass</filename>.
|
---|
[a161de9] | 371 | </para>
|
---|
| 372 |
|
---|
[a5dfb970] | 373 | <para>
|
---|
[8558044] | 374 | <option>--enable-libdrm</option>: Use this switch if
|
---|
[2597ad1] | 375 | <xref linkend="libdrm"/> is installed to build the <quote>kmsgrab</quote>
|
---|
| 376 | input module which is useful for screen capturing or streaming.
|
---|
[a5dfb970] | 377 | </para>
|
---|
| 378 |
|
---|
[a161de9] | 379 | <para>
|
---|
[e200fb6] | 380 | <parameter>--enable-libfdk-aac</parameter>: Enables AAC audio encoding via
|
---|
| 381 | <filename class="libraryfile">libfdk-aac</filename>.
|
---|
[a161de9] | 382 | </para>
|
---|
| 383 |
|
---|
| 384 | <para>
|
---|
[dc29e3ac] | 385 | <parameter>--enable-libmp3lame</parameter>: Enables MP3 audio encoding
|
---|
| 386 | via <filename class="libraryfile">libmp3lame</filename>.
|
---|
[a161de9] | 387 | </para>
|
---|
[ce402041] | 388 | <!--
|
---|
[a161de9] | 389 | <para>
|
---|
[ce402041] | 390 | <parameter>- -enable-libvorbis</parameter>
|
---|
| 391 | <parameter>- -enable-libtheora</parameter>: Enables
|
---|
[c012c1a] | 392 | Theora video encoding via <filename
|
---|
| 393 | class="libraryfile">libvorbis</filename> and <filename
|
---|
| 394 | class="libraryfile">libtheora</filename>.
|
---|
[a161de9] | 395 | </para>
|
---|
[ce402041] | 396 | -->
|
---|
[a161de9] | 397 | <para>
|
---|
[875b3b57] | 398 | <parameter>--enable-libvorbis</parameter>
|
---|
| 399 | <parameter>--enable-libvpx</parameter>: Enables WebM
|
---|
[c012c1a] | 400 | encoding via <filename class="libraryfile">libvorbis</filename> and
|
---|
| 401 | <filename class="libraryfile">libvpx</filename>.
|
---|
[a161de9] | 402 | </para>
|
---|
| 403 |
|
---|
| 404 | <para>
|
---|
[dc29e3ac] | 405 | <parameter>--enable-libx264</parameter>: Enables high-quality
|
---|
| 406 | H.264/MPEG-4 AVC encoding via <filename
|
---|
[118613f8] | 407 | class="libraryfile">libx264</filename>.
|
---|
[a161de9] | 408 | </para>
|
---|
| 409 |
|
---|
[1fa4314] | 410 | <para>
|
---|
| 411 | <parameter>--enable-libx265</parameter>: Enables high-quality
|
---|
| 412 | H.265/HEVC encoding via <filename
|
---|
| 413 | class="libraryfile">libx265</filename>.
|
---|
| 414 | </para>
|
---|
| 415 |
|
---|
[ea8738a] | 416 | <para>
|
---|
[a516869] | 417 | <parameter>--enable-openssl</parameter>:
|
---|
[ea8738a] | 418 | Enables HTTPS protocol for network streams.
|
---|
| 419 | </para>
|
---|
| 420 |
|
---|
[426ee9f5] | 421 | <!--
|
---|
[b79fb34] | 422 | <para>
|
---|
[426ee9f5] | 423 | <parameter>- -disable-vulkan</parameter>: Disables Vulkan for the
|
---|
[b79fb34] | 424 | current version of <xref linkend="vulkan-loader"/> due to
|
---|
| 425 | an API conflict.
|
---|
| 426 | </para>
|
---|
[426ee9f5] | 427 | -->
|
---|
[b79fb34] | 428 |
|
---|
| 429 | <para>
|
---|
| 430 | <parameter>--ignore-tests=...</parameter>: Disables tests that fail to
|
---|
| 431 | run on
|
---|
| 432 | BLFS without the optional packages. Currently the AV1 test is disabled
|
---|
| 433 | as it needs dav1d to do AV1 decoding on the CPU. The test might work if
|
---|
| 434 | you have a GPU that can decode AV1, but this was not tested.
|
---|
| 435 | </para>
|
---|
| 436 |
|
---|
[a516869] | 437 | <para>
|
---|
| 438 | <option>--enable-gnutls</option>: Use this option instead of
|
---|
| 439 | <parameter>--enable-openssl</parameter>, if you want to use
|
---|
| 440 | <application>GnuTLS</application> instead of
|
---|
| 441 | <application>OpenSSL</application> for HTTPS protocol.
|
---|
| 442 | </para>
|
---|
| 443 |
|
---|
[7197352] | 444 | <para>
|
---|
| 445 | <option>--disable-doc</option>: Disables building html documentation.
|
---|
[8558044] | 446 | This is only needed if <xref linkend="doxygen"/> is installed and you
|
---|
[7197352] | 447 | do not want to build the html documentation.
|
---|
| 448 | </para>
|
---|
| 449 |
|
---|
[77cce582] | 450 | <para>
|
---|
| 451 | <option>--enable-libpulse</option>: Enables support for
|
---|
| 452 | <application>Pulseaudio</application> for audio output.
|
---|
| 453 | </para>
|
---|
| 454 |
|
---|
[faec3f7] | 455 | <para>
|
---|
[dc29e3ac] | 456 | <command>gcc tools/qt-faststart.c -o tools/qt-faststart</command>: This
|
---|
| 457 | builds the <command>qt-faststart</command> program which can modify
|
---|
| 458 | QuickTime formatted movies (<filename class="extension">.mov</filename>
|
---|
| 459 | or <filename class="extension">.mp4</filename>) so that the header
|
---|
| 460 | information is located at the beginning of the file instead of the end.
|
---|
| 461 | This allows the movie file to begin playing before the entire file has
|
---|
| 462 | been downloaded.
|
---|
[2216c969] | 463 | </para>
|
---|
| 464 |
|
---|
[c012c1a] | 465 | <note>
|
---|
| 466 | <para>
|
---|
| 467 | Support for most of the dependency packages requires using options
|
---|
[d0c85de6] | 468 | passed to the <command>configure</command> script. View the output
|
---|
[c012c1a] | 469 | from <command>./configure --help</command> for complete information
|
---|
| 470 | about enabling dependency packages.
|
---|
| 471 | </para>
|
---|
| 472 | </note>
|
---|
| 473 |
|
---|
[8a1e4f4] | 474 | </sect2>
|
---|
| 475 |
|
---|
| 476 | <sect2 role="content">
|
---|
| 477 | <title>Contents</title>
|
---|
| 478 |
|
---|
| 479 | <segmentedlist>
|
---|
| 480 | <segtitle>Installed Programs</segtitle>
|
---|
| 481 | <segtitle>Installed Libraries</segtitle>
|
---|
| 482 | <segtitle>Installed Directories</segtitle>
|
---|
| 483 |
|
---|
| 484 | <seglistitem>
|
---|
[faec3f7] | 485 | <seg>
|
---|
[a4c3c48] | 486 | ffmpeg, ffplay, ffprobe, <!--ffserver,--> and qt-faststart
|
---|
[faec3f7] | 487 | </seg>
|
---|
| 488 | <seg>
|
---|
[ffd1fcc] | 489 | libavcodec.so, libavdevice.so, libavfilter.so,
|
---|
[69b7d08] | 490 | libavformat.so, libavutil.so, libpostproc.so,
|
---|
[638fc4a] | 491 | libswresample.so, and libswscale.so
|
---|
[faec3f7] | 492 | </seg>
|
---|
| 493 | <seg>
|
---|
[69b7d08] | 494 | /usr/include/libav{codec,device,filter,format,util},
|
---|
[b8efb1fb] | 495 | /usr/include/libpostproc,
|
---|
| 496 | /usr/include/libsw{resample,scale},
|
---|
[813ea9af] | 497 | /usr/share/doc/ffmpeg-&ffmpeg-version;, and
|
---|
| 498 | /usr/share/ffmpeg
|
---|
[faec3f7] | 499 | </seg>
|
---|
[8a1e4f4] | 500 | </seglistitem>
|
---|
| 501 | </segmentedlist>
|
---|
| 502 |
|
---|
| 503 | <variablelist>
|
---|
| 504 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 505 | <?dbfo list-presentation="list"?>
|
---|
| 506 | <?dbhtml list-presentation="table"?>
|
---|
| 507 |
|
---|
| 508 | <varlistentry id="ffmpeg-prog">
|
---|
| 509 | <term><command>ffmpeg</command></term>
|
---|
| 510 | <listitem>
|
---|
[faec3f7] | 511 | <para>
|
---|
| 512 | is a command-line tool to convert video files, network streams and
|
---|
[4c24eb0a] | 513 | input from a TV card to several video formats
|
---|
[faec3f7] | 514 | </para>
|
---|
[8a1e4f4] | 515 | <indexterm zone="ffmpeg ffmpeg-prog">
|
---|
| 516 | <primary sortas="b-ffmpeg">ffmpeg</primary>
|
---|
| 517 | </indexterm>
|
---|
| 518 | </listitem>
|
---|
| 519 | </varlistentry>
|
---|
| 520 |
|
---|
| 521 | <varlistentry id="ffplay">
|
---|
| 522 | <term><command>ffplay</command></term>
|
---|
| 523 | <listitem>
|
---|
[faec3f7] | 524 | <para>
|
---|
| 525 | is a very simple and portable media player using the
|
---|
[4c24eb0a] | 526 | <filename>ffmpeg</filename> libraries and the SDL library
|
---|
[faec3f7] | 527 | </para>
|
---|
[8a1e4f4] | 528 | <indexterm zone="ffmpeg ffplay">
|
---|
| 529 | <primary sortas="b-ffplay">ffplay</primary>
|
---|
| 530 | </indexterm>
|
---|
| 531 | </listitem>
|
---|
| 532 | </varlistentry>
|
---|
| 533 |
|
---|
[f60198bf] | 534 | <varlistentry id="ffprobe">
|
---|
| 535 | <term><command>ffprobe</command></term>
|
---|
| 536 | <listitem>
|
---|
[faec3f7] | 537 | <para>
|
---|
| 538 | gathers information from multimedia streams and prints it in a human
|
---|
[4c24eb0a] | 539 | and machine-readable fashion
|
---|
[faec3f7] | 540 | </para>
|
---|
[f60198bf] | 541 | <indexterm zone="ffmpeg ffprobe">
|
---|
| 542 | <primary sortas="b-ffprobe">ffprobe</primary>
|
---|
| 543 | </indexterm>
|
---|
| 544 | </listitem>
|
---|
| 545 | </varlistentry>
|
---|
| 546 |
|
---|
[c08bd877] | 547 | <varlistentry id="qt-faststart">
|
---|
| 548 | <term><command>qt-faststart</command></term>
|
---|
| 549 | <listitem>
|
---|
[faec3f7] | 550 | <para>
|
---|
[4c24eb0a] | 551 | moves the index file to the front of quicktime (mov/mp4) videos
|
---|
[faec3f7] | 552 | </para>
|
---|
[c08bd877] | 553 | <indexterm zone="ffmpeg qt-faststart">
|
---|
| 554 | <primary sortas="b-qt-faststart">qt-faststart</primary>
|
---|
| 555 | </indexterm>
|
---|
| 556 | </listitem>
|
---|
| 557 | </varlistentry>
|
---|
| 558 |
|
---|
[8a1e4f4] | 559 | <varlistentry id="libavcodec">
|
---|
[4162bcd] | 560 | <term><filename class="libraryfile">libavcodec.so</filename></term>
|
---|
[8a1e4f4] | 561 | <listitem>
|
---|
[faec3f7] | 562 | <para>
|
---|
| 563 | is a library containing the <application>FFmpeg</application> codecs
|
---|
[4c24eb0a] | 564 | (both encoding and decoding)
|
---|
[faec3f7] | 565 | </para>
|
---|
[8a1e4f4] | 566 | <indexterm zone="ffmpeg libavcodec">
|
---|
[9e5b78b] | 567 | <primary sortas="c-libavcodec">libavcodec.so</primary>
|
---|
[28cd5ce] | 568 | </indexterm>
|
---|
| 569 | </listitem>
|
---|
| 570 | </varlistentry>
|
---|
| 571 |
|
---|
| 572 | <varlistentry id="libavdevice">
|
---|
[4162bcd] | 573 | <term><filename class="libraryfile">libavdevice.so</filename></term>
|
---|
[28cd5ce] | 574 | <listitem>
|
---|
[faec3f7] | 575 | <para>
|
---|
[4c24eb0a] | 576 | is the <application>FFmpeg</application> device handling library
|
---|
[faec3f7] | 577 | </para>
|
---|
[28cd5ce] | 578 | <indexterm zone="ffmpeg libavdevice">
|
---|
[9e5b78b] | 579 | <primary sortas="c-libavdevice">libavdevice.so</primary>
|
---|
| 580 | </indexterm>
|
---|
| 581 | </listitem>
|
---|
| 582 | </varlistentry>
|
---|
| 583 |
|
---|
| 584 | <varlistentry id="libavfilter">
|
---|
[4162bcd] | 585 | <term><filename class="libraryfile">libavfilter.so</filename></term>
|
---|
[9e5b78b] | 586 | <listitem>
|
---|
[faec3f7] | 587 | <para>
|
---|
| 588 | is a library of filters that can alter video or audio between the
|
---|
[4c24eb0a] | 589 | decoder and the encoder (or output)
|
---|
[faec3f7] | 590 | </para>
|
---|
[9e5b78b] | 591 | <indexterm zone="ffmpeg libavfilter">
|
---|
| 592 | <primary sortas="c-libavfilter">libavfilter.so</primary>
|
---|
[8a1e4f4] | 593 | </indexterm>
|
---|
| 594 | </listitem>
|
---|
| 595 | </varlistentry>
|
---|
| 596 |
|
---|
| 597 | <varlistentry id="libavformat">
|
---|
[4162bcd] | 598 | <term><filename class="libraryfile">libavformat.so</filename></term>
|
---|
[8a1e4f4] | 599 | <listitem>
|
---|
[faec3f7] | 600 | <para>
|
---|
| 601 | is a library containing the file formats handling (mux and demux
|
---|
| 602 | code for several formats) used by <command>ffplay</command> as well
|
---|
[4c24eb0a] | 603 | as allowing the generation of audio or video streams
|
---|
[faec3f7] | 604 | </para>
|
---|
[8a1e4f4] | 605 | <indexterm zone="ffmpeg libavformat">
|
---|
[9e5b78b] | 606 | <primary sortas="c-libavformat">libavformat.so</primary>
|
---|
[28cd5ce] | 607 | </indexterm>
|
---|
| 608 | </listitem>
|
---|
| 609 | </varlistentry>
|
---|
| 610 |
|
---|
[a4c3c48] | 611 | <varlistentry id="libavresample">
|
---|
| 612 | <term><filename class="libraryfile">libavresample.so</filename></term>
|
---|
| 613 | <listitem>
|
---|
| 614 | <para>
|
---|
| 615 | is a library containing functions for resampling audio and video.
|
---|
| 616 | </para>
|
---|
| 617 | <indexterm zone="ffmpeg libavresample">
|
---|
| 618 | <primary sortas="c-libavresample">libavresample</primary>
|
---|
| 619 | </indexterm>
|
---|
| 620 | </listitem>
|
---|
| 621 | </varlistentry>
|
---|
| 622 |
|
---|
[28cd5ce] | 623 | <varlistentry id="libavutil">
|
---|
[4162bcd] | 624 | <term><filename class="libraryfile">libavutil.so</filename></term>
|
---|
[28cd5ce] | 625 | <listitem>
|
---|
[ffd1fcc] | 626 | <para>
|
---|
[4c24eb0a] | 627 | is the <application>FFmpeg</application> utility library
|
---|
[ffd1fcc] | 628 | </para>
|
---|
[28cd5ce] | 629 | <indexterm zone="ffmpeg libavutil">
|
---|
[9e5b78b] | 630 | <primary sortas="c-libavutil">libavutil.so</primary>
|
---|
[28cd5ce] | 631 | </indexterm>
|
---|
| 632 | </listitem>
|
---|
| 633 | </varlistentry>
|
---|
| 634 |
|
---|
[874f1e88] | 635 | <varlistentry id="libpostproc">
|
---|
[4162bcd] | 636 | <term><filename class="libraryfile">libpostproc.so</filename></term>
|
---|
[28cd5ce] | 637 | <listitem>
|
---|
[faec3f7] | 638 | <para>
|
---|
[4c24eb0a] | 639 | is the <application>FFmpeg</application> post processing library
|
---|
[faec3f7] | 640 | </para>
|
---|
[28cd5ce] | 641 | <indexterm zone="ffmpeg libpostproc">
|
---|
[9e5b78b] | 642 | <primary sortas="c-libpostproc">libpostproc.so</primary>
|
---|
[28cd5ce] | 643 | </indexterm>
|
---|
| 644 | </listitem>
|
---|
| 645 | </varlistentry>
|
---|
| 646 |
|
---|
[baf1e23] | 647 | <varlistentry id="libswresample">
|
---|
| 648 | <term><filename class="libraryfile">libswresample.so</filename></term>
|
---|
| 649 | <listitem>
|
---|
| 650 | <para>
|
---|
| 651 | is the <application>FFmpeg</application> audio rescaling library,
|
---|
[4c24eb0a] | 652 | it contains functions for converting audio sample formats
|
---|
[baf1e23] | 653 | </para>
|
---|
| 654 | <indexterm zone="ffmpeg libswresample">
|
---|
| 655 | <primary sortas="c-libswresample">libswresample.so</primary>
|
---|
| 656 | </indexterm>
|
---|
| 657 | </listitem>
|
---|
| 658 | </varlistentry>
|
---|
| 659 |
|
---|
[28cd5ce] | 660 | <varlistentry id="libswscale">
|
---|
[4162bcd] | 661 | <term><filename class="libraryfile">libswscale.so</filename></term>
|
---|
[28cd5ce] | 662 | <listitem>
|
---|
[faec3f7] | 663 | <para>
|
---|
[4c24eb0a] | 664 | is the <application>FFmpeg</application> image rescaling library
|
---|
[faec3f7] | 665 | </para>
|
---|
[28cd5ce] | 666 | <indexterm zone="ffmpeg libswscale">
|
---|
[9e5b78b] | 667 | <primary sortas="c-libswscale">libswscale.so</primary>
|
---|
[8a1e4f4] | 668 | </indexterm>
|
---|
| 669 | </listitem>
|
---|
| 670 | </varlistentry>
|
---|
[ffd1fcc] | 671 |
|
---|
[8a1e4f4] | 672 | </variablelist>
|
---|
[ffd1fcc] | 673 |
|
---|
[8a1e4f4] | 674 | </sect2>
|
---|
[ffd1fcc] | 675 |
|
---|
[49e5372] | 676 | </sect1>
|
---|