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