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