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