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