[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 " ">
|
---|
[333e8400] | 9 | <!ENTITY ffmpeg-md5sum "9e6163b09b7b9331b834d80874c2c0ff">
|
---|
[78ff3a8] | 10 | <!ENTITY ffmpeg-size "7.1 MB">
|
---|
[333e8400] | 11 | <!ENTITY ffmpeg-buildsize "130 MB (additional 866 MB for docs and 1902 MB to run the FATE tests)">
|
---|
| 12 | <!ENTITY ffmpeg-time "3.5 SBU (additional 1.1 SBU for docs and 4.8 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>
|
---|
[333e8400] | 207 | The fate-suite tests include comparisons with installed files, and should
|
---|
| 208 | not be run before the package is installed. Therefore, if you desire to
|
---|
| 209 | run them, instructions are given further below.
|
---|
[39c6300] | 210 | </para>
|
---|
| 211 |
|
---|
[a161de9] | 212 | <para>
|
---|
| 213 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 214 | </para>
|
---|
[457568e] | 215 |
|
---|
[a161de9] | 216 | <screen role="root"><userinput>make install &&
|
---|
| 217 | install -v -m755 tools/qt-faststart /usr/bin &&
|
---|
| 218 | install -v -m644 doc/*.txt \
|
---|
[78ff3a8] | 219 | /usr/share/doc/ffmpeg-&ffmpeg-version;</userinput></screen>
|
---|
[9e5b78b] | 220 |
|
---|
[faec3f7] | 221 | <para>
|
---|
[78ff3a8] | 222 | If PDF and Postscript documentations were built, issue the following
|
---|
| 223 | commands, as the <systemitem class="username">root</systemitem> user, to
|
---|
| 224 | install them:
|
---|
[faec3f7] | 225 | </para>
|
---|
[fd7e0ed6] | 226 |
|
---|
[333e8400] | 227 | <screen role="root"><userinput>install -v -m644 doc/*.pdf \
|
---|
[78ff3a8] | 228 | /usr/share/doc/ffmpeg-&ffmpeg-version; &&
|
---|
[333e8400] | 229 | install -v -m644 doc/*.ps \
|
---|
[78ff3a8] | 230 | /usr/share/doc/ffmpeg-&ffmpeg-version;</userinput></screen>
|
---|
[c08bd877] | 231 |
|
---|
[faec3f7] | 232 | <para>
|
---|
[2216c969] | 233 | If you used <command>doxygen</command> to create the API documentation,
|
---|
[a161de9] | 234 | install it (another 300 MB of space) by issuing the following commands
|
---|
| 235 | as the <systemitem class="username">root</systemitem> user:
|
---|
[faec3f7] | 236 | </para>
|
---|
[c08bd877] | 237 |
|
---|
[78ff3a8] | 238 | <screen role="root"><userinput>install -v -m755 -d /usr/share/doc/ffmpeg-&ffmpeg-version;/api &&
|
---|
| 239 | cp -vr doc/doxy/html/* /usr/share/doc/ffmpeg-&ffmpeg-version;/api &&
|
---|
| 240 | find /usr/share/doc/ffmpeg-&ffmpeg-version;/api -type f -exec chmod -c 0644 "{}" ";" &&
|
---|
| 241 | find /usr/share/doc/ffmpeg-&ffmpeg-version;/api -type d -exec chmod -c 0755 "{}" ";"</userinput></screen>
|
---|
[ffd1fcc] | 242 |
|
---|
[333e8400] | 243 | <para>
|
---|
| 244 | To properly test the installation you must have <xref linkend="rsync"/>
|
---|
| 245 | installed and follow the instructions for the <ulink
|
---|
| 246 | url="http://www.ffmpeg.org/fate.html"> FFmpeg Automated Testing
|
---|
| 247 | Environment</ulink> (FATE). First, about 879 MB of sample files used to
|
---|
| 248 | run FATE are downloaded with the command:
|
---|
| 249 | </para>
|
---|
| 250 |
|
---|
| 251 | <screen><userinput>make fate-rsync SAMPLES=fate-suite/</userinput></screen>
|
---|
| 252 |
|
---|
| 253 | <para>
|
---|
| 254 | The <filename class="directory">fate-suite</filename> directory is
|
---|
| 255 | created and the files are downloaded there. That command actually runs
|
---|
| 256 | <command>rsync -vrltLW --timeout=60 --contimeout=60
|
---|
| 257 | rsync://fate-suite.ffmpeg.org/fate-suite/ fate-suite/</command> command,
|
---|
| 258 | thus you may want to compress and keep this directory for testing again,
|
---|
| 259 | in another system, or when a new version of ffmpeg is launched. Then, you
|
---|
| 260 | unpack the sample files in the source directory, and run, again, the
|
---|
| 261 | <command>make</command> command above, to sync with the repository. Now,
|
---|
| 262 | the download size and time are drastically reduced. Estimated values in
|
---|
| 263 | "Package Information" do not include the download SBU. Next, FATE is
|
---|
| 264 | executed, with the commands (you obtain a number of tests greater than
|
---|
| 265 | 2000):
|
---|
| 266 | </para>
|
---|
| 267 |
|
---|
| 268 | <screen><userinput>make fate SAMPLES=fate-suite/ | tee ../fate.log &&
|
---|
| 269 | grep ^TEST ../fate.log | wc -l</userinput></screen>
|
---|
| 270 |
|
---|
[8a1e4f4] | 271 | </sect2>
|
---|
| 272 |
|
---|
| 273 | <sect2 role="commands">
|
---|
| 274 | <title>Command Explanations</title>
|
---|
| 275 |
|
---|
[faec3f7] | 276 | <para>
|
---|
[8a999991] | 277 | <command>sed -i ... configure</command>: This command adds the
|
---|
[a161de9] | 278 | <application>ALSA</application> library to the
|
---|
| 279 | <application>Flite</application> <envar>LDFLAGS</envar> variable and
|
---|
| 280 | enables the discovery of <application>Flite</application>.
|
---|
| 281 | </para>
|
---|
| 282 |
|
---|
[8a999991] | 283 | <para>
|
---|
| 284 | <command>sed -i ... texi</command>: Fix some .texi files for
|
---|
| 285 | documentation builds.
|
---|
| 286 | </para>
|
---|
| 287 |
|
---|
| 288 | <para>
|
---|
| 289 | <command>find ... ";"</command>: Fix permissions of documentation files
|
---|
| 290 | and directories.
|
---|
| 291 | </para>
|
---|
| 292 |
|
---|
[333e8400] | 293 | <para>
|
---|
| 294 | <option>--enable-libfreetype</option>: Enables
|
---|
| 295 | <application>Freetype</application> support.
|
---|
| 296 | </para>
|
---|
| 297 |
|
---|
[a161de9] | 298 | <para>
|
---|
| 299 | <parameter>--enable-gpl</parameter>: Enables the use of GPL code and
|
---|
[baf1e23] | 300 | permits support for postprocessing, swscale and many other features.
|
---|
[faec3f7] | 301 | </para>
|
---|
| 302 |
|
---|
| 303 | <para>
|
---|
[a161de9] | 304 | <parameter>--enable-version3</parameter>: Enables the use of (L)GPL
|
---|
| 305 | version 3 code.
|
---|
| 306 | </para>
|
---|
| 307 |
|
---|
| 308 | <para>
|
---|
[333e8400] | 309 | <parameter>--enable-nonfree</parameter>: Enables the use of nonfree code.
|
---|
| 310 | Note that the resulting libraries and binaries will be unredistributable.
|
---|
[faec3f7] | 311 | </para>
|
---|
[8a1e4f4] | 312 |
|
---|
[baf1e23] | 313 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 314 | href="../../xincludes/static-libraries.xml"/>
|
---|
| 315 |
|
---|
[a161de9] | 316 | <para>
|
---|
[333e8400] | 317 | <parameter>--enable-shared</parameter>: Enables building shared
|
---|
| 318 | libraries, otherwise only static libraries are built and installed.
|
---|
[a161de9] | 319 | </para>
|
---|
| 320 |
|
---|
| 321 | <para>
|
---|
[89d37eb8] | 322 | <parameter>--disable-debug</parameter>: Disables building debugging
|
---|
| 323 | symbols into the programs and libraries.
|
---|
[a161de9] | 324 | </para>
|
---|
| 325 |
|
---|
| 326 | <para>
|
---|
[89d37eb8] | 327 | <parameter>--enable-libass</parameter>: Enables ASS/SSA subtitle format
|
---|
[c0fce1d] | 328 | rendering via <filename class="libraryfile">libass</filename>.
|
---|
[a161de9] | 329 | </para>
|
---|
| 330 |
|
---|
| 331 | <para>
|
---|
[c012c1a] | 332 | <parameter>--enable-libfdk-aac</parameter>: Enables currently the
|
---|
| 333 | highest-quality AAC audio encoding via <filename
|
---|
| 334 | class="libraryfile">libfdk-aac</filename>.
|
---|
[a161de9] | 335 | </para>
|
---|
| 336 |
|
---|
| 337 | <para>
|
---|
[333e8400] | 338 | <parameter>--enable-libmp3lame</parameter>: Enables MP3 audio encoding
|
---|
| 339 | via <filename class="libraryfile">libmp3lame</filename>.
|
---|
[a161de9] | 340 | </para>
|
---|
| 341 |
|
---|
| 342 | <para>
|
---|
[c012c1a] | 343 | <parameter>--enable-libvorbis --enable-libtheora</parameter>: Enables
|
---|
| 344 | Theora video encoding via <filename
|
---|
| 345 | class="libraryfile">libvorbis</filename> and <filename
|
---|
| 346 | class="libraryfile">libtheora</filename>.
|
---|
[a161de9] | 347 | </para>
|
---|
| 348 |
|
---|
| 349 | <para>
|
---|
[c012c1a] | 350 | <parameter>--enable-libvorbis --enable-libvpx</parameter>: Enables WebM
|
---|
| 351 | encoding via <filename class="libraryfile">libvorbis</filename> and
|
---|
| 352 | <filename class="libraryfile">libvpx</filename>.
|
---|
[a161de9] | 353 | </para>
|
---|
| 354 |
|
---|
| 355 | <para>
|
---|
[3cf61ed8] | 356 | <parameter>--enable-libx264</parameter>: Enables high-quality
|
---|
| 357 | H.264/MPEG-4 AVC encoding via <filename
|
---|
[333e8400] | 358 | class="libraryfile">libx264</filename>.A
|
---|
[a161de9] | 359 | </para>
|
---|
| 360 |
|
---|
| 361 | <para>
|
---|
[89d37eb8] | 362 | <parameter>--enable-x11grab</parameter>: Enables X11 grabbing.
|
---|
[a161de9] | 363 | </para>
|
---|
| 364 |
|
---|
[faec3f7] | 365 | <para>
|
---|
[333e8400] | 366 | <command>gcc tools/qt-faststart.c -o tools/qt-faststart</command>: This
|
---|
| 367 | builds the <command>qt-faststart</command> program which can modify
|
---|
| 368 | QuickTime formatted movies (<filename class="extension">.mov</filename>
|
---|
| 369 | or <filename class="extension">.mp4</filename>) so that the header
|
---|
| 370 | information is located at the beginning of the file instead of the end.
|
---|
| 371 | This allows the movie file to begin playing before the entire file has
|
---|
| 372 | been downloaded.
|
---|
[2216c969] | 373 | </para>
|
---|
| 374 |
|
---|
[c012c1a] | 375 | <note>
|
---|
| 376 | <para>
|
---|
| 377 | Support for most of the dependency packages requires using options
|
---|
[d0c85de6] | 378 | passed to the <command>configure</command> script. View the output
|
---|
[c012c1a] | 379 | from <command>./configure --help</command> for complete information
|
---|
| 380 | about enabling dependency packages.
|
---|
| 381 | </para>
|
---|
| 382 | </note>
|
---|
| 383 |
|
---|
[8a1e4f4] | 384 | </sect2>
|
---|
| 385 |
|
---|
| 386 | <sect2 role="configuration">
|
---|
| 387 | <title>Configuring FFmpeg</title>
|
---|
| 388 |
|
---|
| 389 | <sect3 id="ffmpeg-config">
|
---|
| 390 | <title>Config Files</title>
|
---|
| 391 |
|
---|
[755bb92] | 392 | <para>
|
---|
| 393 | <filename>/etc/ffserver.conf</filename> and
|
---|
| 394 | <filename>~/.ffmpeg/ffserver-config</filename>
|
---|
| 395 | </para>
|
---|
[8a1e4f4] | 396 |
|
---|
| 397 | <indexterm zone="ffmpeg ffmpeg-config">
|
---|
[4162bcd] | 398 | <primary
|
---|
| 399 | sortas="e-AA.ffmpeg-ffserver-config">~/.ffmpeg/ffserver-config</primary>
|
---|
[8a1e4f4] | 400 | </indexterm>
|
---|
| 401 |
|
---|
| 402 | <indexterm zone="ffmpeg ffmpeg-config">
|
---|
| 403 | <primary sortas="e-etc-ffserver.conf">/etc/ffserver.conf</primary>
|
---|
| 404 | </indexterm>
|
---|
| 405 |
|
---|
[faec3f7] | 406 | <para>
|
---|
| 407 | You'll find a sample <command>ffserver</command> configuration file at
|
---|
| 408 | <filename>doc/ffserver.conf</filename> in the source tree.
|
---|
| 409 | </para>
|
---|
[ffd1fcc] | 410 |
|
---|
[8a1e4f4] | 411 | </sect3>
|
---|
[ffd1fcc] | 412 |
|
---|
[8a1e4f4] | 413 | </sect2>
|
---|
| 414 |
|
---|
| 415 | <sect2 role="content">
|
---|
| 416 | <title>Contents</title>
|
---|
| 417 |
|
---|
| 418 | <segmentedlist>
|
---|
| 419 | <segtitle>Installed Programs</segtitle>
|
---|
| 420 | <segtitle>Installed Libraries</segtitle>
|
---|
| 421 | <segtitle>Installed Directories</segtitle>
|
---|
| 422 |
|
---|
| 423 | <seglistitem>
|
---|
[faec3f7] | 424 | <seg>
|
---|
[89d37eb8] | 425 | ffmpeg, ffplay, ffprobe, ffserver, and
|
---|
[faec3f7] | 426 | qt-faststart
|
---|
| 427 | </seg>
|
---|
| 428 | <seg>
|
---|
[ffd1fcc] | 429 | libavcodec.so, libavdevice.so, libavfilter.so,
|
---|
| 430 | libavformat.so, libavutil.so, libpostproc.so,
|
---|
[89d37eb8] | 431 | libswresample, and libswscale.so
|
---|
[faec3f7] | 432 | </seg>
|
---|
| 433 | <seg>
|
---|
| 434 | /usr/include/libavcodec,
|
---|
[baf1e23] | 435 | /usr/include/libavdevice,
|
---|
[faec3f7] | 436 | /usr/include/libavfilter,
|
---|
| 437 | /usr/include/libavformat,
|
---|
| 438 | /usr/include/libavutil,
|
---|
[baf1e23] | 439 | /usr/include/libpostproc,
|
---|
| 440 | /usr/include/libswresample
|
---|
[faec3f7] | 441 | /usr/include/libswscale,
|
---|
[89d37eb8] | 442 | /usr/share/ffmpeg, and
|
---|
[78ff3a8] | 443 | /usr/share/doc/ffmpeg-&ffmpeg-version;
|
---|
[faec3f7] | 444 | </seg>
|
---|
[8a1e4f4] | 445 | </seglistitem>
|
---|
| 446 | </segmentedlist>
|
---|
| 447 |
|
---|
| 448 | <variablelist>
|
---|
| 449 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 450 | <?dbfo list-presentation="list"?>
|
---|
| 451 | <?dbhtml list-presentation="table"?>
|
---|
| 452 |
|
---|
| 453 | <varlistentry id="ffmpeg-prog">
|
---|
| 454 | <term><command>ffmpeg</command></term>
|
---|
| 455 | <listitem>
|
---|
[faec3f7] | 456 | <para>
|
---|
| 457 | is a command-line tool to convert video files, network streams and
|
---|
| 458 | input from a TV card to several video formats.
|
---|
| 459 | </para>
|
---|
[8a1e4f4] | 460 | <indexterm zone="ffmpeg ffmpeg-prog">
|
---|
| 461 | <primary sortas="b-ffmpeg">ffmpeg</primary>
|
---|
| 462 | </indexterm>
|
---|
| 463 | </listitem>
|
---|
| 464 | </varlistentry>
|
---|
| 465 |
|
---|
| 466 | <varlistentry id="ffplay">
|
---|
| 467 | <term><command>ffplay</command></term>
|
---|
| 468 | <listitem>
|
---|
[faec3f7] | 469 | <para>
|
---|
| 470 | is a very simple and portable media player using the
|
---|
| 471 | <filename>ffmpeg</filename> libraries and the SDL library.
|
---|
| 472 | </para>
|
---|
[8a1e4f4] | 473 | <indexterm zone="ffmpeg ffplay">
|
---|
| 474 | <primary sortas="b-ffplay">ffplay</primary>
|
---|
| 475 | </indexterm>
|
---|
| 476 | </listitem>
|
---|
| 477 | </varlistentry>
|
---|
| 478 |
|
---|
[f60198bf] | 479 | <varlistentry id="ffprobe">
|
---|
| 480 | <term><command>ffprobe</command></term>
|
---|
| 481 | <listitem>
|
---|
[faec3f7] | 482 | <para>
|
---|
| 483 | gathers information from multimedia streams and prints it in a human
|
---|
| 484 | and machine-readable fashion.
|
---|
| 485 | </para>
|
---|
[f60198bf] | 486 | <indexterm zone="ffmpeg ffprobe">
|
---|
| 487 | <primary sortas="b-ffprobe">ffprobe</primary>
|
---|
| 488 | </indexterm>
|
---|
| 489 | </listitem>
|
---|
| 490 | </varlistentry>
|
---|
| 491 |
|
---|
[8a1e4f4] | 492 | <varlistentry id="ffserver">
|
---|
| 493 | <term><command>ffserver</command></term>
|
---|
| 494 | <listitem>
|
---|
[faec3f7] | 495 | <para>
|
---|
| 496 | is a streaming server for everything that <command>ffmpeg</command>
|
---|
| 497 | could use as input (files, streams, TV card input, webcam, etc).
|
---|
| 498 | </para>
|
---|
[8a1e4f4] | 499 | <indexterm zone="ffmpeg ffserver">
|
---|
| 500 | <primary sortas="b-ffserver">ffserver</primary>
|
---|
| 501 | </indexterm>
|
---|
| 502 | </listitem>
|
---|
| 503 | </varlistentry>
|
---|
| 504 |
|
---|
[c08bd877] | 505 | <varlistentry id="qt-faststart">
|
---|
| 506 | <term><command>qt-faststart</command></term>
|
---|
| 507 | <listitem>
|
---|
[faec3f7] | 508 | <para>
|
---|
| 509 | moves the index file to the front of quicktime (mov/mp4) videos.
|
---|
| 510 | </para>
|
---|
[c08bd877] | 511 | <indexterm zone="ffmpeg qt-faststart">
|
---|
| 512 | <primary sortas="b-qt-faststart">qt-faststart</primary>
|
---|
| 513 | </indexterm>
|
---|
| 514 | </listitem>
|
---|
| 515 | </varlistentry>
|
---|
| 516 |
|
---|
[8a1e4f4] | 517 | <varlistentry id="libavcodec">
|
---|
[4162bcd] | 518 | <term><filename class="libraryfile">libavcodec.so</filename></term>
|
---|
[8a1e4f4] | 519 | <listitem>
|
---|
[faec3f7] | 520 | <para>
|
---|
| 521 | is a library containing the <application>FFmpeg</application> codecs
|
---|
| 522 | (both encoding and decoding).
|
---|
| 523 | </para>
|
---|
[8a1e4f4] | 524 | <indexterm zone="ffmpeg libavcodec">
|
---|
[9e5b78b] | 525 | <primary sortas="c-libavcodec">libavcodec.so</primary>
|
---|
[28cd5ce] | 526 | </indexterm>
|
---|
| 527 | </listitem>
|
---|
| 528 | </varlistentry>
|
---|
| 529 |
|
---|
| 530 | <varlistentry id="libavdevice">
|
---|
[4162bcd] | 531 | <term><filename class="libraryfile">libavdevice.so</filename></term>
|
---|
[28cd5ce] | 532 | <listitem>
|
---|
[faec3f7] | 533 | <para>
|
---|
| 534 | is the <application>FFmpeg</application> device handling library.
|
---|
| 535 | </para>
|
---|
[28cd5ce] | 536 | <indexterm zone="ffmpeg libavdevice">
|
---|
[9e5b78b] | 537 | <primary sortas="c-libavdevice">libavdevice.so</primary>
|
---|
| 538 | </indexterm>
|
---|
| 539 | </listitem>
|
---|
| 540 | </varlistentry>
|
---|
| 541 |
|
---|
| 542 | <varlistentry id="libavfilter">
|
---|
[4162bcd] | 543 | <term><filename class="libraryfile">libavfilter.so</filename></term>
|
---|
[9e5b78b] | 544 | <listitem>
|
---|
[faec3f7] | 545 | <para>
|
---|
| 546 | is a library of filters that can alter video or audio between the
|
---|
| 547 | decoder and the encoder (or output).
|
---|
| 548 | </para>
|
---|
[9e5b78b] | 549 | <indexterm zone="ffmpeg libavfilter">
|
---|
| 550 | <primary sortas="c-libavfilter">libavfilter.so</primary>
|
---|
[8a1e4f4] | 551 | </indexterm>
|
---|
| 552 | </listitem>
|
---|
| 553 | </varlistentry>
|
---|
| 554 |
|
---|
| 555 | <varlistentry id="libavformat">
|
---|
[4162bcd] | 556 | <term><filename class="libraryfile">libavformat.so</filename></term>
|
---|
[8a1e4f4] | 557 | <listitem>
|
---|
[faec3f7] | 558 | <para>
|
---|
| 559 | is a library containing the file formats handling (mux and demux
|
---|
| 560 | code for several formats) used by <command>ffplay</command> as well
|
---|
| 561 | as allowing the generation of audio or video streams.
|
---|
| 562 | </para>
|
---|
[8a1e4f4] | 563 | <indexterm zone="ffmpeg libavformat">
|
---|
[9e5b78b] | 564 | <primary sortas="c-libavformat">libavformat.so</primary>
|
---|
[28cd5ce] | 565 | </indexterm>
|
---|
| 566 | </listitem>
|
---|
| 567 | </varlistentry>
|
---|
| 568 |
|
---|
| 569 | <varlistentry id="libavutil">
|
---|
[4162bcd] | 570 | <term><filename class="libraryfile">libavutil.so</filename></term>
|
---|
[28cd5ce] | 571 | <listitem>
|
---|
[ffd1fcc] | 572 | <para>
|
---|
| 573 | is the <application>FFmpeg</application> utility library.
|
---|
| 574 | </para>
|
---|
[28cd5ce] | 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>
|
---|
[ffd1fcc] | 617 |
|
---|
[8a1e4f4] | 618 | </variablelist>
|
---|
[ffd1fcc] | 619 |
|
---|
[8a1e4f4] | 620 | </sect2>
|
---|
[ffd1fcc] | 621 |
|
---|
[49e5372] | 622 | </sect1>
|
---|