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