[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 " ">
|
---|
[ccf92b8] | 9 | <!ENTITY ffmpeg-md5sum "dcc20dd2682ea01c678b7b8324339d43">
|
---|
[2da67db] | 10 | <!ENTITY ffmpeg-size "8.5 MB">
|
---|
[f50f3f3] | 11 | <!ENTITY ffmpeg-buildsize "156 MB (add 3.2 GB for the FATE suite/tests, add 643 MB for docs)">
|
---|
[ccf92b8] | 12 | <!ENTITY ffmpeg-time "1.4 SBU (using parallelism=4; add 3.8 SBU (with THREADS=4) to run the FATE suite after sample files are downloaded; add 0.6 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 |
|
---|
[59417918] | 44 | &lfs84_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 && -->
|
---|
[a42c273] | 196 | <screen remap="doc"><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
|
---|
[a42c273] | 211 | used) or rebuild the html documentation, issue:
|
---|
[faec3f7] | 212 | </para>
|
---|
[8a1e4f4] | 213 |
|
---|
[a42c273] | 214 | <screen remap="doc"><userinput>doxygen doc/Doxyfile</userinput></screen>
|
---|
| 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 &&
|
---|
[8e848de9] | 229 | install -v -m755 -d /usr/share/doc/ffmpeg-&ffmpeg-version; &&
|
---|
[0e29df6] | 230 | install -v -m644 doc/*.txt /usr/share/doc/ffmpeg-&ffmpeg-version;</userinput></screen>
|
---|
[9e5b78b] | 231 |
|
---|
[faec3f7] | 232 | <para>
|
---|
[17b685f1] | 233 | If the PDF and Postscript documentation was built, issue the following
|
---|
[791213b] | 234 | commands, as the <systemitem class="username">root</systemitem> user, to
|
---|
| 235 | install them:
|
---|
[faec3f7] | 236 | </para>
|
---|
[fd7e0ed6] | 237 |
|
---|
[a42c273] | 238 | <screen role="root"
|
---|
| 239 | remap="doc"><userinput>install -v -m644 doc/*.pdf /usr/share/doc/ffmpeg-&ffmpeg-version; &&
|
---|
[0e29df6] | 240 | install -v -m644 doc/*.ps /usr/share/doc/ffmpeg-&ffmpeg-version;</userinput></screen>
|
---|
[c08bd877] | 241 |
|
---|
[faec3f7] | 242 | <para>
|
---|
[38290b4] | 243 | If you used <command>doxygen</command> to manually create the API
|
---|
| 244 | documentation, install it by issuing the following commands
|
---|
[a161de9] | 245 | as the <systemitem class="username">root</systemitem> user:
|
---|
[faec3f7] | 246 | </para>
|
---|
[c08bd877] | 247 |
|
---|
[a42c273] | 248 | <screen role="root"
|
---|
| 249 | remap="doc"><userinput>install -v -m755 -d /usr/share/doc/ffmpeg-&ffmpeg-version;/api &&
|
---|
[70f1af0] | 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
|
---|
[7e1afc9] | 258 | Environment</ulink> (FATE). First, about 1 GB of sample files used to
|
---|
[dc29e3ac] | 259 | run FATE are downloaded with the command:
|
---|
| 260 | </para>
|
---|
| 261 |
|
---|
[a42c273] | 262 | <screen remap="test"><userinput>make fate-rsync SAMPLES=fate-suite/</userinput></screen>
|
---|
[dc29e3ac] | 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 |
|
---|
[a42c273] | 279 | <screen role="nodump"><userinput><command>rsync -vrltLW --delete --timeout=60 --contimeout=60 \
|
---|
[2adbd3da] | 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
|
---|
[c840bd37] | 284 | larger than 3000):
|
---|
[dc29e3ac] | 285 | </para>
|
---|
| 286 |
|
---|
[a42c273] | 287 | <screen remap="test"><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,
|
---|
[c840bd37] | 292 | <replaceable>N</replaceable> ≤ number of cores in the system.
|
---|
[06da9a6] | 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>
|
---|
[70f1af0] | 308 | <command>find ... ;</command>: Fix permissions of documentation files
|
---|
[43a3a17] | 309 | and directories.
|
---|
| 310 | </para>
|
---|
| 311 |
|
---|
[05bb3720] | 312 | <para>
|
---|
[1a518e97] | 313 | <parameter>--enable-libfreetype</parameter>: Enables
|
---|
[05bb3720] | 314 | <application>Freetype</application> support.
|
---|
| 315 | </para>
|
---|
| 316 |
|
---|
[a161de9] | 317 | <para>
|
---|
| 318 | <parameter>--enable-gpl</parameter>: Enables the use of GPL code and
|
---|
[baf1e23] | 319 | permits support for postprocessing, swscale and many other features.
|
---|
[faec3f7] | 320 | </para>
|
---|
| 321 |
|
---|
| 322 | <para>
|
---|
[a161de9] | 323 | <parameter>--enable-version3</parameter>: Enables the use of (L)GPL
|
---|
| 324 | version 3 code.
|
---|
| 325 | </para>
|
---|
| 326 |
|
---|
| 327 | <para>
|
---|
[dc29e3ac] | 328 | <parameter>--enable-nonfree</parameter>: Enables the use of nonfree code.
|
---|
| 329 | Note that the resulting libraries and binaries will be unredistributable.
|
---|
[faec3f7] | 330 | </para>
|
---|
[8a1e4f4] | 331 |
|
---|
[baf1e23] | 332 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 333 | href="../../xincludes/static-libraries.xml"/>
|
---|
| 334 |
|
---|
[a161de9] | 335 | <para>
|
---|
[dc29e3ac] | 336 | <parameter>--enable-shared</parameter>: Enables building shared
|
---|
| 337 | libraries, otherwise only static libraries are built and installed.
|
---|
[a161de9] | 338 | </para>
|
---|
| 339 |
|
---|
| 340 | <para>
|
---|
[89d37eb8] | 341 | <parameter>--disable-debug</parameter>: Disables building debugging
|
---|
| 342 | symbols into the programs and libraries.
|
---|
[a161de9] | 343 | </para>
|
---|
| 344 |
|
---|
[12ebd0e] | 345 | <para>
|
---|
| 346 | <parameter>--enable-avresample</parameter>: Enables
|
---|
| 347 | <xref linkend="transcode"/> to be compiled.
|
---|
| 348 | </para>
|
---|
| 349 |
|
---|
[a161de9] | 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 |
|
---|
[ea8738a] | 391 | <para>
|
---|
| 392 | <option>--enable-openssl</option> or <option>--enable-gnutls</option>:
|
---|
| 393 | Enables HTTPS protocol for network streams.
|
---|
| 394 | </para>
|
---|
| 395 |
|
---|
[7197352] | 396 | <para>
|
---|
| 397 | <option>--disable-doc</option>: Disables building html documentation.
|
---|
| 398 | This is only needed if <xref linkend="doxygen"/> is installed and you
|
---|
| 399 | do not want to build the html documentation.
|
---|
| 400 | </para>
|
---|
| 401 |
|
---|
[77cce582] | 402 | <para>
|
---|
| 403 | <option>--enable-libpulse</option>: Enables support for
|
---|
| 404 | <application>Pulseaudio</application> for audio output.
|
---|
| 405 | </para>
|
---|
| 406 |
|
---|
[faec3f7] | 407 | <para>
|
---|
[dc29e3ac] | 408 | <command>gcc tools/qt-faststart.c -o tools/qt-faststart</command>: This
|
---|
| 409 | builds the <command>qt-faststart</command> program which can modify
|
---|
| 410 | QuickTime formatted movies (<filename class="extension">.mov</filename>
|
---|
| 411 | or <filename class="extension">.mp4</filename>) so that the header
|
---|
| 412 | information is located at the beginning of the file instead of the end.
|
---|
| 413 | This allows the movie file to begin playing before the entire file has
|
---|
| 414 | been downloaded.
|
---|
[2216c969] | 415 | </para>
|
---|
| 416 |
|
---|
[c012c1a] | 417 | <note>
|
---|
| 418 | <para>
|
---|
| 419 | Support for most of the dependency packages requires using options
|
---|
[d0c85de6] | 420 | passed to the <command>configure</command> script. View the output
|
---|
[c012c1a] | 421 | from <command>./configure --help</command> for complete information
|
---|
| 422 | about enabling dependency packages.
|
---|
| 423 | </para>
|
---|
| 424 | </note>
|
---|
| 425 |
|
---|
[8a1e4f4] | 426 | </sect2>
|
---|
| 427 |
|
---|
| 428 | <sect2 role="configuration">
|
---|
| 429 | <title>Configuring FFmpeg</title>
|
---|
| 430 |
|
---|
| 431 | <sect3 id="ffmpeg-config">
|
---|
| 432 | <title>Config Files</title>
|
---|
| 433 |
|
---|
[755bb92] | 434 | <para>
|
---|
| 435 | <filename>/etc/ffserver.conf</filename> and
|
---|
| 436 | <filename>~/.ffmpeg/ffserver-config</filename>
|
---|
| 437 | </para>
|
---|
[8a1e4f4] | 438 |
|
---|
| 439 | <indexterm zone="ffmpeg ffmpeg-config">
|
---|
[4162bcd] | 440 | <primary
|
---|
| 441 | sortas="e-AA.ffmpeg-ffserver-config">~/.ffmpeg/ffserver-config</primary>
|
---|
[8a1e4f4] | 442 | </indexterm>
|
---|
| 443 |
|
---|
| 444 | <indexterm zone="ffmpeg ffmpeg-config">
|
---|
| 445 | <primary sortas="e-etc-ffserver.conf">/etc/ffserver.conf</primary>
|
---|
| 446 | </indexterm>
|
---|
| 447 |
|
---|
[faec3f7] | 448 | <para>
|
---|
| 449 | You'll find a sample <command>ffserver</command> configuration file at
|
---|
| 450 | <filename>doc/ffserver.conf</filename> in the source tree.
|
---|
| 451 | </para>
|
---|
[ffd1fcc] | 452 |
|
---|
[8a1e4f4] | 453 | </sect3>
|
---|
[ffd1fcc] | 454 |
|
---|
[8a1e4f4] | 455 | </sect2>
|
---|
| 456 |
|
---|
| 457 | <sect2 role="content">
|
---|
| 458 | <title>Contents</title>
|
---|
| 459 |
|
---|
| 460 | <segmentedlist>
|
---|
| 461 | <segtitle>Installed Programs</segtitle>
|
---|
| 462 | <segtitle>Installed Libraries</segtitle>
|
---|
| 463 | <segtitle>Installed Directories</segtitle>
|
---|
| 464 |
|
---|
| 465 | <seglistitem>
|
---|
[faec3f7] | 466 | <seg>
|
---|
[e43e647] | 467 | ffmpeg, ffplay, ffprobe, ffserver, and qt-faststart
|
---|
[faec3f7] | 468 | </seg>
|
---|
| 469 | <seg>
|
---|
[ffd1fcc] | 470 | libavcodec.so, libavdevice.so, libavfilter.so,
|
---|
| 471 | libavformat.so, libavutil.so, libpostproc.so,
|
---|
[638fc4a] | 472 | libswresample.so, and libswscale.so
|
---|
[faec3f7] | 473 | </seg>
|
---|
| 474 | <seg>
|
---|
[b8efb1fb] | 475 | /usr/include/libav{codec,device,filter,format,util},
|
---|
| 476 | /usr/include/libpostproc,
|
---|
| 477 | /usr/include/libsw{resample,scale},
|
---|
[813ea9af] | 478 | /usr/share/doc/ffmpeg-&ffmpeg-version;, and
|
---|
| 479 | /usr/share/ffmpeg
|
---|
[faec3f7] | 480 | </seg>
|
---|
[8a1e4f4] | 481 | </seglistitem>
|
---|
| 482 | </segmentedlist>
|
---|
| 483 |
|
---|
| 484 | <variablelist>
|
---|
| 485 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 486 | <?dbfo list-presentation="list"?>
|
---|
| 487 | <?dbhtml list-presentation="table"?>
|
---|
| 488 |
|
---|
| 489 | <varlistentry id="ffmpeg-prog">
|
---|
| 490 | <term><command>ffmpeg</command></term>
|
---|
| 491 | <listitem>
|
---|
[faec3f7] | 492 | <para>
|
---|
| 493 | is a command-line tool to convert video files, network streams and
|
---|
| 494 | input from a TV card to several video formats.
|
---|
| 495 | </para>
|
---|
[8a1e4f4] | 496 | <indexterm zone="ffmpeg ffmpeg-prog">
|
---|
| 497 | <primary sortas="b-ffmpeg">ffmpeg</primary>
|
---|
| 498 | </indexterm>
|
---|
| 499 | </listitem>
|
---|
| 500 | </varlistentry>
|
---|
| 501 |
|
---|
| 502 | <varlistentry id="ffplay">
|
---|
| 503 | <term><command>ffplay</command></term>
|
---|
| 504 | <listitem>
|
---|
[faec3f7] | 505 | <para>
|
---|
| 506 | is a very simple and portable media player using the
|
---|
| 507 | <filename>ffmpeg</filename> libraries and the SDL library.
|
---|
| 508 | </para>
|
---|
[8a1e4f4] | 509 | <indexterm zone="ffmpeg ffplay">
|
---|
| 510 | <primary sortas="b-ffplay">ffplay</primary>
|
---|
| 511 | </indexterm>
|
---|
| 512 | </listitem>
|
---|
| 513 | </varlistentry>
|
---|
| 514 |
|
---|
[f60198bf] | 515 | <varlistentry id="ffprobe">
|
---|
| 516 | <term><command>ffprobe</command></term>
|
---|
| 517 | <listitem>
|
---|
[faec3f7] | 518 | <para>
|
---|
| 519 | gathers information from multimedia streams and prints it in a human
|
---|
| 520 | and machine-readable fashion.
|
---|
| 521 | </para>
|
---|
[f60198bf] | 522 | <indexterm zone="ffmpeg ffprobe">
|
---|
| 523 | <primary sortas="b-ffprobe">ffprobe</primary>
|
---|
| 524 | </indexterm>
|
---|
| 525 | </listitem>
|
---|
| 526 | </varlistentry>
|
---|
| 527 |
|
---|
[8a1e4f4] | 528 | <varlistentry id="ffserver">
|
---|
| 529 | <term><command>ffserver</command></term>
|
---|
| 530 | <listitem>
|
---|
[faec3f7] | 531 | <para>
|
---|
| 532 | is a streaming server for everything that <command>ffmpeg</command>
|
---|
| 533 | could use as input (files, streams, TV card input, webcam, etc).
|
---|
| 534 | </para>
|
---|
[8a1e4f4] | 535 | <indexterm zone="ffmpeg ffserver">
|
---|
| 536 | <primary sortas="b-ffserver">ffserver</primary>
|
---|
| 537 | </indexterm>
|
---|
| 538 | </listitem>
|
---|
| 539 | </varlistentry>
|
---|
| 540 |
|
---|
[c08bd877] | 541 | <varlistentry id="qt-faststart">
|
---|
| 542 | <term><command>qt-faststart</command></term>
|
---|
| 543 | <listitem>
|
---|
[faec3f7] | 544 | <para>
|
---|
| 545 | moves the index file to the front of quicktime (mov/mp4) videos.
|
---|
| 546 | </para>
|
---|
[c08bd877] | 547 | <indexterm zone="ffmpeg qt-faststart">
|
---|
| 548 | <primary sortas="b-qt-faststart">qt-faststart</primary>
|
---|
| 549 | </indexterm>
|
---|
| 550 | </listitem>
|
---|
| 551 | </varlistentry>
|
---|
| 552 |
|
---|
[8a1e4f4] | 553 | <varlistentry id="libavcodec">
|
---|
[4162bcd] | 554 | <term><filename class="libraryfile">libavcodec.so</filename></term>
|
---|
[8a1e4f4] | 555 | <listitem>
|
---|
[faec3f7] | 556 | <para>
|
---|
| 557 | is a library containing the <application>FFmpeg</application> codecs
|
---|
| 558 | (both encoding and decoding).
|
---|
| 559 | </para>
|
---|
[8a1e4f4] | 560 | <indexterm zone="ffmpeg libavcodec">
|
---|
[9e5b78b] | 561 | <primary sortas="c-libavcodec">libavcodec.so</primary>
|
---|
[28cd5ce] | 562 | </indexterm>
|
---|
| 563 | </listitem>
|
---|
| 564 | </varlistentry>
|
---|
| 565 |
|
---|
| 566 | <varlistentry id="libavdevice">
|
---|
[4162bcd] | 567 | <term><filename class="libraryfile">libavdevice.so</filename></term>
|
---|
[28cd5ce] | 568 | <listitem>
|
---|
[faec3f7] | 569 | <para>
|
---|
| 570 | is the <application>FFmpeg</application> device handling library.
|
---|
| 571 | </para>
|
---|
[28cd5ce] | 572 | <indexterm zone="ffmpeg libavdevice">
|
---|
[9e5b78b] | 573 | <primary sortas="c-libavdevice">libavdevice.so</primary>
|
---|
| 574 | </indexterm>
|
---|
| 575 | </listitem>
|
---|
| 576 | </varlistentry>
|
---|
| 577 |
|
---|
| 578 | <varlistentry id="libavfilter">
|
---|
[4162bcd] | 579 | <term><filename class="libraryfile">libavfilter.so</filename></term>
|
---|
[9e5b78b] | 580 | <listitem>
|
---|
[faec3f7] | 581 | <para>
|
---|
| 582 | is a library of filters that can alter video or audio between the
|
---|
| 583 | decoder and the encoder (or output).
|
---|
| 584 | </para>
|
---|
[9e5b78b] | 585 | <indexterm zone="ffmpeg libavfilter">
|
---|
| 586 | <primary sortas="c-libavfilter">libavfilter.so</primary>
|
---|
[8a1e4f4] | 587 | </indexterm>
|
---|
| 588 | </listitem>
|
---|
| 589 | </varlistentry>
|
---|
| 590 |
|
---|
| 591 | <varlistentry id="libavformat">
|
---|
[4162bcd] | 592 | <term><filename class="libraryfile">libavformat.so</filename></term>
|
---|
[8a1e4f4] | 593 | <listitem>
|
---|
[faec3f7] | 594 | <para>
|
---|
| 595 | is a library containing the file formats handling (mux and demux
|
---|
| 596 | code for several formats) used by <command>ffplay</command> as well
|
---|
| 597 | as allowing the generation of audio or video streams.
|
---|
| 598 | </para>
|
---|
[8a1e4f4] | 599 | <indexterm zone="ffmpeg libavformat">
|
---|
[9e5b78b] | 600 | <primary sortas="c-libavformat">libavformat.so</primary>
|
---|
[28cd5ce] | 601 | </indexterm>
|
---|
| 602 | </listitem>
|
---|
| 603 | </varlistentry>
|
---|
| 604 |
|
---|
| 605 | <varlistentry id="libavutil">
|
---|
[4162bcd] | 606 | <term><filename class="libraryfile">libavutil.so</filename></term>
|
---|
[28cd5ce] | 607 | <listitem>
|
---|
[ffd1fcc] | 608 | <para>
|
---|
| 609 | is the <application>FFmpeg</application> utility library.
|
---|
| 610 | </para>
|
---|
[28cd5ce] | 611 | <indexterm zone="ffmpeg libavutil">
|
---|
[9e5b78b] | 612 | <primary sortas="c-libavutil">libavutil.so</primary>
|
---|
[28cd5ce] | 613 | </indexterm>
|
---|
| 614 | </listitem>
|
---|
| 615 | </varlistentry>
|
---|
| 616 |
|
---|
[874f1e88] | 617 | <varlistentry id="libpostproc">
|
---|
[4162bcd] | 618 | <term><filename class="libraryfile">libpostproc.so</filename></term>
|
---|
[28cd5ce] | 619 | <listitem>
|
---|
[faec3f7] | 620 | <para>
|
---|
| 621 | is the <application>FFmpeg</application> post processing library.
|
---|
| 622 | </para>
|
---|
[28cd5ce] | 623 | <indexterm zone="ffmpeg libpostproc">
|
---|
[9e5b78b] | 624 | <primary sortas="c-libpostproc">libpostproc.so</primary>
|
---|
[28cd5ce] | 625 | </indexterm>
|
---|
| 626 | </listitem>
|
---|
| 627 | </varlistentry>
|
---|
| 628 |
|
---|
[baf1e23] | 629 | <varlistentry id="libswresample">
|
---|
| 630 | <term><filename class="libraryfile">libswresample.so</filename></term>
|
---|
| 631 | <listitem>
|
---|
| 632 | <para>
|
---|
| 633 | is the <application>FFmpeg</application> audio rescaling library,
|
---|
| 634 | it contains functions for converting audio sample formats.
|
---|
| 635 | </para>
|
---|
| 636 | <indexterm zone="ffmpeg libswresample">
|
---|
| 637 | <primary sortas="c-libswresample">libswresample.so</primary>
|
---|
| 638 | </indexterm>
|
---|
| 639 | </listitem>
|
---|
| 640 | </varlistentry>
|
---|
| 641 |
|
---|
[28cd5ce] | 642 | <varlistentry id="libswscale">
|
---|
[4162bcd] | 643 | <term><filename class="libraryfile">libswscale.so</filename></term>
|
---|
[28cd5ce] | 644 | <listitem>
|
---|
[faec3f7] | 645 | <para>
|
---|
| 646 | is the <application>FFmpeg</application> image rescaling library.
|
---|
| 647 | </para>
|
---|
[28cd5ce] | 648 | <indexterm zone="ffmpeg libswscale">
|
---|
[9e5b78b] | 649 | <primary sortas="c-libswscale">libswscale.so</primary>
|
---|
[8a1e4f4] | 650 | </indexterm>
|
---|
| 651 | </listitem>
|
---|
| 652 | </varlistentry>
|
---|
[ffd1fcc] | 653 |
|
---|
[8a1e4f4] | 654 | </variablelist>
|
---|
[ffd1fcc] | 655 |
|
---|
[8a1e4f4] | 656 | </sect2>
|
---|
[ffd1fcc] | 657 |
|
---|
[49e5372] | 658 | </sect1>
|
---|