[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 |
|
---|
[e730427e] | 7 | <!ENTITY ffmpeg-download-http "http://ffmpeg.org/releases/ffmpeg-&ffmpeg-version;.tar.xz">
|
---|
[01062dd] | 8 | <!ENTITY ffmpeg-download-ftp " ">
|
---|
[d60f0d5] | 9 | <!ENTITY ffmpeg-md5sum "743dc66ebe67180283b92d029f690d0f">
|
---|
[38290b4] | 10 | <!ENTITY ffmpeg-size "7.9 MB">
|
---|
[69d725d4] | 11 | <!ENTITY ffmpeg-buildsize "134 MB (add 2.7 GB for the FATE suite/tests, add 17 MB for docs)">
|
---|
[a48f17f5] | 12 | <!ENTITY ffmpeg-time "4.1 SBU (add 5.1 SBU to run the FATE suite after sample files are downloaded, add 0.4 SBU for docs)">
|
---|
[01062dd] | 13 | ]>
|
---|
| 14 |
|
---|
[0b5a693] | 15 | <sect1 id="ffmpeg" xreflabel="FFmpeg-&ffmpeg-version;">
|
---|
[8a1e4f4] | 16 | <?dbhtml filename="ffmpeg.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>FFmpeg-&ffmpeg-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="ffmpeg">
|
---|
| 26 | <primary sortas="a-FFmpeg">FFmpeg</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to FFmpeg</title>
|
---|
| 31 |
|
---|
[faec3f7] | 32 | <para>
|
---|
| 33 | <application>FFmpeg</application> is a solution to record, convert and
|
---|
| 34 | stream audio and video. It is a very fast video and audio converter and it
|
---|
| 35 | can also acquire from a live audio/video source. Designed to be intuitive,
|
---|
| 36 | the command-line interface (<command>ffmpeg</command>) tries to figure out
|
---|
| 37 | all the parameters, when possible. <application>FFmpeg</application> can
|
---|
| 38 | also convert from any sample rate to any other, and resize video on the
|
---|
| 39 | fly with a high quality polyphase filter.
|
---|
[a161de9] | 40 | <application>FFmpeg</application> can use a Video4Linux compatible video
|
---|
[faec3f7] | 41 | source and any Open Sound System audio source.
|
---|
| 42 | </para>
|
---|
[9e5b78b] | 43 |
|
---|
[1d76821] | 44 | &lfs80_checked;
|
---|
[69d725d4] | 45 | &gcc7_checked;
|
---|
[8a1e4f4] | 46 |
|
---|
| 47 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 48 | <itemizedlist spacing="compact">
|
---|
| 49 | <listitem>
|
---|
[ffd1fcc] | 50 | <para>
|
---|
| 51 | Download (HTTP): <ulink url="&ffmpeg-download-http;"/>
|
---|
| 52 | </para>
|
---|
[8a1e4f4] | 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
[ffd1fcc] | 55 | <para>
|
---|
| 56 | Download (FTP): <ulink url="&ffmpeg-download-ftp;"/>
|
---|
| 57 | </para>
|
---|
[8a1e4f4] | 58 | </listitem>
|
---|
| 59 | <listitem>
|
---|
[ffd1fcc] | 60 | <para>
|
---|
| 61 | Download MD5 sum: &ffmpeg-md5sum;
|
---|
| 62 | </para>
|
---|
[8a1e4f4] | 63 | </listitem>
|
---|
| 64 | <listitem>
|
---|
[ffd1fcc] | 65 | <para>
|
---|
| 66 | Download size: &ffmpeg-size;
|
---|
| 67 | </para>
|
---|
[8a1e4f4] | 68 | </listitem>
|
---|
| 69 | <listitem>
|
---|
[ffd1fcc] | 70 | <para>
|
---|
| 71 | Estimated disk space required: &ffmpeg-buildsize;
|
---|
| 72 | </para>
|
---|
[8a1e4f4] | 73 | </listitem>
|
---|
| 74 | <listitem>
|
---|
[ffd1fcc] | 75 | <para>
|
---|
| 76 | Estimated build time: &ffmpeg-time;
|
---|
| 77 | </para>
|
---|
[8a1e4f4] | 78 | </listitem>
|
---|
| 79 | </itemizedlist>
|
---|
| 80 |
|
---|
[f29d6ee] | 81 | <bridgehead renderas="sect3">FFmpeg Dependencies</bridgehead>
|
---|
[8a1e4f4] | 82 |
|
---|
[28cd5ce] | 83 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
[aaa3ccd] | 84 | <para role="recommended">
|
---|
[89d37eb8] | 85 | <xref linkend="libass"/>,
|
---|
| 86 | <xref linkend="fdk-aac"/>,
|
---|
[a525ccb] | 87 | <xref linkend="freetype2"/>,
|
---|
[efcf979] | 88 | <xref linkend="lame"/>,
|
---|
[baf1e23] | 89 | <xref linkend="libtheora"/>,
|
---|
[efcf979] | 90 | <xref linkend="libvorbis"/>,
|
---|
[a525ccb] | 91 | <xref linkend="libvpx"/>,
|
---|
[287a07e] | 92 | <xref linkend="opus"/>,
|
---|
[1fa4314] | 93 | <xref linkend="x264"/>,
|
---|
| 94 | <xref linkend="x265"/>, and
|
---|
[287a07e] | 95 | <xref linkend="yasm"/>
|
---|
[457568e] | 96 | </para>
|
---|
| 97 |
|
---|
[89d37eb8] | 98 | <bridgehead renderas="sect4">Recommended for desktop use</bridgehead>
|
---|
[7e1afc9] | 99 | <para role="recommended">
|
---|
[89d37eb8] | 100 | <xref linkend="alsa-lib"/>,
|
---|
[287a07e] | 101 | <xref linkend="libva"/>,
|
---|
| 102 | <xref linkend="libvdpau"/> (with the corresponding driver package), and
|
---|
[36aeaf9a] | 103 | <xref linkend="sdl2"/>,
|
---|
[07584d8] | 104 | </para>
|
---|
| 105 |
|
---|
[457568e] | 106 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 107 | <para role="optional">
|
---|
[287a07e] | 108 | <xref linkend="fontconfig"/>,
|
---|
[60d53ec3] | 109 | <xref linkend="frei0r"/>,
|
---|
[287a07e] | 110 | <xref linkend="libcdio"/> (to identify and play CDs),
|
---|
[2f0f7a0] | 111 | <xref linkend="libwebp"/>,
|
---|
[60d53ec3] | 112 | <xref linkend="opencv"/>,
|
---|
[89d37eb8] | 113 | <xref linkend="openjpeg"/>,
|
---|
[ea8738a] | 114 | <xref linkend="openssl"/> or
|
---|
[80d4245] | 115 | <xref linkend="gnutls"/>,
|
---|
[287a07e] | 116 | <xref linkend="pulseaudio"/>,
|
---|
| 117 | <xref linkend="speex"/>,
|
---|
[f3429309] | 118 | <xref linkend="texlive"/>
|
---|
[60d53ec3] | 119 | (or <xref linkend="tl-installer"/>) for PDF and PS documentation,
|
---|
[80dbc4c8] | 120 | <xref linkend="v4l-utils"/>,
|
---|
[287a07e] | 121 | <xref linkend="xvid"/>,
|
---|
| 122 | <xref linkend="x-window-system"/>,
|
---|
| 123 | <ulink url="http://www.speech.cs.cmu.edu/flite/">Flite</ulink>,
|
---|
| 124 | <ulink url="http://www.quut.com/gsm/">GSM</ulink>,
|
---|
[d8377ddb] | 125 | <ulink url="http://xhevc.com/en/hevc/decoder/download.jsp">HEVC/H.265</ulink>,
|
---|
[20f09631] | 126 | <!--<ulink url="http://www.ladspa.org/">LADSPA</ulink>,-->
|
---|
[4162bcd] | 127 | <ulink url="http://tipok.org.ua/node/17">libaacplus</ulink>,
|
---|
[a161de9] | 128 | <ulink url="http://www.videolan.org/developers/libbluray.html">libbluray</ulink>,
|
---|
| 129 | <ulink url="http://caca.zoy.org/">libcaca</ulink>,
|
---|
[4162bcd] | 130 | <ulink url="http://www.celt-codec.org/">libcelt</ulink>,
|
---|
[a161de9] | 131 | <ulink url="http://sourceforge.net/projects/libdc1394">libdc1394</ulink>,
|
---|
[287a07e] | 132 | <ulink url="https://www.videolan.org/developers/libdca.html">libdca</ulink>,
|
---|
[a161de9] | 133 | <ulink url="https://ieee1394.wiki.kernel.org/index.php/Libraries">libiec61883</ulink>,
|
---|
| 134 | <ulink url="https://github.com/dekkers/libilbc">libilbc</ulink>,
|
---|
| 135 | <ulink url="http://sourceforge.net/projects/modplug-xmms/">libmodplug</ulink>,
|
---|
[a754ee2b] | 136 | <ulink url="https://github.com/Distrotech/libnut">libnut</ulink> (Git checkout),
|
---|
[287a07e] | 137 | <ulink url="http://rtmpdump.mplayerhq.hu/">librtmp</ulink>,
|
---|
| 138 | <ulink url="http://www.libssh.org/">libssh</ulink>,
|
---|
[20f09631] | 139 | <!--<ulink url="http://xavs.sourceforge.net/">libxavs</ulink> (SVN checkout),-->
|
---|
[287a07e] | 140 | <ulink url="http://kcat.strangesoft.net/openal-releases/">OpenAL</ulink>,
|
---|
[a161de9] | 141 | <ulink url="http://sourceforge.net/projects/opencore-amr">OpenCore AMR</ulink>,
|
---|
[9e3d18a7] | 142 | <!--<ulink url="http://diracvideo.org/">Schroedinger</ulink>,-->
|
---|
| 143 | <ulink url="http://sourceforge.net/projects/schrodinger/">Schroedinger</ulink>,
|
---|
[a161de9] | 144 | <ulink url="http://www.twolame.org/">TwoLAME</ulink>,
|
---|
| 145 | <ulink url="http://sourceforge.net/projects/opencore-amr/files/vo-aacenc/">vo-aaenc</ulink>,
|
---|
[20f09631] | 146 | <ulink url="http://sourceforge.net/projects/opencore-amr/files/vo-amrwbenc/">vo-amrwbenc</ulink>, and
|
---|
| 147 | <!--<ulink url="http://www.videolan.org/developers/x265.html">x265 (H.265/MPEG-H HEVC)</ulink>, and-->
|
---|
[287a07e] | 148 | <ulink url="http://zapping.sourceforge.net/ZVBI/">ZVBI</ulink>
|
---|
[ffd1fcc] | 149 | </para>
|
---|
[8a1e4f4] | 150 |
|
---|
[faec3f7] | 151 | <para condition="html" role="usernotes">
|
---|
| 152 | User Notes: <ulink url="&blfs-wiki;/ffmpeg"/>
|
---|
| 153 | </para>
|
---|
[8a1e4f4] | 154 | </sect2>
|
---|
| 155 |
|
---|
| 156 | <sect2 role="installation">
|
---|
| 157 | <title>Installation of FFmpeg</title>
|
---|
| 158 |
|
---|
[faec3f7] | 159 | <para>
|
---|
| 160 | Install <application>FFmpeg</application> by running the following
|
---|
| 161 | commands:
|
---|
| 162 | </para>
|
---|
[8a1e4f4] | 163 |
|
---|
[5a2fd537] | 164 | <screen><userinput>sed -i 's/-lflite"/-lflite -lasound"/' configure &&
|
---|
[70f1af0] | 165 |
|
---|
[eb32964] | 166 | ./configure --prefix=/usr \
|
---|
| 167 | --enable-gpl \
|
---|
| 168 | --enable-version3 \
|
---|
| 169 | --enable-nonfree \
|
---|
| 170 | --disable-static \
|
---|
| 171 | --enable-shared \
|
---|
| 172 | --disable-debug \
|
---|
| 173 | --enable-libass \
|
---|
| 174 | --enable-libfdk-aac \
|
---|
[a525ccb] | 175 | --enable-libfreetype \
|
---|
[eb32964] | 176 | --enable-libmp3lame \
|
---|
| 177 | --enable-libopus \
|
---|
| 178 | --enable-libtheora \
|
---|
| 179 | --enable-libvorbis \
|
---|
| 180 | --enable-libvpx \
|
---|
| 181 | --enable-libx264 \
|
---|
[1fa4314] | 182 | --enable-libx265 \
|
---|
[791213b] | 183 | --docdir=/usr/share/doc/ffmpeg-&ffmpeg-version; &&
|
---|
[70f1af0] | 184 |
|
---|
[a161de9] | 185 | make &&
|
---|
[70f1af0] | 186 |
|
---|
[0ee2aa3] | 187 | gcc tools/qt-faststart.c -o tools/qt-faststart</userinput></screen>
|
---|
[28cd5ce] | 188 |
|
---|
[a161de9] | 189 | <para>
|
---|
[791213b] | 190 | HTML documentation was built in the previous step. If you have
|
---|
[a161de9] | 191 | <xref linkend="texlive"/> installed and wish to build PDF and
|
---|
| 192 | Postscript versions of the documentation, issue the following commands:
|
---|
| 193 | </para>
|
---|
[fcd201bd] | 194 |
|
---|
[ba1ccf6] | 195 | <!-- sed -i '$s/$/\n\n@bye/' doc/{git-howto,nut,fate}.texi &&
|
---|
| 196 | sed -i '/machine:i386/ s/\\/@backslashchar{}/g' doc/platform.texi && -->
|
---|
| 197 | <screen><userinput>pushd doc &&
|
---|
[a161de9] | 198 | for DOCNAME in `basename -s .html *.html`
|
---|
| 199 | do
|
---|
| 200 | texi2pdf -b $DOCNAME.texi &&
|
---|
| 201 | texi2dvi -b $DOCNAME.texi &&
|
---|
[70f1af0] | 202 |
|
---|
| 203 | dvips -o $DOCNAME.ps \
|
---|
[42160e7] | 204 | $DOCNAME.dvi
|
---|
[70f1af0] | 205 | done &&
|
---|
| 206 | popd &&
|
---|
[a161de9] | 207 | unset DOCNAME</userinput></screen>
|
---|
[c08bd877] | 208 |
|
---|
[faec3f7] | 209 | <para>
|
---|
[38290b4] | 210 | If you have <xref linkend="doxygen"/> installed
|
---|
| 211 | and you wish to build (if --disable-doc was
|
---|
| 212 | used) or rebuild the html documentation, issue the command
|
---|
[a161de9] | 213 | <command>doxygen doc/Doxyfile</command>.
|
---|
[faec3f7] | 214 | </para>
|
---|
[8a1e4f4] | 215 |
|
---|
[a161de9] | 216 | <para>
|
---|
[dc29e3ac] | 217 | The fate-suite tests include comparisons with installed files, and should
|
---|
| 218 | not be run before the package is installed. Therefore, if you desire to
|
---|
| 219 | run them, instructions are given further below.
|
---|
[a161de9] | 220 | </para>
|
---|
[8a1e4f4] | 221 |
|
---|
[a161de9] | 222 | <para>
|
---|
| 223 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 224 | </para>
|
---|
[457568e] | 225 |
|
---|
[a161de9] | 226 | <screen role="root"><userinput>make install &&
|
---|
[70f1af0] | 227 |
|
---|
[a161de9] | 228 | install -v -m755 tools/qt-faststart /usr/bin &&
|
---|
[8e848de9] | 229 | install -v -m755 -d /usr/share/doc/ffmpeg-&ffmpeg-version; &&
|
---|
[0e29df6] | 230 | install -v -m644 doc/*.txt /usr/share/doc/ffmpeg-&ffmpeg-version;</userinput></screen>
|
---|
[9e5b78b] | 231 |
|
---|
[faec3f7] | 232 | <para>
|
---|
[17b685f1] | 233 | If the PDF and Postscript documentation was built, issue the following
|
---|
[791213b] | 234 | commands, as the <systemitem class="username">root</systemitem> user, to
|
---|
| 235 | install them:
|
---|
[faec3f7] | 236 | </para>
|
---|
[fd7e0ed6] | 237 |
|
---|
[0e29df6] | 238 | <screen role="root"><userinput>install -v -m644 doc/*.pdf /usr/share/doc/ffmpeg-&ffmpeg-version; &&
|
---|
| 239 | install -v -m644 doc/*.ps /usr/share/doc/ffmpeg-&ffmpeg-version;</userinput></screen>
|
---|
[c08bd877] | 240 |
|
---|
[faec3f7] | 241 | <para>
|
---|
[38290b4] | 242 | If you used <command>doxygen</command> to manually create the API
|
---|
| 243 | documentation, install it by issuing the following commands
|
---|
[a161de9] | 244 | as the <systemitem class="username">root</systemitem> user:
|
---|
[faec3f7] | 245 | </para>
|
---|
[c08bd877] | 246 |
|
---|
[70f1af0] | 247 | <screen role="root"><userinput>install -v -m755 -d /usr/share/doc/ffmpeg-&ffmpeg-version;/api &&
|
---|
| 248 | cp -vr doc/doxy/html/* /usr/share/doc/ffmpeg-&ffmpeg-version;/api &&
|
---|
| 249 | find /usr/share/doc/ffmpeg-&ffmpeg-version;/api -type f -exec chmod -c 0644 \{} \; &&
|
---|
| 250 | find /usr/share/doc/ffmpeg-&ffmpeg-version;/api -type d -exec chmod -c 0755 \{} \;</userinput></screen>
|
---|
[ffd1fcc] | 251 |
|
---|
[dc29e3ac] | 252 | <para>
|
---|
| 253 | To properly test the installation you must have <xref linkend="rsync"/>
|
---|
| 254 | installed and follow the instructions for the <ulink
|
---|
| 255 | url="http://www.ffmpeg.org/fate.html"> FFmpeg Automated Testing
|
---|
[7e1afc9] | 256 | Environment</ulink> (FATE). First, about 1 GB of sample files used to
|
---|
[dc29e3ac] | 257 | run FATE are downloaded with the command:
|
---|
| 258 | </para>
|
---|
| 259 |
|
---|
| 260 | <screen><userinput>make fate-rsync SAMPLES=fate-suite/</userinput></screen>
|
---|
| 261 |
|
---|
| 262 | <para>
|
---|
| 263 | The <filename class="directory">fate-suite</filename> directory is
|
---|
[2adbd3da] | 264 | created and the files are downloaded there. That command actually runs an
|
---|
| 265 | rsync command, to obtain the sample files. You may want to compress and
|
---|
| 266 | keep this directory for testing again, in another system, or when a new
|
---|
| 267 | version of ffmpeg is launched. Then, you unpack the sample files in the
|
---|
| 268 | source directory, and run, again, the <command>make fate-rsync
|
---|
| 269 | ...</command> command above, to sync with the repository. Now, the
|
---|
| 270 | download size and time are drastically reduced. Estimated values in
|
---|
| 271 | "Package Information" do not include the download SBU. Some samples may
|
---|
| 272 | have been removed, in the new version, so, in order to be sure local and
|
---|
[70f1af0] | 273 | server fate samples are identical, when you use previously saved samples,
|
---|
| 274 | run the following command:
|
---|
[2adbd3da] | 275 | </para>
|
---|
| 276 |
|
---|
| 277 | <screen><userinput><command>rsync -vrltLW --delete --timeout=60 --contimeout=60 \
|
---|
| 278 | rsync://fate-suite.ffmpeg.org/fate-suite/ fate-suite/</command></userinput></screen>
|
---|
[f3429309] | 279 |
|
---|
[2adbd3da] | 280 | <para>
|
---|
| 281 | Next, FATE is executed, with the commands (you obtain a number of tests
|
---|
[c840bd37] | 282 | larger than 3000):
|
---|
[dc29e3ac] | 283 | </para>
|
---|
| 284 |
|
---|
[06da9a6] | 285 | <screen><userinput>make fate THREADS=<replaceable>N</replaceable> SAMPLES=fate-suite/ | tee ../fate.log &&
|
---|
[dc29e3ac] | 286 | grep ^TEST ../fate.log | wc -l</userinput></screen>
|
---|
[f3429309] | 287 |
|
---|
[06da9a6] | 288 | <para>
|
---|
| 289 | where <replaceable>N</replaceable> is an integer,
|
---|
[c840bd37] | 290 | <replaceable>N</replaceable> ≤ number of cores in the system.
|
---|
[06da9a6] | 291 | </para>
|
---|
[dc29e3ac] | 292 |
|
---|
[8a1e4f4] | 293 | </sect2>
|
---|
| 294 |
|
---|
| 295 | <sect2 role="commands">
|
---|
| 296 | <title>Command Explanations</title>
|
---|
| 297 |
|
---|
[faec3f7] | 298 | <para>
|
---|
[43a3a17] | 299 | <command>sed -i ... configure</command>: This command adds the
|
---|
[a161de9] | 300 | <application>ALSA</application> library to the
|
---|
| 301 | <application>Flite</application> <envar>LDFLAGS</envar> variable and
|
---|
| 302 | enables the discovery of <application>Flite</application>.
|
---|
| 303 | </para>
|
---|
| 304 |
|
---|
[43a3a17] | 305 | <para>
|
---|
[70f1af0] | 306 | <command>find ... ;</command>: Fix permissions of documentation files
|
---|
[43a3a17] | 307 | and directories.
|
---|
| 308 | </para>
|
---|
| 309 |
|
---|
[05bb3720] | 310 | <para>
|
---|
[1a518e97] | 311 | <parameter>--enable-libfreetype</parameter>: Enables
|
---|
[05bb3720] | 312 | <application>Freetype</application> support.
|
---|
| 313 | </para>
|
---|
| 314 |
|
---|
[a161de9] | 315 | <para>
|
---|
| 316 | <parameter>--enable-gpl</parameter>: Enables the use of GPL code and
|
---|
[baf1e23] | 317 | permits support for postprocessing, swscale and many other features.
|
---|
[faec3f7] | 318 | </para>
|
---|
| 319 |
|
---|
| 320 | <para>
|
---|
[a161de9] | 321 | <parameter>--enable-version3</parameter>: Enables the use of (L)GPL
|
---|
| 322 | version 3 code.
|
---|
| 323 | </para>
|
---|
| 324 |
|
---|
| 325 | <para>
|
---|
[dc29e3ac] | 326 | <parameter>--enable-nonfree</parameter>: Enables the use of nonfree code.
|
---|
| 327 | Note that the resulting libraries and binaries will be unredistributable.
|
---|
[faec3f7] | 328 | </para>
|
---|
[8a1e4f4] | 329 |
|
---|
[baf1e23] | 330 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 331 | href="../../xincludes/static-libraries.xml"/>
|
---|
| 332 |
|
---|
[a161de9] | 333 | <para>
|
---|
[dc29e3ac] | 334 | <parameter>--enable-shared</parameter>: Enables building shared
|
---|
| 335 | libraries, otherwise only static libraries are built and installed.
|
---|
[a161de9] | 336 | </para>
|
---|
| 337 |
|
---|
| 338 | <para>
|
---|
[89d37eb8] | 339 | <parameter>--disable-debug</parameter>: Disables building debugging
|
---|
| 340 | symbols into the programs and libraries.
|
---|
[a161de9] | 341 | </para>
|
---|
| 342 |
|
---|
| 343 | <para>
|
---|
[89d37eb8] | 344 | <parameter>--enable-libass</parameter>: Enables ASS/SSA subtitle format
|
---|
[c0fce1d] | 345 | rendering via <filename class="libraryfile">libass</filename>.
|
---|
[a161de9] | 346 | </para>
|
---|
| 347 |
|
---|
| 348 | <para>
|
---|
[c012c1a] | 349 | <parameter>--enable-libfdk-aac</parameter>: Enables currently the
|
---|
| 350 | highest-quality AAC audio encoding via <filename
|
---|
| 351 | class="libraryfile">libfdk-aac</filename>.
|
---|
[a161de9] | 352 | </para>
|
---|
| 353 |
|
---|
| 354 | <para>
|
---|
[dc29e3ac] | 355 | <parameter>--enable-libmp3lame</parameter>: Enables MP3 audio encoding
|
---|
| 356 | via <filename class="libraryfile">libmp3lame</filename>.
|
---|
[a161de9] | 357 | </para>
|
---|
| 358 |
|
---|
| 359 | <para>
|
---|
[c012c1a] | 360 | <parameter>--enable-libvorbis --enable-libtheora</parameter>: Enables
|
---|
| 361 | Theora video encoding via <filename
|
---|
| 362 | class="libraryfile">libvorbis</filename> and <filename
|
---|
| 363 | class="libraryfile">libtheora</filename>.
|
---|
[a161de9] | 364 | </para>
|
---|
| 365 |
|
---|
| 366 | <para>
|
---|
[c012c1a] | 367 | <parameter>--enable-libvorbis --enable-libvpx</parameter>: Enables WebM
|
---|
| 368 | encoding via <filename class="libraryfile">libvorbis</filename> and
|
---|
| 369 | <filename class="libraryfile">libvpx</filename>.
|
---|
[a161de9] | 370 | </para>
|
---|
| 371 |
|
---|
| 372 | <para>
|
---|
[dc29e3ac] | 373 | <parameter>--enable-libx264</parameter>: Enables high-quality
|
---|
| 374 | H.264/MPEG-4 AVC encoding via <filename
|
---|
[118613f8] | 375 | class="libraryfile">libx264</filename>.
|
---|
[a161de9] | 376 | </para>
|
---|
| 377 |
|
---|
[1fa4314] | 378 | <para>
|
---|
| 379 | <parameter>--enable-libx265</parameter>: Enables high-quality
|
---|
| 380 | H.265/HEVC encoding via <filename
|
---|
| 381 | class="libraryfile">libx265</filename>.
|
---|
| 382 | </para>
|
---|
| 383 |
|
---|
[ea8738a] | 384 | <para>
|
---|
| 385 | <option>--enable-openssl</option> or <option>--enable-gnutls</option>:
|
---|
| 386 | Enables HTTPS protocol for network streams.
|
---|
| 387 | </para>
|
---|
| 388 |
|
---|
[7197352] | 389 | <para>
|
---|
| 390 | <option>--disable-doc</option>: Disables building html documentation.
|
---|
| 391 | This is only needed if <xref linkend="doxygen"/> is installed and you
|
---|
| 392 | do not want to build the html documentation.
|
---|
| 393 | </para>
|
---|
| 394 |
|
---|
[faec3f7] | 395 | <para>
|
---|
[dc29e3ac] | 396 | <command>gcc tools/qt-faststart.c -o tools/qt-faststart</command>: This
|
---|
| 397 | builds the <command>qt-faststart</command> program which can modify
|
---|
| 398 | QuickTime formatted movies (<filename class="extension">.mov</filename>
|
---|
| 399 | or <filename class="extension">.mp4</filename>) so that the header
|
---|
| 400 | information is located at the beginning of the file instead of the end.
|
---|
| 401 | This allows the movie file to begin playing before the entire file has
|
---|
| 402 | been downloaded.
|
---|
[2216c969] | 403 | </para>
|
---|
| 404 |
|
---|
[c012c1a] | 405 | <note>
|
---|
| 406 | <para>
|
---|
| 407 | Support for most of the dependency packages requires using options
|
---|
[d0c85de6] | 408 | passed to the <command>configure</command> script. View the output
|
---|
[c012c1a] | 409 | from <command>./configure --help</command> for complete information
|
---|
| 410 | about enabling dependency packages.
|
---|
| 411 | </para>
|
---|
| 412 | </note>
|
---|
| 413 |
|
---|
[8a1e4f4] | 414 | </sect2>
|
---|
| 415 |
|
---|
| 416 | <sect2 role="configuration">
|
---|
| 417 | <title>Configuring FFmpeg</title>
|
---|
| 418 |
|
---|
| 419 | <sect3 id="ffmpeg-config">
|
---|
| 420 | <title>Config Files</title>
|
---|
| 421 |
|
---|
[755bb92] | 422 | <para>
|
---|
| 423 | <filename>/etc/ffserver.conf</filename> and
|
---|
| 424 | <filename>~/.ffmpeg/ffserver-config</filename>
|
---|
| 425 | </para>
|
---|
[8a1e4f4] | 426 |
|
---|
| 427 | <indexterm zone="ffmpeg ffmpeg-config">
|
---|
[4162bcd] | 428 | <primary
|
---|
| 429 | sortas="e-AA.ffmpeg-ffserver-config">~/.ffmpeg/ffserver-config</primary>
|
---|
[8a1e4f4] | 430 | </indexterm>
|
---|
| 431 |
|
---|
| 432 | <indexterm zone="ffmpeg ffmpeg-config">
|
---|
| 433 | <primary sortas="e-etc-ffserver.conf">/etc/ffserver.conf</primary>
|
---|
| 434 | </indexterm>
|
---|
| 435 |
|
---|
[faec3f7] | 436 | <para>
|
---|
| 437 | You'll find a sample <command>ffserver</command> configuration file at
|
---|
| 438 | <filename>doc/ffserver.conf</filename> in the source tree.
|
---|
| 439 | </para>
|
---|
[ffd1fcc] | 440 |
|
---|
[8a1e4f4] | 441 | </sect3>
|
---|
[ffd1fcc] | 442 |
|
---|
[8a1e4f4] | 443 | </sect2>
|
---|
| 444 |
|
---|
| 445 | <sect2 role="content">
|
---|
| 446 | <title>Contents</title>
|
---|
| 447 |
|
---|
| 448 | <segmentedlist>
|
---|
| 449 | <segtitle>Installed Programs</segtitle>
|
---|
| 450 | <segtitle>Installed Libraries</segtitle>
|
---|
| 451 | <segtitle>Installed Directories</segtitle>
|
---|
| 452 |
|
---|
| 453 | <seglistitem>
|
---|
[faec3f7] | 454 | <seg>
|
---|
[7e1afc9] | 455 | ffmpeg, ffplay, ffprobe, ffserver, and qt-faststart
|
---|
[faec3f7] | 456 | </seg>
|
---|
| 457 | <seg>
|
---|
[ffd1fcc] | 458 | libavcodec.so, libavdevice.so, libavfilter.so,
|
---|
| 459 | libavformat.so, libavutil.so, libpostproc.so,
|
---|
[638fc4a] | 460 | libswresample.so, and libswscale.so
|
---|
[faec3f7] | 461 | </seg>
|
---|
| 462 | <seg>
|
---|
[b8efb1fb] | 463 | /usr/include/libav{codec,device,filter,format,util},
|
---|
| 464 | /usr/include/libpostproc,
|
---|
| 465 | /usr/include/libsw{resample,scale},
|
---|
[813ea9af] | 466 | /usr/share/doc/ffmpeg-&ffmpeg-version;, and
|
---|
| 467 | /usr/share/ffmpeg
|
---|
[faec3f7] | 468 | </seg>
|
---|
[8a1e4f4] | 469 | </seglistitem>
|
---|
| 470 | </segmentedlist>
|
---|
| 471 |
|
---|
| 472 | <variablelist>
|
---|
| 473 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 474 | <?dbfo list-presentation="list"?>
|
---|
| 475 | <?dbhtml list-presentation="table"?>
|
---|
| 476 |
|
---|
| 477 | <varlistentry id="ffmpeg-prog">
|
---|
| 478 | <term><command>ffmpeg</command></term>
|
---|
| 479 | <listitem>
|
---|
[faec3f7] | 480 | <para>
|
---|
| 481 | is a command-line tool to convert video files, network streams and
|
---|
| 482 | input from a TV card to several video formats.
|
---|
| 483 | </para>
|
---|
[8a1e4f4] | 484 | <indexterm zone="ffmpeg ffmpeg-prog">
|
---|
| 485 | <primary sortas="b-ffmpeg">ffmpeg</primary>
|
---|
| 486 | </indexterm>
|
---|
| 487 | </listitem>
|
---|
| 488 | </varlistentry>
|
---|
| 489 |
|
---|
| 490 | <varlistentry id="ffplay">
|
---|
| 491 | <term><command>ffplay</command></term>
|
---|
| 492 | <listitem>
|
---|
[faec3f7] | 493 | <para>
|
---|
| 494 | is a very simple and portable media player using the
|
---|
| 495 | <filename>ffmpeg</filename> libraries and the SDL library.
|
---|
| 496 | </para>
|
---|
[8a1e4f4] | 497 | <indexterm zone="ffmpeg ffplay">
|
---|
| 498 | <primary sortas="b-ffplay">ffplay</primary>
|
---|
| 499 | </indexterm>
|
---|
| 500 | </listitem>
|
---|
| 501 | </varlistentry>
|
---|
| 502 |
|
---|
[f60198bf] | 503 | <varlistentry id="ffprobe">
|
---|
| 504 | <term><command>ffprobe</command></term>
|
---|
| 505 | <listitem>
|
---|
[faec3f7] | 506 | <para>
|
---|
| 507 | gathers information from multimedia streams and prints it in a human
|
---|
| 508 | and machine-readable fashion.
|
---|
| 509 | </para>
|
---|
[f60198bf] | 510 | <indexterm zone="ffmpeg ffprobe">
|
---|
| 511 | <primary sortas="b-ffprobe">ffprobe</primary>
|
---|
| 512 | </indexterm>
|
---|
| 513 | </listitem>
|
---|
| 514 | </varlistentry>
|
---|
| 515 |
|
---|
[8a1e4f4] | 516 | <varlistentry id="ffserver">
|
---|
| 517 | <term><command>ffserver</command></term>
|
---|
| 518 | <listitem>
|
---|
[faec3f7] | 519 | <para>
|
---|
| 520 | is a streaming server for everything that <command>ffmpeg</command>
|
---|
| 521 | could use as input (files, streams, TV card input, webcam, etc).
|
---|
| 522 | </para>
|
---|
[8a1e4f4] | 523 | <indexterm zone="ffmpeg ffserver">
|
---|
| 524 | <primary sortas="b-ffserver">ffserver</primary>
|
---|
| 525 | </indexterm>
|
---|
| 526 | </listitem>
|
---|
| 527 | </varlistentry>
|
---|
| 528 |
|
---|
[c08bd877] | 529 | <varlistentry id="qt-faststart">
|
---|
| 530 | <term><command>qt-faststart</command></term>
|
---|
| 531 | <listitem>
|
---|
[faec3f7] | 532 | <para>
|
---|
| 533 | moves the index file to the front of quicktime (mov/mp4) videos.
|
---|
| 534 | </para>
|
---|
[c08bd877] | 535 | <indexterm zone="ffmpeg qt-faststart">
|
---|
| 536 | <primary sortas="b-qt-faststart">qt-faststart</primary>
|
---|
| 537 | </indexterm>
|
---|
| 538 | </listitem>
|
---|
| 539 | </varlistentry>
|
---|
| 540 |
|
---|
[8a1e4f4] | 541 | <varlistentry id="libavcodec">
|
---|
[4162bcd] | 542 | <term><filename class="libraryfile">libavcodec.so</filename></term>
|
---|
[8a1e4f4] | 543 | <listitem>
|
---|
[faec3f7] | 544 | <para>
|
---|
| 545 | is a library containing the <application>FFmpeg</application> codecs
|
---|
| 546 | (both encoding and decoding).
|
---|
| 547 | </para>
|
---|
[8a1e4f4] | 548 | <indexterm zone="ffmpeg libavcodec">
|
---|
[9e5b78b] | 549 | <primary sortas="c-libavcodec">libavcodec.so</primary>
|
---|
[28cd5ce] | 550 | </indexterm>
|
---|
| 551 | </listitem>
|
---|
| 552 | </varlistentry>
|
---|
| 553 |
|
---|
| 554 | <varlistentry id="libavdevice">
|
---|
[4162bcd] | 555 | <term><filename class="libraryfile">libavdevice.so</filename></term>
|
---|
[28cd5ce] | 556 | <listitem>
|
---|
[faec3f7] | 557 | <para>
|
---|
| 558 | is the <application>FFmpeg</application> device handling library.
|
---|
| 559 | </para>
|
---|
[28cd5ce] | 560 | <indexterm zone="ffmpeg libavdevice">
|
---|
[9e5b78b] | 561 | <primary sortas="c-libavdevice">libavdevice.so</primary>
|
---|
| 562 | </indexterm>
|
---|
| 563 | </listitem>
|
---|
| 564 | </varlistentry>
|
---|
| 565 |
|
---|
| 566 | <varlistentry id="libavfilter">
|
---|
[4162bcd] | 567 | <term><filename class="libraryfile">libavfilter.so</filename></term>
|
---|
[9e5b78b] | 568 | <listitem>
|
---|
[faec3f7] | 569 | <para>
|
---|
| 570 | is a library of filters that can alter video or audio between the
|
---|
| 571 | decoder and the encoder (or output).
|
---|
| 572 | </para>
|
---|
[9e5b78b] | 573 | <indexterm zone="ffmpeg libavfilter">
|
---|
| 574 | <primary sortas="c-libavfilter">libavfilter.so</primary>
|
---|
[8a1e4f4] | 575 | </indexterm>
|
---|
| 576 | </listitem>
|
---|
| 577 | </varlistentry>
|
---|
| 578 |
|
---|
| 579 | <varlistentry id="libavformat">
|
---|
[4162bcd] | 580 | <term><filename class="libraryfile">libavformat.so</filename></term>
|
---|
[8a1e4f4] | 581 | <listitem>
|
---|
[faec3f7] | 582 | <para>
|
---|
| 583 | is a library containing the file formats handling (mux and demux
|
---|
| 584 | code for several formats) used by <command>ffplay</command> as well
|
---|
| 585 | as allowing the generation of audio or video streams.
|
---|
| 586 | </para>
|
---|
[8a1e4f4] | 587 | <indexterm zone="ffmpeg libavformat">
|
---|
[9e5b78b] | 588 | <primary sortas="c-libavformat">libavformat.so</primary>
|
---|
[28cd5ce] | 589 | </indexterm>
|
---|
| 590 | </listitem>
|
---|
| 591 | </varlistentry>
|
---|
| 592 |
|
---|
| 593 | <varlistentry id="libavutil">
|
---|
[4162bcd] | 594 | <term><filename class="libraryfile">libavutil.so</filename></term>
|
---|
[28cd5ce] | 595 | <listitem>
|
---|
[ffd1fcc] | 596 | <para>
|
---|
| 597 | is the <application>FFmpeg</application> utility library.
|
---|
| 598 | </para>
|
---|
[28cd5ce] | 599 | <indexterm zone="ffmpeg libavutil">
|
---|
[9e5b78b] | 600 | <primary sortas="c-libavutil">libavutil.so</primary>
|
---|
[28cd5ce] | 601 | </indexterm>
|
---|
| 602 | </listitem>
|
---|
| 603 | </varlistentry>
|
---|
| 604 |
|
---|
[874f1e88] | 605 | <varlistentry id="libpostproc">
|
---|
[4162bcd] | 606 | <term><filename class="libraryfile">libpostproc.so</filename></term>
|
---|
[28cd5ce] | 607 | <listitem>
|
---|
[faec3f7] | 608 | <para>
|
---|
| 609 | is the <application>FFmpeg</application> post processing library.
|
---|
| 610 | </para>
|
---|
[28cd5ce] | 611 | <indexterm zone="ffmpeg libpostproc">
|
---|
[9e5b78b] | 612 | <primary sortas="c-libpostproc">libpostproc.so</primary>
|
---|
[28cd5ce] | 613 | </indexterm>
|
---|
| 614 | </listitem>
|
---|
| 615 | </varlistentry>
|
---|
| 616 |
|
---|
[baf1e23] | 617 | <varlistentry id="libswresample">
|
---|
| 618 | <term><filename class="libraryfile">libswresample.so</filename></term>
|
---|
| 619 | <listitem>
|
---|
| 620 | <para>
|
---|
| 621 | is the <application>FFmpeg</application> audio rescaling library,
|
---|
| 622 | it contains functions for converting audio sample formats.
|
---|
| 623 | </para>
|
---|
| 624 | <indexterm zone="ffmpeg libswresample">
|
---|
| 625 | <primary sortas="c-libswresample">libswresample.so</primary>
|
---|
| 626 | </indexterm>
|
---|
| 627 | </listitem>
|
---|
| 628 | </varlistentry>
|
---|
| 629 |
|
---|
[28cd5ce] | 630 | <varlistentry id="libswscale">
|
---|
[4162bcd] | 631 | <term><filename class="libraryfile">libswscale.so</filename></term>
|
---|
[28cd5ce] | 632 | <listitem>
|
---|
[faec3f7] | 633 | <para>
|
---|
| 634 | is the <application>FFmpeg</application> image rescaling library.
|
---|
| 635 | </para>
|
---|
[28cd5ce] | 636 | <indexterm zone="ffmpeg libswscale">
|
---|
[9e5b78b] | 637 | <primary sortas="c-libswscale">libswscale.so</primary>
|
---|
[8a1e4f4] | 638 | </indexterm>
|
---|
| 639 | </listitem>
|
---|
| 640 | </varlistentry>
|
---|
[ffd1fcc] | 641 |
|
---|
[8a1e4f4] | 642 | </variablelist>
|
---|
[ffd1fcc] | 643 |
|
---|
[8a1e4f4] | 644 | </sect2>
|
---|
[ffd1fcc] | 645 |
|
---|
[49e5372] | 646 | </sect1>
|
---|