[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 " ">
|
---|
[8509951] | 9 | <!ENTITY ffmpeg-md5sum "341d719415b7f95bb59f5016f2864ac6">
|
---|
[fb778f6] | 10 | <!ENTITY ffmpeg-size "10 MB">
|
---|
[8509951] | 11 | <!ENTITY ffmpeg-buildsize "237 MB (add 1.5 GB for the FATE suite/tests, add 792 MB for documentation)">
|
---|
[4a3c628] | 12 | <!ENTITY ffmpeg-time "1.3 SBU (using parallelism=4; add 3.2 SBU (with THREADS=4) to run the FATE suite after sample files are downloaded; add 0.3 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 |
|
---|
[181e069f] | 40 | &lfs121_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>
|
---|
[426ee9f5] | 84 | <listitem>
|
---|
| 85 | <para>
|
---|
| 86 | Required patch:
|
---|
| 87 | <ulink url="&patch-root;/ffmpeg-&ffmpeg-version;-vulkan_fixes-1.patch"/>
|
---|
| 88 | </para>
|
---|
| 89 | </listitem>
|
---|
[69b7d08] | 90 | </itemizedlist>
|
---|
| 91 |
|
---|
[f29d6ee] | 92 | <bridgehead renderas="sect3">FFmpeg Dependencies</bridgehead>
|
---|
[8a1e4f4] | 93 |
|
---|
[28cd5ce] | 94 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
[aaa3ccd] | 95 | <para role="recommended">
|
---|
[f6503c73] | 96 | <xref linkend="libaom"/>,
|
---|
[89d37eb8] | 97 | <xref linkend="libass"/>,
|
---|
| 98 | <xref linkend="fdk-aac"/>,
|
---|
[a525ccb] | 99 | <xref linkend="freetype2"/>,
|
---|
[efcf979] | 100 | <xref linkend="lame"/>,
|
---|
| 101 | <xref linkend="libvorbis"/>,
|
---|
[a525ccb] | 102 | <xref linkend="libvpx"/>,
|
---|
[287a07e] | 103 | <xref linkend="opus"/>,
|
---|
[1fa4314] | 104 | <xref linkend="x264"/>,
|
---|
| 105 | <xref linkend="x265"/>, and
|
---|
[34bcb5ec] | 106 | <xref linkend="nasm"/> or <xref linkend="yasm"/>
|
---|
[457568e] | 107 | </para>
|
---|
| 108 |
|
---|
[89d37eb8] | 109 | <bridgehead renderas="sect4">Recommended for desktop use</bridgehead>
|
---|
[7e1afc9] | 110 | <para role="recommended">
|
---|
[89d37eb8] | 111 | <xref linkend="alsa-lib"/>,
|
---|
[287a07e] | 112 | <xref linkend="libva"/>,
|
---|
| 113 | <xref linkend="libvdpau"/> (with the corresponding driver package), and
|
---|
[bc228ec] | 114 | <xref linkend="sdl2"/>
|
---|
[07584d8] | 115 | </para>
|
---|
| 116 |
|
---|
[457568e] | 117 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 118 | <para role="optional">
|
---|
[a4c3c48] | 119 | <xref linkend="doxygen"/>,
|
---|
[287a07e] | 120 | <xref linkend="fontconfig"/>,
|
---|
[a516869] | 121 | <xref linkend="fribidi"/>,
|
---|
[60d53ec3] | 122 | <xref linkend="frei0r"/>,
|
---|
[287a07e] | 123 | <xref linkend="libcdio"/> (to identify and play CDs),
|
---|
[a5dfb970] | 124 | <xref linkend="libdrm"/> (for <quote>kmsgrab</quote> input),
|
---|
[01b8994d] | 125 | <!--<xref linkend="libtheora"/>,-->
|
---|
[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 |
|
---|
[426ee9f5] | 179 | <para>
|
---|
| 180 | Next, apply a patch that fixes building with the latest version of the
|
---|
| 181 | Vulkan API:
|
---|
| 182 | <!-- Ticket #19390 -->
|
---|
| 183 | </para>
|
---|
| 184 |
|
---|
| 185 | <screen><userinput remap="pre">patch -Np1 -i ../ffmpeg-&ffmpeg-version;-vulkan_fixes-1.patch</userinput></screen>
|
---|
| 186 |
|
---|
[faec3f7] | 187 | <para>
|
---|
| 188 | Install <application>FFmpeg</application> by running the following
|
---|
| 189 | commands:
|
---|
| 190 | </para>
|
---|
[8a1e4f4] | 191 |
|
---|
[4a3c628] | 192 | <screen><userinput>./configure --prefix=/usr \
|
---|
[eb32964] | 193 | --enable-gpl \
|
---|
| 194 | --enable-version3 \
|
---|
| 195 | --enable-nonfree \
|
---|
| 196 | --disable-static \
|
---|
| 197 | --enable-shared \
|
---|
| 198 | --disable-debug \
|
---|
[f6503c73] | 199 | --enable-libaom \
|
---|
[eb32964] | 200 | --enable-libass \
|
---|
| 201 | --enable-libfdk-aac \
|
---|
[a525ccb] | 202 | --enable-libfreetype \
|
---|
[eb32964] | 203 | --enable-libmp3lame \
|
---|
| 204 | --enable-libopus \
|
---|
| 205 | --enable-libvorbis \
|
---|
| 206 | --enable-libvpx \
|
---|
| 207 | --enable-libx264 \
|
---|
[1fa4314] | 208 | --enable-libx265 \
|
---|
[a516869] | 209 | --enable-openssl \
|
---|
[426ee9f5] | 210 | --ignore-tests=enhanced-flv-av1 \
|
---|
[791213b] | 211 | --docdir=/usr/share/doc/ffmpeg-&ffmpeg-version; &&
|
---|
[70f1af0] | 212 |
|
---|
[a161de9] | 213 | make &&
|
---|
[70f1af0] | 214 |
|
---|
[0ee2aa3] | 215 | gcc tools/qt-faststart.c -o tools/qt-faststart</userinput></screen>
|
---|
[28cd5ce] | 216 |
|
---|
[a161de9] | 217 | <para>
|
---|
[791213b] | 218 | HTML documentation was built in the previous step. If you have
|
---|
[a161de9] | 219 | <xref linkend="texlive"/> installed and wish to build PDF and
|
---|
| 220 | Postscript versions of the documentation, issue the following commands:
|
---|
| 221 | </para>
|
---|
[fcd201bd] | 222 |
|
---|
[a42c273] | 223 | <screen remap="doc"><userinput>pushd doc &&
|
---|
[a161de9] | 224 | for DOCNAME in `basename -s .html *.html`
|
---|
| 225 | do
|
---|
| 226 | texi2pdf -b $DOCNAME.texi &&
|
---|
| 227 | texi2dvi -b $DOCNAME.texi &&
|
---|
[70f1af0] | 228 |
|
---|
| 229 | dvips -o $DOCNAME.ps \
|
---|
[42160e7] | 230 | $DOCNAME.dvi
|
---|
[70f1af0] | 231 | done &&
|
---|
| 232 | popd &&
|
---|
[a161de9] | 233 | unset DOCNAME</userinput></screen>
|
---|
[c08bd877] | 234 |
|
---|
[faec3f7] | 235 | <para>
|
---|
[8558044] | 236 | If you have <xref linkend="doxygen"/> installed
|
---|
[38290b4] | 237 | and you wish to build (if --disable-doc was
|
---|
[a42c273] | 238 | used) or rebuild the html documentation, issue:
|
---|
[faec3f7] | 239 | </para>
|
---|
[8a1e4f4] | 240 |
|
---|
[a42c273] | 241 | <screen remap="doc"><userinput>doxygen doc/Doxyfile</userinput></screen>
|
---|
| 242 |
|
---|
[a161de9] | 243 | <para>
|
---|
[dc29e3ac] | 244 | The fate-suite tests include comparisons with installed files, and should
|
---|
| 245 | not be run before the package is installed. Therefore, if you desire to
|
---|
| 246 | run them, instructions are given further below.
|
---|
[a161de9] | 247 | </para>
|
---|
[8a1e4f4] | 248 |
|
---|
[a161de9] | 249 | <para>
|
---|
| 250 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 251 | </para>
|
---|
[457568e] | 252 |
|
---|
[a161de9] | 253 | <screen role="root"><userinput>make install &&
|
---|
[70f1af0] | 254 |
|
---|
[a161de9] | 255 | install -v -m755 tools/qt-faststart /usr/bin &&
|
---|
[8e848de9] | 256 | install -v -m755 -d /usr/share/doc/ffmpeg-&ffmpeg-version; &&
|
---|
[0e29df6] | 257 | install -v -m644 doc/*.txt /usr/share/doc/ffmpeg-&ffmpeg-version;</userinput></screen>
|
---|
[9e5b78b] | 258 |
|
---|
[faec3f7] | 259 | <para>
|
---|
[17b685f1] | 260 | If the PDF and Postscript documentation was built, issue the following
|
---|
[791213b] | 261 | commands, as the <systemitem class="username">root</systemitem> user, to
|
---|
| 262 | install them:
|
---|
[faec3f7] | 263 | </para>
|
---|
[fd7e0ed6] | 264 |
|
---|
[a42c273] | 265 | <screen role="root"
|
---|
| 266 | remap="doc"><userinput>install -v -m644 doc/*.pdf /usr/share/doc/ffmpeg-&ffmpeg-version; &&
|
---|
[0e29df6] | 267 | install -v -m644 doc/*.ps /usr/share/doc/ffmpeg-&ffmpeg-version;</userinput></screen>
|
---|
[c08bd877] | 268 |
|
---|
[faec3f7] | 269 | <para>
|
---|
[8558044] | 270 | If you used <command>doxygen</command> to manually create the API
|
---|
[38290b4] | 271 | documentation, install it by issuing the following commands
|
---|
[a161de9] | 272 | as the <systemitem class="username">root</systemitem> user:
|
---|
[faec3f7] | 273 | </para>
|
---|
[c08bd877] | 274 |
|
---|
[a42c273] | 275 | <screen role="root"
|
---|
| 276 | remap="doc"><userinput>install -v -m755 -d /usr/share/doc/ffmpeg-&ffmpeg-version;/api &&
|
---|
[70f1af0] | 277 | cp -vr doc/doxy/html/* /usr/share/doc/ffmpeg-&ffmpeg-version;/api &&
|
---|
| 278 | find /usr/share/doc/ffmpeg-&ffmpeg-version;/api -type f -exec chmod -c 0644 \{} \; &&
|
---|
| 279 | find /usr/share/doc/ffmpeg-&ffmpeg-version;/api -type d -exec chmod -c 0755 \{} \;</userinput></screen>
|
---|
[ffd1fcc] | 280 |
|
---|
[dc29e3ac] | 281 | <para>
|
---|
| 282 | To properly test the installation you must have <xref linkend="rsync"/>
|
---|
| 283 | installed and follow the instructions for the <ulink
|
---|
[75b1a338] | 284 | url="https://www.ffmpeg.org/fate.html"> FFmpeg Automated Testing
|
---|
[7e1afc9] | 285 | Environment</ulink> (FATE). First, about 1 GB of sample files used to
|
---|
[dc29e3ac] | 286 | run FATE are downloaded with the command:
|
---|
| 287 | </para>
|
---|
| 288 |
|
---|
[a42c273] | 289 | <screen remap="test"><userinput>make fate-rsync SAMPLES=fate-suite/</userinput></screen>
|
---|
[dc29e3ac] | 290 |
|
---|
| 291 | <para>
|
---|
| 292 | The <filename class="directory">fate-suite</filename> directory is
|
---|
[2adbd3da] | 293 | created and the files are downloaded there. That command actually runs an
|
---|
[e200fb6] | 294 | rsync command to obtain the sample files. You may want to compress and
|
---|
| 295 | keep this directory for testing again, for testing in another system,
|
---|
| 296 | or for when a new version of ffmpeg is released. Then, unpack the sample
|
---|
| 297 | files in the source directory, and run the <command>make fate-rsync
|
---|
| 298 | ...</command> command above to sync with the upstream repository. The
|
---|
| 299 | download size and time are drastically reduced by doing this. Estimated
|
---|
| 300 | values in "Package Information" do not include the download SBU. Some
|
---|
| 301 | samples may have been removed in newer versions, so in order to be sure
|
---|
| 302 | local and server fate samples are identical when you use previously
|
---|
| 303 | saved samples, run the following command:
|
---|
[2adbd3da] | 304 | </para>
|
---|
| 305 |
|
---|
[2f3e3de9] | 306 | <screen role="nodump"><userinput>rsync -vrltLW --delete --timeout=60 --contimeout=60 \
|
---|
| 307 | rsync://fate-suite.ffmpeg.org/fate-suite/ fate-suite/</userinput></screen>
|
---|
[f3429309] | 308 |
|
---|
[2adbd3da] | 309 | <para>
|
---|
[e200fb6] | 310 | Next, execute FATE with the following commands (there are more than 3800
|
---|
| 311 | tests in the suite):
|
---|
[dc29e3ac] | 312 | </para>
|
---|
| 313 |
|
---|
[a42c273] | 314 | <screen remap="test"><userinput>make fate THREADS=<replaceable>N</replaceable> SAMPLES=fate-suite/ | tee ../fate.log &&
|
---|
[dc29e3ac] | 315 | grep ^TEST ../fate.log | wc -l</userinput></screen>
|
---|
[f3429309] | 316 |
|
---|
[06da9a6] | 317 | <para>
|
---|
| 318 | where <replaceable>N</replaceable> is an integer,
|
---|
[c840bd37] | 319 | <replaceable>N</replaceable> ≤ number of cores in the system.
|
---|
[e200fb6] | 320 | </para>
|
---|
| 321 |
|
---|
| 322 | <para>
|
---|
| 323 | A successful run should return no errors or warnings, just a list of tests
|
---|
| 324 | and total amount at the end.
|
---|
| 325 | </para>
|
---|
[dc29e3ac] | 326 |
|
---|
[8a1e4f4] | 327 | </sect2>
|
---|
| 328 |
|
---|
| 329 | <sect2 role="commands">
|
---|
| 330 | <title>Command Explanations</title>
|
---|
| 331 |
|
---|
[a161de9] | 332 |
|
---|
[43a3a17] | 333 | <para>
|
---|
[a4c3c48] | 334 | <command>find ... ;</command>: Fixes permissions of documentation files
|
---|
[43a3a17] | 335 | and directories.
|
---|
| 336 | </para>
|
---|
| 337 |
|
---|
[05bb3720] | 338 | <para>
|
---|
[1a518e97] | 339 | <parameter>--enable-libfreetype</parameter>: Enables
|
---|
[05bb3720] | 340 | <application>Freetype</application> support.
|
---|
| 341 | </para>
|
---|
| 342 |
|
---|
[a161de9] | 343 | <para>
|
---|
| 344 | <parameter>--enable-gpl</parameter>: Enables the use of GPL code and
|
---|
[baf1e23] | 345 | permits support for postprocessing, swscale and many other features.
|
---|
[faec3f7] | 346 | </para>
|
---|
| 347 |
|
---|
| 348 | <para>
|
---|
[a161de9] | 349 | <parameter>--enable-version3</parameter>: Enables the use of (L)GPL
|
---|
| 350 | version 3 code.
|
---|
| 351 | </para>
|
---|
| 352 |
|
---|
| 353 | <para>
|
---|
[dc29e3ac] | 354 | <parameter>--enable-nonfree</parameter>: Enables the use of nonfree code.
|
---|
| 355 | Note that the resulting libraries and binaries will be unredistributable.
|
---|
[faec3f7] | 356 | </para>
|
---|
[8a1e4f4] | 357 |
|
---|
[baf1e23] | 358 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 359 | href="../../xincludes/static-libraries.xml"/>
|
---|
| 360 |
|
---|
[a161de9] | 361 | <para>
|
---|
[dc29e3ac] | 362 | <parameter>--enable-shared</parameter>: Enables building shared
|
---|
| 363 | libraries, otherwise only static libraries are built and installed.
|
---|
[a161de9] | 364 | </para>
|
---|
| 365 |
|
---|
| 366 | <para>
|
---|
[89d37eb8] | 367 | <parameter>--disable-debug</parameter>: Disables building debugging
|
---|
| 368 | symbols into the programs and libraries.
|
---|
[a161de9] | 369 | </para>
|
---|
| 370 |
|
---|
[f6503c73] | 371 | <para>
|
---|
| 372 | <parameter>--enable-libaom</parameter>: Enables AV1 audio and video
|
---|
| 373 | decoding via <filename class="libraryfile">libaom</filename>.
|
---|
| 374 | </para>
|
---|
| 375 |
|
---|
[a161de9] | 376 | <para>
|
---|
[89d37eb8] | 377 | <parameter>--enable-libass</parameter>: Enables ASS/SSA subtitle format
|
---|
[c0fce1d] | 378 | rendering via <filename class="libraryfile">libass</filename>.
|
---|
[a161de9] | 379 | </para>
|
---|
| 380 |
|
---|
[a5dfb970] | 381 | <para>
|
---|
[8558044] | 382 | <option>--enable-libdrm</option>: Use this switch if
|
---|
[2597ad1] | 383 | <xref linkend="libdrm"/> is installed to build the <quote>kmsgrab</quote>
|
---|
| 384 | input module which is useful for screen capturing or streaming.
|
---|
[a5dfb970] | 385 | </para>
|
---|
| 386 |
|
---|
[a161de9] | 387 | <para>
|
---|
[e200fb6] | 388 | <parameter>--enable-libfdk-aac</parameter>: Enables AAC audio encoding via
|
---|
| 389 | <filename class="libraryfile">libfdk-aac</filename>.
|
---|
[a161de9] | 390 | </para>
|
---|
| 391 |
|
---|
| 392 | <para>
|
---|
[dc29e3ac] | 393 | <parameter>--enable-libmp3lame</parameter>: Enables MP3 audio encoding
|
---|
| 394 | via <filename class="libraryfile">libmp3lame</filename>.
|
---|
[a161de9] | 395 | </para>
|
---|
[ce402041] | 396 | <!--
|
---|
[a161de9] | 397 | <para>
|
---|
[ce402041] | 398 | <parameter>- -enable-libvorbis</parameter>
|
---|
| 399 | <parameter>- -enable-libtheora</parameter>: Enables
|
---|
[c012c1a] | 400 | Theora video encoding via <filename
|
---|
| 401 | class="libraryfile">libvorbis</filename> and <filename
|
---|
| 402 | class="libraryfile">libtheora</filename>.
|
---|
[a161de9] | 403 | </para>
|
---|
[ce402041] | 404 | -->
|
---|
[a161de9] | 405 | <para>
|
---|
[875b3b57] | 406 | <parameter>--enable-libvorbis</parameter>
|
---|
| 407 | <parameter>--enable-libvpx</parameter>: Enables WebM
|
---|
[c012c1a] | 408 | encoding via <filename class="libraryfile">libvorbis</filename> and
|
---|
| 409 | <filename class="libraryfile">libvpx</filename>.
|
---|
[a161de9] | 410 | </para>
|
---|
| 411 |
|
---|
| 412 | <para>
|
---|
[dc29e3ac] | 413 | <parameter>--enable-libx264</parameter>: Enables high-quality
|
---|
| 414 | H.264/MPEG-4 AVC encoding via <filename
|
---|
[118613f8] | 415 | class="libraryfile">libx264</filename>.
|
---|
[a161de9] | 416 | </para>
|
---|
| 417 |
|
---|
[1fa4314] | 418 | <para>
|
---|
| 419 | <parameter>--enable-libx265</parameter>: Enables high-quality
|
---|
| 420 | H.265/HEVC encoding via <filename
|
---|
| 421 | class="libraryfile">libx265</filename>.
|
---|
| 422 | </para>
|
---|
| 423 |
|
---|
[ea8738a] | 424 | <para>
|
---|
[a516869] | 425 | <parameter>--enable-openssl</parameter>:
|
---|
[ea8738a] | 426 | Enables HTTPS protocol for network streams.
|
---|
| 427 | </para>
|
---|
| 428 |
|
---|
[426ee9f5] | 429 | <!--
|
---|
[b79fb34] | 430 | <para>
|
---|
[426ee9f5] | 431 | <parameter>- -disable-vulkan</parameter>: Disables Vulkan for the
|
---|
[b79fb34] | 432 | current version of <xref linkend="vulkan-loader"/> due to
|
---|
| 433 | an API conflict.
|
---|
| 434 | </para>
|
---|
[426ee9f5] | 435 | -->
|
---|
[b79fb34] | 436 |
|
---|
| 437 | <para>
|
---|
| 438 | <parameter>--ignore-tests=...</parameter>: Disables tests that fail to
|
---|
| 439 | run on
|
---|
| 440 | BLFS without the optional packages. Currently the AV1 test is disabled
|
---|
| 441 | as it needs dav1d to do AV1 decoding on the CPU. The test might work if
|
---|
| 442 | you have a GPU that can decode AV1, but this was not tested.
|
---|
| 443 | </para>
|
---|
| 444 |
|
---|
[a516869] | 445 | <para>
|
---|
| 446 | <option>--enable-gnutls</option>: Use this option instead of
|
---|
| 447 | <parameter>--enable-openssl</parameter>, if you want to use
|
---|
| 448 | <application>GnuTLS</application> instead of
|
---|
| 449 | <application>OpenSSL</application> for HTTPS protocol.
|
---|
| 450 | </para>
|
---|
| 451 |
|
---|
[7197352] | 452 | <para>
|
---|
| 453 | <option>--disable-doc</option>: Disables building html documentation.
|
---|
[8558044] | 454 | This is only needed if <xref linkend="doxygen"/> is installed and you
|
---|
[7197352] | 455 | do not want to build the html documentation.
|
---|
| 456 | </para>
|
---|
| 457 |
|
---|
[77cce582] | 458 | <para>
|
---|
| 459 | <option>--enable-libpulse</option>: Enables support for
|
---|
| 460 | <application>Pulseaudio</application> for audio output.
|
---|
| 461 | </para>
|
---|
| 462 |
|
---|
[faec3f7] | 463 | <para>
|
---|
[dc29e3ac] | 464 | <command>gcc tools/qt-faststart.c -o tools/qt-faststart</command>: This
|
---|
| 465 | builds the <command>qt-faststart</command> program which can modify
|
---|
| 466 | QuickTime formatted movies (<filename class="extension">.mov</filename>
|
---|
| 467 | or <filename class="extension">.mp4</filename>) so that the header
|
---|
| 468 | information is located at the beginning of the file instead of the end.
|
---|
| 469 | This allows the movie file to begin playing before the entire file has
|
---|
| 470 | been downloaded.
|
---|
[2216c969] | 471 | </para>
|
---|
| 472 |
|
---|
[c012c1a] | 473 | <note>
|
---|
| 474 | <para>
|
---|
| 475 | Support for most of the dependency packages requires using options
|
---|
[d0c85de6] | 476 | passed to the <command>configure</command> script. View the output
|
---|
[c012c1a] | 477 | from <command>./configure --help</command> for complete information
|
---|
| 478 | about enabling dependency packages.
|
---|
| 479 | </para>
|
---|
| 480 | </note>
|
---|
| 481 |
|
---|
[8a1e4f4] | 482 | </sect2>
|
---|
| 483 |
|
---|
| 484 | <sect2 role="content">
|
---|
| 485 | <title>Contents</title>
|
---|
| 486 |
|
---|
| 487 | <segmentedlist>
|
---|
| 488 | <segtitle>Installed Programs</segtitle>
|
---|
| 489 | <segtitle>Installed Libraries</segtitle>
|
---|
| 490 | <segtitle>Installed Directories</segtitle>
|
---|
| 491 |
|
---|
| 492 | <seglistitem>
|
---|
[faec3f7] | 493 | <seg>
|
---|
[a4c3c48] | 494 | ffmpeg, ffplay, ffprobe, <!--ffserver,--> and qt-faststart
|
---|
[faec3f7] | 495 | </seg>
|
---|
| 496 | <seg>
|
---|
[ffd1fcc] | 497 | libavcodec.so, libavdevice.so, libavfilter.so,
|
---|
[69b7d08] | 498 | libavformat.so, libavutil.so, libpostproc.so,
|
---|
[638fc4a] | 499 | libswresample.so, and libswscale.so
|
---|
[faec3f7] | 500 | </seg>
|
---|
| 501 | <seg>
|
---|
[69b7d08] | 502 | /usr/include/libav{codec,device,filter,format,util},
|
---|
[b8efb1fb] | 503 | /usr/include/libpostproc,
|
---|
| 504 | /usr/include/libsw{resample,scale},
|
---|
[813ea9af] | 505 | /usr/share/doc/ffmpeg-&ffmpeg-version;, and
|
---|
| 506 | /usr/share/ffmpeg
|
---|
[faec3f7] | 507 | </seg>
|
---|
[8a1e4f4] | 508 | </seglistitem>
|
---|
| 509 | </segmentedlist>
|
---|
| 510 |
|
---|
| 511 | <variablelist>
|
---|
| 512 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 513 | <?dbfo list-presentation="list"?>
|
---|
| 514 | <?dbhtml list-presentation="table"?>
|
---|
| 515 |
|
---|
| 516 | <varlistentry id="ffmpeg-prog">
|
---|
| 517 | <term><command>ffmpeg</command></term>
|
---|
| 518 | <listitem>
|
---|
[faec3f7] | 519 | <para>
|
---|
| 520 | is a command-line tool to convert video files, network streams and
|
---|
[4c24eb0a] | 521 | input from a TV card to several video formats
|
---|
[faec3f7] | 522 | </para>
|
---|
[8a1e4f4] | 523 | <indexterm zone="ffmpeg ffmpeg-prog">
|
---|
| 524 | <primary sortas="b-ffmpeg">ffmpeg</primary>
|
---|
| 525 | </indexterm>
|
---|
| 526 | </listitem>
|
---|
| 527 | </varlistentry>
|
---|
| 528 |
|
---|
| 529 | <varlistentry id="ffplay">
|
---|
| 530 | <term><command>ffplay</command></term>
|
---|
| 531 | <listitem>
|
---|
[faec3f7] | 532 | <para>
|
---|
| 533 | is a very simple and portable media player using the
|
---|
[4c24eb0a] | 534 | <filename>ffmpeg</filename> libraries and the SDL library
|
---|
[faec3f7] | 535 | </para>
|
---|
[8a1e4f4] | 536 | <indexterm zone="ffmpeg ffplay">
|
---|
| 537 | <primary sortas="b-ffplay">ffplay</primary>
|
---|
| 538 | </indexterm>
|
---|
| 539 | </listitem>
|
---|
| 540 | </varlistentry>
|
---|
| 541 |
|
---|
[f60198bf] | 542 | <varlistentry id="ffprobe">
|
---|
| 543 | <term><command>ffprobe</command></term>
|
---|
| 544 | <listitem>
|
---|
[faec3f7] | 545 | <para>
|
---|
| 546 | gathers information from multimedia streams and prints it in a human
|
---|
[4c24eb0a] | 547 | and machine-readable fashion
|
---|
[faec3f7] | 548 | </para>
|
---|
[f60198bf] | 549 | <indexterm zone="ffmpeg ffprobe">
|
---|
| 550 | <primary sortas="b-ffprobe">ffprobe</primary>
|
---|
| 551 | </indexterm>
|
---|
| 552 | </listitem>
|
---|
| 553 | </varlistentry>
|
---|
| 554 |
|
---|
[c08bd877] | 555 | <varlistentry id="qt-faststart">
|
---|
| 556 | <term><command>qt-faststart</command></term>
|
---|
| 557 | <listitem>
|
---|
[faec3f7] | 558 | <para>
|
---|
[4c24eb0a] | 559 | moves the index file to the front of quicktime (mov/mp4) videos
|
---|
[faec3f7] | 560 | </para>
|
---|
[c08bd877] | 561 | <indexterm zone="ffmpeg qt-faststart">
|
---|
| 562 | <primary sortas="b-qt-faststart">qt-faststart</primary>
|
---|
| 563 | </indexterm>
|
---|
| 564 | </listitem>
|
---|
| 565 | </varlistentry>
|
---|
| 566 |
|
---|
[8a1e4f4] | 567 | <varlistentry id="libavcodec">
|
---|
[4162bcd] | 568 | <term><filename class="libraryfile">libavcodec.so</filename></term>
|
---|
[8a1e4f4] | 569 | <listitem>
|
---|
[faec3f7] | 570 | <para>
|
---|
| 571 | is a library containing the <application>FFmpeg</application> codecs
|
---|
[4c24eb0a] | 572 | (both encoding and decoding)
|
---|
[faec3f7] | 573 | </para>
|
---|
[8a1e4f4] | 574 | <indexterm zone="ffmpeg libavcodec">
|
---|
[9e5b78b] | 575 | <primary sortas="c-libavcodec">libavcodec.so</primary>
|
---|
[28cd5ce] | 576 | </indexterm>
|
---|
| 577 | </listitem>
|
---|
| 578 | </varlistentry>
|
---|
| 579 |
|
---|
| 580 | <varlistentry id="libavdevice">
|
---|
[4162bcd] | 581 | <term><filename class="libraryfile">libavdevice.so</filename></term>
|
---|
[28cd5ce] | 582 | <listitem>
|
---|
[faec3f7] | 583 | <para>
|
---|
[4c24eb0a] | 584 | is the <application>FFmpeg</application> device handling library
|
---|
[faec3f7] | 585 | </para>
|
---|
[28cd5ce] | 586 | <indexterm zone="ffmpeg libavdevice">
|
---|
[9e5b78b] | 587 | <primary sortas="c-libavdevice">libavdevice.so</primary>
|
---|
| 588 | </indexterm>
|
---|
| 589 | </listitem>
|
---|
| 590 | </varlistentry>
|
---|
| 591 |
|
---|
| 592 | <varlistentry id="libavfilter">
|
---|
[4162bcd] | 593 | <term><filename class="libraryfile">libavfilter.so</filename></term>
|
---|
[9e5b78b] | 594 | <listitem>
|
---|
[faec3f7] | 595 | <para>
|
---|
| 596 | is a library of filters that can alter video or audio between the
|
---|
[4c24eb0a] | 597 | decoder and the encoder (or output)
|
---|
[faec3f7] | 598 | </para>
|
---|
[9e5b78b] | 599 | <indexterm zone="ffmpeg libavfilter">
|
---|
| 600 | <primary sortas="c-libavfilter">libavfilter.so</primary>
|
---|
[8a1e4f4] | 601 | </indexterm>
|
---|
| 602 | </listitem>
|
---|
| 603 | </varlistentry>
|
---|
| 604 |
|
---|
| 605 | <varlistentry id="libavformat">
|
---|
[4162bcd] | 606 | <term><filename class="libraryfile">libavformat.so</filename></term>
|
---|
[8a1e4f4] | 607 | <listitem>
|
---|
[faec3f7] | 608 | <para>
|
---|
| 609 | is a library containing the file formats handling (mux and demux
|
---|
| 610 | code for several formats) used by <command>ffplay</command> as well
|
---|
[4c24eb0a] | 611 | as allowing the generation of audio or video streams
|
---|
[faec3f7] | 612 | </para>
|
---|
[8a1e4f4] | 613 | <indexterm zone="ffmpeg libavformat">
|
---|
[9e5b78b] | 614 | <primary sortas="c-libavformat">libavformat.so</primary>
|
---|
[28cd5ce] | 615 | </indexterm>
|
---|
| 616 | </listitem>
|
---|
| 617 | </varlistentry>
|
---|
| 618 |
|
---|
[a4c3c48] | 619 | <varlistentry id="libavresample">
|
---|
| 620 | <term><filename class="libraryfile">libavresample.so</filename></term>
|
---|
| 621 | <listitem>
|
---|
| 622 | <para>
|
---|
| 623 | is a library containing functions for resampling audio and video.
|
---|
| 624 | </para>
|
---|
| 625 | <indexterm zone="ffmpeg libavresample">
|
---|
| 626 | <primary sortas="c-libavresample">libavresample</primary>
|
---|
| 627 | </indexterm>
|
---|
| 628 | </listitem>
|
---|
| 629 | </varlistentry>
|
---|
| 630 |
|
---|
[28cd5ce] | 631 | <varlistentry id="libavutil">
|
---|
[4162bcd] | 632 | <term><filename class="libraryfile">libavutil.so</filename></term>
|
---|
[28cd5ce] | 633 | <listitem>
|
---|
[ffd1fcc] | 634 | <para>
|
---|
[4c24eb0a] | 635 | is the <application>FFmpeg</application> utility library
|
---|
[ffd1fcc] | 636 | </para>
|
---|
[28cd5ce] | 637 | <indexterm zone="ffmpeg libavutil">
|
---|
[9e5b78b] | 638 | <primary sortas="c-libavutil">libavutil.so</primary>
|
---|
[28cd5ce] | 639 | </indexterm>
|
---|
| 640 | </listitem>
|
---|
| 641 | </varlistentry>
|
---|
| 642 |
|
---|
[874f1e88] | 643 | <varlistentry id="libpostproc">
|
---|
[4162bcd] | 644 | <term><filename class="libraryfile">libpostproc.so</filename></term>
|
---|
[28cd5ce] | 645 | <listitem>
|
---|
[faec3f7] | 646 | <para>
|
---|
[4c24eb0a] | 647 | is the <application>FFmpeg</application> post processing library
|
---|
[faec3f7] | 648 | </para>
|
---|
[28cd5ce] | 649 | <indexterm zone="ffmpeg libpostproc">
|
---|
[9e5b78b] | 650 | <primary sortas="c-libpostproc">libpostproc.so</primary>
|
---|
[28cd5ce] | 651 | </indexterm>
|
---|
| 652 | </listitem>
|
---|
| 653 | </varlistentry>
|
---|
| 654 |
|
---|
[baf1e23] | 655 | <varlistentry id="libswresample">
|
---|
| 656 | <term><filename class="libraryfile">libswresample.so</filename></term>
|
---|
| 657 | <listitem>
|
---|
| 658 | <para>
|
---|
| 659 | is the <application>FFmpeg</application> audio rescaling library,
|
---|
[4c24eb0a] | 660 | it contains functions for converting audio sample formats
|
---|
[baf1e23] | 661 | </para>
|
---|
| 662 | <indexterm zone="ffmpeg libswresample">
|
---|
| 663 | <primary sortas="c-libswresample">libswresample.so</primary>
|
---|
| 664 | </indexterm>
|
---|
| 665 | </listitem>
|
---|
| 666 | </varlistentry>
|
---|
| 667 |
|
---|
[28cd5ce] | 668 | <varlistentry id="libswscale">
|
---|
[4162bcd] | 669 | <term><filename class="libraryfile">libswscale.so</filename></term>
|
---|
[28cd5ce] | 670 | <listitem>
|
---|
[faec3f7] | 671 | <para>
|
---|
[4c24eb0a] | 672 | is the <application>FFmpeg</application> image rescaling library
|
---|
[faec3f7] | 673 | </para>
|
---|
[28cd5ce] | 674 | <indexterm zone="ffmpeg libswscale">
|
---|
[9e5b78b] | 675 | <primary sortas="c-libswscale">libswscale.so</primary>
|
---|
[8a1e4f4] | 676 | </indexterm>
|
---|
| 677 | </listitem>
|
---|
| 678 | </varlistentry>
|
---|
[ffd1fcc] | 679 |
|
---|
[8a1e4f4] | 680 | </variablelist>
|
---|
[ffd1fcc] | 681 |
|
---|
[8a1e4f4] | 682 | </sect2>
|
---|
[ffd1fcc] | 683 |
|
---|
[49e5372] | 684 | </sect1>
|
---|