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