[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 |
|
---|
[c6b192c] | 7 | <!ENTITY ffmpeg-download-http "https://ffmpeg.org/releases/ffmpeg-&ffmpeg-version;.tar.xz">
|
---|
[01062dd] | 8 | <!ENTITY ffmpeg-download-ftp " ">
|
---|
[90842d79] | 9 | <!ENTITY ffmpeg-md5sum "7b9d5b652d20e8c5405304ad72636d4a">
|
---|
| 10 | <!ENTITY ffmpeg-size "9.2 MB">
|
---|
| 11 | <!ENTITY ffmpeg-buildsize "176 MB (add 2.4 GB for the FATE suite/tests, add 1.4 GB for documentation)">
|
---|
[a4c3c48] | 12 | <!ENTITY ffmpeg-time "1.3 SBU (using parallelism=4; add 3.6 SBU (with THREADS=4) to run the FATE suite after sample files are downloaded; add 0.7 SBU for doxygen docs)">
|
---|
[01062dd] | 13 | ]>
|
---|
| 14 |
|
---|
[0b5a693] | 15 | <sect1 id="ffmpeg" xreflabel="FFmpeg-&ffmpeg-version;">
|
---|
[8a1e4f4] | 16 | <?dbhtml filename="ffmpeg.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <date>$Date$</date>
|
---|
| 20 | </sect1info>
|
---|
| 21 |
|
---|
| 22 | <title>FFmpeg-&ffmpeg-version;</title>
|
---|
| 23 |
|
---|
| 24 | <indexterm zone="ffmpeg">
|
---|
| 25 | <primary sortas="a-FFmpeg">FFmpeg</primary>
|
---|
| 26 | </indexterm>
|
---|
| 27 |
|
---|
| 28 | <sect2 role="package">
|
---|
| 29 | <title>Introduction to FFmpeg</title>
|
---|
| 30 |
|
---|
[faec3f7] | 31 | <para>
|
---|
| 32 | <application>FFmpeg</application> is a solution to record, convert and
|
---|
| 33 | stream audio and video. It is a very fast video and audio converter and it
|
---|
| 34 | can also acquire from a live audio/video source. Designed to be intuitive,
|
---|
| 35 | the command-line interface (<command>ffmpeg</command>) tries to figure out
|
---|
| 36 | all the parameters, when possible. <application>FFmpeg</application> can
|
---|
| 37 | also convert from any sample rate to any other, and resize video on the
|
---|
| 38 | fly with a high quality polyphase filter.
|
---|
[a161de9] | 39 | <application>FFmpeg</application> can use a Video4Linux compatible video
|
---|
[faec3f7] | 40 | source and any Open Sound System audio source.
|
---|
| 41 | </para>
|
---|
[9e5b78b] | 42 |
|
---|
[a4c3c48] | 43 | &lfs101_checked;
|
---|
[8a1e4f4] | 44 |
|
---|
| 45 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 46 | <itemizedlist spacing="compact">
|
---|
| 47 | <listitem>
|
---|
[ffd1fcc] | 48 | <para>
|
---|
| 49 | Download (HTTP): <ulink url="&ffmpeg-download-http;"/>
|
---|
| 50 | </para>
|
---|
[8a1e4f4] | 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
[ffd1fcc] | 53 | <para>
|
---|
| 54 | Download (FTP): <ulink url="&ffmpeg-download-ftp;"/>
|
---|
| 55 | </para>
|
---|
[8a1e4f4] | 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
[ffd1fcc] | 58 | <para>
|
---|
| 59 | Download MD5 sum: &ffmpeg-md5sum;
|
---|
| 60 | </para>
|
---|
[8a1e4f4] | 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
[ffd1fcc] | 63 | <para>
|
---|
| 64 | Download size: &ffmpeg-size;
|
---|
| 65 | </para>
|
---|
[8a1e4f4] | 66 | </listitem>
|
---|
| 67 | <listitem>
|
---|
[ffd1fcc] | 68 | <para>
|
---|
| 69 | Estimated disk space required: &ffmpeg-buildsize;
|
---|
| 70 | </para>
|
---|
[8a1e4f4] | 71 | </listitem>
|
---|
| 72 | <listitem>
|
---|
[ffd1fcc] | 73 | <para>
|
---|
| 74 | Estimated build time: &ffmpeg-time;
|
---|
| 75 | </para>
|
---|
[8a1e4f4] | 76 | </listitem>
|
---|
| 77 | </itemizedlist>
|
---|
| 78 |
|
---|
[f29d6ee] | 79 | <bridgehead renderas="sect3">FFmpeg Dependencies</bridgehead>
|
---|
[8a1e4f4] | 80 |
|
---|
[28cd5ce] | 81 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
[aaa3ccd] | 82 | <para role="recommended">
|
---|
[89d37eb8] | 83 | <xref linkend="libass"/>,
|
---|
| 84 | <xref linkend="fdk-aac"/>,
|
---|
[a525ccb] | 85 | <xref linkend="freetype2"/>,
|
---|
[efcf979] | 86 | <xref linkend="lame"/>,
|
---|
[baf1e23] | 87 | <xref linkend="libtheora"/>,
|
---|
[efcf979] | 88 | <xref linkend="libvorbis"/>,
|
---|
[a525ccb] | 89 | <xref linkend="libvpx"/>,
|
---|
[287a07e] | 90 | <xref linkend="opus"/>,
|
---|
[1fa4314] | 91 | <xref linkend="x264"/>,
|
---|
| 92 | <xref linkend="x265"/>, and
|
---|
[34bcb5ec] | 93 | <xref linkend="nasm"/> or <xref linkend="yasm"/>
|
---|
[457568e] | 94 | </para>
|
---|
| 95 |
|
---|
[89d37eb8] | 96 | <bridgehead renderas="sect4">Recommended for desktop use</bridgehead>
|
---|
[7e1afc9] | 97 | <para role="recommended">
|
---|
[89d37eb8] | 98 | <xref linkend="alsa-lib"/>,
|
---|
[287a07e] | 99 | <xref linkend="libva"/>,
|
---|
| 100 | <xref linkend="libvdpau"/> (with the corresponding driver package), and
|
---|
[bc228ec] | 101 | <xref linkend="sdl2"/>
|
---|
[07584d8] | 102 | </para>
|
---|
| 103 |
|
---|
[457568e] | 104 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 105 | <para role="optional">
|
---|
[a4c3c48] | 106 | <xref linkend="doxygen"/>,
|
---|
[287a07e] | 107 | <xref linkend="fontconfig"/>,
|
---|
[a516869] | 108 | <xref linkend="fribidi"/>,
|
---|
[60d53ec3] | 109 | <xref linkend="frei0r"/>,
|
---|
[287a07e] | 110 | <xref linkend="libcdio"/> (to identify and play CDs),
|
---|
[a5dfb970] | 111 | <xref linkend="libdrm"/> (for <quote>kmsgrab</quote> input),
|
---|
[2f0f7a0] | 112 | <xref linkend="libwebp"/>,
|
---|
[60d53ec3] | 113 | <xref linkend="opencv"/>,
|
---|
[0fd465f5] | 114 | <xref linkend="openjpeg2"/>,
|
---|
[80d4245] | 115 | <xref linkend="gnutls"/>,
|
---|
[287a07e] | 116 | <xref linkend="pulseaudio"/>,
|
---|
[a516869] | 117 | <xref linkend="samba"/>,
|
---|
[287a07e] | 118 | <xref linkend="speex"/>,
|
---|
[f3429309] | 119 | <xref linkend="texlive"/>
|
---|
[60d53ec3] | 120 | (or <xref linkend="tl-installer"/>) for PDF and PS documentation,
|
---|
[80dbc4c8] | 121 | <xref linkend="v4l-utils"/>,
|
---|
[287a07e] | 122 | <xref linkend="xvid"/>,
|
---|
| 123 | <xref linkend="x-window-system"/>,
|
---|
| 124 | <ulink url="http://www.speech.cs.cmu.edu/flite/">Flite</ulink>,
|
---|
| 125 | <ulink url="http://www.quut.com/gsm/">GSM</ulink>,
|
---|
[d27242d4] | 126 | <!--<ulink url="http://xhevc.com/en/hevc/decoder/download.jsp">HEVC/H.265</ulink>,-->
|
---|
[20f09631] | 127 | <!--<ulink url="http://www.ladspa.org/">LADSPA</ulink>,-->
|
---|
[4162bcd] | 128 | <ulink url="http://tipok.org.ua/node/17">libaacplus</ulink>,
|
---|
[a161de9] | 129 | <ulink url="http://www.videolan.org/developers/libbluray.html">libbluray</ulink>,
|
---|
| 130 | <ulink url="http://caca.zoy.org/">libcaca</ulink>,
|
---|
[93c17b90] | 131 | <ulink url="https://gitlab.xiph.org/xiph/celt">libcelt</ulink>,
|
---|
[c6b192c] | 132 | <ulink url="https://sourceforge.net/projects/libdc1394">libdc1394</ulink>,
|
---|
[287a07e] | 133 | <ulink url="https://www.videolan.org/developers/libdca.html">libdca</ulink>,
|
---|
[a161de9] | 134 | <ulink url="https://ieee1394.wiki.kernel.org/index.php/Libraries">libiec61883</ulink>,
|
---|
| 135 | <ulink url="https://github.com/dekkers/libilbc">libilbc</ulink>,
|
---|
[c6b192c] | 136 | <ulink url="https://sourceforge.net/projects/modplug-xmms/">libmodplug</ulink>,
|
---|
[a754ee2b] | 137 | <ulink url="https://github.com/Distrotech/libnut">libnut</ulink> (Git checkout),
|
---|
[287a07e] | 138 | <ulink url="http://rtmpdump.mplayerhq.hu/">librtmp</ulink>,
|
---|
| 139 | <ulink url="http://www.libssh.org/">libssh</ulink>,
|
---|
[20f09631] | 140 | <!--<ulink url="http://xavs.sourceforge.net/">libxavs</ulink> (SVN checkout),-->
|
---|
[a4c3c48] | 141 | <ulink url="https://openal.org/">OpenAL</ulink>,
|
---|
[c6b192c] | 142 | <ulink url="https://sourceforge.net/projects/opencore-amr">OpenCore AMR</ulink>,
|
---|
[9e3d18a7] | 143 | <!--<ulink url="http://diracvideo.org/">Schroedinger</ulink>,-->
|
---|
[c6b192c] | 144 | <ulink url="https://sourceforge.net/projects/schrodinger/">Schroedinger</ulink>,
|
---|
[a161de9] | 145 | <ulink url="http://www.twolame.org/">TwoLAME</ulink>,
|
---|
[c6b192c] | 146 | <ulink url="https://sourceforge.net/projects/opencore-amr/files/vo-aacenc/">vo-aaenc</ulink>,
|
---|
| 147 | <ulink url="https://sourceforge.net/projects/opencore-amr/files/vo-amrwbenc/">vo-amrwbenc</ulink>, and
|
---|
[20f09631] | 148 | <!--<ulink url="http://www.videolan.org/developers/x265.html">x265 (H.265/MPEG-H HEVC)</ulink>, and-->
|
---|
[287a07e] | 149 | <ulink url="http://zapping.sourceforge.net/ZVBI/">ZVBI</ulink>
|
---|
[ffd1fcc] | 150 | </para>
|
---|
[8a1e4f4] | 151 |
|
---|
[faec3f7] | 152 | <para condition="html" role="usernotes">
|
---|
| 153 | User Notes: <ulink url="&blfs-wiki;/ffmpeg"/>
|
---|
| 154 | </para>
|
---|
[8a1e4f4] | 155 | </sect2>
|
---|
| 156 |
|
---|
| 157 | <sect2 role="installation">
|
---|
| 158 | <title>Installation of FFmpeg</title>
|
---|
| 159 |
|
---|
[faec3f7] | 160 | <para>
|
---|
| 161 | Install <application>FFmpeg</application> by running the following
|
---|
| 162 | commands:
|
---|
| 163 | </para>
|
---|
[8a1e4f4] | 164 |
|
---|
[5a2fd537] | 165 | <screen><userinput>sed -i 's/-lflite"/-lflite -lasound"/' configure &&
|
---|
[70f1af0] | 166 |
|
---|
[eb32964] | 167 | ./configure --prefix=/usr \
|
---|
| 168 | --enable-gpl \
|
---|
| 169 | --enable-version3 \
|
---|
| 170 | --enable-nonfree \
|
---|
| 171 | --disable-static \
|
---|
| 172 | --enable-shared \
|
---|
| 173 | --disable-debug \
|
---|
[12ebd0e] | 174 | --enable-avresample \
|
---|
[eb32964] | 175 | --enable-libass \
|
---|
| 176 | --enable-libfdk-aac \
|
---|
[a525ccb] | 177 | --enable-libfreetype \
|
---|
[eb32964] | 178 | --enable-libmp3lame \
|
---|
| 179 | --enable-libopus \
|
---|
| 180 | --enable-libtheora \
|
---|
| 181 | --enable-libvorbis \
|
---|
| 182 | --enable-libvpx \
|
---|
| 183 | --enable-libx264 \
|
---|
[1fa4314] | 184 | --enable-libx265 \
|
---|
[a516869] | 185 | --enable-openssl \
|
---|
[791213b] | 186 | --docdir=/usr/share/doc/ffmpeg-&ffmpeg-version; &&
|
---|
[70f1af0] | 187 |
|
---|
[a161de9] | 188 | make &&
|
---|
[70f1af0] | 189 |
|
---|
[0ee2aa3] | 190 | gcc tools/qt-faststart.c -o tools/qt-faststart</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 |
|
---|
[ba1ccf6] | 198 | <!-- sed -i '$s/$/\n\n@bye/' doc/{git-howto,nut,fate}.texi &&
|
---|
| 199 | sed -i '/machine:i386/ s/\\/@backslashchar{}/g' doc/platform.texi && -->
|
---|
[a42c273] | 200 | <screen remap="doc"><userinput>pushd doc &&
|
---|
[a161de9] | 201 | for DOCNAME in `basename -s .html *.html`
|
---|
| 202 | do
|
---|
| 203 | texi2pdf -b $DOCNAME.texi &&
|
---|
| 204 | texi2dvi -b $DOCNAME.texi &&
|
---|
[70f1af0] | 205 |
|
---|
| 206 | dvips -o $DOCNAME.ps \
|
---|
[42160e7] | 207 | $DOCNAME.dvi
|
---|
[70f1af0] | 208 | done &&
|
---|
| 209 | popd &&
|
---|
[a161de9] | 210 | unset DOCNAME</userinput></screen>
|
---|
[c08bd877] | 211 |
|
---|
[faec3f7] | 212 | <para>
|
---|
[38290b4] | 213 | If you have <xref linkend="doxygen"/> installed
|
---|
| 214 | and you wish to build (if --disable-doc was
|
---|
[a42c273] | 215 | used) or rebuild the html documentation, issue:
|
---|
[faec3f7] | 216 | </para>
|
---|
[8a1e4f4] | 217 |
|
---|
[a42c273] | 218 | <screen remap="doc"><userinput>doxygen doc/Doxyfile</userinput></screen>
|
---|
| 219 |
|
---|
[a161de9] | 220 | <para>
|
---|
[dc29e3ac] | 221 | The fate-suite tests include comparisons with installed files, and should
|
---|
| 222 | not be run before the package is installed. Therefore, if you desire to
|
---|
| 223 | run them, instructions are given further below.
|
---|
[a161de9] | 224 | </para>
|
---|
[8a1e4f4] | 225 |
|
---|
[a161de9] | 226 | <para>
|
---|
| 227 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 228 | </para>
|
---|
[457568e] | 229 |
|
---|
[a161de9] | 230 | <screen role="root"><userinput>make install &&
|
---|
[70f1af0] | 231 |
|
---|
[a161de9] | 232 | install -v -m755 tools/qt-faststart /usr/bin &&
|
---|
[8e848de9] | 233 | install -v -m755 -d /usr/share/doc/ffmpeg-&ffmpeg-version; &&
|
---|
[0e29df6] | 234 | install -v -m644 doc/*.txt /usr/share/doc/ffmpeg-&ffmpeg-version;</userinput></screen>
|
---|
[9e5b78b] | 235 |
|
---|
[faec3f7] | 236 | <para>
|
---|
[17b685f1] | 237 | If the PDF and Postscript documentation was built, issue the following
|
---|
[791213b] | 238 | commands, as the <systemitem class="username">root</systemitem> user, to
|
---|
| 239 | install them:
|
---|
[faec3f7] | 240 | </para>
|
---|
[fd7e0ed6] | 241 |
|
---|
[a42c273] | 242 | <screen role="root"
|
---|
| 243 | remap="doc"><userinput>install -v -m644 doc/*.pdf /usr/share/doc/ffmpeg-&ffmpeg-version; &&
|
---|
[0e29df6] | 244 | install -v -m644 doc/*.ps /usr/share/doc/ffmpeg-&ffmpeg-version;</userinput></screen>
|
---|
[c08bd877] | 245 |
|
---|
[faec3f7] | 246 | <para>
|
---|
[38290b4] | 247 | If you used <command>doxygen</command> to manually create the API
|
---|
| 248 | documentation, install it by issuing the following commands
|
---|
[a161de9] | 249 | as the <systemitem class="username">root</systemitem> user:
|
---|
[faec3f7] | 250 | </para>
|
---|
[c08bd877] | 251 |
|
---|
[a42c273] | 252 | <screen role="root"
|
---|
| 253 | remap="doc"><userinput>install -v -m755 -d /usr/share/doc/ffmpeg-&ffmpeg-version;/api &&
|
---|
[70f1af0] | 254 | cp -vr doc/doxy/html/* /usr/share/doc/ffmpeg-&ffmpeg-version;/api &&
|
---|
| 255 | find /usr/share/doc/ffmpeg-&ffmpeg-version;/api -type f -exec chmod -c 0644 \{} \; &&
|
---|
| 256 | find /usr/share/doc/ffmpeg-&ffmpeg-version;/api -type d -exec chmod -c 0755 \{} \;</userinput></screen>
|
---|
[ffd1fcc] | 257 |
|
---|
[dc29e3ac] | 258 | <para>
|
---|
| 259 | To properly test the installation you must have <xref linkend="rsync"/>
|
---|
| 260 | installed and follow the instructions for the <ulink
|
---|
| 261 | url="http://www.ffmpeg.org/fate.html"> FFmpeg Automated Testing
|
---|
[7e1afc9] | 262 | Environment</ulink> (FATE). First, about 1 GB of sample files used to
|
---|
[dc29e3ac] | 263 | run FATE are downloaded with the command:
|
---|
| 264 | </para>
|
---|
| 265 |
|
---|
[a42c273] | 266 | <screen remap="test"><userinput>make fate-rsync SAMPLES=fate-suite/</userinput></screen>
|
---|
[dc29e3ac] | 267 |
|
---|
| 268 | <para>
|
---|
| 269 | The <filename class="directory">fate-suite</filename> directory is
|
---|
[2adbd3da] | 270 | created and the files are downloaded there. That command actually runs an
|
---|
| 271 | rsync command, to obtain the sample files. You may want to compress and
|
---|
| 272 | keep this directory for testing again, in another system, or when a new
|
---|
| 273 | version of ffmpeg is launched. Then, you unpack the sample files in the
|
---|
| 274 | source directory, and run, again, the <command>make fate-rsync
|
---|
| 275 | ...</command> command above, to sync with the repository. Now, the
|
---|
| 276 | download size and time are drastically reduced. Estimated values in
|
---|
| 277 | "Package Information" do not include the download SBU. Some samples may
|
---|
| 278 | have been removed, in the new version, so, in order to be sure local and
|
---|
[70f1af0] | 279 | server fate samples are identical, when you use previously saved samples,
|
---|
| 280 | run the following command:
|
---|
[2adbd3da] | 281 | </para>
|
---|
| 282 |
|
---|
[2f3e3de9] | 283 | <screen role="nodump"><userinput>rsync -vrltLW --delete --timeout=60 --contimeout=60 \
|
---|
| 284 | rsync://fate-suite.ffmpeg.org/fate-suite/ fate-suite/</userinput></screen>
|
---|
[f3429309] | 285 |
|
---|
[2adbd3da] | 286 | <para>
|
---|
| 287 | Next, FATE is executed, with the commands (you obtain a number of tests
|
---|
[a55fc26] | 288 | larger than 3700):
|
---|
[dc29e3ac] | 289 | </para>
|
---|
| 290 |
|
---|
[a42c273] | 291 | <screen remap="test"><userinput>make fate THREADS=<replaceable>N</replaceable> SAMPLES=fate-suite/ | tee ../fate.log &&
|
---|
[dc29e3ac] | 292 | grep ^TEST ../fate.log | wc -l</userinput></screen>
|
---|
[f3429309] | 293 |
|
---|
[06da9a6] | 294 | <para>
|
---|
| 295 | where <replaceable>N</replaceable> is an integer,
|
---|
[c840bd37] | 296 | <replaceable>N</replaceable> ≤ number of cores in the system.
|
---|
[06da9a6] | 297 | </para>
|
---|
[dc29e3ac] | 298 |
|
---|
[8a1e4f4] | 299 | </sect2>
|
---|
| 300 |
|
---|
| 301 | <sect2 role="commands">
|
---|
| 302 | <title>Command Explanations</title>
|
---|
| 303 |
|
---|
[faec3f7] | 304 | <para>
|
---|
[43a3a17] | 305 | <command>sed -i ... configure</command>: This command adds the
|
---|
[a161de9] | 306 | <application>ALSA</application> library to the
|
---|
| 307 | <application>Flite</application> <envar>LDFLAGS</envar> variable and
|
---|
| 308 | enables the discovery of <application>Flite</application>.
|
---|
| 309 | </para>
|
---|
| 310 |
|
---|
[43a3a17] | 311 | <para>
|
---|
[a4c3c48] | 312 | <command>find ... ;</command>: Fixes permissions of documentation files
|
---|
[43a3a17] | 313 | and directories.
|
---|
| 314 | </para>
|
---|
| 315 |
|
---|
[05bb3720] | 316 | <para>
|
---|
[1a518e97] | 317 | <parameter>--enable-libfreetype</parameter>: Enables
|
---|
[05bb3720] | 318 | <application>Freetype</application> support.
|
---|
| 319 | </para>
|
---|
| 320 |
|
---|
[a161de9] | 321 | <para>
|
---|
| 322 | <parameter>--enable-gpl</parameter>: Enables the use of GPL code and
|
---|
[baf1e23] | 323 | permits support for postprocessing, swscale and many other features.
|
---|
[faec3f7] | 324 | </para>
|
---|
| 325 |
|
---|
| 326 | <para>
|
---|
[a161de9] | 327 | <parameter>--enable-version3</parameter>: Enables the use of (L)GPL
|
---|
| 328 | version 3 code.
|
---|
| 329 | </para>
|
---|
| 330 |
|
---|
| 331 | <para>
|
---|
[dc29e3ac] | 332 | <parameter>--enable-nonfree</parameter>: Enables the use of nonfree code.
|
---|
| 333 | Note that the resulting libraries and binaries will be unredistributable.
|
---|
[faec3f7] | 334 | </para>
|
---|
[8a1e4f4] | 335 |
|
---|
[baf1e23] | 336 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 337 | href="../../xincludes/static-libraries.xml"/>
|
---|
| 338 |
|
---|
[a161de9] | 339 | <para>
|
---|
[dc29e3ac] | 340 | <parameter>--enable-shared</parameter>: Enables building shared
|
---|
| 341 | libraries, otherwise only static libraries are built and installed.
|
---|
[a161de9] | 342 | </para>
|
---|
| 343 |
|
---|
| 344 | <para>
|
---|
[89d37eb8] | 345 | <parameter>--disable-debug</parameter>: Disables building debugging
|
---|
| 346 | symbols into the programs and libraries.
|
---|
[a161de9] | 347 | </para>
|
---|
| 348 |
|
---|
[12ebd0e] | 349 | <para>
|
---|
| 350 | <parameter>--enable-avresample</parameter>: Enables
|
---|
| 351 | <xref linkend="transcode"/> to be compiled.
|
---|
| 352 | </para>
|
---|
| 353 |
|
---|
[a161de9] | 354 | <para>
|
---|
[89d37eb8] | 355 | <parameter>--enable-libass</parameter>: Enables ASS/SSA subtitle format
|
---|
[c0fce1d] | 356 | rendering via <filename class="libraryfile">libass</filename>.
|
---|
[a161de9] | 357 | </para>
|
---|
| 358 |
|
---|
[a5dfb970] | 359 | <para>
|
---|
[2597ad1] | 360 | <option>--enable-libdrm</option>: Use this switch if
|
---|
| 361 | <xref linkend="libdrm"/> is installed to build the <quote>kmsgrab</quote>
|
---|
| 362 | input module which is useful for screen capturing or streaming.
|
---|
[a5dfb970] | 363 | </para>
|
---|
| 364 |
|
---|
[a161de9] | 365 | <para>
|
---|
[c012c1a] | 366 | <parameter>--enable-libfdk-aac</parameter>: Enables currently the
|
---|
| 367 | highest-quality AAC audio encoding via <filename
|
---|
| 368 | class="libraryfile">libfdk-aac</filename>.
|
---|
[a161de9] | 369 | </para>
|
---|
| 370 |
|
---|
| 371 | <para>
|
---|
[dc29e3ac] | 372 | <parameter>--enable-libmp3lame</parameter>: Enables MP3 audio encoding
|
---|
| 373 | via <filename class="libraryfile">libmp3lame</filename>.
|
---|
[a161de9] | 374 | </para>
|
---|
| 375 |
|
---|
| 376 | <para>
|
---|
[c012c1a] | 377 | <parameter>--enable-libvorbis --enable-libtheora</parameter>: Enables
|
---|
| 378 | Theora video encoding via <filename
|
---|
| 379 | class="libraryfile">libvorbis</filename> and <filename
|
---|
| 380 | class="libraryfile">libtheora</filename>.
|
---|
[a161de9] | 381 | </para>
|
---|
| 382 |
|
---|
| 383 | <para>
|
---|
[c012c1a] | 384 | <parameter>--enable-libvorbis --enable-libvpx</parameter>: Enables WebM
|
---|
| 385 | encoding via <filename class="libraryfile">libvorbis</filename> and
|
---|
| 386 | <filename class="libraryfile">libvpx</filename>.
|
---|
[a161de9] | 387 | </para>
|
---|
| 388 |
|
---|
| 389 | <para>
|
---|
[dc29e3ac] | 390 | <parameter>--enable-libx264</parameter>: Enables high-quality
|
---|
| 391 | H.264/MPEG-4 AVC encoding via <filename
|
---|
[118613f] | 392 | class="libraryfile">libx264</filename>.
|
---|
[a161de9] | 393 | </para>
|
---|
| 394 |
|
---|
[1fa4314] | 395 | <para>
|
---|
| 396 | <parameter>--enable-libx265</parameter>: Enables high-quality
|
---|
| 397 | H.265/HEVC encoding via <filename
|
---|
| 398 | class="libraryfile">libx265</filename>.
|
---|
| 399 | </para>
|
---|
| 400 |
|
---|
[ea8738a] | 401 | <para>
|
---|
[a516869] | 402 | <parameter>--enable-openssl</parameter>:
|
---|
[ea8738a] | 403 | Enables HTTPS protocol for network streams.
|
---|
| 404 | </para>
|
---|
| 405 |
|
---|
[a516869] | 406 | <para>
|
---|
| 407 | <option>--enable-gnutls</option>: Use this option instead of
|
---|
| 408 | <parameter>--enable-openssl</parameter>, if you want to use
|
---|
| 409 | <application>GnuTLS</application> instead of
|
---|
| 410 | <application>OpenSSL</application> for HTTPS protocol.
|
---|
| 411 | </para>
|
---|
| 412 |
|
---|
[7197352] | 413 | <para>
|
---|
| 414 | <option>--disable-doc</option>: Disables building html documentation.
|
---|
| 415 | This is only needed if <xref linkend="doxygen"/> is installed and you
|
---|
| 416 | do not want to build the html documentation.
|
---|
| 417 | </para>
|
---|
| 418 |
|
---|
[77cce582] | 419 | <para>
|
---|
| 420 | <option>--enable-libpulse</option>: Enables support for
|
---|
| 421 | <application>Pulseaudio</application> for audio output.
|
---|
| 422 | </para>
|
---|
| 423 |
|
---|
[faec3f7] | 424 | <para>
|
---|
[dc29e3ac] | 425 | <command>gcc tools/qt-faststart.c -o tools/qt-faststart</command>: This
|
---|
| 426 | builds the <command>qt-faststart</command> program which can modify
|
---|
| 427 | QuickTime formatted movies (<filename class="extension">.mov</filename>
|
---|
| 428 | or <filename class="extension">.mp4</filename>) so that the header
|
---|
| 429 | information is located at the beginning of the file instead of the end.
|
---|
| 430 | This allows the movie file to begin playing before the entire file has
|
---|
| 431 | been downloaded.
|
---|
[2216c969] | 432 | </para>
|
---|
| 433 |
|
---|
[c012c1a] | 434 | <note>
|
---|
| 435 | <para>
|
---|
| 436 | Support for most of the dependency packages requires using options
|
---|
[d0c85de6] | 437 | passed to the <command>configure</command> script. View the output
|
---|
[c012c1a] | 438 | from <command>./configure --help</command> for complete information
|
---|
| 439 | about enabling dependency packages.
|
---|
| 440 | </para>
|
---|
| 441 | </note>
|
---|
| 442 |
|
---|
[8a1e4f4] | 443 | </sect2>
|
---|
| 444 |
|
---|
[a4c3c48] | 445 | <!-- ffserver has been removed
|
---|
[8a1e4f4] | 446 | <sect2 role="configuration">
|
---|
| 447 | <title>Configuring FFmpeg</title>
|
---|
| 448 |
|
---|
| 449 | <sect3 id="ffmpeg-config">
|
---|
| 450 | <title>Config Files</title>
|
---|
| 451 |
|
---|
[755bb92] | 452 | <para>
|
---|
[a4c3c48] | 453 | <filename>/etc/ffserver.conf</filename>
|
---|
| 454 | <filename>~/.ffmpeg/ffserver-config</filename>
|
---|
[755bb92] | 455 | </para>
|
---|
[8a1e4f4] | 456 |
|
---|
| 457 | <indexterm zone="ffmpeg ffmpeg-config">
|
---|
[4162bcd] | 458 | <primary
|
---|
| 459 | sortas="e-AA.ffmpeg-ffserver-config">~/.ffmpeg/ffserver-config</primary>
|
---|
[8a1e4f4] | 460 | </indexterm>
|
---|
| 461 |
|
---|
| 462 | <indexterm zone="ffmpeg ffmpeg-config">
|
---|
| 463 | <primary sortas="e-etc-ffserver.conf">/etc/ffserver.conf</primary>
|
---|
| 464 | </indexterm>
|
---|
| 465 |
|
---|
[faec3f7] | 466 | <para>
|
---|
| 467 | You'll find a sample <command>ffserver</command> configuration file at
|
---|
| 468 | <filename>doc/ffserver.conf</filename> in the source tree.
|
---|
| 469 | </para>
|
---|
[ffd1fcc] | 470 |
|
---|
[8a1e4f4] | 471 | </sect3>
|
---|
[ffd1fcc] | 472 |
|
---|
[8a1e4f4] | 473 | </sect2>
|
---|
[a4c3c48] | 474 | -->
|
---|
[8a1e4f4] | 475 |
|
---|
| 476 | <sect2 role="content">
|
---|
| 477 | <title>Contents</title>
|
---|
| 478 |
|
---|
| 479 | <segmentedlist>
|
---|
| 480 | <segtitle>Installed Programs</segtitle>
|
---|
| 481 | <segtitle>Installed Libraries</segtitle>
|
---|
| 482 | <segtitle>Installed Directories</segtitle>
|
---|
| 483 |
|
---|
| 484 | <seglistitem>
|
---|
[faec3f7] | 485 | <seg>
|
---|
[a4c3c48] | 486 | ffmpeg, ffplay, ffprobe, <!--ffserver,--> and qt-faststart
|
---|
[faec3f7] | 487 | </seg>
|
---|
| 488 | <seg>
|
---|
[ffd1fcc] | 489 | libavcodec.so, libavdevice.so, libavfilter.so,
|
---|
[a4c3c48] | 490 | libavformat.so, libavutil.so, libavresample.so, libpostproc.so,
|
---|
[638fc4a] | 491 | libswresample.so, and libswscale.so
|
---|
[faec3f7] | 492 | </seg>
|
---|
| 493 | <seg>
|
---|
[a4c3c48] | 494 | /usr/include/libav{codec,device,filter,format,resample,util},
|
---|
[b8efb1fb] | 495 | /usr/include/libpostproc,
|
---|
| 496 | /usr/include/libsw{resample,scale},
|
---|
[813ea9af] | 497 | /usr/share/doc/ffmpeg-&ffmpeg-version;, and
|
---|
| 498 | /usr/share/ffmpeg
|
---|
[faec3f7] | 499 | </seg>
|
---|
[8a1e4f4] | 500 | </seglistitem>
|
---|
| 501 | </segmentedlist>
|
---|
| 502 |
|
---|
| 503 | <variablelist>
|
---|
| 504 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 505 | <?dbfo list-presentation="list"?>
|
---|
| 506 | <?dbhtml list-presentation="table"?>
|
---|
| 507 |
|
---|
| 508 | <varlistentry id="ffmpeg-prog">
|
---|
| 509 | <term><command>ffmpeg</command></term>
|
---|
| 510 | <listitem>
|
---|
[faec3f7] | 511 | <para>
|
---|
| 512 | is a command-line tool to convert video files, network streams and
|
---|
[4c24eb0a] | 513 | input from a TV card to several video formats
|
---|
[faec3f7] | 514 | </para>
|
---|
[8a1e4f4] | 515 | <indexterm zone="ffmpeg ffmpeg-prog">
|
---|
| 516 | <primary sortas="b-ffmpeg">ffmpeg</primary>
|
---|
| 517 | </indexterm>
|
---|
| 518 | </listitem>
|
---|
| 519 | </varlistentry>
|
---|
| 520 |
|
---|
| 521 | <varlistentry id="ffplay">
|
---|
| 522 | <term><command>ffplay</command></term>
|
---|
| 523 | <listitem>
|
---|
[faec3f7] | 524 | <para>
|
---|
| 525 | is a very simple and portable media player using the
|
---|
[4c24eb0a] | 526 | <filename>ffmpeg</filename> libraries and the SDL library
|
---|
[faec3f7] | 527 | </para>
|
---|
[8a1e4f4] | 528 | <indexterm zone="ffmpeg ffplay">
|
---|
| 529 | <primary sortas="b-ffplay">ffplay</primary>
|
---|
| 530 | </indexterm>
|
---|
| 531 | </listitem>
|
---|
| 532 | </varlistentry>
|
---|
| 533 |
|
---|
[f60198bf] | 534 | <varlistentry id="ffprobe">
|
---|
| 535 | <term><command>ffprobe</command></term>
|
---|
| 536 | <listitem>
|
---|
[faec3f7] | 537 | <para>
|
---|
| 538 | gathers information from multimedia streams and prints it in a human
|
---|
[4c24eb0a] | 539 | and machine-readable fashion
|
---|
[faec3f7] | 540 | </para>
|
---|
[f60198bf] | 541 | <indexterm zone="ffmpeg ffprobe">
|
---|
| 542 | <primary sortas="b-ffprobe">ffprobe</primary>
|
---|
| 543 | </indexterm>
|
---|
| 544 | </listitem>
|
---|
| 545 | </varlistentry>
|
---|
| 546 |
|
---|
[a4c3c48] | 547 | <!-- Not found in 4.3.2
|
---|
[8a1e4f4] | 548 | <varlistentry id="ffserver">
|
---|
| 549 | <term><command>ffserver</command></term>
|
---|
| 550 | <listitem>
|
---|
[faec3f7] | 551 | <para>
|
---|
| 552 | is a streaming server for everything that <command>ffmpeg</command>
|
---|
[4c24eb0a] | 553 | could use as input (files, streams, TV card input, webcam, etc)
|
---|
[faec3f7] | 554 | </para>
|
---|
[8a1e4f4] | 555 | <indexterm zone="ffmpeg ffserver">
|
---|
| 556 | <primary sortas="b-ffserver">ffserver</primary>
|
---|
| 557 | </indexterm>
|
---|
| 558 | </listitem>
|
---|
| 559 | </varlistentry>
|
---|
[a4c3c48] | 560 | -->
|
---|
[c08bd877] | 561 | <varlistentry id="qt-faststart">
|
---|
| 562 | <term><command>qt-faststart</command></term>
|
---|
| 563 | <listitem>
|
---|
[faec3f7] | 564 | <para>
|
---|
[4c24eb0a] | 565 | moves the index file to the front of quicktime (mov/mp4) videos
|
---|
[faec3f7] | 566 | </para>
|
---|
[c08bd877] | 567 | <indexterm zone="ffmpeg qt-faststart">
|
---|
| 568 | <primary sortas="b-qt-faststart">qt-faststart</primary>
|
---|
| 569 | </indexterm>
|
---|
| 570 | </listitem>
|
---|
| 571 | </varlistentry>
|
---|
| 572 |
|
---|
[8a1e4f4] | 573 | <varlistentry id="libavcodec">
|
---|
[4162bcd] | 574 | <term><filename class="libraryfile">libavcodec.so</filename></term>
|
---|
[8a1e4f4] | 575 | <listitem>
|
---|
[faec3f7] | 576 | <para>
|
---|
| 577 | is a library containing the <application>FFmpeg</application> codecs
|
---|
[4c24eb0a] | 578 | (both encoding and decoding)
|
---|
[faec3f7] | 579 | </para>
|
---|
[8a1e4f4] | 580 | <indexterm zone="ffmpeg libavcodec">
|
---|
[9e5b78b] | 581 | <primary sortas="c-libavcodec">libavcodec.so</primary>
|
---|
[28cd5ce] | 582 | </indexterm>
|
---|
| 583 | </listitem>
|
---|
| 584 | </varlistentry>
|
---|
| 585 |
|
---|
| 586 | <varlistentry id="libavdevice">
|
---|
[4162bcd] | 587 | <term><filename class="libraryfile">libavdevice.so</filename></term>
|
---|
[28cd5ce] | 588 | <listitem>
|
---|
[faec3f7] | 589 | <para>
|
---|
[4c24eb0a] | 590 | is the <application>FFmpeg</application> device handling library
|
---|
[faec3f7] | 591 | </para>
|
---|
[28cd5ce] | 592 | <indexterm zone="ffmpeg libavdevice">
|
---|
[9e5b78b] | 593 | <primary sortas="c-libavdevice">libavdevice.so</primary>
|
---|
| 594 | </indexterm>
|
---|
| 595 | </listitem>
|
---|
| 596 | </varlistentry>
|
---|
| 597 |
|
---|
| 598 | <varlistentry id="libavfilter">
|
---|
[4162bcd] | 599 | <term><filename class="libraryfile">libavfilter.so</filename></term>
|
---|
[9e5b78b] | 600 | <listitem>
|
---|
[faec3f7] | 601 | <para>
|
---|
| 602 | is a library of filters that can alter video or audio between the
|
---|
[4c24eb0a] | 603 | decoder and the encoder (or output)
|
---|
[faec3f7] | 604 | </para>
|
---|
[9e5b78b] | 605 | <indexterm zone="ffmpeg libavfilter">
|
---|
| 606 | <primary sortas="c-libavfilter">libavfilter.so</primary>
|
---|
[8a1e4f4] | 607 | </indexterm>
|
---|
| 608 | </listitem>
|
---|
| 609 | </varlistentry>
|
---|
| 610 |
|
---|
| 611 | <varlistentry id="libavformat">
|
---|
[4162bcd] | 612 | <term><filename class="libraryfile">libavformat.so</filename></term>
|
---|
[8a1e4f4] | 613 | <listitem>
|
---|
[faec3f7] | 614 | <para>
|
---|
| 615 | is a library containing the file formats handling (mux and demux
|
---|
| 616 | code for several formats) used by <command>ffplay</command> as well
|
---|
[4c24eb0a] | 617 | as allowing the generation of audio or video streams
|
---|
[faec3f7] | 618 | </para>
|
---|
[8a1e4f4] | 619 | <indexterm zone="ffmpeg libavformat">
|
---|
[9e5b78b] | 620 | <primary sortas="c-libavformat">libavformat.so</primary>
|
---|
[28cd5ce] | 621 | </indexterm>
|
---|
| 622 | </listitem>
|
---|
| 623 | </varlistentry>
|
---|
| 624 |
|
---|
[a4c3c48] | 625 | <varlistentry id="libavresample">
|
---|
| 626 | <term><filename class="libraryfile">libavresample.so</filename></term>
|
---|
| 627 | <listitem>
|
---|
| 628 | <para>
|
---|
| 629 | is a library containing functions for resampling audio and video.
|
---|
| 630 | </para>
|
---|
| 631 | <indexterm zone="ffmpeg libavresample">
|
---|
| 632 | <primary sortas="c-libavresample">libavresample</primary>
|
---|
| 633 | </indexterm>
|
---|
| 634 | </listitem>
|
---|
| 635 | </varlistentry>
|
---|
| 636 |
|
---|
[28cd5ce] | 637 | <varlistentry id="libavutil">
|
---|
[4162bcd] | 638 | <term><filename class="libraryfile">libavutil.so</filename></term>
|
---|
[28cd5ce] | 639 | <listitem>
|
---|
[ffd1fcc] | 640 | <para>
|
---|
[4c24eb0a] | 641 | is the <application>FFmpeg</application> utility library
|
---|
[ffd1fcc] | 642 | </para>
|
---|
[28cd5ce] | 643 | <indexterm zone="ffmpeg libavutil">
|
---|
[9e5b78b] | 644 | <primary sortas="c-libavutil">libavutil.so</primary>
|
---|
[28cd5ce] | 645 | </indexterm>
|
---|
| 646 | </listitem>
|
---|
| 647 | </varlistentry>
|
---|
| 648 |
|
---|
[874f1e88] | 649 | <varlistentry id="libpostproc">
|
---|
[4162bcd] | 650 | <term><filename class="libraryfile">libpostproc.so</filename></term>
|
---|
[28cd5ce] | 651 | <listitem>
|
---|
[faec3f7] | 652 | <para>
|
---|
[4c24eb0a] | 653 | is the <application>FFmpeg</application> post processing library
|
---|
[faec3f7] | 654 | </para>
|
---|
[28cd5ce] | 655 | <indexterm zone="ffmpeg libpostproc">
|
---|
[9e5b78b] | 656 | <primary sortas="c-libpostproc">libpostproc.so</primary>
|
---|
[28cd5ce] | 657 | </indexterm>
|
---|
| 658 | </listitem>
|
---|
| 659 | </varlistentry>
|
---|
| 660 |
|
---|
[baf1e23] | 661 | <varlistentry id="libswresample">
|
---|
| 662 | <term><filename class="libraryfile">libswresample.so</filename></term>
|
---|
| 663 | <listitem>
|
---|
| 664 | <para>
|
---|
| 665 | is the <application>FFmpeg</application> audio rescaling library,
|
---|
[4c24eb0a] | 666 | it contains functions for converting audio sample formats
|
---|
[baf1e23] | 667 | </para>
|
---|
| 668 | <indexterm zone="ffmpeg libswresample">
|
---|
| 669 | <primary sortas="c-libswresample">libswresample.so</primary>
|
---|
| 670 | </indexterm>
|
---|
| 671 | </listitem>
|
---|
| 672 | </varlistentry>
|
---|
| 673 |
|
---|
[28cd5ce] | 674 | <varlistentry id="libswscale">
|
---|
[4162bcd] | 675 | <term><filename class="libraryfile">libswscale.so</filename></term>
|
---|
[28cd5ce] | 676 | <listitem>
|
---|
[faec3f7] | 677 | <para>
|
---|
[4c24eb0a] | 678 | is the <application>FFmpeg</application> image rescaling library
|
---|
[faec3f7] | 679 | </para>
|
---|
[28cd5ce] | 680 | <indexterm zone="ffmpeg libswscale">
|
---|
[9e5b78b] | 681 | <primary sortas="c-libswscale">libswscale.so</primary>
|
---|
[8a1e4f4] | 682 | </indexterm>
|
---|
| 683 | </listitem>
|
---|
| 684 | </varlistentry>
|
---|
[ffd1fcc] | 685 |
|
---|
[8a1e4f4] | 686 | </variablelist>
|
---|
[ffd1fcc] | 687 |
|
---|
[8a1e4f4] | 688 | </sect2>
|
---|
[ffd1fcc] | 689 |
|
---|
[49e5372] | 690 | </sect1>
|
---|