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