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