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