[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 |
|
---|
[e730427e] | 7 | <!ENTITY ffmpeg-download-http "http://ffmpeg.org/releases/ffmpeg-&ffmpeg-version;.tar.xz">
|
---|
[01062dd] | 8 | <!ENTITY ffmpeg-download-ftp " ">
|
---|
[6ff9f66] | 9 | <!ENTITY ffmpeg-md5sum "5d1956bb552e91dc3b8287db346d0d58">
|
---|
[4f4f272] | 10 | <!ENTITY ffmpeg-size "8.9 MB">
|
---|
[6ff9f66] | 11 | <!ENTITY ffmpeg-buildsize "170 MB (add 3.7 GB for the FATE suite/tests, add 1.3 GB for doxygen docs)">
|
---|
| 12 | <!ENTITY ffmpeg-time "1.3 SBU (using parallelism=4; add 3.8 SBU (with THREADS=4) to run the FATE suite after sample files are downloaded; add 1.1 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 | <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 |
|
---|
[62c0ce6] | 44 | &lfs10_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"/>,
|
---|
[1fa4314] | 92 | <xref linkend="x264"/>,
|
---|
| 93 | <xref linkend="x265"/>, and
|
---|
[34bcb5ec] | 94 | <xref linkend="nasm"/> or <xref linkend="yasm"/>
|
---|
[457568e] | 95 | </para>
|
---|
| 96 |
|
---|
[89d37eb8] | 97 | <bridgehead renderas="sect4">Recommended for desktop use</bridgehead>
|
---|
[7e1afc9] | 98 | <para role="recommended">
|
---|
[89d37eb8] | 99 | <xref linkend="alsa-lib"/>,
|
---|
[287a07e] | 100 | <xref linkend="libva"/>,
|
---|
| 101 | <xref linkend="libvdpau"/> (with the corresponding driver package), and
|
---|
[bc228ec] | 102 | <xref linkend="sdl2"/>
|
---|
[07584d8] | 103 | </para>
|
---|
| 104 |
|
---|
[457568e] | 105 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 106 | <para role="optional">
|
---|
[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>,
|
---|
[a161de9] | 132 | <ulink url="http://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>,
|
---|
| 136 | <ulink url="http://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),-->
|
---|
[287a07e] | 141 | <ulink url="http://kcat.strangesoft.net/openal-releases/">OpenAL</ulink>,
|
---|
[a161de9] | 142 | <ulink url="http://sourceforge.net/projects/opencore-amr">OpenCore AMR</ulink>,
|
---|
[9e3d18a7] | 143 | <!--<ulink url="http://diracvideo.org/">Schroedinger</ulink>,-->
|
---|
| 144 | <ulink url="http://sourceforge.net/projects/schrodinger/">Schroedinger</ulink>,
|
---|
[a161de9] | 145 | <ulink url="http://www.twolame.org/">TwoLAME</ulink>,
|
---|
| 146 | <ulink url="http://sourceforge.net/projects/opencore-amr/files/vo-aacenc/">vo-aaenc</ulink>,
|
---|
[20f09631] | 147 | <ulink url="http://sourceforge.net/projects/opencore-amr/files/vo-amrwbenc/">vo-amrwbenc</ulink>, and
|
---|
| 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>
|
---|
[70f1af0] | 312 | <command>find ... ;</command>: Fix 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 |
|
---|
| 445 | <sect2 role="configuration">
|
---|
| 446 | <title>Configuring FFmpeg</title>
|
---|
| 447 |
|
---|
| 448 | <sect3 id="ffmpeg-config">
|
---|
| 449 | <title>Config Files</title>
|
---|
| 450 |
|
---|
[755bb92] | 451 | <para>
|
---|
| 452 | <filename>/etc/ffserver.conf</filename> and
|
---|
| 453 | <filename>~/.ffmpeg/ffserver-config</filename>
|
---|
| 454 | </para>
|
---|
[8a1e4f4] | 455 |
|
---|
| 456 | <indexterm zone="ffmpeg ffmpeg-config">
|
---|
[4162bcd] | 457 | <primary
|
---|
| 458 | sortas="e-AA.ffmpeg-ffserver-config">~/.ffmpeg/ffserver-config</primary>
|
---|
[8a1e4f4] | 459 | </indexterm>
|
---|
| 460 |
|
---|
| 461 | <indexterm zone="ffmpeg ffmpeg-config">
|
---|
| 462 | <primary sortas="e-etc-ffserver.conf">/etc/ffserver.conf</primary>
|
---|
| 463 | </indexterm>
|
---|
| 464 |
|
---|
[faec3f7] | 465 | <para>
|
---|
| 466 | You'll find a sample <command>ffserver</command> configuration file at
|
---|
| 467 | <filename>doc/ffserver.conf</filename> in the source tree.
|
---|
| 468 | </para>
|
---|
[ffd1fcc] | 469 |
|
---|
[8a1e4f4] | 470 | </sect3>
|
---|
[ffd1fcc] | 471 |
|
---|
[8a1e4f4] | 472 | </sect2>
|
---|
| 473 |
|
---|
| 474 | <sect2 role="content">
|
---|
| 475 | <title>Contents</title>
|
---|
| 476 |
|
---|
| 477 | <segmentedlist>
|
---|
| 478 | <segtitle>Installed Programs</segtitle>
|
---|
| 479 | <segtitle>Installed Libraries</segtitle>
|
---|
| 480 | <segtitle>Installed Directories</segtitle>
|
---|
| 481 |
|
---|
| 482 | <seglistitem>
|
---|
[faec3f7] | 483 | <seg>
|
---|
[e43e647] | 484 | ffmpeg, ffplay, ffprobe, ffserver, and qt-faststart
|
---|
[faec3f7] | 485 | </seg>
|
---|
| 486 | <seg>
|
---|
[ffd1fcc] | 487 | libavcodec.so, libavdevice.so, libavfilter.so,
|
---|
| 488 | libavformat.so, libavutil.so, libpostproc.so,
|
---|
[638fc4a] | 489 | libswresample.so, and libswscale.so
|
---|
[faec3f7] | 490 | </seg>
|
---|
| 491 | <seg>
|
---|
[b8efb1fb] | 492 | /usr/include/libav{codec,device,filter,format,util},
|
---|
| 493 | /usr/include/libpostproc,
|
---|
| 494 | /usr/include/libsw{resample,scale},
|
---|
[813ea9af] | 495 | /usr/share/doc/ffmpeg-&ffmpeg-version;, and
|
---|
| 496 | /usr/share/ffmpeg
|
---|
[faec3f7] | 497 | </seg>
|
---|
[8a1e4f4] | 498 | </seglistitem>
|
---|
| 499 | </segmentedlist>
|
---|
| 500 |
|
---|
| 501 | <variablelist>
|
---|
| 502 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 503 | <?dbfo list-presentation="list"?>
|
---|
| 504 | <?dbhtml list-presentation="table"?>
|
---|
| 505 |
|
---|
| 506 | <varlistentry id="ffmpeg-prog">
|
---|
| 507 | <term><command>ffmpeg</command></term>
|
---|
| 508 | <listitem>
|
---|
[faec3f7] | 509 | <para>
|
---|
| 510 | is a command-line tool to convert video files, network streams and
|
---|
| 511 | input from a TV card to several video formats.
|
---|
| 512 | </para>
|
---|
[8a1e4f4] | 513 | <indexterm zone="ffmpeg ffmpeg-prog">
|
---|
| 514 | <primary sortas="b-ffmpeg">ffmpeg</primary>
|
---|
| 515 | </indexterm>
|
---|
| 516 | </listitem>
|
---|
| 517 | </varlistentry>
|
---|
| 518 |
|
---|
| 519 | <varlistentry id="ffplay">
|
---|
| 520 | <term><command>ffplay</command></term>
|
---|
| 521 | <listitem>
|
---|
[faec3f7] | 522 | <para>
|
---|
| 523 | is a very simple and portable media player using the
|
---|
| 524 | <filename>ffmpeg</filename> libraries and the SDL library.
|
---|
| 525 | </para>
|
---|
[8a1e4f4] | 526 | <indexterm zone="ffmpeg ffplay">
|
---|
| 527 | <primary sortas="b-ffplay">ffplay</primary>
|
---|
| 528 | </indexterm>
|
---|
| 529 | </listitem>
|
---|
| 530 | </varlistentry>
|
---|
| 531 |
|
---|
[f60198bf] | 532 | <varlistentry id="ffprobe">
|
---|
| 533 | <term><command>ffprobe</command></term>
|
---|
| 534 | <listitem>
|
---|
[faec3f7] | 535 | <para>
|
---|
| 536 | gathers information from multimedia streams and prints it in a human
|
---|
| 537 | and machine-readable fashion.
|
---|
| 538 | </para>
|
---|
[f60198bf] | 539 | <indexterm zone="ffmpeg ffprobe">
|
---|
| 540 | <primary sortas="b-ffprobe">ffprobe</primary>
|
---|
| 541 | </indexterm>
|
---|
| 542 | </listitem>
|
---|
| 543 | </varlistentry>
|
---|
| 544 |
|
---|
[8a1e4f4] | 545 | <varlistentry id="ffserver">
|
---|
| 546 | <term><command>ffserver</command></term>
|
---|
| 547 | <listitem>
|
---|
[faec3f7] | 548 | <para>
|
---|
| 549 | is a streaming server for everything that <command>ffmpeg</command>
|
---|
| 550 | could use as input (files, streams, TV card input, webcam, etc).
|
---|
| 551 | </para>
|
---|
[8a1e4f4] | 552 | <indexterm zone="ffmpeg ffserver">
|
---|
| 553 | <primary sortas="b-ffserver">ffserver</primary>
|
---|
| 554 | </indexterm>
|
---|
| 555 | </listitem>
|
---|
| 556 | </varlistentry>
|
---|
| 557 |
|
---|
[c08bd877] | 558 | <varlistentry id="qt-faststart">
|
---|
| 559 | <term><command>qt-faststart</command></term>
|
---|
| 560 | <listitem>
|
---|
[faec3f7] | 561 | <para>
|
---|
| 562 | moves the index file to the front of quicktime (mov/mp4) videos.
|
---|
| 563 | </para>
|
---|
[c08bd877] | 564 | <indexterm zone="ffmpeg qt-faststart">
|
---|
| 565 | <primary sortas="b-qt-faststart">qt-faststart</primary>
|
---|
| 566 | </indexterm>
|
---|
| 567 | </listitem>
|
---|
| 568 | </varlistentry>
|
---|
| 569 |
|
---|
[8a1e4f4] | 570 | <varlistentry id="libavcodec">
|
---|
[4162bcd] | 571 | <term><filename class="libraryfile">libavcodec.so</filename></term>
|
---|
[8a1e4f4] | 572 | <listitem>
|
---|
[faec3f7] | 573 | <para>
|
---|
| 574 | is a library containing the <application>FFmpeg</application> codecs
|
---|
| 575 | (both encoding and decoding).
|
---|
| 576 | </para>
|
---|
[8a1e4f4] | 577 | <indexterm zone="ffmpeg libavcodec">
|
---|
[9e5b78b] | 578 | <primary sortas="c-libavcodec">libavcodec.so</primary>
|
---|
[28cd5ce] | 579 | </indexterm>
|
---|
| 580 | </listitem>
|
---|
| 581 | </varlistentry>
|
---|
| 582 |
|
---|
| 583 | <varlistentry id="libavdevice">
|
---|
[4162bcd] | 584 | <term><filename class="libraryfile">libavdevice.so</filename></term>
|
---|
[28cd5ce] | 585 | <listitem>
|
---|
[faec3f7] | 586 | <para>
|
---|
| 587 | is the <application>FFmpeg</application> device handling library.
|
---|
| 588 | </para>
|
---|
[28cd5ce] | 589 | <indexterm zone="ffmpeg libavdevice">
|
---|
[9e5b78b] | 590 | <primary sortas="c-libavdevice">libavdevice.so</primary>
|
---|
| 591 | </indexterm>
|
---|
| 592 | </listitem>
|
---|
| 593 | </varlistentry>
|
---|
| 594 |
|
---|
| 595 | <varlistentry id="libavfilter">
|
---|
[4162bcd] | 596 | <term><filename class="libraryfile">libavfilter.so</filename></term>
|
---|
[9e5b78b] | 597 | <listitem>
|
---|
[faec3f7] | 598 | <para>
|
---|
| 599 | is a library of filters that can alter video or audio between the
|
---|
| 600 | decoder and the encoder (or output).
|
---|
| 601 | </para>
|
---|
[9e5b78b] | 602 | <indexterm zone="ffmpeg libavfilter">
|
---|
| 603 | <primary sortas="c-libavfilter">libavfilter.so</primary>
|
---|
[8a1e4f4] | 604 | </indexterm>
|
---|
| 605 | </listitem>
|
---|
| 606 | </varlistentry>
|
---|
| 607 |
|
---|
| 608 | <varlistentry id="libavformat">
|
---|
[4162bcd] | 609 | <term><filename class="libraryfile">libavformat.so</filename></term>
|
---|
[8a1e4f4] | 610 | <listitem>
|
---|
[faec3f7] | 611 | <para>
|
---|
| 612 | is a library containing the file formats handling (mux and demux
|
---|
| 613 | code for several formats) used by <command>ffplay</command> as well
|
---|
| 614 | as allowing the generation of audio or video streams.
|
---|
| 615 | </para>
|
---|
[8a1e4f4] | 616 | <indexterm zone="ffmpeg libavformat">
|
---|
[9e5b78b] | 617 | <primary sortas="c-libavformat">libavformat.so</primary>
|
---|
[28cd5ce] | 618 | </indexterm>
|
---|
| 619 | </listitem>
|
---|
| 620 | </varlistentry>
|
---|
| 621 |
|
---|
| 622 | <varlistentry id="libavutil">
|
---|
[4162bcd] | 623 | <term><filename class="libraryfile">libavutil.so</filename></term>
|
---|
[28cd5ce] | 624 | <listitem>
|
---|
[ffd1fcc] | 625 | <para>
|
---|
| 626 | is the <application>FFmpeg</application> utility library.
|
---|
| 627 | </para>
|
---|
[28cd5ce] | 628 | <indexterm zone="ffmpeg libavutil">
|
---|
[9e5b78b] | 629 | <primary sortas="c-libavutil">libavutil.so</primary>
|
---|
[28cd5ce] | 630 | </indexterm>
|
---|
| 631 | </listitem>
|
---|
| 632 | </varlistentry>
|
---|
| 633 |
|
---|
[874f1e88] | 634 | <varlistentry id="libpostproc">
|
---|
[4162bcd] | 635 | <term><filename class="libraryfile">libpostproc.so</filename></term>
|
---|
[28cd5ce] | 636 | <listitem>
|
---|
[faec3f7] | 637 | <para>
|
---|
| 638 | is the <application>FFmpeg</application> post processing library.
|
---|
| 639 | </para>
|
---|
[28cd5ce] | 640 | <indexterm zone="ffmpeg libpostproc">
|
---|
[9e5b78b] | 641 | <primary sortas="c-libpostproc">libpostproc.so</primary>
|
---|
[28cd5ce] | 642 | </indexterm>
|
---|
| 643 | </listitem>
|
---|
| 644 | </varlistentry>
|
---|
| 645 |
|
---|
[baf1e23] | 646 | <varlistentry id="libswresample">
|
---|
| 647 | <term><filename class="libraryfile">libswresample.so</filename></term>
|
---|
| 648 | <listitem>
|
---|
| 649 | <para>
|
---|
| 650 | is the <application>FFmpeg</application> audio rescaling library,
|
---|
| 651 | it contains functions for converting audio sample formats.
|
---|
| 652 | </para>
|
---|
| 653 | <indexterm zone="ffmpeg libswresample">
|
---|
| 654 | <primary sortas="c-libswresample">libswresample.so</primary>
|
---|
| 655 | </indexterm>
|
---|
| 656 | </listitem>
|
---|
| 657 | </varlistentry>
|
---|
| 658 |
|
---|
[28cd5ce] | 659 | <varlistentry id="libswscale">
|
---|
[4162bcd] | 660 | <term><filename class="libraryfile">libswscale.so</filename></term>
|
---|
[28cd5ce] | 661 | <listitem>
|
---|
[faec3f7] | 662 | <para>
|
---|
| 663 | is the <application>FFmpeg</application> image rescaling library.
|
---|
| 664 | </para>
|
---|
[28cd5ce] | 665 | <indexterm zone="ffmpeg libswscale">
|
---|
[9e5b78b] | 666 | <primary sortas="c-libswscale">libswscale.so</primary>
|
---|
[8a1e4f4] | 667 | </indexterm>
|
---|
| 668 | </listitem>
|
---|
| 669 | </varlistentry>
|
---|
[ffd1fcc] | 670 |
|
---|
[8a1e4f4] | 671 | </variablelist>
|
---|
[ffd1fcc] | 672 |
|
---|
[8a1e4f4] | 673 | </sect2>
|
---|
[ffd1fcc] | 674 |
|
---|
[49e5372] | 675 | </sect1>
|
---|