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