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