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