[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 " ">
|
---|
[78ff3a8] | 9 | <!ENTITY ffmpeg-md5sum "c36caa8d29b3677dcb7bd8c546890c9d">
|
---|
| 10 | <!ENTITY ffmpeg-size "7.1 MB">
|
---|
| 11 | <!ENTITY ffmpeg-buildsize "130 MB (additional 870 MB for docs and 1903 MB to run the FATE tests)">
|
---|
| 12 | <!ENTITY ffmpeg-time "3.5 SBU (additional 0.9 SBU for docs and 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>,
|
---|
[78ff3a8] | 142 | <ulink url="http://xavs.sourceforge.net/">libxavs</ulink> (SVN checkout),
|
---|
| 143 | <ulink url="http://kcat.strangesoft.net/openal-releases/">OpenAL</ulink>, and
|
---|
| 144 | <ulink url="http://www.videolan.org/developers/x265.html">x265 (H.265/MPEG-H HEVC)</ulink>
|
---|
[ffd1fcc] | 145 | </para>
|
---|
[8a1e4f4] | 146 |
|
---|
[faec3f7] | 147 | <para condition="html" role="usernotes">
|
---|
| 148 | User Notes: <ulink url="&blfs-wiki;/ffmpeg"/>
|
---|
| 149 | </para>
|
---|
[8a1e4f4] | 150 | </sect2>
|
---|
| 151 |
|
---|
| 152 | <sect2 role="installation">
|
---|
| 153 | <title>Installation of FFmpeg</title>
|
---|
| 154 |
|
---|
[faec3f7] | 155 | <para>
|
---|
| 156 | Install <application>FFmpeg</application> by running the following
|
---|
| 157 | commands:
|
---|
| 158 | </para>
|
---|
[8a1e4f4] | 159 |
|
---|
[5a2fd537] | 160 | <screen><userinput>sed -i 's/-lflite"/-lflite -lasound"/' configure &&
|
---|
[a161de9] | 161 | ./configure --prefix=/usr \
|
---|
[457568e] | 162 | --enable-gpl \
|
---|
| 163 | --enable-version3 \
|
---|
| 164 | --enable-nonfree \
|
---|
[a161de9] | 165 | --disable-static \
|
---|
| 166 | --enable-shared \
|
---|
[89d37eb8] | 167 | --disable-debug \
|
---|
| 168 | --enable-libass \
|
---|
| 169 | --enable-libfdk-aac \
|
---|
[457568e] | 170 | --enable-libmp3lame \
|
---|
| 171 | --enable-libtheora \
|
---|
| 172 | --enable-libvorbis \
|
---|
| 173 | --enable-libvpx \
|
---|
[89d37eb8] | 174 | --enable-libx264 \
|
---|
[78ff3a8] | 175 | --enable-x11grab \
|
---|
| 176 | --docdir=/usr/share/doc/ffmpeg-&ffmpeg-version; &&
|
---|
[a161de9] | 177 | make &&
|
---|
[0ee2aa3] | 178 | gcc tools/qt-faststart.c -o tools/qt-faststart</userinput></screen>
|
---|
[28cd5ce] | 179 |
|
---|
[a161de9] | 180 | <para>
|
---|
[78ff3a8] | 181 | HTML documentation was built in the previous step. If you have
|
---|
[a161de9] | 182 | <xref linkend="texlive"/> installed and wish to build PDF and
|
---|
| 183 | Postscript versions of the documentation, issue the following commands:
|
---|
| 184 | </para>
|
---|
[fcd201bd] | 185 |
|
---|
[8a999991] | 186 | <screen><userinput>sed -i '$s/$/\n\n@bye/' doc/{git-howto,nut,fate}.texi &&
|
---|
| 187 | sed -i '/machine:i386/ s/\\/@backslashchar{}/g' doc/platform.texi &&
|
---|
| 188 |
|
---|
| 189 | pushd doc &&
|
---|
[a161de9] | 190 | for DOCNAME in `basename -s .html *.html`
|
---|
| 191 | do
|
---|
| 192 | texi2pdf -b $DOCNAME.texi &&
|
---|
| 193 | texi2dvi -b $DOCNAME.texi &&
|
---|
| 194 | dvips -o $DOCNAME.ps \
|
---|
[42160e7] | 195 | $DOCNAME.dvi
|
---|
[a161de9] | 196 | done &&
|
---|
| 197 | popd &&
|
---|
| 198 | unset DOCNAME</userinput></screen>
|
---|
[c08bd877] | 199 |
|
---|
[faec3f7] | 200 | <para>
|
---|
| 201 | If you have <xref linkend="doxygen"/> installed and wish to create the API
|
---|
[5a2fd537] | 202 | documentation (takes about 350 MB of space), issue the command
|
---|
[a161de9] | 203 | <command>doxygen doc/Doxyfile</command>.
|
---|
[faec3f7] | 204 | </para>
|
---|
[8a1e4f4] | 205 |
|
---|
[a161de9] | 206 | <para>
|
---|
| 207 | To properly test the installation you must have <xref linkend="rsync"/>
|
---|
| 208 | installed and follow the instructions for the
|
---|
[2f0f7a0] | 209 | <ulink url="http://www.ffmpeg.org/fate.html">
|
---|
[78ff3a8] | 210 | FFmpeg Automated Testing Environment</ulink> (FATE). First, about 879 MB
|
---|
[39c6300] | 211 | of sample files used to run FATE are downloaded with the command:
|
---|
[a161de9] | 212 | </para>
|
---|
[8a1e4f4] | 213 |
|
---|
[39c6300] | 214 | <screen><userinput>make fate-rsync SAMPLES=fate-suite/</userinput></screen>
|
---|
| 215 |
|
---|
| 216 | <para>
|
---|
| 217 | The <filename class="directory">fate-suite</filename> directory is
|
---|
| 218 | created and the files are downloaded there. That command actually runs
|
---|
| 219 | <command>rsync -vrltLW --timeout=60 --contimeout=60 rsync://fate-suite.ffmpeg.org/fate-suite/ fate-suite/</command>
|
---|
| 220 | command, thus you may want to compress and keep this directory for
|
---|
| 221 | testing again, in another system, or when a new version of ffmpeg is
|
---|
| 222 | launched. Then, you unpack the sample files in the source directory, and
|
---|
| 223 | run, again, the <command>make</command> command above, to sync with the
|
---|
| 224 | repository. Now, the download size and time are drastically reduced.
|
---|
| 225 | Estimated values in "Package Information" do not include the download
|
---|
| 226 | SBU. Next, FATE is executed, with the commands (you obtain a number of
|
---|
[78ff3a8] | 227 | tests greater than 2000):
|
---|
[39c6300] | 228 | </para>
|
---|
| 229 |
|
---|
| 230 | <screen><userinput>make fate SAMPLES=fate-suite/ | tee ../fate.log &&
|
---|
| 231 | grep ^TEST ../fate.log | wc -l</userinput></screen>
|
---|
| 232 |
|
---|
[a161de9] | 233 | <para>
|
---|
| 234 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 235 | </para>
|
---|
[457568e] | 236 |
|
---|
[a161de9] | 237 | <screen role="root"><userinput>make install &&
|
---|
| 238 | install -v -m755 tools/qt-faststart /usr/bin &&
|
---|
| 239 | install -v -m644 doc/*.txt \
|
---|
[78ff3a8] | 240 | /usr/share/doc/ffmpeg-&ffmpeg-version;</userinput></screen>
|
---|
[9e5b78b] | 241 |
|
---|
[faec3f7] | 242 | <para>
|
---|
[78ff3a8] | 243 | If PDF and Postscript documentations were built, issue the following
|
---|
| 244 | commands, as the <systemitem class="username">root</systemitem> user, to
|
---|
| 245 | install them:
|
---|
[faec3f7] | 246 | </para>
|
---|
[fd7e0ed6] | 247 |
|
---|
[78ff3a8] | 248 | <screen role="root"><userinput>install -v -m644 doc/*. pdf \
|
---|
| 249 | /usr/share/doc/ffmpeg-&ffmpeg-version; &&
|
---|
| 250 | install -v -m644 doc/*.ps \
|
---|
| 251 | /usr/share/doc/ffmpeg-&ffmpeg-version;</userinput></screen>
|
---|
[c08bd877] | 252 |
|
---|
[faec3f7] | 253 | <para>
|
---|
[2216c969] | 254 | If you used <command>doxygen</command> to create the API documentation,
|
---|
[a161de9] | 255 | install it (another 300 MB of space) by issuing the following commands
|
---|
| 256 | as the <systemitem class="username">root</systemitem> user:
|
---|
[faec3f7] | 257 | </para>
|
---|
[c08bd877] | 258 |
|
---|
[78ff3a8] | 259 | <screen role="root"><userinput>install -v -m755 -d /usr/share/doc/ffmpeg-&ffmpeg-version;/api &&
|
---|
| 260 | cp -vr doc/doxy/html/* /usr/share/doc/ffmpeg-&ffmpeg-version;/api &&
|
---|
| 261 | find /usr/share/doc/ffmpeg-&ffmpeg-version;/api -type f -exec chmod -c 0644 "{}" ";" &&
|
---|
| 262 | find /usr/share/doc/ffmpeg-&ffmpeg-version;/api -type d -exec chmod -c 0755 "{}" ";"</userinput></screen>
|
---|
[ffd1fcc] | 263 |
|
---|
[8a1e4f4] | 264 | </sect2>
|
---|
| 265 |
|
---|
| 266 | <sect2 role="commands">
|
---|
| 267 | <title>Command Explanations</title>
|
---|
| 268 |
|
---|
[faec3f7] | 269 | <para>
|
---|
[8a999991] | 270 | <command>sed -i ... configure</command>: This command adds the
|
---|
[a161de9] | 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 |
|
---|
[8a999991] | 276 | <para>
|
---|
| 277 | <command>sed -i ... texi</command>: Fix some .texi files for
|
---|
| 278 | documentation builds.
|
---|
| 279 | </para>
|
---|
| 280 |
|
---|
| 281 | <para>
|
---|
| 282 | <command>find ... ";"</command>: Fix permissions of documentation files
|
---|
| 283 | and directories.
|
---|
| 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-libvorbis --enable-libtheora</parameter>: Enables
|
---|
| 333 | Theora video encoding via <filename
|
---|
| 334 | class="libraryfile">libvorbis</filename> and <filename
|
---|
| 335 | class="libraryfile">libtheora</filename>.
|
---|
[a161de9] | 336 | </para>
|
---|
| 337 |
|
---|
| 338 | <para>
|
---|
[c012c1a] | 339 | <parameter>--enable-libvorbis --enable-libvpx</parameter>: Enables WebM
|
---|
| 340 | encoding via <filename class="libraryfile">libvorbis</filename> and
|
---|
| 341 | <filename class="libraryfile">libvpx</filename>.
|
---|
[a161de9] | 342 | </para>
|
---|
| 343 |
|
---|
| 344 | <para>
|
---|
[3cf61ed8] | 345 | <parameter>--enable-libx264</parameter>: Enables high-quality
|
---|
| 346 | H.264/MPEG-4 AVC encoding via <filename
|
---|
| 347 | class="libraryfile">libx264</filename>.
|
---|
[a161de9] | 348 | </para>
|
---|
| 349 |
|
---|
| 350 | <para>
|
---|
[89d37eb8] | 351 | <parameter>--enable-x11grab</parameter>: Enables X11 grabbing.
|
---|
[a161de9] | 352 | </para>
|
---|
| 353 |
|
---|
[faec3f7] | 354 | <para>
|
---|
[c012c1a] | 355 | <command>gcc tools/qt-faststart.c -o tools/qt-faststart</command>:
|
---|
| 356 | This builds the <command>qt-faststart</command> program which can
|
---|
| 357 | modify QuickTime formatted movies
|
---|
| 358 | (<filename class="extension">.mov</filename> or
|
---|
| 359 | <filename class="extension">.mp4</filename>) so that the header information
|
---|
| 360 | is located at the beginning of the file instead of the end. This allows
|
---|
| 361 | the movie file to begin playing before the entire file has been downloaded.
|
---|
[2216c969] | 362 | </para>
|
---|
| 363 |
|
---|
[c012c1a] | 364 | <note>
|
---|
| 365 | <para>
|
---|
| 366 | Support for most of the dependency packages requires using options
|
---|
[d0c85de6] | 367 | passed to the <command>configure</command> script. View the output
|
---|
[c012c1a] | 368 | from <command>./configure --help</command> for complete information
|
---|
| 369 | about enabling dependency packages.
|
---|
| 370 | </para>
|
---|
| 371 | </note>
|
---|
| 372 |
|
---|
[8a1e4f4] | 373 | </sect2>
|
---|
| 374 |
|
---|
| 375 | <sect2 role="configuration">
|
---|
| 376 | <title>Configuring FFmpeg</title>
|
---|
| 377 |
|
---|
| 378 | <sect3 id="ffmpeg-config">
|
---|
| 379 | <title>Config Files</title>
|
---|
| 380 |
|
---|
[755bb92] | 381 | <para>
|
---|
| 382 | <filename>/etc/ffserver.conf</filename> and
|
---|
| 383 | <filename>~/.ffmpeg/ffserver-config</filename>
|
---|
| 384 | </para>
|
---|
[8a1e4f4] | 385 |
|
---|
| 386 | <indexterm zone="ffmpeg ffmpeg-config">
|
---|
[4162bcd] | 387 | <primary
|
---|
| 388 | sortas="e-AA.ffmpeg-ffserver-config">~/.ffmpeg/ffserver-config</primary>
|
---|
[8a1e4f4] | 389 | </indexterm>
|
---|
| 390 |
|
---|
| 391 | <indexterm zone="ffmpeg ffmpeg-config">
|
---|
| 392 | <primary sortas="e-etc-ffserver.conf">/etc/ffserver.conf</primary>
|
---|
| 393 | </indexterm>
|
---|
| 394 |
|
---|
[faec3f7] | 395 | <para>
|
---|
| 396 | You'll find a sample <command>ffserver</command> configuration file at
|
---|
| 397 | <filename>doc/ffserver.conf</filename> in the source tree.
|
---|
| 398 | </para>
|
---|
[ffd1fcc] | 399 |
|
---|
[8a1e4f4] | 400 | </sect3>
|
---|
[ffd1fcc] | 401 |
|
---|
[8a1e4f4] | 402 | </sect2>
|
---|
| 403 |
|
---|
| 404 | <sect2 role="content">
|
---|
| 405 | <title>Contents</title>
|
---|
| 406 |
|
---|
| 407 | <segmentedlist>
|
---|
| 408 | <segtitle>Installed Programs</segtitle>
|
---|
| 409 | <segtitle>Installed Libraries</segtitle>
|
---|
| 410 | <segtitle>Installed Directories</segtitle>
|
---|
| 411 |
|
---|
| 412 | <seglistitem>
|
---|
[faec3f7] | 413 | <seg>
|
---|
[89d37eb8] | 414 | ffmpeg, ffplay, ffprobe, ffserver, and
|
---|
[faec3f7] | 415 | qt-faststart
|
---|
| 416 | </seg>
|
---|
| 417 | <seg>
|
---|
[ffd1fcc] | 418 | libavcodec.so, libavdevice.so, libavfilter.so,
|
---|
| 419 | libavformat.so, libavutil.so, libpostproc.so,
|
---|
[89d37eb8] | 420 | libswresample, and libswscale.so
|
---|
[faec3f7] | 421 | </seg>
|
---|
| 422 | <seg>
|
---|
| 423 | /usr/include/libavcodec,
|
---|
[baf1e23] | 424 | /usr/include/libavdevice,
|
---|
[faec3f7] | 425 | /usr/include/libavfilter,
|
---|
| 426 | /usr/include/libavformat,
|
---|
| 427 | /usr/include/libavutil,
|
---|
[baf1e23] | 428 | /usr/include/libpostproc,
|
---|
| 429 | /usr/include/libswresample
|
---|
[faec3f7] | 430 | /usr/include/libswscale,
|
---|
[89d37eb8] | 431 | /usr/share/ffmpeg, and
|
---|
[78ff3a8] | 432 | /usr/share/doc/ffmpeg-&ffmpeg-version;
|
---|
[faec3f7] | 433 | </seg>
|
---|
[8a1e4f4] | 434 | </seglistitem>
|
---|
| 435 | </segmentedlist>
|
---|
| 436 |
|
---|
| 437 | <variablelist>
|
---|
| 438 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 439 | <?dbfo list-presentation="list"?>
|
---|
| 440 | <?dbhtml list-presentation="table"?>
|
---|
| 441 |
|
---|
| 442 | <varlistentry id="ffmpeg-prog">
|
---|
| 443 | <term><command>ffmpeg</command></term>
|
---|
| 444 | <listitem>
|
---|
[faec3f7] | 445 | <para>
|
---|
| 446 | is a command-line tool to convert video files, network streams and
|
---|
| 447 | input from a TV card to several video formats.
|
---|
| 448 | </para>
|
---|
[8a1e4f4] | 449 | <indexterm zone="ffmpeg ffmpeg-prog">
|
---|
| 450 | <primary sortas="b-ffmpeg">ffmpeg</primary>
|
---|
| 451 | </indexterm>
|
---|
| 452 | </listitem>
|
---|
| 453 | </varlistentry>
|
---|
| 454 |
|
---|
| 455 | <varlistentry id="ffplay">
|
---|
| 456 | <term><command>ffplay</command></term>
|
---|
| 457 | <listitem>
|
---|
[faec3f7] | 458 | <para>
|
---|
| 459 | is a very simple and portable media player using the
|
---|
| 460 | <filename>ffmpeg</filename> libraries and the SDL library.
|
---|
| 461 | </para>
|
---|
[8a1e4f4] | 462 | <indexterm zone="ffmpeg ffplay">
|
---|
| 463 | <primary sortas="b-ffplay">ffplay</primary>
|
---|
| 464 | </indexterm>
|
---|
| 465 | </listitem>
|
---|
| 466 | </varlistentry>
|
---|
| 467 |
|
---|
[f60198bf] | 468 | <varlistentry id="ffprobe">
|
---|
| 469 | <term><command>ffprobe</command></term>
|
---|
| 470 | <listitem>
|
---|
[faec3f7] | 471 | <para>
|
---|
| 472 | gathers information from multimedia streams and prints it in a human
|
---|
| 473 | and machine-readable fashion.
|
---|
| 474 | </para>
|
---|
[f60198bf] | 475 | <indexterm zone="ffmpeg ffprobe">
|
---|
| 476 | <primary sortas="b-ffprobe">ffprobe</primary>
|
---|
| 477 | </indexterm>
|
---|
| 478 | </listitem>
|
---|
| 479 | </varlistentry>
|
---|
| 480 |
|
---|
[8a1e4f4] | 481 | <varlistentry id="ffserver">
|
---|
| 482 | <term><command>ffserver</command></term>
|
---|
| 483 | <listitem>
|
---|
[faec3f7] | 484 | <para>
|
---|
| 485 | is a streaming server for everything that <command>ffmpeg</command>
|
---|
| 486 | could use as input (files, streams, TV card input, webcam, etc).
|
---|
| 487 | </para>
|
---|
[8a1e4f4] | 488 | <indexterm zone="ffmpeg ffserver">
|
---|
| 489 | <primary sortas="b-ffserver">ffserver</primary>
|
---|
| 490 | </indexterm>
|
---|
| 491 | </listitem>
|
---|
| 492 | </varlistentry>
|
---|
| 493 |
|
---|
[c08bd877] | 494 | <varlistentry id="qt-faststart">
|
---|
| 495 | <term><command>qt-faststart</command></term>
|
---|
| 496 | <listitem>
|
---|
[faec3f7] | 497 | <para>
|
---|
| 498 | moves the index file to the front of quicktime (mov/mp4) videos.
|
---|
| 499 | </para>
|
---|
[c08bd877] | 500 | <indexterm zone="ffmpeg qt-faststart">
|
---|
| 501 | <primary sortas="b-qt-faststart">qt-faststart</primary>
|
---|
| 502 | </indexterm>
|
---|
| 503 | </listitem>
|
---|
| 504 | </varlistentry>
|
---|
| 505 |
|
---|
[8a1e4f4] | 506 | <varlistentry id="libavcodec">
|
---|
[4162bcd] | 507 | <term><filename class="libraryfile">libavcodec.so</filename></term>
|
---|
[8a1e4f4] | 508 | <listitem>
|
---|
[faec3f7] | 509 | <para>
|
---|
| 510 | is a library containing the <application>FFmpeg</application> codecs
|
---|
| 511 | (both encoding and decoding).
|
---|
| 512 | </para>
|
---|
[8a1e4f4] | 513 | <indexterm zone="ffmpeg libavcodec">
|
---|
[9e5b78b] | 514 | <primary sortas="c-libavcodec">libavcodec.so</primary>
|
---|
[28cd5ce] | 515 | </indexterm>
|
---|
| 516 | </listitem>
|
---|
| 517 | </varlistentry>
|
---|
| 518 |
|
---|
| 519 | <varlistentry id="libavdevice">
|
---|
[4162bcd] | 520 | <term><filename class="libraryfile">libavdevice.so</filename></term>
|
---|
[28cd5ce] | 521 | <listitem>
|
---|
[faec3f7] | 522 | <para>
|
---|
| 523 | is the <application>FFmpeg</application> device handling library.
|
---|
| 524 | </para>
|
---|
[28cd5ce] | 525 | <indexterm zone="ffmpeg libavdevice">
|
---|
[9e5b78b] | 526 | <primary sortas="c-libavdevice">libavdevice.so</primary>
|
---|
| 527 | </indexterm>
|
---|
| 528 | </listitem>
|
---|
| 529 | </varlistentry>
|
---|
| 530 |
|
---|
| 531 | <varlistentry id="libavfilter">
|
---|
[4162bcd] | 532 | <term><filename class="libraryfile">libavfilter.so</filename></term>
|
---|
[9e5b78b] | 533 | <listitem>
|
---|
[faec3f7] | 534 | <para>
|
---|
| 535 | is a library of filters that can alter video or audio between the
|
---|
| 536 | decoder and the encoder (or output).
|
---|
| 537 | </para>
|
---|
[9e5b78b] | 538 | <indexterm zone="ffmpeg libavfilter">
|
---|
| 539 | <primary sortas="c-libavfilter">libavfilter.so</primary>
|
---|
[8a1e4f4] | 540 | </indexterm>
|
---|
| 541 | </listitem>
|
---|
| 542 | </varlistentry>
|
---|
| 543 |
|
---|
| 544 | <varlistentry id="libavformat">
|
---|
[4162bcd] | 545 | <term><filename class="libraryfile">libavformat.so</filename></term>
|
---|
[8a1e4f4] | 546 | <listitem>
|
---|
[faec3f7] | 547 | <para>
|
---|
| 548 | is a library containing the file formats handling (mux and demux
|
---|
| 549 | code for several formats) used by <command>ffplay</command> as well
|
---|
| 550 | as allowing the generation of audio or video streams.
|
---|
| 551 | </para>
|
---|
[8a1e4f4] | 552 | <indexterm zone="ffmpeg libavformat">
|
---|
[9e5b78b] | 553 | <primary sortas="c-libavformat">libavformat.so</primary>
|
---|
[28cd5ce] | 554 | </indexterm>
|
---|
| 555 | </listitem>
|
---|
| 556 | </varlistentry>
|
---|
| 557 |
|
---|
| 558 | <varlistentry id="libavutil">
|
---|
[4162bcd] | 559 | <term><filename class="libraryfile">libavutil.so</filename></term>
|
---|
[28cd5ce] | 560 | <listitem>
|
---|
[ffd1fcc] | 561 | <para>
|
---|
| 562 | is the <application>FFmpeg</application> utility library.
|
---|
| 563 | </para>
|
---|
[28cd5ce] | 564 | <indexterm zone="ffmpeg libavutil">
|
---|
[9e5b78b] | 565 | <primary sortas="c-libavutil">libavutil.so</primary>
|
---|
[28cd5ce] | 566 | </indexterm>
|
---|
| 567 | </listitem>
|
---|
| 568 | </varlistentry>
|
---|
| 569 |
|
---|
[874f1e88] | 570 | <varlistentry id="libpostproc">
|
---|
[4162bcd] | 571 | <term><filename class="libraryfile">libpostproc.so</filename></term>
|
---|
[28cd5ce] | 572 | <listitem>
|
---|
[faec3f7] | 573 | <para>
|
---|
| 574 | is the <application>FFmpeg</application> post processing library.
|
---|
| 575 | </para>
|
---|
[28cd5ce] | 576 | <indexterm zone="ffmpeg libpostproc">
|
---|
[9e5b78b] | 577 | <primary sortas="c-libpostproc">libpostproc.so</primary>
|
---|
[28cd5ce] | 578 | </indexterm>
|
---|
| 579 | </listitem>
|
---|
| 580 | </varlistentry>
|
---|
| 581 |
|
---|
[baf1e23] | 582 | <varlistentry id="libswresample">
|
---|
| 583 | <term><filename class="libraryfile">libswresample.so</filename></term>
|
---|
| 584 | <listitem>
|
---|
| 585 | <para>
|
---|
| 586 | is the <application>FFmpeg</application> audio rescaling library,
|
---|
| 587 | it contains functions for converting audio sample formats.
|
---|
| 588 | </para>
|
---|
| 589 | <indexterm zone="ffmpeg libswresample">
|
---|
| 590 | <primary sortas="c-libswresample">libswresample.so</primary>
|
---|
| 591 | </indexterm>
|
---|
| 592 | </listitem>
|
---|
| 593 | </varlistentry>
|
---|
| 594 |
|
---|
[28cd5ce] | 595 | <varlistentry id="libswscale">
|
---|
[4162bcd] | 596 | <term><filename class="libraryfile">libswscale.so</filename></term>
|
---|
[28cd5ce] | 597 | <listitem>
|
---|
[faec3f7] | 598 | <para>
|
---|
| 599 | is the <application>FFmpeg</application> image rescaling library.
|
---|
| 600 | </para>
|
---|
[28cd5ce] | 601 | <indexterm zone="ffmpeg libswscale">
|
---|
[9e5b78b] | 602 | <primary sortas="c-libswscale">libswscale.so</primary>
|
---|
[8a1e4f4] | 603 | </indexterm>
|
---|
| 604 | </listitem>
|
---|
| 605 | </varlistentry>
|
---|
[ffd1fcc] | 606 |
|
---|
[8a1e4f4] | 607 | </variablelist>
|
---|
[ffd1fcc] | 608 |
|
---|
[8a1e4f4] | 609 | </sect2>
|
---|
[ffd1fcc] | 610 |
|
---|
[49e5372] | 611 | </sect1>
|
---|