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