[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 |
|
---|
[faec3f7] | 7 | <!ENTITY ffmpeg-download-http
|
---|
[ffd1fcc] | 8 | "http://ffmpeg.org/releases/ffmpeg-&ffmpeg-version;.tar.bz2">
|
---|
[01062dd] | 9 | <!ENTITY ffmpeg-download-ftp " ">
|
---|
[dda3ff99] | 10 | <!ENTITY ffmpeg-md5sum "13a0feb74474f89052f6b8ba1bce46be">
|
---|
| 11 | <!ENTITY ffmpeg-size "6.0 MB">
|
---|
[a161de9] | 12 | <!ENTITY ffmpeg-buildsize "100 MB">
|
---|
[dda3ff99] | 13 | <!ENTITY ffmpeg-time "2.6 SBU">
|
---|
[01062dd] | 14 | ]>
|
---|
| 15 |
|
---|
[0b5a693] | 16 | <sect1 id="ffmpeg" xreflabel="FFmpeg-&ffmpeg-version;">
|
---|
[8a1e4f4] | 17 | <?dbhtml filename="ffmpeg.html"?>
|
---|
| 18 |
|
---|
| 19 | <sect1info>
|
---|
| 20 | <othername>$LastChangedBy$</othername>
|
---|
| 21 | <date>$Date$</date>
|
---|
| 22 | </sect1info>
|
---|
| 23 |
|
---|
| 24 | <title>FFmpeg-&ffmpeg-version;</title>
|
---|
| 25 |
|
---|
| 26 | <indexterm zone="ffmpeg">
|
---|
| 27 | <primary sortas="a-FFmpeg">FFmpeg</primary>
|
---|
| 28 | </indexterm>
|
---|
| 29 |
|
---|
| 30 | <sect2 role="package">
|
---|
| 31 | <title>Introduction to FFmpeg</title>
|
---|
| 32 |
|
---|
[faec3f7] | 33 | <para>
|
---|
| 34 | <application>FFmpeg</application> is a solution to record, convert and
|
---|
| 35 | stream audio and video. It is a very fast video and audio converter and it
|
---|
| 36 | can also acquire from a live audio/video source. Designed to be intuitive,
|
---|
| 37 | the command-line interface (<command>ffmpeg</command>) tries to figure out
|
---|
| 38 | all the parameters, when possible. <application>FFmpeg</application> can
|
---|
| 39 | also convert from any sample rate to any other, and resize video on the
|
---|
| 40 | fly with a high quality polyphase filter.
|
---|
[a161de9] | 41 | <application>FFmpeg</application> can use a Video4Linux compatible video
|
---|
[faec3f7] | 42 | source and any Open Sound System audio source.
|
---|
| 43 | </para>
|
---|
[9e5b78b] | 44 |
|
---|
[af74d659] | 45 | &lfs73_checked;
|
---|
[8a1e4f4] | 46 |
|
---|
| 47 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 48 | <itemizedlist spacing="compact">
|
---|
| 49 | <listitem>
|
---|
[ffd1fcc] | 50 | <para>
|
---|
| 51 | Download (HTTP): <ulink url="&ffmpeg-download-http;"/>
|
---|
| 52 | </para>
|
---|
[8a1e4f4] | 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
[ffd1fcc] | 55 | <para>
|
---|
| 56 | Download (FTP): <ulink url="&ffmpeg-download-ftp;"/>
|
---|
| 57 | </para>
|
---|
[8a1e4f4] | 58 | </listitem>
|
---|
| 59 | <listitem>
|
---|
[ffd1fcc] | 60 | <para>
|
---|
| 61 | Download MD5 sum: &ffmpeg-md5sum;
|
---|
| 62 | </para>
|
---|
[8a1e4f4] | 63 | </listitem>
|
---|
| 64 | <listitem>
|
---|
[ffd1fcc] | 65 | <para>
|
---|
| 66 | Download size: &ffmpeg-size;
|
---|
| 67 | </para>
|
---|
[8a1e4f4] | 68 | </listitem>
|
---|
| 69 | <listitem>
|
---|
[ffd1fcc] | 70 | <para>
|
---|
| 71 | Estimated disk space required: &ffmpeg-buildsize;
|
---|
| 72 | </para>
|
---|
[8a1e4f4] | 73 | </listitem>
|
---|
| 74 | <listitem>
|
---|
[ffd1fcc] | 75 | <para>
|
---|
| 76 | Estimated build time: &ffmpeg-time;
|
---|
| 77 | </para>
|
---|
[8a1e4f4] | 78 | </listitem>
|
---|
| 79 | </itemizedlist>
|
---|
| 80 |
|
---|
[f29d6ee] | 81 | <bridgehead renderas="sect3">FFmpeg Dependencies</bridgehead>
|
---|
[8a1e4f4] | 82 |
|
---|
[a161de9] | 83 | <!-- All dependencies are listed in the order as they are displayed in
|
---|
| 84 | the configure script. This makes it easy for readers (and editors)
|
---|
| 85 | to match up the dependency list with what is required or desired. -->
|
---|
| 86 |
|
---|
[28cd5ce] | 87 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
[aaa3ccd] | 88 | <para role="recommended">
|
---|
[dda3ff99] | 89 | <xref linkend="alsa-lib"/>,
|
---|
[457568e] | 90 | <xref linkend="faac"/>,
|
---|
| 91 | <xref linkend="freetype2"/>,
|
---|
[efcf979] | 92 | <xref linkend="lame"/>,
|
---|
[a161de9] | 93 | <xref linkend="openjpeg"/>,
|
---|
| 94 | <xref linkend="speex"/>,
|
---|
[baf1e23] | 95 | <xref linkend="libtheora"/>,
|
---|
[efcf979] | 96 | <xref linkend="libvorbis"/>,
|
---|
[baf1e23] | 97 | <xref linkend="libvpx"/>,
|
---|
[a161de9] | 98 | <xref linkend="xvid"/>,
|
---|
[457568e] | 99 | <xref linkend="openssl"/>,
|
---|
| 100 | <xref linkend="sdl"/>,
|
---|
[aaa3ccd] | 101 | <xref linkend="xorg7-lib"/>,
|
---|
[457568e] | 102 | <xref linkend="yasm"/>
|
---|
| 103 | </para>
|
---|
| 104 |
|
---|
| 105 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 106 | <para role="optional">
|
---|
[a161de9] | 107 | <xref linkend="fontconfig"/>,
|
---|
[457568e] | 108 | <xref linkend="gnutls"/>,
|
---|
[dda3ff99] | 109 | <xref linkend="pulseaudio"/>,
|
---|
| 110 | <ulink url="http://www.piksel.org/frei0r">frei0r</ulink>,
|
---|
[4162bcd] | 111 | <ulink url="http://tipok.org.ua/node/17">libaacplus</ulink>,
|
---|
| 112 | <ulink url="http://code.google.com/p/libass/">libass</ulink>,
|
---|
[a161de9] | 113 | <ulink url="http://www.videolan.org/developers/libbluray.html">libbluray</ulink>,
|
---|
| 114 | <ulink url="http://caca.zoy.org/">libcaca</ulink>,
|
---|
[4162bcd] | 115 | <ulink url="http://www.celt-codec.org/">libcelt</ulink>,
|
---|
| 116 | <ulink url="http://ftp.gnu.org/pub/gnu/libcdio/">libcdio</ulink>,
|
---|
[a161de9] | 117 | <ulink url="http://sourceforge.net/projects/libdc1394">libdc1394</ulink>,
|
---|
[755bb92] | 118 | <ulink url="http://sourceforge.net/projects/opencore-amr/">fdk-aac</ulink>,
|
---|
[a161de9] | 119 | <ulink url="http://www.speech.cs.cmu.edu/flite/">Flite</ulink>,
|
---|
[755bb92] | 120 | <ulink url="http://www.quut.com/gsm/">GSM</ulink>,
|
---|
[a161de9] | 121 | <ulink url="https://ieee1394.wiki.kernel.org/index.php/Libraries">libiec61883</ulink>,
|
---|
| 122 | <ulink url="https://github.com/dekkers/libilbc">libilbc</ulink>,
|
---|
| 123 | <ulink url="http://sourceforge.net/projects/modplug-xmms/">libmodplug</ulink>,
|
---|
| 124 | <ulink url="http://svn.mplayerhq.hu/nut/src/trunk/">libnut</ulink> (SVN checkout),
|
---|
| 125 | <ulink url="http://sourceforge.net/projects/opencore-amr">OpenCore AMR</ulink>,
|
---|
| 126 | <ulink url="http://opencv.org/">OpenCV</ulink>,
|
---|
| 127 | <ulink url="http://www.opus-codec.org/">Opus</ulink>,
|
---|
| 128 | <ulink url="http://sourceforge.net/projects/librtmp">librtmp</ulink>,
|
---|
[d6da5da] | 129 | <ulink url="http://diracvideo.org/">Schroedinger</ulink>,
|
---|
[a161de9] | 130 | <ulink url="http://www.twolame.org/">TwoLAME</ulink>,
|
---|
| 131 | <ulink url="http://linuxtv.org/downloads/v4l-utils/">Video4Linux</ulink>,
|
---|
| 132 | <ulink url="http://sourceforge.net/projects/opencore-amr/files/vo-aacenc/">vo-aaenc</ulink>,
|
---|
| 133 | <ulink url="http://sourceforge.net/projects/opencore-amr/files/vo-amrwbenc/">vo-amrwbenc</ulink>,
|
---|
| 134 | <ulink url="http://www.videolan.org/developers/x264.html">x264</ulink>,
|
---|
| 135 | <ulink url="http://xavs.sourceforge.net/">libxavs</ulink> (SVN checkout),
|
---|
[dda3ff99] | 136 | <ulink url="http://kcat.strangesoft.net/openal-releases/">OpenAL</ulink>,
|
---|
| 137 | <ulink url="http://www.khronos.org/opencl/">OpenCL</ulink>, and
|
---|
[ffd1fcc] | 138 | <ulink url="http://www.nongnu.org/texi2html">texi2html</ulink> (to build HTML documentation)
|
---|
| 139 | </para>
|
---|
[8a1e4f4] | 140 |
|
---|
[aaa3ccd] | 141 | <bridgehead renderas="sect4">Optional (For Hardware Video Decoding)</bridgehead>
|
---|
| 142 | <para role="optional">
|
---|
[a161de9] | 143 | <ulink url="http://www.freedesktop.org/wiki/Software/vaapi">VA-API (libva)</ulink>
|
---|
[aaa3ccd] | 144 | with corresponding drivers, including:
|
---|
[d02331f] | 145 | <ulink url="http://www.freedesktop.org/software/vaapi/releases/libva-intel-driver/">
|
---|
[a161de9] | 146 | Intel Driver (i965 chipsets only)</ulink>,
|
---|
| 147 | <ulink url="http://www.splitted-desktop.com/static/libva/xvba-video/">
|
---|
[d02331f] | 148 | XVBA Driver for AMD Radeon Cards</ulink>, and
|
---|
| 149 | <ulink url="http://www.freedesktop.org/software/vaapi/releases/libva-vdpau-driver/">
|
---|
| 150 | VDPAU Driver for VDPAU capable Cards</ulink>
|
---|
[a161de9] | 151 | (requires <ulink url="http://cgit.freedesktop.org/~aplattner/libvdpau/">
|
---|
| 152 | libvdpau</ulink>)
|
---|
[aaa3ccd] | 153 | </para>
|
---|
| 154 |
|
---|
[faec3f7] | 155 | <para condition="html" role="usernotes">
|
---|
| 156 | User Notes: <ulink url="&blfs-wiki;/ffmpeg"/>
|
---|
| 157 | </para>
|
---|
[8a1e4f4] | 158 | </sect2>
|
---|
| 159 |
|
---|
| 160 | <sect2 role="installation">
|
---|
| 161 | <title>Installation of FFmpeg</title>
|
---|
| 162 |
|
---|
[a161de9] | 163 | <para>
|
---|
| 164 | If <application>Xorg</application> is installed in a prefix other
|
---|
| 165 | than <filename class='directory'>/usr</filename>, the build will fail. Fix
|
---|
| 166 | this by issuing the following command:
|
---|
| 167 | </para>
|
---|
[457568e] | 168 |
|
---|
| 169 | <screen><userinput>export LIBRARY_PATH=$XORG_PREFIX/lib</userinput></screen>
|
---|
| 170 |
|
---|
[faec3f7] | 171 | <para>
|
---|
| 172 | Install <application>FFmpeg</application> by running the following
|
---|
| 173 | commands:
|
---|
| 174 | </para>
|
---|
[8a1e4f4] | 175 |
|
---|
[a161de9] | 176 | <!-- The confiure optinos are listed in the order as they are displayed in
|
---|
| 177 | the configure script. This makes it easy for readers (and editors)
|
---|
| 178 | to match up the options with what is required or desired. -->
|
---|
| 179 |
|
---|
| 180 | <screen><userinput>sed -i 's/-lflite"/-lflite -lasound"/' configure &&
|
---|
| 181 | ./configure --prefix=/usr \
|
---|
[457568e] | 182 | --enable-gpl \
|
---|
| 183 | --enable-version3 \
|
---|
| 184 | --enable-nonfree \
|
---|
[a161de9] | 185 | --disable-static \
|
---|
| 186 | --enable-shared \
|
---|
| 187 | --enable-x11grab \
|
---|
[457568e] | 188 | --enable-libfaac \
|
---|
| 189 | --enable-libfreetype \
|
---|
| 190 | --enable-libmp3lame \
|
---|
| 191 | --enable-libopenjpeg \
|
---|
| 192 | --enable-libspeex \
|
---|
| 193 | --enable-libtheora \
|
---|
| 194 | --enable-libvorbis \
|
---|
| 195 | --enable-libvpx \
|
---|
| 196 | --enable-libxvid \
|
---|
[a161de9] | 197 | --enable-openssl \
|
---|
| 198 | --disable-debug &&
|
---|
| 199 | make &&
|
---|
| 200 | gcc tools/qt-faststart.c -o tools/qt-faststart &&
|
---|
| 201 | unset LIBRARY_PATH</userinput></screen>
|
---|
[28cd5ce] | 202 |
|
---|
[a161de9] | 203 | <para>
|
---|
| 204 | HTML documentation was built in the previous step if
|
---|
| 205 | <ulink url="http://www.nongnu.org/texi2html">texi2html</ulink> is
|
---|
| 206 | installed. If the HTML was built (check for any
|
---|
| 207 | <filename class="extension">.html</filename> files in the
|
---|
| 208 | <filename class="directory">doc</filename> directory) and you have
|
---|
| 209 | <xref linkend="texlive"/> installed and wish to build PDF and
|
---|
| 210 | Postscript versions of the documentation, issue the following commands:
|
---|
| 211 | </para>
|
---|
[fcd201bd] | 212 |
|
---|
[a161de9] | 213 | <screen><userinput>pushd doc &&
|
---|
| 214 | for DOCNAME in `basename -s .html *.html`
|
---|
| 215 | do
|
---|
| 216 | texi2pdf -b $DOCNAME.texi &&
|
---|
| 217 | texi2dvi -b $DOCNAME.texi &&
|
---|
| 218 | dvips -o $DOCNAME.ps \
|
---|
| 219 | $DOCNAME.dvi &&
|
---|
| 220 | done &&
|
---|
| 221 | popd &&
|
---|
| 222 | unset DOCNAME</userinput></screen>
|
---|
[c08bd877] | 223 |
|
---|
[faec3f7] | 224 | <para>
|
---|
| 225 | If you have <xref linkend="doxygen"/> installed and wish to create the API
|
---|
[a161de9] | 226 | documentation (takes about 300 MB of space), issue the command
|
---|
| 227 | <command>doxygen doc/Doxyfile</command>.
|
---|
[faec3f7] | 228 | </para>
|
---|
[8a1e4f4] | 229 |
|
---|
[a161de9] | 230 | <para>
|
---|
| 231 | To properly test the installation you must have <xref linkend="rsync"/>
|
---|
| 232 | installed and follow the instructions for the
|
---|
| 233 | <ulink url="http://ffmpeg.org/fate.html">
|
---|
| 234 | FFmpeg Automated Testing Environment</ulink>. Note that the BLFS team has
|
---|
| 235 | not performed this regression testing.
|
---|
| 236 | </para>
|
---|
[8a1e4f4] | 237 |
|
---|
[a161de9] | 238 | <para>
|
---|
| 239 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 240 | </para>
|
---|
[457568e] | 241 |
|
---|
[a161de9] | 242 | <screen role="root"><userinput>make install &&
|
---|
| 243 | install -v -m755 tools/qt-faststart /usr/bin &&
|
---|
| 244 | install -v -m755 -d /usr/share/doc/ffmpeg-&ffmpeg-version; &&
|
---|
| 245 | install -v -m644 doc/*.txt \
|
---|
| 246 | /usr/share/doc/ffmpeg-&ffmpeg-version;</userinput></screen>
|
---|
[9e5b78b] | 247 |
|
---|
[faec3f7] | 248 | <para>
|
---|
[a161de9] | 249 | If HTML documentation was built, issue the following command to install it:
|
---|
[faec3f7] | 250 | </para>
|
---|
[fd7e0ed6] | 251 |
|
---|
[a161de9] | 252 | <screen role="root"><userinput>install -v -m644 doc/*.html \
|
---|
| 253 | /usr/share/doc/ffmpeg-&ffmpeg-version;</userinput></screen>
|
---|
[c08bd877] | 254 |
|
---|
[faec3f7] | 255 | <para>
|
---|
[2216c969] | 256 | If you used <command>doxygen</command> to create the API documentation,
|
---|
[a161de9] | 257 | install it (another 300 MB of space) by issuing the following commands
|
---|
| 258 | as the <systemitem class="username">root</systemitem> user:
|
---|
[faec3f7] | 259 | </para>
|
---|
[c08bd877] | 260 |
|
---|
[a161de9] | 261 | <screen role="root"><userinput>install -v -m755 -d /usr/share/doc/ffmpeg-&ffmpeg-version;/api &&
|
---|
| 262 | install -v -m644 doc/doxy/html/* \
|
---|
| 263 | /usr/share/doc/ffmpeg-&ffmpeg-version;/api</userinput></screen>
|
---|
[ffd1fcc] | 264 |
|
---|
[8a1e4f4] | 265 | </sect2>
|
---|
| 266 |
|
---|
| 267 | <sect2 role="commands">
|
---|
| 268 | <title>Command Explanations</title>
|
---|
| 269 |
|
---|
[faec3f7] | 270 | <para>
|
---|
[a161de9] | 271 | <command>sed -i ...</command>: This command adds the
|
---|
| 272 | <application>ALSA</application> library to the
|
---|
| 273 | <application>Flite</application> <envar>LDFLAGS</envar> variable and
|
---|
| 274 | enables the discovery of <application>Flite</application>.
|
---|
| 275 | </para>
|
---|
| 276 |
|
---|
| 277 | <para>
|
---|
| 278 | <parameter>--enable-gpl</parameter>: Enables the use of GPL code and
|
---|
[baf1e23] | 279 | permits support for postprocessing, swscale and many other features.
|
---|
[faec3f7] | 280 | </para>
|
---|
| 281 |
|
---|
| 282 | <para>
|
---|
[a161de9] | 283 | <parameter>--enable-version3</parameter>: Enables the use of (L)GPL
|
---|
| 284 | version 3 code.
|
---|
| 285 | </para>
|
---|
| 286 |
|
---|
| 287 | <para>
|
---|
| 288 | <parameter>--enable-nonfree</parameter>: Enables the use of nonfree
|
---|
| 289 | code. Note that the resulting libraries and binaries will be
|
---|
| 290 | unredistributable.
|
---|
[faec3f7] | 291 | </para>
|
---|
[8a1e4f4] | 292 |
|
---|
[baf1e23] | 293 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 294 | href="../../xincludes/static-libraries.xml"/>
|
---|
| 295 |
|
---|
[a161de9] | 296 | <para>
|
---|
| 297 | <parameter>--enable-shared</parameter>: Enables building shared libraries,
|
---|
| 298 | otherwise only static libraries are built and installed.
|
---|
| 299 | </para>
|
---|
| 300 |
|
---|
| 301 | <para>
|
---|
| 302 | <parameter>--enable-x11grab</parameter>: Enables X11 grabbing.
|
---|
| 303 | </para>
|
---|
| 304 |
|
---|
| 305 | <para>
|
---|
| 306 | <parameter>--enable-libfaac</parameter>: Enables AAC encoding via
|
---|
| 307 | <filename class="libraryfile">libfaac</filename>.
|
---|
| 308 | </para>
|
---|
| 309 |
|
---|
| 310 | <para>
|
---|
| 311 | <parameter>--enable-libfreetype</parameter>: Enables the use of
|
---|
| 312 | <filename class="libraryfile">libfreetype</filename>.
|
---|
| 313 | </para>
|
---|
| 314 |
|
---|
| 315 | <para>
|
---|
| 316 | <parameter>--enable-libmp3lame</parameter>: Enables MP3 encoding via
|
---|
| 317 | <filename class="libraryfile">libmp3lame</filename>.
|
---|
| 318 | </para>
|
---|
| 319 |
|
---|
| 320 | <para>
|
---|
| 321 | <parameter>--enable-libopenjpeg</parameter>: Enables JPEG 2000 de/encoding
|
---|
| 322 | via <filename class="libraryfile">libopenjpeg</filename>.
|
---|
| 323 | </para>
|
---|
| 324 |
|
---|
| 325 | <para>
|
---|
| 326 | <parameter>--enable-libspeex</parameter>: Enables
|
---|
| 327 | <application>Speex</application> de/encoding
|
---|
| 328 | via <filename class="libraryfile">libspeex</filename>.
|
---|
| 329 | </para>
|
---|
| 330 |
|
---|
| 331 | <para>
|
---|
| 332 | <parameter>--enable-libtheora</parameter>: Enables
|
---|
| 333 | <application>Theora</application> encoding
|
---|
| 334 | via <filename class="libraryfile">libtheora</filename>.
|
---|
| 335 | </para>
|
---|
| 336 |
|
---|
| 337 | <para>
|
---|
| 338 | <parameter>--enable-libvorbis</parameter>: Enables
|
---|
| 339 | <application>Vorbis</application> de/encoding
|
---|
| 340 | via <filename class="libraryfile">libvorbis</filename>.
|
---|
| 341 | </para>
|
---|
| 342 |
|
---|
| 343 | <para>
|
---|
| 344 | <parameter>--enable-libvpx</parameter>: Enables VP8 de/encoding
|
---|
| 345 | via <filename class="libraryfile">libvpx</filename>.
|
---|
| 346 | </para>
|
---|
| 347 |
|
---|
| 348 | <para>
|
---|
| 349 | <parameter>--enable-libxvid</parameter>: Enables
|
---|
| 350 | <application>Xvid</application> encoding
|
---|
| 351 | via <filename class="libraryfile">libxvidcore</filename>.
|
---|
| 352 | </para>
|
---|
| 353 |
|
---|
| 354 | <para>
|
---|
| 355 | <parameter>--enable-openssl</parameter>: Enables
|
---|
| 356 | <application>OpenSSL</application> cryptography.
|
---|
| 357 | </para>
|
---|
| 358 |
|
---|
| 359 | <para>
|
---|
| 360 | <parameter>--disable-debug</parameter>: Disables building debugging
|
---|
| 361 | symbols into the programs and libraries.
|
---|
| 362 | </para>
|
---|
| 363 |
|
---|
[dda3ff99] | 364 | <para>
|
---|
| 365 | <command>gcc tools/qt-faststart.c -o tools/qt-faststart</command>:
|
---|
| 366 | This builds the <command>qt-faststart</command> program which can
|
---|
| 367 | modify QuickTime formatted movies
|
---|
| 368 | (<filename class="extension">.mov</filename> or
|
---|
| 369 | <filename class="extension">.mp4</filename>) so that the header information
|
---|
| 370 | is located at the beginning of the file instead of the end. This allows
|
---|
| 371 | the movie file to begin playing before the entire file has been downloaded.
|
---|
| 372 | </para>
|
---|
| 373 |
|
---|
[faec3f7] | 374 | <para>
|
---|
| 375 | <option>--enable-<replaceable><codec></replaceable></option>:
|
---|
| 376 | <application>FFmpeg</application> comes with code to compile decoders for
|
---|
| 377 | almost every codec you could think of. The only reason to enable a
|
---|
| 378 | specific codec (and make <application>FFmpeg</application> link to the
|
---|
[a161de9] | 379 | prerequisite shared library installed on your system) is to make
|
---|
| 380 | <application>FFmpeg</application> compile an <emphasis>encoder</emphasis>
|
---|
| 381 | for that codec. <application>FFmpeg</application> provides an excellent
|
---|
| 382 | collection of decoders. If you just want to use
|
---|
| 383 | <application>FFmpeg</application> to watch video or listen to music (via
|
---|
| 384 | other applications such as <application>Gstreamer</application> or
|
---|
| 385 | <application>Xine</application>) then you will not benefit from linking
|
---|
| 386 | <application>FFmpeg</application> to other codec libraries.
|
---|
[2216c969] | 387 | </para>
|
---|
| 388 |
|
---|
[8a1e4f4] | 389 | </sect2>
|
---|
| 390 |
|
---|
| 391 | <sect2 role="configuration">
|
---|
| 392 | <title>Configuring FFmpeg</title>
|
---|
| 393 |
|
---|
| 394 | <sect3 id="ffmpeg-config">
|
---|
| 395 | <title>Config Files</title>
|
---|
| 396 |
|
---|
[755bb92] | 397 | <para>
|
---|
| 398 | <filename>/etc/ffserver.conf</filename> and
|
---|
| 399 | <filename>~/.ffmpeg/ffserver-config</filename>
|
---|
| 400 | </para>
|
---|
[8a1e4f4] | 401 |
|
---|
| 402 | <indexterm zone="ffmpeg ffmpeg-config">
|
---|
[4162bcd] | 403 | <primary
|
---|
| 404 | sortas="e-AA.ffmpeg-ffserver-config">~/.ffmpeg/ffserver-config</primary>
|
---|
[8a1e4f4] | 405 | </indexterm>
|
---|
| 406 |
|
---|
| 407 | <indexterm zone="ffmpeg ffmpeg-config">
|
---|
| 408 | <primary sortas="e-etc-ffserver.conf">/etc/ffserver.conf</primary>
|
---|
| 409 | </indexterm>
|
---|
| 410 |
|
---|
[faec3f7] | 411 | <para>
|
---|
| 412 | You'll find a sample <command>ffserver</command> configuration file at
|
---|
| 413 | <filename>doc/ffserver.conf</filename> in the source tree.
|
---|
| 414 | </para>
|
---|
[ffd1fcc] | 415 |
|
---|
[8a1e4f4] | 416 | </sect3>
|
---|
[ffd1fcc] | 417 |
|
---|
[8a1e4f4] | 418 | </sect2>
|
---|
| 419 |
|
---|
| 420 | <sect2 role="content">
|
---|
| 421 | <title>Contents</title>
|
---|
| 422 |
|
---|
| 423 | <segmentedlist>
|
---|
| 424 | <segtitle>Installed Programs</segtitle>
|
---|
| 425 | <segtitle>Installed Libraries</segtitle>
|
---|
| 426 | <segtitle>Installed Directories</segtitle>
|
---|
| 427 |
|
---|
| 428 | <seglistitem>
|
---|
[faec3f7] | 429 | <seg>
|
---|
[ffd1fcc] | 430 | ffmpeg, ffplay, ffprobe, ffserver and
|
---|
[faec3f7] | 431 | qt-faststart
|
---|
| 432 | </seg>
|
---|
| 433 | <seg>
|
---|
[ffd1fcc] | 434 | libavcodec.so, libavdevice.so, libavfilter.so,
|
---|
| 435 | libavformat.so, libavutil.so, libpostproc.so,
|
---|
| 436 | libswresample and libswscale.so
|
---|
[faec3f7] | 437 | </seg>
|
---|
| 438 | <seg>
|
---|
| 439 | /usr/include/libavcodec,
|
---|
[baf1e23] | 440 | /usr/include/libavdevice,
|
---|
[faec3f7] | 441 | /usr/include/libavfilter,
|
---|
| 442 | /usr/include/libavformat,
|
---|
| 443 | /usr/include/libavutil,
|
---|
[baf1e23] | 444 | /usr/include/libpostproc,
|
---|
| 445 | /usr/include/libswresample
|
---|
[faec3f7] | 446 | /usr/include/libswscale,
|
---|
| 447 | /usr/share/ffmpeg and
|
---|
| 448 | /usr/share/doc/ffmpeg-&ffmpeg-version;
|
---|
| 449 | </seg>
|
---|
[8a1e4f4] | 450 | </seglistitem>
|
---|
| 451 | </segmentedlist>
|
---|
| 452 |
|
---|
| 453 | <variablelist>
|
---|
| 454 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 455 | <?dbfo list-presentation="list"?>
|
---|
| 456 | <?dbhtml list-presentation="table"?>
|
---|
| 457 |
|
---|
| 458 | <varlistentry id="ffmpeg-prog">
|
---|
| 459 | <term><command>ffmpeg</command></term>
|
---|
| 460 | <listitem>
|
---|
[faec3f7] | 461 | <para>
|
---|
| 462 | is a command-line tool to convert video files, network streams and
|
---|
| 463 | input from a TV card to several video formats.
|
---|
| 464 | </para>
|
---|
[8a1e4f4] | 465 | <indexterm zone="ffmpeg ffmpeg-prog">
|
---|
| 466 | <primary sortas="b-ffmpeg">ffmpeg</primary>
|
---|
| 467 | </indexterm>
|
---|
| 468 | </listitem>
|
---|
| 469 | </varlistentry>
|
---|
| 470 |
|
---|
| 471 | <varlistentry id="ffplay">
|
---|
| 472 | <term><command>ffplay</command></term>
|
---|
| 473 | <listitem>
|
---|
[faec3f7] | 474 | <para>
|
---|
| 475 | is a very simple and portable media player using the
|
---|
| 476 | <filename>ffmpeg</filename> libraries and the SDL library.
|
---|
| 477 | </para>
|
---|
[8a1e4f4] | 478 | <indexterm zone="ffmpeg ffplay">
|
---|
| 479 | <primary sortas="b-ffplay">ffplay</primary>
|
---|
| 480 | </indexterm>
|
---|
| 481 | </listitem>
|
---|
| 482 | </varlistentry>
|
---|
| 483 |
|
---|
[f60198bf] | 484 | <varlistentry id="ffprobe">
|
---|
| 485 | <term><command>ffprobe</command></term>
|
---|
| 486 | <listitem>
|
---|
[faec3f7] | 487 | <para>
|
---|
| 488 | gathers information from multimedia streams and prints it in a human
|
---|
| 489 | and machine-readable fashion.
|
---|
| 490 | </para>
|
---|
[f60198bf] | 491 | <indexterm zone="ffmpeg ffprobe">
|
---|
| 492 | <primary sortas="b-ffprobe">ffprobe</primary>
|
---|
| 493 | </indexterm>
|
---|
| 494 | </listitem>
|
---|
| 495 | </varlistentry>
|
---|
| 496 |
|
---|
[8a1e4f4] | 497 | <varlistentry id="ffserver">
|
---|
| 498 | <term><command>ffserver</command></term>
|
---|
| 499 | <listitem>
|
---|
[faec3f7] | 500 | <para>
|
---|
| 501 | is a streaming server for everything that <command>ffmpeg</command>
|
---|
| 502 | could use as input (files, streams, TV card input, webcam, etc).
|
---|
| 503 | </para>
|
---|
[8a1e4f4] | 504 | <indexterm zone="ffmpeg ffserver">
|
---|
| 505 | <primary sortas="b-ffserver">ffserver</primary>
|
---|
| 506 | </indexterm>
|
---|
| 507 | </listitem>
|
---|
| 508 | </varlistentry>
|
---|
| 509 |
|
---|
[c08bd877] | 510 | <varlistentry id="qt-faststart">
|
---|
| 511 | <term><command>qt-faststart</command></term>
|
---|
| 512 | <listitem>
|
---|
[faec3f7] | 513 | <para>
|
---|
| 514 | moves the index file to the front of quicktime (mov/mp4) videos.
|
---|
| 515 | </para>
|
---|
[c08bd877] | 516 | <indexterm zone="ffmpeg qt-faststart">
|
---|
| 517 | <primary sortas="b-qt-faststart">qt-faststart</primary>
|
---|
| 518 | </indexterm>
|
---|
| 519 | </listitem>
|
---|
| 520 | </varlistentry>
|
---|
| 521 |
|
---|
[8a1e4f4] | 522 | <varlistentry id="libavcodec">
|
---|
[4162bcd] | 523 | <term><filename class="libraryfile">libavcodec.so</filename></term>
|
---|
[8a1e4f4] | 524 | <listitem>
|
---|
[faec3f7] | 525 | <para>
|
---|
| 526 | is a library containing the <application>FFmpeg</application> codecs
|
---|
| 527 | (both encoding and decoding).
|
---|
| 528 | </para>
|
---|
[8a1e4f4] | 529 | <indexterm zone="ffmpeg libavcodec">
|
---|
[9e5b78b] | 530 | <primary sortas="c-libavcodec">libavcodec.so</primary>
|
---|
[28cd5ce] | 531 | </indexterm>
|
---|
| 532 | </listitem>
|
---|
| 533 | </varlistentry>
|
---|
| 534 |
|
---|
| 535 | <varlistentry id="libavdevice">
|
---|
[4162bcd] | 536 | <term><filename class="libraryfile">libavdevice.so</filename></term>
|
---|
[28cd5ce] | 537 | <listitem>
|
---|
[faec3f7] | 538 | <para>
|
---|
| 539 | is the <application>FFmpeg</application> device handling library.
|
---|
| 540 | </para>
|
---|
[28cd5ce] | 541 | <indexterm zone="ffmpeg libavdevice">
|
---|
[9e5b78b] | 542 | <primary sortas="c-libavdevice">libavdevice.so</primary>
|
---|
| 543 | </indexterm>
|
---|
| 544 | </listitem>
|
---|
| 545 | </varlistentry>
|
---|
| 546 |
|
---|
| 547 | <varlistentry id="libavfilter">
|
---|
[4162bcd] | 548 | <term><filename class="libraryfile">libavfilter.so</filename></term>
|
---|
[9e5b78b] | 549 | <listitem>
|
---|
[faec3f7] | 550 | <para>
|
---|
| 551 | is a library of filters that can alter video or audio between the
|
---|
| 552 | decoder and the encoder (or output).
|
---|
| 553 | </para>
|
---|
[9e5b78b] | 554 | <indexterm zone="ffmpeg libavfilter">
|
---|
| 555 | <primary sortas="c-libavfilter">libavfilter.so</primary>
|
---|
[8a1e4f4] | 556 | </indexterm>
|
---|
| 557 | </listitem>
|
---|
| 558 | </varlistentry>
|
---|
| 559 |
|
---|
| 560 | <varlistentry id="libavformat">
|
---|
[4162bcd] | 561 | <term><filename class="libraryfile">libavformat.so</filename></term>
|
---|
[8a1e4f4] | 562 | <listitem>
|
---|
[faec3f7] | 563 | <para>
|
---|
| 564 | is a library containing the file formats handling (mux and demux
|
---|
| 565 | code for several formats) used by <command>ffplay</command> as well
|
---|
| 566 | as allowing the generation of audio or video streams.
|
---|
| 567 | </para>
|
---|
[8a1e4f4] | 568 | <indexterm zone="ffmpeg libavformat">
|
---|
[9e5b78b] | 569 | <primary sortas="c-libavformat">libavformat.so</primary>
|
---|
[28cd5ce] | 570 | </indexterm>
|
---|
| 571 | </listitem>
|
---|
| 572 | </varlistentry>
|
---|
| 573 |
|
---|
| 574 | <varlistentry id="libavutil">
|
---|
[4162bcd] | 575 | <term><filename class="libraryfile">libavutil.so</filename></term>
|
---|
[28cd5ce] | 576 | <listitem>
|
---|
[ffd1fcc] | 577 | <para>
|
---|
| 578 | is the <application>FFmpeg</application> utility library.
|
---|
| 579 | </para>
|
---|
[28cd5ce] | 580 | <indexterm zone="ffmpeg libavutil">
|
---|
[9e5b78b] | 581 | <primary sortas="c-libavutil">libavutil.so</primary>
|
---|
[28cd5ce] | 582 | </indexterm>
|
---|
| 583 | </listitem>
|
---|
| 584 | </varlistentry>
|
---|
| 585 |
|
---|
[874f1e88] | 586 | <varlistentry id="libpostproc">
|
---|
[4162bcd] | 587 | <term><filename class="libraryfile">libpostproc.so</filename></term>
|
---|
[28cd5ce] | 588 | <listitem>
|
---|
[faec3f7] | 589 | <para>
|
---|
| 590 | is the <application>FFmpeg</application> post processing library.
|
---|
| 591 | </para>
|
---|
[28cd5ce] | 592 | <indexterm zone="ffmpeg libpostproc">
|
---|
[9e5b78b] | 593 | <primary sortas="c-libpostproc">libpostproc.so</primary>
|
---|
[28cd5ce] | 594 | </indexterm>
|
---|
| 595 | </listitem>
|
---|
| 596 | </varlistentry>
|
---|
| 597 |
|
---|
[baf1e23] | 598 | <varlistentry id="libswresample">
|
---|
| 599 | <term><filename class="libraryfile">libswresample.so</filename></term>
|
---|
| 600 | <listitem>
|
---|
| 601 | <para>
|
---|
| 602 | is the <application>FFmpeg</application> audio rescaling library,
|
---|
| 603 | it contains functions for converting audio sample formats.
|
---|
| 604 | </para>
|
---|
| 605 | <indexterm zone="ffmpeg libswresample">
|
---|
| 606 | <primary sortas="c-libswresample">libswresample.so</primary>
|
---|
| 607 | </indexterm>
|
---|
| 608 | </listitem>
|
---|
| 609 | </varlistentry>
|
---|
| 610 |
|
---|
[28cd5ce] | 611 | <varlistentry id="libswscale">
|
---|
[4162bcd] | 612 | <term><filename class="libraryfile">libswscale.so</filename></term>
|
---|
[28cd5ce] | 613 | <listitem>
|
---|
[faec3f7] | 614 | <para>
|
---|
| 615 | is the <application>FFmpeg</application> image rescaling library.
|
---|
| 616 | </para>
|
---|
[28cd5ce] | 617 | <indexterm zone="ffmpeg libswscale">
|
---|
[9e5b78b] | 618 | <primary sortas="c-libswscale">libswscale.so</primary>
|
---|
[8a1e4f4] | 619 | </indexterm>
|
---|
| 620 | </listitem>
|
---|
| 621 | </varlistentry>
|
---|
[ffd1fcc] | 622 |
|
---|
[8a1e4f4] | 623 | </variablelist>
|
---|
[ffd1fcc] | 624 |
|
---|
[8a1e4f4] | 625 | </sect2>
|
---|
[ffd1fcc] | 626 |
|
---|
[49e5372] | 627 | </sect1>
|
---|