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