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