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