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