[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 " ">
|
---|
[2dffe71] | 9 | <!ENTITY ffmpeg-md5sum "41a1ca8693acc56088e8eaf3899b91ea">
|
---|
[e200fb6] | 10 | <!ENTITY ffmpeg-size "9.1 MB">
|
---|
| 11 | <!ENTITY ffmpeg-buildsize "212 MB (add 1.9 GB for the FATE suite/tests, add 1.4 GB for documentation)">
|
---|
| 12 | <!ENTITY ffmpeg-time "1.4 SBU (using parallelism=4; add 1.1 SBU (with THREADS=4) to run the FATE suite after sample files are downloaded; add 0.8 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 |
|
---|
[2d76528] | 43 | &lfs111_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>,
|
---|
[7ef3b9f9] | 143 | <ulink url="https://github.com/Haivision/srt">Srt</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>
|
---|
[8558044] | 213 | If you have <xref linkend="doxygen"/> installed
|
---|
[38290b4] | 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>
|
---|
[8558044] | 247 | If you used <command>doxygen</command> to manually create the API
|
---|
[38290b4] | 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
|
---|
[e200fb6] | 271 | rsync command to obtain the sample files. You may want to compress and
|
---|
| 272 | keep this directory for testing again, for testing in another system,
|
---|
| 273 | or for when a new version of ffmpeg is released. Then, unpack the sample
|
---|
| 274 | files in the source directory, and run the <command>make fate-rsync
|
---|
| 275 | ...</command> command above to sync with the upstream repository. The
|
---|
| 276 | download size and time are drastically reduced by doing this. Estimated
|
---|
| 277 | values in "Package Information" do not include the download SBU. Some
|
---|
| 278 | samples may have been removed in newer versions, so in order to be sure
|
---|
| 279 | local and server fate samples are identical when you use previously
|
---|
| 280 | saved samples, 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>
|
---|
[e200fb6] | 287 | Next, execute FATE with the following commands (there are more than 3800
|
---|
| 288 | tests in the suite):
|
---|
[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.
|
---|
[e200fb6] | 297 | </para>
|
---|
| 298 |
|
---|
| 299 | <para>
|
---|
| 300 | A successful run should return no errors or warnings, just a list of tests
|
---|
| 301 | and total amount at the end.
|
---|
| 302 | </para>
|
---|
[dc29e3ac] | 303 |
|
---|
[8a1e4f4] | 304 | </sect2>
|
---|
| 305 |
|
---|
| 306 | <sect2 role="commands">
|
---|
| 307 | <title>Command Explanations</title>
|
---|
| 308 |
|
---|
[faec3f7] | 309 | <para>
|
---|
[43a3a17] | 310 | <command>sed -i ... configure</command>: This command adds the
|
---|
[a161de9] | 311 | <application>ALSA</application> library to the
|
---|
| 312 | <application>Flite</application> <envar>LDFLAGS</envar> variable and
|
---|
| 313 | enables the discovery of <application>Flite</application>.
|
---|
| 314 | </para>
|
---|
| 315 |
|
---|
[43a3a17] | 316 | <para>
|
---|
[a4c3c48] | 317 | <command>find ... ;</command>: Fixes permissions of documentation files
|
---|
[43a3a17] | 318 | and directories.
|
---|
| 319 | </para>
|
---|
| 320 |
|
---|
[05bb3720] | 321 | <para>
|
---|
[1a518e97] | 322 | <parameter>--enable-libfreetype</parameter>: Enables
|
---|
[05bb3720] | 323 | <application>Freetype</application> support.
|
---|
| 324 | </para>
|
---|
| 325 |
|
---|
[a161de9] | 326 | <para>
|
---|
| 327 | <parameter>--enable-gpl</parameter>: Enables the use of GPL code and
|
---|
[baf1e23] | 328 | permits support for postprocessing, swscale and many other features.
|
---|
[faec3f7] | 329 | </para>
|
---|
| 330 |
|
---|
| 331 | <para>
|
---|
[a161de9] | 332 | <parameter>--enable-version3</parameter>: Enables the use of (L)GPL
|
---|
| 333 | version 3 code.
|
---|
| 334 | </para>
|
---|
| 335 |
|
---|
| 336 | <para>
|
---|
[dc29e3ac] | 337 | <parameter>--enable-nonfree</parameter>: Enables the use of nonfree code.
|
---|
| 338 | Note that the resulting libraries and binaries will be unredistributable.
|
---|
[faec3f7] | 339 | </para>
|
---|
[8a1e4f4] | 340 |
|
---|
[baf1e23] | 341 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 342 | href="../../xincludes/static-libraries.xml"/>
|
---|
| 343 |
|
---|
[a161de9] | 344 | <para>
|
---|
[dc29e3ac] | 345 | <parameter>--enable-shared</parameter>: Enables building shared
|
---|
| 346 | libraries, otherwise only static libraries are built and installed.
|
---|
[a161de9] | 347 | </para>
|
---|
| 348 |
|
---|
| 349 | <para>
|
---|
[89d37eb8] | 350 | <parameter>--disable-debug</parameter>: Disables building debugging
|
---|
| 351 | symbols into the programs and libraries.
|
---|
[a161de9] | 352 | </para>
|
---|
| 353 |
|
---|
[12ebd0e] | 354 | <para>
|
---|
| 355 | <parameter>--enable-avresample</parameter>: Enables
|
---|
| 356 | <xref linkend="transcode"/> to be compiled.
|
---|
| 357 | </para>
|
---|
| 358 |
|
---|
[a161de9] | 359 | <para>
|
---|
[89d37eb8] | 360 | <parameter>--enable-libass</parameter>: Enables ASS/SSA subtitle format
|
---|
[c0fce1d] | 361 | rendering via <filename class="libraryfile">libass</filename>.
|
---|
[a161de9] | 362 | </para>
|
---|
| 363 |
|
---|
[a5dfb970] | 364 | <para>
|
---|
[8558044] | 365 | <option>--enable-libdrm</option>: Use this switch if
|
---|
[2597ad1] | 366 | <xref linkend="libdrm"/> is installed to build the <quote>kmsgrab</quote>
|
---|
| 367 | input module which is useful for screen capturing or streaming.
|
---|
[a5dfb970] | 368 | </para>
|
---|
| 369 |
|
---|
[a161de9] | 370 | <para>
|
---|
[e200fb6] | 371 | <parameter>--enable-libfdk-aac</parameter>: Enables AAC audio encoding via
|
---|
| 372 | <filename class="libraryfile">libfdk-aac</filename>.
|
---|
[a161de9] | 373 | </para>
|
---|
| 374 |
|
---|
| 375 | <para>
|
---|
[dc29e3ac] | 376 | <parameter>--enable-libmp3lame</parameter>: Enables MP3 audio encoding
|
---|
| 377 | via <filename class="libraryfile">libmp3lame</filename>.
|
---|
[a161de9] | 378 | </para>
|
---|
| 379 |
|
---|
| 380 | <para>
|
---|
[c012c1a] | 381 | <parameter>--enable-libvorbis --enable-libtheora</parameter>: Enables
|
---|
| 382 | Theora video encoding via <filename
|
---|
| 383 | class="libraryfile">libvorbis</filename> and <filename
|
---|
| 384 | class="libraryfile">libtheora</filename>.
|
---|
[a161de9] | 385 | </para>
|
---|
| 386 |
|
---|
| 387 | <para>
|
---|
[c012c1a] | 388 | <parameter>--enable-libvorbis --enable-libvpx</parameter>: Enables WebM
|
---|
| 389 | encoding via <filename class="libraryfile">libvorbis</filename> and
|
---|
| 390 | <filename class="libraryfile">libvpx</filename>.
|
---|
[a161de9] | 391 | </para>
|
---|
| 392 |
|
---|
| 393 | <para>
|
---|
[dc29e3ac] | 394 | <parameter>--enable-libx264</parameter>: Enables high-quality
|
---|
| 395 | H.264/MPEG-4 AVC encoding via <filename
|
---|
[118613f8] | 396 | class="libraryfile">libx264</filename>.
|
---|
[a161de9] | 397 | </para>
|
---|
| 398 |
|
---|
[1fa4314] | 399 | <para>
|
---|
| 400 | <parameter>--enable-libx265</parameter>: Enables high-quality
|
---|
| 401 | H.265/HEVC encoding via <filename
|
---|
| 402 | class="libraryfile">libx265</filename>.
|
---|
| 403 | </para>
|
---|
| 404 |
|
---|
[ea8738a] | 405 | <para>
|
---|
[a516869] | 406 | <parameter>--enable-openssl</parameter>:
|
---|
[ea8738a] | 407 | Enables HTTPS protocol for network streams.
|
---|
| 408 | </para>
|
---|
| 409 |
|
---|
[a516869] | 410 | <para>
|
---|
| 411 | <option>--enable-gnutls</option>: Use this option instead of
|
---|
| 412 | <parameter>--enable-openssl</parameter>, if you want to use
|
---|
| 413 | <application>GnuTLS</application> instead of
|
---|
| 414 | <application>OpenSSL</application> for HTTPS protocol.
|
---|
| 415 | </para>
|
---|
| 416 |
|
---|
[7197352] | 417 | <para>
|
---|
| 418 | <option>--disable-doc</option>: Disables building html documentation.
|
---|
[8558044] | 419 | This is only needed if <xref linkend="doxygen"/> is installed and you
|
---|
[7197352] | 420 | do not want to build the html documentation.
|
---|
| 421 | </para>
|
---|
| 422 |
|
---|
[77cce582] | 423 | <para>
|
---|
| 424 | <option>--enable-libpulse</option>: Enables support for
|
---|
| 425 | <application>Pulseaudio</application> for audio output.
|
---|
| 426 | </para>
|
---|
| 427 |
|
---|
[faec3f7] | 428 | <para>
|
---|
[dc29e3ac] | 429 | <command>gcc tools/qt-faststart.c -o tools/qt-faststart</command>: This
|
---|
| 430 | builds the <command>qt-faststart</command> program which can modify
|
---|
| 431 | QuickTime formatted movies (<filename class="extension">.mov</filename>
|
---|
| 432 | or <filename class="extension">.mp4</filename>) so that the header
|
---|
| 433 | information is located at the beginning of the file instead of the end.
|
---|
| 434 | This allows the movie file to begin playing before the entire file has
|
---|
| 435 | been downloaded.
|
---|
[2216c969] | 436 | </para>
|
---|
| 437 |
|
---|
[c012c1a] | 438 | <note>
|
---|
| 439 | <para>
|
---|
| 440 | Support for most of the dependency packages requires using options
|
---|
[d0c85de6] | 441 | passed to the <command>configure</command> script. View the output
|
---|
[c012c1a] | 442 | from <command>./configure --help</command> for complete information
|
---|
| 443 | about enabling dependency packages.
|
---|
| 444 | </para>
|
---|
| 445 | </note>
|
---|
| 446 |
|
---|
[8a1e4f4] | 447 | </sect2>
|
---|
| 448 |
|
---|
[a4c3c48] | 449 | <!-- ffserver has been removed
|
---|
[8a1e4f4] | 450 | <sect2 role="configuration">
|
---|
| 451 | <title>Configuring FFmpeg</title>
|
---|
| 452 |
|
---|
| 453 | <sect3 id="ffmpeg-config">
|
---|
| 454 | <title>Config Files</title>
|
---|
| 455 |
|
---|
[755bb92] | 456 | <para>
|
---|
[a4c3c48] | 457 | <filename>/etc/ffserver.conf</filename>
|
---|
| 458 | <filename>~/.ffmpeg/ffserver-config</filename>
|
---|
[755bb92] | 459 | </para>
|
---|
[8a1e4f4] | 460 |
|
---|
| 461 | <indexterm zone="ffmpeg ffmpeg-config">
|
---|
[4162bcd] | 462 | <primary
|
---|
| 463 | sortas="e-AA.ffmpeg-ffserver-config">~/.ffmpeg/ffserver-config</primary>
|
---|
[8a1e4f4] | 464 | </indexterm>
|
---|
| 465 |
|
---|
| 466 | <indexterm zone="ffmpeg ffmpeg-config">
|
---|
| 467 | <primary sortas="e-etc-ffserver.conf">/etc/ffserver.conf</primary>
|
---|
| 468 | </indexterm>
|
---|
| 469 |
|
---|
[faec3f7] | 470 | <para>
|
---|
| 471 | You'll find a sample <command>ffserver</command> configuration file at
|
---|
| 472 | <filename>doc/ffserver.conf</filename> in the source tree.
|
---|
| 473 | </para>
|
---|
[ffd1fcc] | 474 |
|
---|
[8a1e4f4] | 475 | </sect3>
|
---|
[ffd1fcc] | 476 |
|
---|
[8a1e4f4] | 477 | </sect2>
|
---|
[a4c3c48] | 478 | -->
|
---|
[8a1e4f4] | 479 |
|
---|
| 480 | <sect2 role="content">
|
---|
| 481 | <title>Contents</title>
|
---|
| 482 |
|
---|
| 483 | <segmentedlist>
|
---|
| 484 | <segtitle>Installed Programs</segtitle>
|
---|
| 485 | <segtitle>Installed Libraries</segtitle>
|
---|
| 486 | <segtitle>Installed Directories</segtitle>
|
---|
| 487 |
|
---|
| 488 | <seglistitem>
|
---|
[faec3f7] | 489 | <seg>
|
---|
[a4c3c48] | 490 | ffmpeg, ffplay, ffprobe, <!--ffserver,--> and qt-faststart
|
---|
[faec3f7] | 491 | </seg>
|
---|
| 492 | <seg>
|
---|
[ffd1fcc] | 493 | libavcodec.so, libavdevice.so, libavfilter.so,
|
---|
[a4c3c48] | 494 | libavformat.so, libavutil.so, libavresample.so, libpostproc.so,
|
---|
[638fc4a] | 495 | libswresample.so, and libswscale.so
|
---|
[faec3f7] | 496 | </seg>
|
---|
| 497 | <seg>
|
---|
[a4c3c48] | 498 | /usr/include/libav{codec,device,filter,format,resample,util},
|
---|
[b8efb1fb] | 499 | /usr/include/libpostproc,
|
---|
| 500 | /usr/include/libsw{resample,scale},
|
---|
[813ea9af] | 501 | /usr/share/doc/ffmpeg-&ffmpeg-version;, and
|
---|
| 502 | /usr/share/ffmpeg
|
---|
[faec3f7] | 503 | </seg>
|
---|
[8a1e4f4] | 504 | </seglistitem>
|
---|
| 505 | </segmentedlist>
|
---|
| 506 |
|
---|
| 507 | <variablelist>
|
---|
| 508 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 509 | <?dbfo list-presentation="list"?>
|
---|
| 510 | <?dbhtml list-presentation="table"?>
|
---|
| 511 |
|
---|
| 512 | <varlistentry id="ffmpeg-prog">
|
---|
| 513 | <term><command>ffmpeg</command></term>
|
---|
| 514 | <listitem>
|
---|
[faec3f7] | 515 | <para>
|
---|
| 516 | is a command-line tool to convert video files, network streams and
|
---|
[4c24eb0a] | 517 | input from a TV card to several video formats
|
---|
[faec3f7] | 518 | </para>
|
---|
[8a1e4f4] | 519 | <indexterm zone="ffmpeg ffmpeg-prog">
|
---|
| 520 | <primary sortas="b-ffmpeg">ffmpeg</primary>
|
---|
| 521 | </indexterm>
|
---|
| 522 | </listitem>
|
---|
| 523 | </varlistentry>
|
---|
| 524 |
|
---|
| 525 | <varlistentry id="ffplay">
|
---|
| 526 | <term><command>ffplay</command></term>
|
---|
| 527 | <listitem>
|
---|
[faec3f7] | 528 | <para>
|
---|
| 529 | is a very simple and portable media player using the
|
---|
[4c24eb0a] | 530 | <filename>ffmpeg</filename> libraries and the SDL library
|
---|
[faec3f7] | 531 | </para>
|
---|
[8a1e4f4] | 532 | <indexterm zone="ffmpeg ffplay">
|
---|
| 533 | <primary sortas="b-ffplay">ffplay</primary>
|
---|
| 534 | </indexterm>
|
---|
| 535 | </listitem>
|
---|
| 536 | </varlistentry>
|
---|
| 537 |
|
---|
[f60198bf] | 538 | <varlistentry id="ffprobe">
|
---|
| 539 | <term><command>ffprobe</command></term>
|
---|
| 540 | <listitem>
|
---|
[faec3f7] | 541 | <para>
|
---|
| 542 | gathers information from multimedia streams and prints it in a human
|
---|
[4c24eb0a] | 543 | and machine-readable fashion
|
---|
[faec3f7] | 544 | </para>
|
---|
[f60198bf] | 545 | <indexterm zone="ffmpeg ffprobe">
|
---|
| 546 | <primary sortas="b-ffprobe">ffprobe</primary>
|
---|
| 547 | </indexterm>
|
---|
| 548 | </listitem>
|
---|
| 549 | </varlistentry>
|
---|
| 550 |
|
---|
[a4c3c48] | 551 | <!-- Not found in 4.3.2
|
---|
[8a1e4f4] | 552 | <varlistentry id="ffserver">
|
---|
| 553 | <term><command>ffserver</command></term>
|
---|
| 554 | <listitem>
|
---|
[faec3f7] | 555 | <para>
|
---|
| 556 | is a streaming server for everything that <command>ffmpeg</command>
|
---|
[4c24eb0a] | 557 | could use as input (files, streams, TV card input, webcam, etc)
|
---|
[faec3f7] | 558 | </para>
|
---|
[8a1e4f4] | 559 | <indexterm zone="ffmpeg ffserver">
|
---|
| 560 | <primary sortas="b-ffserver">ffserver</primary>
|
---|
| 561 | </indexterm>
|
---|
| 562 | </listitem>
|
---|
| 563 | </varlistentry>
|
---|
[a4c3c48] | 564 | -->
|
---|
[c08bd877] | 565 | <varlistentry id="qt-faststart">
|
---|
| 566 | <term><command>qt-faststart</command></term>
|
---|
| 567 | <listitem>
|
---|
[faec3f7] | 568 | <para>
|
---|
[4c24eb0a] | 569 | moves the index file to the front of quicktime (mov/mp4) videos
|
---|
[faec3f7] | 570 | </para>
|
---|
[c08bd877] | 571 | <indexterm zone="ffmpeg qt-faststart">
|
---|
| 572 | <primary sortas="b-qt-faststart">qt-faststart</primary>
|
---|
| 573 | </indexterm>
|
---|
| 574 | </listitem>
|
---|
| 575 | </varlistentry>
|
---|
| 576 |
|
---|
[8a1e4f4] | 577 | <varlistentry id="libavcodec">
|
---|
[4162bcd] | 578 | <term><filename class="libraryfile">libavcodec.so</filename></term>
|
---|
[8a1e4f4] | 579 | <listitem>
|
---|
[faec3f7] | 580 | <para>
|
---|
| 581 | is a library containing the <application>FFmpeg</application> codecs
|
---|
[4c24eb0a] | 582 | (both encoding and decoding)
|
---|
[faec3f7] | 583 | </para>
|
---|
[8a1e4f4] | 584 | <indexterm zone="ffmpeg libavcodec">
|
---|
[9e5b78b] | 585 | <primary sortas="c-libavcodec">libavcodec.so</primary>
|
---|
[28cd5ce] | 586 | </indexterm>
|
---|
| 587 | </listitem>
|
---|
| 588 | </varlistentry>
|
---|
| 589 |
|
---|
| 590 | <varlistentry id="libavdevice">
|
---|
[4162bcd] | 591 | <term><filename class="libraryfile">libavdevice.so</filename></term>
|
---|
[28cd5ce] | 592 | <listitem>
|
---|
[faec3f7] | 593 | <para>
|
---|
[4c24eb0a] | 594 | is the <application>FFmpeg</application> device handling library
|
---|
[faec3f7] | 595 | </para>
|
---|
[28cd5ce] | 596 | <indexterm zone="ffmpeg libavdevice">
|
---|
[9e5b78b] | 597 | <primary sortas="c-libavdevice">libavdevice.so</primary>
|
---|
| 598 | </indexterm>
|
---|
| 599 | </listitem>
|
---|
| 600 | </varlistentry>
|
---|
| 601 |
|
---|
| 602 | <varlistentry id="libavfilter">
|
---|
[4162bcd] | 603 | <term><filename class="libraryfile">libavfilter.so</filename></term>
|
---|
[9e5b78b] | 604 | <listitem>
|
---|
[faec3f7] | 605 | <para>
|
---|
| 606 | is a library of filters that can alter video or audio between the
|
---|
[4c24eb0a] | 607 | decoder and the encoder (or output)
|
---|
[faec3f7] | 608 | </para>
|
---|
[9e5b78b] | 609 | <indexterm zone="ffmpeg libavfilter">
|
---|
| 610 | <primary sortas="c-libavfilter">libavfilter.so</primary>
|
---|
[8a1e4f4] | 611 | </indexterm>
|
---|
| 612 | </listitem>
|
---|
| 613 | </varlistentry>
|
---|
| 614 |
|
---|
| 615 | <varlistentry id="libavformat">
|
---|
[4162bcd] | 616 | <term><filename class="libraryfile">libavformat.so</filename></term>
|
---|
[8a1e4f4] | 617 | <listitem>
|
---|
[faec3f7] | 618 | <para>
|
---|
| 619 | is a library containing the file formats handling (mux and demux
|
---|
| 620 | code for several formats) used by <command>ffplay</command> as well
|
---|
[4c24eb0a] | 621 | as allowing the generation of audio or video streams
|
---|
[faec3f7] | 622 | </para>
|
---|
[8a1e4f4] | 623 | <indexterm zone="ffmpeg libavformat">
|
---|
[9e5b78b] | 624 | <primary sortas="c-libavformat">libavformat.so</primary>
|
---|
[28cd5ce] | 625 | </indexterm>
|
---|
| 626 | </listitem>
|
---|
| 627 | </varlistentry>
|
---|
| 628 |
|
---|
[a4c3c48] | 629 | <varlistentry id="libavresample">
|
---|
| 630 | <term><filename class="libraryfile">libavresample.so</filename></term>
|
---|
| 631 | <listitem>
|
---|
| 632 | <para>
|
---|
| 633 | is a library containing functions for resampling audio and video.
|
---|
| 634 | </para>
|
---|
| 635 | <indexterm zone="ffmpeg libavresample">
|
---|
| 636 | <primary sortas="c-libavresample">libavresample</primary>
|
---|
| 637 | </indexterm>
|
---|
| 638 | </listitem>
|
---|
| 639 | </varlistentry>
|
---|
| 640 |
|
---|
[28cd5ce] | 641 | <varlistentry id="libavutil">
|
---|
[4162bcd] | 642 | <term><filename class="libraryfile">libavutil.so</filename></term>
|
---|
[28cd5ce] | 643 | <listitem>
|
---|
[ffd1fcc] | 644 | <para>
|
---|
[4c24eb0a] | 645 | is the <application>FFmpeg</application> utility library
|
---|
[ffd1fcc] | 646 | </para>
|
---|
[28cd5ce] | 647 | <indexterm zone="ffmpeg libavutil">
|
---|
[9e5b78b] | 648 | <primary sortas="c-libavutil">libavutil.so</primary>
|
---|
[28cd5ce] | 649 | </indexterm>
|
---|
| 650 | </listitem>
|
---|
| 651 | </varlistentry>
|
---|
| 652 |
|
---|
[874f1e88] | 653 | <varlistentry id="libpostproc">
|
---|
[4162bcd] | 654 | <term><filename class="libraryfile">libpostproc.so</filename></term>
|
---|
[28cd5ce] | 655 | <listitem>
|
---|
[faec3f7] | 656 | <para>
|
---|
[4c24eb0a] | 657 | is the <application>FFmpeg</application> post processing library
|
---|
[faec3f7] | 658 | </para>
|
---|
[28cd5ce] | 659 | <indexterm zone="ffmpeg libpostproc">
|
---|
[9e5b78b] | 660 | <primary sortas="c-libpostproc">libpostproc.so</primary>
|
---|
[28cd5ce] | 661 | </indexterm>
|
---|
| 662 | </listitem>
|
---|
| 663 | </varlistentry>
|
---|
| 664 |
|
---|
[baf1e23] | 665 | <varlistentry id="libswresample">
|
---|
| 666 | <term><filename class="libraryfile">libswresample.so</filename></term>
|
---|
| 667 | <listitem>
|
---|
| 668 | <para>
|
---|
| 669 | is the <application>FFmpeg</application> audio rescaling library,
|
---|
[4c24eb0a] | 670 | it contains functions for converting audio sample formats
|
---|
[baf1e23] | 671 | </para>
|
---|
| 672 | <indexterm zone="ffmpeg libswresample">
|
---|
| 673 | <primary sortas="c-libswresample">libswresample.so</primary>
|
---|
| 674 | </indexterm>
|
---|
| 675 | </listitem>
|
---|
| 676 | </varlistentry>
|
---|
| 677 |
|
---|
[28cd5ce] | 678 | <varlistentry id="libswscale">
|
---|
[4162bcd] | 679 | <term><filename class="libraryfile">libswscale.so</filename></term>
|
---|
[28cd5ce] | 680 | <listitem>
|
---|
[faec3f7] | 681 | <para>
|
---|
[4c24eb0a] | 682 | is the <application>FFmpeg</application> image rescaling library
|
---|
[faec3f7] | 683 | </para>
|
---|
[28cd5ce] | 684 | <indexterm zone="ffmpeg libswscale">
|
---|
[9e5b78b] | 685 | <primary sortas="c-libswscale">libswscale.so</primary>
|
---|
[8a1e4f4] | 686 | </indexterm>
|
---|
| 687 | </listitem>
|
---|
| 688 | </varlistentry>
|
---|
[ffd1fcc] | 689 |
|
---|
[8a1e4f4] | 690 | </variablelist>
|
---|
[ffd1fcc] | 691 |
|
---|
[8a1e4f4] | 692 | </sect2>
|
---|
[ffd1fcc] | 693 |
|
---|
[49e5372] | 694 | </sect1>
|
---|