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