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