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