[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 " ">
|
---|
[39c6300] | 9 | <!ENTITY ffmpeg-md5sum "5b85aea53d8dcd5b0f7b497f233bc101">
|
---|
[29dc5df] | 10 | <!ENTITY ffmpeg-size "6.7 MB">
|
---|
[39c6300] | 11 | <!ENTITY ffmpeg-buildsize "112 MB (additional 764 MB for docs and 1813 MB to run the FATE tests)">
|
---|
| 12 | <!ENTITY ffmpeg-time " 2.9 SBU (additional 1.2 SBU for docs and 7.2 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 |
|
---|
[9faa3b74] | 44 | &lfs75_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"/>,
|
---|
[89d37eb8] | 88 | <xref linkend="opus"/>,
|
---|
[baf1e23] | 89 | <xref linkend="libtheora"/>,
|
---|
[efcf979] | 90 | <xref linkend="libvorbis"/>,
|
---|
[89d37eb8] | 91 | <xref linkend="libvpx"/>, and
|
---|
| 92 | <xref linkend="x264"/>
|
---|
[457568e] | 93 | </para>
|
---|
| 94 |
|
---|
[89d37eb8] | 95 | <bridgehead renderas="sect4">Recommended for desktop use</bridgehead>
|
---|
[07584d8] | 96 | <para>
|
---|
[89d37eb8] | 97 | <xref linkend="x-window-system"/>,
|
---|
| 98 | <xref linkend="alsa-lib"/>,
|
---|
| 99 | <xref linkend="sdl"/>,
|
---|
[07584d8] | 100 | <xref linkend="libva"/> and
|
---|
[89d37eb8] | 101 | <xref linkend="libvdpau"/> (with the corresponding driver package)
|
---|
[07584d8] | 102 | </para>
|
---|
| 103 |
|
---|
[457568e] | 104 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 105 | <para role="optional">
|
---|
[89d37eb8] | 106 | <xref linkend="faac"/>,
|
---|
| 107 | <xref linkend="freetype2"/>,
|
---|
[2f0f7a0] | 108 | <xref linkend="libwebp"/>,
|
---|
[89d37eb8] | 109 | <xref linkend="openjpeg"/>,
|
---|
| 110 | <xref linkend="pulseaudio"/>,
|
---|
| 111 | <xref linkend="speex"/>,
|
---|
| 112 | <xref linkend="xvid"/>,
|
---|
| 113 | <xref linkend="openssl"/>,
|
---|
[80d4245] | 114 | <xref linkend="fontconfig"/>,
|
---|
| 115 | <xref linkend="gnutls"/>,
|
---|
[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>,
|
---|
[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>,
|
---|
| 142 | <ulink url="http://xavs.sourceforge.net/">libxavs</ulink> (SVN checkout),
|
---|
[2f0f7a0] | 143 | <ulink url="http://kcat.strangesoft.net/openal-releases/">OpenAL</ulink>,
|
---|
| 144 | <ulink url="http://www.nongnu.org/texi2html">texi2html</ulink> (to build HTML documentation), and
|
---|
| 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 \
|
---|
[89d37eb8] | 180 | --enable-libopus \
|
---|
[457568e] | 181 | --enable-libtheora \
|
---|
| 182 | --enable-libvorbis \
|
---|
| 183 | --enable-libvpx \
|
---|
[89d37eb8] | 184 | --enable-libx264 \
|
---|
| 185 | --enable-x11grab &&
|
---|
[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>
|
---|
| 192 | HTML documentation was built in the previous step if
|
---|
| 193 | <ulink url="http://www.nongnu.org/texi2html">texi2html</ulink> is
|
---|
| 194 | installed. If the HTML was built (check for any
|
---|
| 195 | <filename class="extension">.html</filename> files in the
|
---|
| 196 | <filename class="directory">doc</filename> directory) and you have
|
---|
| 197 | <xref linkend="texlive"/> installed and wish to build PDF and
|
---|
| 198 | Postscript versions of the documentation, issue the following commands:
|
---|
| 199 | </para>
|
---|
[fcd201bd] | 200 |
|
---|
[a161de9] | 201 | <screen><userinput>pushd doc &&
|
---|
| 202 | for DOCNAME in `basename -s .html *.html`
|
---|
| 203 | do
|
---|
| 204 | texi2pdf -b $DOCNAME.texi &&
|
---|
| 205 | texi2dvi -b $DOCNAME.texi &&
|
---|
| 206 | dvips -o $DOCNAME.ps \
|
---|
[42160e7] | 207 | $DOCNAME.dvi
|
---|
[a161de9] | 208 | done &&
|
---|
| 209 | popd &&
|
---|
| 210 | unset DOCNAME</userinput></screen>
|
---|
[c08bd877] | 211 |
|
---|
[faec3f7] | 212 | <para>
|
---|
| 213 | If you have <xref linkend="doxygen"/> installed and wish to create the API
|
---|
[5a2fd537] | 214 | documentation (takes about 350 MB of space), issue the command
|
---|
[a161de9] | 215 | <command>doxygen doc/Doxyfile</command>.
|
---|
[faec3f7] | 216 | </para>
|
---|
[8a1e4f4] | 217 |
|
---|
[a161de9] | 218 | <para>
|
---|
| 219 | To properly test the installation you must have <xref linkend="rsync"/>
|
---|
| 220 | installed and follow the instructions for the
|
---|
[2f0f7a0] | 221 | <ulink url="http://www.ffmpeg.org/fate.html">
|
---|
[39c6300] | 222 | FFmpeg Automated Testing Environment</ulink> (FATE). First, over 760 MB
|
---|
| 223 | of sample files used to run FATE are downloaded with the command:
|
---|
[a161de9] | 224 | </para>
|
---|
[8a1e4f4] | 225 |
|
---|
[39c6300] | 226 | <screen><userinput>make fate-rsync SAMPLES=fate-suite/</userinput></screen>
|
---|
| 227 |
|
---|
| 228 | <para>
|
---|
| 229 | The <filename class="directory">fate-suite</filename> directory is
|
---|
| 230 | created and the files are downloaded there. That command actually runs
|
---|
| 231 | <command>rsync -vrltLW --timeout=60 --contimeout=60 rsync://fate-suite.ffmpeg.org/fate-suite/ fate-suite/</command>
|
---|
| 232 | command, thus you may want to compress and keep this directory for
|
---|
| 233 | testing again, in another system, or when a new version of ffmpeg is
|
---|
| 234 | launched. Then, you unpack the sample files in the source directory, and
|
---|
| 235 | run, again, the <command>make</command> command above, to sync with the
|
---|
| 236 | repository. Now, the download size and time are drastically reduced.
|
---|
| 237 | Estimated values in "Package Information" do not include the download
|
---|
| 238 | SBU. Next, FATE is executed, with the commands (you obtain a number of
|
---|
| 239 | tests greater than 1900):
|
---|
| 240 | </para>
|
---|
| 241 |
|
---|
| 242 | <screen><userinput>make fate SAMPLES=fate-suite/ | tee ../fate.log &&
|
---|
| 243 | grep ^TEST ../fate.log | wc -l</userinput></screen>
|
---|
| 244 |
|
---|
[a161de9] | 245 | <para>
|
---|
| 246 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 247 | </para>
|
---|
[457568e] | 248 |
|
---|
[a161de9] | 249 | <screen role="root"><userinput>make install &&
|
---|
| 250 | install -v -m755 tools/qt-faststart /usr/bin &&
|
---|
[29a6b0f] | 251 | install -v -m755 -d /usr/share/doc/ffmpeg &&
|
---|
[a161de9] | 252 | install -v -m644 doc/*.txt \
|
---|
[29a6b0f] | 253 | /usr/share/doc/ffmpeg</userinput></screen>
|
---|
[9e5b78b] | 254 |
|
---|
[faec3f7] | 255 | <para>
|
---|
[a161de9] | 256 | If HTML documentation was built, issue the following command to install it:
|
---|
[faec3f7] | 257 | </para>
|
---|
[fd7e0ed6] | 258 |
|
---|
[a161de9] | 259 | <screen role="root"><userinput>install -v -m644 doc/*.html \
|
---|
[29a6b0f] | 260 | /usr/share/doc/ffmpeg</userinput></screen>
|
---|
[c08bd877] | 261 |
|
---|
[faec3f7] | 262 | <para>
|
---|
[2216c969] | 263 | If you used <command>doxygen</command> to create the API documentation,
|
---|
[a161de9] | 264 | install it (another 300 MB of space) by issuing the following commands
|
---|
| 265 | as the <systemitem class="username">root</systemitem> user:
|
---|
[faec3f7] | 266 | </para>
|
---|
[c08bd877] | 267 |
|
---|
[29a6b0f] | 268 | <screen role="root"><userinput>install -v -m755 -d /usr/share/doc/ffmpeg/api &&
|
---|
[a161de9] | 269 | install -v -m644 doc/doxy/html/* \
|
---|
[29a6b0f] | 270 | /usr/share/doc/ffmpeg/api</userinput></screen>
|
---|
[ffd1fcc] | 271 |
|
---|
[8a1e4f4] | 272 | </sect2>
|
---|
| 273 |
|
---|
| 274 | <sect2 role="commands">
|
---|
| 275 | <title>Command Explanations</title>
|
---|
| 276 |
|
---|
[faec3f7] | 277 | <para>
|
---|
[a161de9] | 278 | <command>sed -i ...</command>: This command adds the
|
---|
| 279 | <application>ALSA</application> library to the
|
---|
| 280 | <application>Flite</application> <envar>LDFLAGS</envar> variable and
|
---|
| 281 | enables the discovery of <application>Flite</application>.
|
---|
| 282 | </para>
|
---|
| 283 |
|
---|
[05bb3720] | 284 | <para>
|
---|
| 285 | <option>--enable-libfreetype</option>: Enables
|
---|
| 286 | <application>Freetype</application> support.
|
---|
| 287 | </para>
|
---|
| 288 |
|
---|
[a161de9] | 289 | <para>
|
---|
| 290 | <parameter>--enable-gpl</parameter>: Enables the use of GPL code and
|
---|
[baf1e23] | 291 | permits support for postprocessing, swscale and many other features.
|
---|
[faec3f7] | 292 | </para>
|
---|
| 293 |
|
---|
| 294 | <para>
|
---|
[a161de9] | 295 | <parameter>--enable-version3</parameter>: Enables the use of (L)GPL
|
---|
| 296 | version 3 code.
|
---|
| 297 | </para>
|
---|
| 298 |
|
---|
| 299 | <para>
|
---|
| 300 | <parameter>--enable-nonfree</parameter>: Enables the use of nonfree
|
---|
| 301 | code. Note that the resulting libraries and binaries will be
|
---|
| 302 | unredistributable.
|
---|
[faec3f7] | 303 | </para>
|
---|
[8a1e4f4] | 304 |
|
---|
[baf1e23] | 305 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 306 | href="../../xincludes/static-libraries.xml"/>
|
---|
| 307 |
|
---|
[a161de9] | 308 | <para>
|
---|
| 309 | <parameter>--enable-shared</parameter>: Enables building shared libraries,
|
---|
| 310 | otherwise only static libraries are built and installed.
|
---|
| 311 | </para>
|
---|
| 312 |
|
---|
| 313 | <para>
|
---|
[89d37eb8] | 314 | <parameter>--disable-debug</parameter>: Disables building debugging
|
---|
| 315 | symbols into the programs and libraries.
|
---|
[a161de9] | 316 | </para>
|
---|
| 317 |
|
---|
| 318 | <para>
|
---|
[89d37eb8] | 319 | <parameter>--enable-libass</parameter>: Enables ASS/SSA subtitle format
|
---|
[c0fce1d] | 320 | rendering via <filename class="libraryfile">libass</filename>.
|
---|
[a161de9] | 321 | </para>
|
---|
| 322 |
|
---|
| 323 | <para>
|
---|
[c012c1a] | 324 | <parameter>--enable-libfdk-aac</parameter>: Enables currently the
|
---|
| 325 | highest-quality AAC audio encoding via <filename
|
---|
| 326 | class="libraryfile">libfdk-aac</filename>.
|
---|
[a161de9] | 327 | </para>
|
---|
| 328 |
|
---|
| 329 | <para>
|
---|
[c012c1a] | 330 | <parameter>--enable-libmp3lame</parameter>: Enables MP3 audio encoding via
|
---|
[a161de9] | 331 | <filename class="libraryfile">libmp3lame</filename>.
|
---|
| 332 | </para>
|
---|
| 333 |
|
---|
| 334 | <para>
|
---|
[c012c1a] | 335 | <parameter>--enable-libopus</parameter>: Enables Opus encoding for low
|
---|
| 336 | latency streaming via <filename class="libraryfile">libopus</filename>.
|
---|
[a161de9] | 337 | </para>
|
---|
| 338 |
|
---|
| 339 | <para>
|
---|
[c012c1a] | 340 | <parameter>--enable-libvorbis --enable-libtheora</parameter>: Enables
|
---|
| 341 | Theora video encoding via <filename
|
---|
| 342 | class="libraryfile">libvorbis</filename> and <filename
|
---|
| 343 | class="libraryfile">libtheora</filename>.
|
---|
[a161de9] | 344 | </para>
|
---|
| 345 |
|
---|
| 346 | <para>
|
---|
[c012c1a] | 347 | <parameter>--enable-libvorbis --enable-libvpx</parameter>: Enables WebM
|
---|
| 348 | encoding via <filename class="libraryfile">libvorbis</filename> and
|
---|
| 349 | <filename class="libraryfile">libvpx</filename>.
|
---|
[a161de9] | 350 | </para>
|
---|
| 351 |
|
---|
| 352 | <para>
|
---|
[c012c1a] | 353 | <parameter>--enable-libx264</parameter>: Enables high-quality H.264/MPEG-4
|
---|
| 354 | AVC encoding via <filename class="libraryfile">libx264</filename>.
|
---|
[a161de9] | 355 | </para>
|
---|
| 356 |
|
---|
| 357 | <para>
|
---|
[89d37eb8] | 358 | <parameter>--enable-x11grab</parameter>: Enables X11 grabbing.
|
---|
[a161de9] | 359 | </para>
|
---|
| 360 |
|
---|
[faec3f7] | 361 | <para>
|
---|
[c012c1a] | 362 | <command>gcc tools/qt-faststart.c -o tools/qt-faststart</command>:
|
---|
| 363 | This builds the <command>qt-faststart</command> program which can
|
---|
| 364 | modify QuickTime formatted movies
|
---|
| 365 | (<filename class="extension">.mov</filename> or
|
---|
| 366 | <filename class="extension">.mp4</filename>) so that the header information
|
---|
| 367 | is located at the beginning of the file instead of the end. This allows
|
---|
| 368 | the movie file to begin playing before the entire file has been downloaded.
|
---|
[2216c969] | 369 | </para>
|
---|
| 370 |
|
---|
[c012c1a] | 371 | <note>
|
---|
| 372 | <para>
|
---|
| 373 | Support for most of the dependency packages requires using options
|
---|
[d0c85de6] | 374 | passed to the <command>configure</command> script. View the output
|
---|
[c012c1a] | 375 | from <command>./configure --help</command> for complete information
|
---|
| 376 | about enabling dependency packages.
|
---|
| 377 | </para>
|
---|
| 378 | </note>
|
---|
| 379 |
|
---|
[8a1e4f4] | 380 | </sect2>
|
---|
| 381 |
|
---|
| 382 | <sect2 role="configuration">
|
---|
| 383 | <title>Configuring FFmpeg</title>
|
---|
| 384 |
|
---|
| 385 | <sect3 id="ffmpeg-config">
|
---|
| 386 | <title>Config Files</title>
|
---|
| 387 |
|
---|
[755bb92] | 388 | <para>
|
---|
| 389 | <filename>/etc/ffserver.conf</filename> and
|
---|
| 390 | <filename>~/.ffmpeg/ffserver-config</filename>
|
---|
| 391 | </para>
|
---|
[8a1e4f4] | 392 |
|
---|
| 393 | <indexterm zone="ffmpeg ffmpeg-config">
|
---|
[4162bcd] | 394 | <primary
|
---|
| 395 | sortas="e-AA.ffmpeg-ffserver-config">~/.ffmpeg/ffserver-config</primary>
|
---|
[8a1e4f4] | 396 | </indexterm>
|
---|
| 397 |
|
---|
| 398 | <indexterm zone="ffmpeg ffmpeg-config">
|
---|
| 399 | <primary sortas="e-etc-ffserver.conf">/etc/ffserver.conf</primary>
|
---|
| 400 | </indexterm>
|
---|
| 401 |
|
---|
[faec3f7] | 402 | <para>
|
---|
| 403 | You'll find a sample <command>ffserver</command> configuration file at
|
---|
| 404 | <filename>doc/ffserver.conf</filename> in the source tree.
|
---|
| 405 | </para>
|
---|
[ffd1fcc] | 406 |
|
---|
[8a1e4f4] | 407 | </sect3>
|
---|
[ffd1fcc] | 408 |
|
---|
[8a1e4f4] | 409 | </sect2>
|
---|
| 410 |
|
---|
| 411 | <sect2 role="content">
|
---|
| 412 | <title>Contents</title>
|
---|
| 413 |
|
---|
| 414 | <segmentedlist>
|
---|
| 415 | <segtitle>Installed Programs</segtitle>
|
---|
| 416 | <segtitle>Installed Libraries</segtitle>
|
---|
| 417 | <segtitle>Installed Directories</segtitle>
|
---|
| 418 |
|
---|
| 419 | <seglistitem>
|
---|
[faec3f7] | 420 | <seg>
|
---|
[89d37eb8] | 421 | ffmpeg, ffplay, ffprobe, ffserver, and
|
---|
[faec3f7] | 422 | qt-faststart
|
---|
| 423 | </seg>
|
---|
| 424 | <seg>
|
---|
[ffd1fcc] | 425 | libavcodec.so, libavdevice.so, libavfilter.so,
|
---|
| 426 | libavformat.so, libavutil.so, libpostproc.so,
|
---|
[89d37eb8] | 427 | libswresample, and libswscale.so
|
---|
[faec3f7] | 428 | </seg>
|
---|
| 429 | <seg>
|
---|
| 430 | /usr/include/libavcodec,
|
---|
[baf1e23] | 431 | /usr/include/libavdevice,
|
---|
[faec3f7] | 432 | /usr/include/libavfilter,
|
---|
| 433 | /usr/include/libavformat,
|
---|
| 434 | /usr/include/libavutil,
|
---|
[baf1e23] | 435 | /usr/include/libpostproc,
|
---|
| 436 | /usr/include/libswresample
|
---|
[faec3f7] | 437 | /usr/include/libswscale,
|
---|
[89d37eb8] | 438 | /usr/share/ffmpeg, and
|
---|
[29a6b0f] | 439 | /usr/share/doc/ffmpeg
|
---|
[faec3f7] | 440 | </seg>
|
---|
[8a1e4f4] | 441 | </seglistitem>
|
---|
| 442 | </segmentedlist>
|
---|
| 443 |
|
---|
| 444 | <variablelist>
|
---|
| 445 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 446 | <?dbfo list-presentation="list"?>
|
---|
| 447 | <?dbhtml list-presentation="table"?>
|
---|
| 448 |
|
---|
| 449 | <varlistentry id="ffmpeg-prog">
|
---|
| 450 | <term><command>ffmpeg</command></term>
|
---|
| 451 | <listitem>
|
---|
[faec3f7] | 452 | <para>
|
---|
| 453 | is a command-line tool to convert video files, network streams and
|
---|
| 454 | input from a TV card to several video formats.
|
---|
| 455 | </para>
|
---|
[8a1e4f4] | 456 | <indexterm zone="ffmpeg ffmpeg-prog">
|
---|
| 457 | <primary sortas="b-ffmpeg">ffmpeg</primary>
|
---|
| 458 | </indexterm>
|
---|
| 459 | </listitem>
|
---|
| 460 | </varlistentry>
|
---|
| 461 |
|
---|
| 462 | <varlistentry id="ffplay">
|
---|
| 463 | <term><command>ffplay</command></term>
|
---|
| 464 | <listitem>
|
---|
[faec3f7] | 465 | <para>
|
---|
| 466 | is a very simple and portable media player using the
|
---|
| 467 | <filename>ffmpeg</filename> libraries and the SDL library.
|
---|
| 468 | </para>
|
---|
[8a1e4f4] | 469 | <indexterm zone="ffmpeg ffplay">
|
---|
| 470 | <primary sortas="b-ffplay">ffplay</primary>
|
---|
| 471 | </indexterm>
|
---|
| 472 | </listitem>
|
---|
| 473 | </varlistentry>
|
---|
| 474 |
|
---|
[f60198bf] | 475 | <varlistentry id="ffprobe">
|
---|
| 476 | <term><command>ffprobe</command></term>
|
---|
| 477 | <listitem>
|
---|
[faec3f7] | 478 | <para>
|
---|
| 479 | gathers information from multimedia streams and prints it in a human
|
---|
| 480 | and machine-readable fashion.
|
---|
| 481 | </para>
|
---|
[f60198bf] | 482 | <indexterm zone="ffmpeg ffprobe">
|
---|
| 483 | <primary sortas="b-ffprobe">ffprobe</primary>
|
---|
| 484 | </indexterm>
|
---|
| 485 | </listitem>
|
---|
| 486 | </varlistentry>
|
---|
| 487 |
|
---|
[8a1e4f4] | 488 | <varlistentry id="ffserver">
|
---|
| 489 | <term><command>ffserver</command></term>
|
---|
| 490 | <listitem>
|
---|
[faec3f7] | 491 | <para>
|
---|
| 492 | is a streaming server for everything that <command>ffmpeg</command>
|
---|
| 493 | could use as input (files, streams, TV card input, webcam, etc).
|
---|
| 494 | </para>
|
---|
[8a1e4f4] | 495 | <indexterm zone="ffmpeg ffserver">
|
---|
| 496 | <primary sortas="b-ffserver">ffserver</primary>
|
---|
| 497 | </indexterm>
|
---|
| 498 | </listitem>
|
---|
| 499 | </varlistentry>
|
---|
| 500 |
|
---|
[c08bd877] | 501 | <varlistentry id="qt-faststart">
|
---|
| 502 | <term><command>qt-faststart</command></term>
|
---|
| 503 | <listitem>
|
---|
[faec3f7] | 504 | <para>
|
---|
| 505 | moves the index file to the front of quicktime (mov/mp4) videos.
|
---|
| 506 | </para>
|
---|
[c08bd877] | 507 | <indexterm zone="ffmpeg qt-faststart">
|
---|
| 508 | <primary sortas="b-qt-faststart">qt-faststart</primary>
|
---|
| 509 | </indexterm>
|
---|
| 510 | </listitem>
|
---|
| 511 | </varlistentry>
|
---|
| 512 |
|
---|
[8a1e4f4] | 513 | <varlistentry id="libavcodec">
|
---|
[4162bcd] | 514 | <term><filename class="libraryfile">libavcodec.so</filename></term>
|
---|
[8a1e4f4] | 515 | <listitem>
|
---|
[faec3f7] | 516 | <para>
|
---|
| 517 | is a library containing the <application>FFmpeg</application> codecs
|
---|
| 518 | (both encoding and decoding).
|
---|
| 519 | </para>
|
---|
[8a1e4f4] | 520 | <indexterm zone="ffmpeg libavcodec">
|
---|
[9e5b78b] | 521 | <primary sortas="c-libavcodec">libavcodec.so</primary>
|
---|
[28cd5ce] | 522 | </indexterm>
|
---|
| 523 | </listitem>
|
---|
| 524 | </varlistentry>
|
---|
| 525 |
|
---|
| 526 | <varlistentry id="libavdevice">
|
---|
[4162bcd] | 527 | <term><filename class="libraryfile">libavdevice.so</filename></term>
|
---|
[28cd5ce] | 528 | <listitem>
|
---|
[faec3f7] | 529 | <para>
|
---|
| 530 | is the <application>FFmpeg</application> device handling library.
|
---|
| 531 | </para>
|
---|
[28cd5ce] | 532 | <indexterm zone="ffmpeg libavdevice">
|
---|
[9e5b78b] | 533 | <primary sortas="c-libavdevice">libavdevice.so</primary>
|
---|
| 534 | </indexterm>
|
---|
| 535 | </listitem>
|
---|
| 536 | </varlistentry>
|
---|
| 537 |
|
---|
| 538 | <varlistentry id="libavfilter">
|
---|
[4162bcd] | 539 | <term><filename class="libraryfile">libavfilter.so</filename></term>
|
---|
[9e5b78b] | 540 | <listitem>
|
---|
[faec3f7] | 541 | <para>
|
---|
| 542 | is a library of filters that can alter video or audio between the
|
---|
| 543 | decoder and the encoder (or output).
|
---|
| 544 | </para>
|
---|
[9e5b78b] | 545 | <indexterm zone="ffmpeg libavfilter">
|
---|
| 546 | <primary sortas="c-libavfilter">libavfilter.so</primary>
|
---|
[8a1e4f4] | 547 | </indexterm>
|
---|
| 548 | </listitem>
|
---|
| 549 | </varlistentry>
|
---|
| 550 |
|
---|
| 551 | <varlistentry id="libavformat">
|
---|
[4162bcd] | 552 | <term><filename class="libraryfile">libavformat.so</filename></term>
|
---|
[8a1e4f4] | 553 | <listitem>
|
---|
[faec3f7] | 554 | <para>
|
---|
| 555 | is a library containing the file formats handling (mux and demux
|
---|
| 556 | code for several formats) used by <command>ffplay</command> as well
|
---|
| 557 | as allowing the generation of audio or video streams.
|
---|
| 558 | </para>
|
---|
[8a1e4f4] | 559 | <indexterm zone="ffmpeg libavformat">
|
---|
[9e5b78b] | 560 | <primary sortas="c-libavformat">libavformat.so</primary>
|
---|
[28cd5ce] | 561 | </indexterm>
|
---|
| 562 | </listitem>
|
---|
| 563 | </varlistentry>
|
---|
| 564 |
|
---|
| 565 | <varlistentry id="libavutil">
|
---|
[4162bcd] | 566 | <term><filename class="libraryfile">libavutil.so</filename></term>
|
---|
[28cd5ce] | 567 | <listitem>
|
---|
[ffd1fcc] | 568 | <para>
|
---|
| 569 | is the <application>FFmpeg</application> utility library.
|
---|
| 570 | </para>
|
---|
[28cd5ce] | 571 | <indexterm zone="ffmpeg libavutil">
|
---|
[9e5b78b] | 572 | <primary sortas="c-libavutil">libavutil.so</primary>
|
---|
[28cd5ce] | 573 | </indexterm>
|
---|
| 574 | </listitem>
|
---|
| 575 | </varlistentry>
|
---|
| 576 |
|
---|
[874f1e88] | 577 | <varlistentry id="libpostproc">
|
---|
[4162bcd] | 578 | <term><filename class="libraryfile">libpostproc.so</filename></term>
|
---|
[28cd5ce] | 579 | <listitem>
|
---|
[faec3f7] | 580 | <para>
|
---|
| 581 | is the <application>FFmpeg</application> post processing library.
|
---|
| 582 | </para>
|
---|
[28cd5ce] | 583 | <indexterm zone="ffmpeg libpostproc">
|
---|
[9e5b78b] | 584 | <primary sortas="c-libpostproc">libpostproc.so</primary>
|
---|
[28cd5ce] | 585 | </indexterm>
|
---|
| 586 | </listitem>
|
---|
| 587 | </varlistentry>
|
---|
| 588 |
|
---|
[baf1e23] | 589 | <varlistentry id="libswresample">
|
---|
| 590 | <term><filename class="libraryfile">libswresample.so</filename></term>
|
---|
| 591 | <listitem>
|
---|
| 592 | <para>
|
---|
| 593 | is the <application>FFmpeg</application> audio rescaling library,
|
---|
| 594 | it contains functions for converting audio sample formats.
|
---|
| 595 | </para>
|
---|
| 596 | <indexterm zone="ffmpeg libswresample">
|
---|
| 597 | <primary sortas="c-libswresample">libswresample.so</primary>
|
---|
| 598 | </indexterm>
|
---|
| 599 | </listitem>
|
---|
| 600 | </varlistentry>
|
---|
| 601 |
|
---|
[28cd5ce] | 602 | <varlistentry id="libswscale">
|
---|
[4162bcd] | 603 | <term><filename class="libraryfile">libswscale.so</filename></term>
|
---|
[28cd5ce] | 604 | <listitem>
|
---|
[faec3f7] | 605 | <para>
|
---|
| 606 | is the <application>FFmpeg</application> image rescaling library.
|
---|
| 607 | </para>
|
---|
[28cd5ce] | 608 | <indexterm zone="ffmpeg libswscale">
|
---|
[9e5b78b] | 609 | <primary sortas="c-libswscale">libswscale.so</primary>
|
---|
[8a1e4f4] | 610 | </indexterm>
|
---|
| 611 | </listitem>
|
---|
| 612 | </varlistentry>
|
---|
[ffd1fcc] | 613 |
|
---|
[8a1e4f4] | 614 | </variablelist>
|
---|
[ffd1fcc] | 615 |
|
---|
[8a1e4f4] | 616 | </sect2>
|
---|
[ffd1fcc] | 617 |
|
---|
[49e5372] | 618 | </sect1>
|
---|