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