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