[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 " ">
|
---|
[0e29df6] | 9 | <!ENTITY ffmpeg-md5sum "4f01244929a992bc5bae4136f329f4b1">
|
---|
[c840bd37] | 10 | <!ENTITY ffmpeg-size "7.6 MB">
|
---|
[0e29df6] | 11 | <!ENTITY ffmpeg-buildsize "145 MB (add 2.9 GB for the FATE suite/tests
|
---|
[ba1ccf6] | 12 | and 1.0 GB for the documentation)">
|
---|
[0e29df6] | 13 | <!ENTITY ffmpeg-time "4.5 SBU (add 0.6 SBU for docs and 4.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>
|
---|
[7e1afc9] | 100 | <para role="recommended">
|
---|
[89d37eb8] | 101 | <xref linkend="alsa-lib"/>,
|
---|
[287a07e] | 102 | <xref linkend="libva"/>,
|
---|
| 103 | <xref linkend="libvdpau"/> (with the corresponding driver package), and
|
---|
[36aeaf9a] | 104 | <xref linkend="sdl2"/>,
|
---|
[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
|
---|
[7e1afc9] | 213 | documentation (takes about 500 MB 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 &&
|
---|
[0e29df6] | 230 | install -v -m644 doc/*.txt /usr/share/doc/ffmpeg-&ffmpeg-version;</userinput></screen>
|
---|
[9e5b78b] | 231 |
|
---|
[faec3f7] | 232 | <para>
|
---|
[791213b] | 233 | If PDF and Postscript documentations were built, issue the following
|
---|
| 234 | commands, as the <systemitem class="username">root</systemitem> user, to
|
---|
| 235 | install them:
|
---|
[faec3f7] | 236 | </para>
|
---|
[fd7e0ed6] | 237 |
|
---|
[0e29df6] | 238 | <screen role="root"><userinput>install -v -m644 doc/*.pdf /usr/share/doc/ffmpeg-&ffmpeg-version; &&
|
---|
| 239 | install -v -m644 doc/*.ps /usr/share/doc/ffmpeg-&ffmpeg-version;</userinput></screen>
|
---|
[c08bd877] | 240 |
|
---|
[faec3f7] | 241 | <para>
|
---|
[2216c969] | 242 | If you used <command>doxygen</command> to create the API documentation,
|
---|
[7e1afc9] | 243 | install it (another 500 MB of space) by issuing the following commands
|
---|
[a161de9] | 244 | as the <systemitem class="username">root</systemitem> user:
|
---|
[faec3f7] | 245 | </para>
|
---|
[c08bd877] | 246 |
|
---|
[70f1af0] | 247 | <screen role="root"><userinput>install -v -m755 -d /usr/share/doc/ffmpeg-&ffmpeg-version;/api &&
|
---|
| 248 | cp -vr doc/doxy/html/* /usr/share/doc/ffmpeg-&ffmpeg-version;/api &&
|
---|
| 249 | find /usr/share/doc/ffmpeg-&ffmpeg-version;/api -type f -exec chmod -c 0644 \{} \; &&
|
---|
| 250 | find /usr/share/doc/ffmpeg-&ffmpeg-version;/api -type d -exec chmod -c 0755 \{} \;</userinput></screen>
|
---|
[ffd1fcc] | 251 |
|
---|
[dc29e3ac] | 252 | <para>
|
---|
| 253 | To properly test the installation you must have <xref linkend="rsync"/>
|
---|
| 254 | installed and follow the instructions for the <ulink
|
---|
| 255 | url="http://www.ffmpeg.org/fate.html"> FFmpeg Automated Testing
|
---|
[7e1afc9] | 256 | Environment</ulink> (FATE). First, about 1 GB of sample files used to
|
---|
[dc29e3ac] | 257 | run FATE are downloaded with the command:
|
---|
| 258 | </para>
|
---|
| 259 |
|
---|
| 260 | <screen><userinput>make fate-rsync SAMPLES=fate-suite/</userinput></screen>
|
---|
| 261 |
|
---|
| 262 | <para>
|
---|
| 263 | The <filename class="directory">fate-suite</filename> directory is
|
---|
[2adbd3da] | 264 | created and the files are downloaded there. That command actually runs an
|
---|
| 265 | rsync command, to obtain the sample files. You may want to compress and
|
---|
| 266 | keep this directory for testing again, in another system, or when a new
|
---|
| 267 | version of ffmpeg is launched. Then, you unpack the sample files in the
|
---|
| 268 | source directory, and run, again, the <command>make fate-rsync
|
---|
| 269 | ...</command> command above, to sync with the repository. Now, the
|
---|
| 270 | download size and time are drastically reduced. Estimated values in
|
---|
| 271 | "Package Information" do not include the download SBU. Some samples may
|
---|
| 272 | have been removed, in the new version, so, in order to be sure local and
|
---|
[70f1af0] | 273 | server fate samples are identical, when you use previously saved samples,
|
---|
| 274 | run the following command:
|
---|
[2adbd3da] | 275 | </para>
|
---|
| 276 |
|
---|
| 277 | <screen><userinput><command>rsync -vrltLW --delete --timeout=60 --contimeout=60 \
|
---|
| 278 | rsync://fate-suite.ffmpeg.org/fate-suite/ fate-suite/</command></userinput></screen>
|
---|
[f3429309] | 279 |
|
---|
[2adbd3da] | 280 | <para>
|
---|
| 281 | Next, FATE is executed, with the commands (you obtain a number of tests
|
---|
[c840bd37] | 282 | larger than 3000):
|
---|
[dc29e3ac] | 283 | </para>
|
---|
| 284 |
|
---|
[06da9a6] | 285 | <screen><userinput>make fate THREADS=<replaceable>N</replaceable> SAMPLES=fate-suite/ | tee ../fate.log &&
|
---|
[dc29e3ac] | 286 | grep ^TEST ../fate.log | wc -l</userinput></screen>
|
---|
[f3429309] | 287 |
|
---|
[06da9a6] | 288 | <para>
|
---|
| 289 | where <replaceable>N</replaceable> is an integer,
|
---|
[c840bd37] | 290 | <replaceable>N</replaceable> ≤ number of cores in the system.
|
---|
[06da9a6] | 291 | </para>
|
---|
[dc29e3ac] | 292 |
|
---|
[8a1e4f4] | 293 | </sect2>
|
---|
| 294 |
|
---|
| 295 | <sect2 role="commands">
|
---|
| 296 | <title>Command Explanations</title>
|
---|
| 297 |
|
---|
[faec3f7] | 298 | <para>
|
---|
[43a3a17] | 299 | <command>sed -i ... configure</command>: This command adds the
|
---|
[a161de9] | 300 | <application>ALSA</application> library to the
|
---|
| 301 | <application>Flite</application> <envar>LDFLAGS</envar> variable and
|
---|
| 302 | enables the discovery of <application>Flite</application>.
|
---|
| 303 | </para>
|
---|
| 304 |
|
---|
[43a3a17] | 305 | <para>
|
---|
[70f1af0] | 306 | <command>find ... ;</command>: Fix permissions of documentation files
|
---|
[43a3a17] | 307 | and directories.
|
---|
| 308 | </para>
|
---|
| 309 |
|
---|
[05bb3720] | 310 | <para>
|
---|
[1a518e97] | 311 | <parameter>--enable-libfreetype</parameter>: Enables
|
---|
[05bb3720] | 312 | <application>Freetype</application> support.
|
---|
| 313 | </para>
|
---|
| 314 |
|
---|
[a161de9] | 315 | <para>
|
---|
| 316 | <parameter>--enable-gpl</parameter>: Enables the use of GPL code and
|
---|
[baf1e23] | 317 | permits support for postprocessing, swscale and many other features.
|
---|
[faec3f7] | 318 | </para>
|
---|
| 319 |
|
---|
| 320 | <para>
|
---|
[a161de9] | 321 | <parameter>--enable-version3</parameter>: Enables the use of (L)GPL
|
---|
| 322 | version 3 code.
|
---|
| 323 | </para>
|
---|
| 324 |
|
---|
| 325 | <para>
|
---|
[dc29e3ac] | 326 | <parameter>--enable-nonfree</parameter>: Enables the use of nonfree code.
|
---|
| 327 | Note that the resulting libraries and binaries will be unredistributable.
|
---|
[faec3f7] | 328 | </para>
|
---|
[8a1e4f4] | 329 |
|
---|
[baf1e23] | 330 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 331 | href="../../xincludes/static-libraries.xml"/>
|
---|
| 332 |
|
---|
[a161de9] | 333 | <para>
|
---|
[dc29e3ac] | 334 | <parameter>--enable-shared</parameter>: Enables building shared
|
---|
| 335 | libraries, otherwise only static libraries are built and installed.
|
---|
[a161de9] | 336 | </para>
|
---|
| 337 |
|
---|
| 338 | <para>
|
---|
[89d37eb8] | 339 | <parameter>--disable-debug</parameter>: Disables building debugging
|
---|
| 340 | symbols into the programs and libraries.
|
---|
[a161de9] | 341 | </para>
|
---|
| 342 |
|
---|
| 343 | <para>
|
---|
[89d37eb8] | 344 | <parameter>--enable-libass</parameter>: Enables ASS/SSA subtitle format
|
---|
[c0fce1d] | 345 | rendering via <filename class="libraryfile">libass</filename>.
|
---|
[a161de9] | 346 | </para>
|
---|
| 347 |
|
---|
| 348 | <para>
|
---|
[c012c1a] | 349 | <parameter>--enable-libfdk-aac</parameter>: Enables currently the
|
---|
| 350 | highest-quality AAC audio encoding via <filename
|
---|
| 351 | class="libraryfile">libfdk-aac</filename>.
|
---|
[a161de9] | 352 | </para>
|
---|
| 353 |
|
---|
| 354 | <para>
|
---|
[dc29e3ac] | 355 | <parameter>--enable-libmp3lame</parameter>: Enables MP3 audio encoding
|
---|
| 356 | via <filename class="libraryfile">libmp3lame</filename>.
|
---|
[a161de9] | 357 | </para>
|
---|
| 358 |
|
---|
| 359 | <para>
|
---|
[c012c1a] | 360 | <parameter>--enable-libvorbis --enable-libtheora</parameter>: Enables
|
---|
| 361 | Theora video encoding via <filename
|
---|
| 362 | class="libraryfile">libvorbis</filename> and <filename
|
---|
| 363 | class="libraryfile">libtheora</filename>.
|
---|
[a161de9] | 364 | </para>
|
---|
| 365 |
|
---|
| 366 | <para>
|
---|
[c012c1a] | 367 | <parameter>--enable-libvorbis --enable-libvpx</parameter>: Enables WebM
|
---|
| 368 | encoding via <filename class="libraryfile">libvorbis</filename> and
|
---|
| 369 | <filename class="libraryfile">libvpx</filename>.
|
---|
[a161de9] | 370 | </para>
|
---|
| 371 |
|
---|
| 372 | <para>
|
---|
[dc29e3ac] | 373 | <parameter>--enable-libx264</parameter>: Enables high-quality
|
---|
| 374 | H.264/MPEG-4 AVC encoding via <filename
|
---|
[118613f8] | 375 | class="libraryfile">libx264</filename>.
|
---|
[a161de9] | 376 | </para>
|
---|
| 377 |
|
---|
[1fa4314] | 378 | <para>
|
---|
| 379 | <parameter>--enable-libx265</parameter>: Enables high-quality
|
---|
| 380 | H.265/HEVC encoding via <filename
|
---|
| 381 | class="libraryfile">libx265</filename>.
|
---|
| 382 | </para>
|
---|
| 383 |
|
---|
[a161de9] | 384 | <para>
|
---|
[89d37eb8] | 385 | <parameter>--enable-x11grab</parameter>: Enables X11 grabbing.
|
---|
[a161de9] | 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 |
|
---|
[faec3f7] | 393 | <para>
|
---|
[dc29e3ac] | 394 | <command>gcc tools/qt-faststart.c -o tools/qt-faststart</command>: This
|
---|
| 395 | builds the <command>qt-faststart</command> program which can modify
|
---|
| 396 | QuickTime formatted movies (<filename class="extension">.mov</filename>
|
---|
| 397 | or <filename class="extension">.mp4</filename>) so that the header
|
---|
| 398 | information is located at the beginning of the file instead of the end.
|
---|
| 399 | This allows the movie file to begin playing before the entire file has
|
---|
| 400 | been downloaded.
|
---|
[2216c969] | 401 | </para>
|
---|
| 402 |
|
---|
[c012c1a] | 403 | <note>
|
---|
| 404 | <para>
|
---|
| 405 | Support for most of the dependency packages requires using options
|
---|
[d0c85de6] | 406 | passed to the <command>configure</command> script. View the output
|
---|
[c012c1a] | 407 | from <command>./configure --help</command> for complete information
|
---|
| 408 | about enabling dependency packages.
|
---|
| 409 | </para>
|
---|
| 410 | </note>
|
---|
| 411 |
|
---|
[8a1e4f4] | 412 | </sect2>
|
---|
| 413 |
|
---|
| 414 | <sect2 role="configuration">
|
---|
| 415 | <title>Configuring FFmpeg</title>
|
---|
| 416 |
|
---|
| 417 | <sect3 id="ffmpeg-config">
|
---|
| 418 | <title>Config Files</title>
|
---|
| 419 |
|
---|
[755bb92] | 420 | <para>
|
---|
| 421 | <filename>/etc/ffserver.conf</filename> and
|
---|
| 422 | <filename>~/.ffmpeg/ffserver-config</filename>
|
---|
| 423 | </para>
|
---|
[8a1e4f4] | 424 |
|
---|
| 425 | <indexterm zone="ffmpeg ffmpeg-config">
|
---|
[4162bcd] | 426 | <primary
|
---|
| 427 | sortas="e-AA.ffmpeg-ffserver-config">~/.ffmpeg/ffserver-config</primary>
|
---|
[8a1e4f4] | 428 | </indexterm>
|
---|
| 429 |
|
---|
| 430 | <indexterm zone="ffmpeg ffmpeg-config">
|
---|
| 431 | <primary sortas="e-etc-ffserver.conf">/etc/ffserver.conf</primary>
|
---|
| 432 | </indexterm>
|
---|
| 433 |
|
---|
[faec3f7] | 434 | <para>
|
---|
| 435 | You'll find a sample <command>ffserver</command> configuration file at
|
---|
| 436 | <filename>doc/ffserver.conf</filename> in the source tree.
|
---|
| 437 | </para>
|
---|
[ffd1fcc] | 438 |
|
---|
[8a1e4f4] | 439 | </sect3>
|
---|
[ffd1fcc] | 440 |
|
---|
[8a1e4f4] | 441 | </sect2>
|
---|
| 442 |
|
---|
| 443 | <sect2 role="content">
|
---|
| 444 | <title>Contents</title>
|
---|
| 445 |
|
---|
| 446 | <segmentedlist>
|
---|
| 447 | <segtitle>Installed Programs</segtitle>
|
---|
| 448 | <segtitle>Installed Libraries</segtitle>
|
---|
| 449 | <segtitle>Installed Directories</segtitle>
|
---|
| 450 |
|
---|
| 451 | <seglistitem>
|
---|
[faec3f7] | 452 | <seg>
|
---|
[7e1afc9] | 453 | ffmpeg, ffplay, ffprobe, ffserver, and qt-faststart
|
---|
[faec3f7] | 454 | </seg>
|
---|
| 455 | <seg>
|
---|
[ffd1fcc] | 456 | libavcodec.so, libavdevice.so, libavfilter.so,
|
---|
| 457 | libavformat.so, libavutil.so, libpostproc.so,
|
---|
[638fc4a] | 458 | libswresample.so, and libswscale.so
|
---|
[faec3f7] | 459 | </seg>
|
---|
| 460 | <seg>
|
---|
[b8efb1fb] | 461 | /usr/include/libav{codec,device,filter,format,util},
|
---|
| 462 | /usr/include/libpostproc,
|
---|
| 463 | /usr/include/libsw{resample,scale},
|
---|
[813ea9af] | 464 | /usr/share/doc/ffmpeg-&ffmpeg-version;, and
|
---|
| 465 | /usr/share/ffmpeg
|
---|
[faec3f7] | 466 | </seg>
|
---|
[8a1e4f4] | 467 | </seglistitem>
|
---|
| 468 | </segmentedlist>
|
---|
| 469 |
|
---|
| 470 | <variablelist>
|
---|
| 471 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 472 | <?dbfo list-presentation="list"?>
|
---|
| 473 | <?dbhtml list-presentation="table"?>
|
---|
| 474 |
|
---|
| 475 | <varlistentry id="ffmpeg-prog">
|
---|
| 476 | <term><command>ffmpeg</command></term>
|
---|
| 477 | <listitem>
|
---|
[faec3f7] | 478 | <para>
|
---|
| 479 | is a command-line tool to convert video files, network streams and
|
---|
| 480 | input from a TV card to several video formats.
|
---|
| 481 | </para>
|
---|
[8a1e4f4] | 482 | <indexterm zone="ffmpeg ffmpeg-prog">
|
---|
| 483 | <primary sortas="b-ffmpeg">ffmpeg</primary>
|
---|
| 484 | </indexterm>
|
---|
| 485 | </listitem>
|
---|
| 486 | </varlistentry>
|
---|
| 487 |
|
---|
| 488 | <varlistentry id="ffplay">
|
---|
| 489 | <term><command>ffplay</command></term>
|
---|
| 490 | <listitem>
|
---|
[faec3f7] | 491 | <para>
|
---|
| 492 | is a very simple and portable media player using the
|
---|
| 493 | <filename>ffmpeg</filename> libraries and the SDL library.
|
---|
| 494 | </para>
|
---|
[8a1e4f4] | 495 | <indexterm zone="ffmpeg ffplay">
|
---|
| 496 | <primary sortas="b-ffplay">ffplay</primary>
|
---|
| 497 | </indexterm>
|
---|
| 498 | </listitem>
|
---|
| 499 | </varlistentry>
|
---|
| 500 |
|
---|
[f60198bf] | 501 | <varlistentry id="ffprobe">
|
---|
| 502 | <term><command>ffprobe</command></term>
|
---|
| 503 | <listitem>
|
---|
[faec3f7] | 504 | <para>
|
---|
| 505 | gathers information from multimedia streams and prints it in a human
|
---|
| 506 | and machine-readable fashion.
|
---|
| 507 | </para>
|
---|
[f60198bf] | 508 | <indexterm zone="ffmpeg ffprobe">
|
---|
| 509 | <primary sortas="b-ffprobe">ffprobe</primary>
|
---|
| 510 | </indexterm>
|
---|
| 511 | </listitem>
|
---|
| 512 | </varlistentry>
|
---|
| 513 |
|
---|
[8a1e4f4] | 514 | <varlistentry id="ffserver">
|
---|
| 515 | <term><command>ffserver</command></term>
|
---|
| 516 | <listitem>
|
---|
[faec3f7] | 517 | <para>
|
---|
| 518 | is a streaming server for everything that <command>ffmpeg</command>
|
---|
| 519 | could use as input (files, streams, TV card input, webcam, etc).
|
---|
| 520 | </para>
|
---|
[8a1e4f4] | 521 | <indexterm zone="ffmpeg ffserver">
|
---|
| 522 | <primary sortas="b-ffserver">ffserver</primary>
|
---|
| 523 | </indexterm>
|
---|
| 524 | </listitem>
|
---|
| 525 | </varlistentry>
|
---|
| 526 |
|
---|
[c08bd877] | 527 | <varlistentry id="qt-faststart">
|
---|
| 528 | <term><command>qt-faststart</command></term>
|
---|
| 529 | <listitem>
|
---|
[faec3f7] | 530 | <para>
|
---|
| 531 | moves the index file to the front of quicktime (mov/mp4) videos.
|
---|
| 532 | </para>
|
---|
[c08bd877] | 533 | <indexterm zone="ffmpeg qt-faststart">
|
---|
| 534 | <primary sortas="b-qt-faststart">qt-faststart</primary>
|
---|
| 535 | </indexterm>
|
---|
| 536 | </listitem>
|
---|
| 537 | </varlistentry>
|
---|
| 538 |
|
---|
[8a1e4f4] | 539 | <varlistentry id="libavcodec">
|
---|
[4162bcd] | 540 | <term><filename class="libraryfile">libavcodec.so</filename></term>
|
---|
[8a1e4f4] | 541 | <listitem>
|
---|
[faec3f7] | 542 | <para>
|
---|
| 543 | is a library containing the <application>FFmpeg</application> codecs
|
---|
| 544 | (both encoding and decoding).
|
---|
| 545 | </para>
|
---|
[8a1e4f4] | 546 | <indexterm zone="ffmpeg libavcodec">
|
---|
[9e5b78b] | 547 | <primary sortas="c-libavcodec">libavcodec.so</primary>
|
---|
[28cd5ce] | 548 | </indexterm>
|
---|
| 549 | </listitem>
|
---|
| 550 | </varlistentry>
|
---|
| 551 |
|
---|
| 552 | <varlistentry id="libavdevice">
|
---|
[4162bcd] | 553 | <term><filename class="libraryfile">libavdevice.so</filename></term>
|
---|
[28cd5ce] | 554 | <listitem>
|
---|
[faec3f7] | 555 | <para>
|
---|
| 556 | is the <application>FFmpeg</application> device handling library.
|
---|
| 557 | </para>
|
---|
[28cd5ce] | 558 | <indexterm zone="ffmpeg libavdevice">
|
---|
[9e5b78b] | 559 | <primary sortas="c-libavdevice">libavdevice.so</primary>
|
---|
| 560 | </indexterm>
|
---|
| 561 | </listitem>
|
---|
| 562 | </varlistentry>
|
---|
| 563 |
|
---|
| 564 | <varlistentry id="libavfilter">
|
---|
[4162bcd] | 565 | <term><filename class="libraryfile">libavfilter.so</filename></term>
|
---|
[9e5b78b] | 566 | <listitem>
|
---|
[faec3f7] | 567 | <para>
|
---|
| 568 | is a library of filters that can alter video or audio between the
|
---|
| 569 | decoder and the encoder (or output).
|
---|
| 570 | </para>
|
---|
[9e5b78b] | 571 | <indexterm zone="ffmpeg libavfilter">
|
---|
| 572 | <primary sortas="c-libavfilter">libavfilter.so</primary>
|
---|
[8a1e4f4] | 573 | </indexterm>
|
---|
| 574 | </listitem>
|
---|
| 575 | </varlistentry>
|
---|
| 576 |
|
---|
| 577 | <varlistentry id="libavformat">
|
---|
[4162bcd] | 578 | <term><filename class="libraryfile">libavformat.so</filename></term>
|
---|
[8a1e4f4] | 579 | <listitem>
|
---|
[faec3f7] | 580 | <para>
|
---|
| 581 | is a library containing the file formats handling (mux and demux
|
---|
| 582 | code for several formats) used by <command>ffplay</command> as well
|
---|
| 583 | as allowing the generation of audio or video streams.
|
---|
| 584 | </para>
|
---|
[8a1e4f4] | 585 | <indexterm zone="ffmpeg libavformat">
|
---|
[9e5b78b] | 586 | <primary sortas="c-libavformat">libavformat.so</primary>
|
---|
[28cd5ce] | 587 | </indexterm>
|
---|
| 588 | </listitem>
|
---|
| 589 | </varlistentry>
|
---|
| 590 |
|
---|
| 591 | <varlistentry id="libavutil">
|
---|
[4162bcd] | 592 | <term><filename class="libraryfile">libavutil.so</filename></term>
|
---|
[28cd5ce] | 593 | <listitem>
|
---|
[ffd1fcc] | 594 | <para>
|
---|
| 595 | is the <application>FFmpeg</application> utility library.
|
---|
| 596 | </para>
|
---|
[28cd5ce] | 597 | <indexterm zone="ffmpeg libavutil">
|
---|
[9e5b78b] | 598 | <primary sortas="c-libavutil">libavutil.so</primary>
|
---|
[28cd5ce] | 599 | </indexterm>
|
---|
| 600 | </listitem>
|
---|
| 601 | </varlistentry>
|
---|
| 602 |
|
---|
[874f1e88] | 603 | <varlistentry id="libpostproc">
|
---|
[4162bcd] | 604 | <term><filename class="libraryfile">libpostproc.so</filename></term>
|
---|
[28cd5ce] | 605 | <listitem>
|
---|
[faec3f7] | 606 | <para>
|
---|
| 607 | is the <application>FFmpeg</application> post processing library.
|
---|
| 608 | </para>
|
---|
[28cd5ce] | 609 | <indexterm zone="ffmpeg libpostproc">
|
---|
[9e5b78b] | 610 | <primary sortas="c-libpostproc">libpostproc.so</primary>
|
---|
[28cd5ce] | 611 | </indexterm>
|
---|
| 612 | </listitem>
|
---|
| 613 | </varlistentry>
|
---|
| 614 |
|
---|
[baf1e23] | 615 | <varlistentry id="libswresample">
|
---|
| 616 | <term><filename class="libraryfile">libswresample.so</filename></term>
|
---|
| 617 | <listitem>
|
---|
| 618 | <para>
|
---|
| 619 | is the <application>FFmpeg</application> audio rescaling library,
|
---|
| 620 | it contains functions for converting audio sample formats.
|
---|
| 621 | </para>
|
---|
| 622 | <indexterm zone="ffmpeg libswresample">
|
---|
| 623 | <primary sortas="c-libswresample">libswresample.so</primary>
|
---|
| 624 | </indexterm>
|
---|
| 625 | </listitem>
|
---|
| 626 | </varlistentry>
|
---|
| 627 |
|
---|
[28cd5ce] | 628 | <varlistentry id="libswscale">
|
---|
[4162bcd] | 629 | <term><filename class="libraryfile">libswscale.so</filename></term>
|
---|
[28cd5ce] | 630 | <listitem>
|
---|
[faec3f7] | 631 | <para>
|
---|
| 632 | is the <application>FFmpeg</application> image rescaling library.
|
---|
| 633 | </para>
|
---|
[28cd5ce] | 634 | <indexterm zone="ffmpeg libswscale">
|
---|
[9e5b78b] | 635 | <primary sortas="c-libswscale">libswscale.so</primary>
|
---|
[8a1e4f4] | 636 | </indexterm>
|
---|
| 637 | </listitem>
|
---|
| 638 | </varlistentry>
|
---|
[ffd1fcc] | 639 |
|
---|
[8a1e4f4] | 640 | </variablelist>
|
---|
[ffd1fcc] | 641 |
|
---|
[8a1e4f4] | 642 | </sect2>
|
---|
[ffd1fcc] | 643 |
|
---|
[49e5372] | 644 | </sect1>
|
---|