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