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