Changeset 8a1e4f4


Ignore:
Timestamp:
05/11/2005 09:16:35 PM (19 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.1, 6.2, 6.2.0, 6.2.0-rc1, 6.2.0-rc2, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
78ed0b8
Parents:
f067068c
Message:

Tagged ffmpeg.xml

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@4158 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • multimedia/videoutils/ffmpeg.xml

    rf067068c r8a1e4f4  
     1<?xml version="1.0" encoding="ISO-8859-1"?>
    12<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
    23   "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
     
    1314
    1415<sect1 id="ffmpeg" xreflabel="FFmpeg-&ffmpeg-version;">
    15 <sect1info>
    16 <othername>$LastChangedBy$</othername>
    17 <date>$Date$</date>
    18 </sect1info>
    19 <?dbhtml filename="ffmpeg.html"?>
    20 <title>FFmpeg-&ffmpeg-version;</title>
    21 <indexterm zone="ffmpeg">
    22 <primary sortas="a-FFmpeg">FFmpeg</primary></indexterm>
    23 
    24 <sect2>
    25 <title>Introduction to <application>FFmpeg</application></title>
    26 
    27 <para><application>FFmpeg</application> is a solution to record, convert and
    28 stream audio and video. It is a very fast video and audio converter and it can
    29 also acquire from a live audio/video source. Designed to be intuitive, the
    30 command-line interface (<command>ffmpeg</command>) tries to figure out all the
    31 parameters, when possible. <application>FFmpeg</application> can also convert
    32 from any sample rate to any other, and resize video on the fly with a high
    33 quality polyphase filter. <application>FFmpeg</application> can use a
    34 video4linux compatible video source and any Open Sound System audio
    35 source.</para>
    36 
    37 <sect3><title>Package information</title>
    38 <itemizedlist spacing='compact'>
    39 <listitem><para>Download (HTTP):
    40 <ulink url="&ffmpeg-download-http;"/></para></listitem>
    41 <listitem><para>Download (FTP):
    42 <ulink url="&ffmpeg-download-ftp;"/></para></listitem>
    43 <listitem><para>Download MD5 sum: &ffmpeg-md5sum;</para></listitem>
    44 <listitem><para>Download size: &ffmpeg-size;</para></listitem>
    45 <listitem><para>Estimated disk space required:
    46 &ffmpeg-buildsize;</para></listitem>
    47 <listitem><para>Estimated build time:
    48 &ffmpeg-time;</para></listitem></itemizedlist>
    49 </sect3>
    50 
    51 <sect3><title><application>FFmpeg</application> dependencies</title>
    52 <sect4><title>Optional</title>
    53 <para><xref linkend="libvorbis"/>,
    54 <xref linkend="lame"/>,
    55 <xref linkend="imlib2"/>,
    56 X (<xref linkend="xfree86"/> or <xref linkend="xorg"/>),
    57 <xref linkend="sdl"/>,
    58 <xref linkend="freetype2"/>,
    59 <xref linkend="mplayer"/> (for the shared post-processing library),
    60 <ulink url="http://www.audiocoding.com/modules/mydownloads/">FAAC</ulink>,
    61 <ulink url="http://www.audiocoding.com/modules/mydownloads/">FAAD</ulink> and
    62 <xref linkend="tex"/> (to build <acronym>HTML</acronym> documentation)</para>
    63 </sect4>
    64 </sect3>
    65 
    66 </sect2>
    67 
    68 <sect2>
    69 <title>Installation of <application>FFmpeg</application></title>
    70 
    71 <para>Install <application>FFmpeg</application> by running the following
    72 commands:</para>
    73 
    74 <note><para>Review the <filename>doc/optimization.txt</filename> file in the
    75 source tree for information about optimizing the build.</para></note>
    76 
    77 <screen><userinput><command>sed -i -e "s/static uint64/const uint64/" \
     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
     32    <para><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 can
     34    also acquire from a live audio/video source. Designed to be intuitive, the
     35    command-line interface (<command>ffmpeg</command>) tries to figure out all the
     36    parameters, when possible. <application>FFmpeg</application> can also convert
     37    from any sample rate to any other, and resize video on the fly with a high
     38    quality polyphase filter. <application>FFmpeg</application> can use a
     39    video4linux compatible video source and any Open Sound System audio
     40    source.</para>
     41
     42    <bridgehead renderas="sect3">Package Information</bridgehead>
     43    <itemizedlist spacing="compact">
     44      <listitem>
     45        <para>Download (HTTP): <ulink url="&ffmpeg-download-http;"/></para>
     46      </listitem>
     47      <listitem>
     48        <para>Download (FTP): <ulink url="&ffmpeg-download-ftp;"/></para>
     49      </listitem>
     50      <listitem>
     51        <para>Download MD5 sum: &ffmpeg-md5sum;</para>
     52      </listitem>
     53      <listitem>
     54        <para>Download size: &ffmpeg-size;</para>
     55      </listitem>
     56      <listitem>
     57        <para>Estimated disk space required: &ffmpeg-buildsize;</para>
     58      </listitem>
     59      <listitem>
     60        <para>Estimated build time: &ffmpeg-time;</para>
     61      </listitem>
     62    </itemizedlist>
     63
     64    <bridgehead renderas="sect3">TEMPLATE Dependencies</bridgehead>
     65
     66    <bridgehead renderas="sect4">Optional</bridgehead>
     67    <para><xref linkend="libvorbis"/>,
     68    <xref linkend="lame"/>,
     69    <xref linkend="imlib2"/>,
     70    X (<xref linkend="xfree86"/> or <xref linkend="xorg"/>),
     71    <xref linkend="sdl"/>,
     72    <xref linkend="freetype2"/>,
     73    <xref linkend="mplayer"/> (for the shared post-processing library),
     74    <ulink url="http://www.audiocoding.com/modules/mydownloads/">FAAC</ulink>,
     75    <ulink url="http://www.audiocoding.com/modules/mydownloads/">FAAD</ulink> and
     76    <xref linkend="tex"/> (to build HTML documentation)</para>
     77
     78  </sect2>
     79
     80  <sect2 role="installation">
     81    <title>Installation of FFmpeg</title>
     82
     83    <para>Install <application>FFmpeg</application> by running the following
     84    commands:</para>
     85
     86    <note>
     87      <para>Review the <filename>doc/optimization.txt</filename> file in the
     88      source tree for information about optimizing the build.</para>
     89    </note>
     90
     91<screen><userinput>sed -i -e "s/static uint64/const uint64/" \
    7892    libavcodec/liba52/resample_mmx.c &amp;&amp;
    7993./configure --prefix=/usr --enable-shared \
    8094    --enable-pthreads --disable-ffplay &amp;&amp;
    81 make</command></userinput></screen>
    82 
    83 <para>If you have <application>TeX</application> installed, the man pages
    84 and documentation were built during the <command>make</command> process. Skip
    85 to the root user installation steps. If you do not have
    86 <application>TeX</application> installed, use the following command to build
    87 the man pages:</para>
    88 
    89 <screen><userinput><command>make -C doc {ffmpeg,ffserver,ffplay}.1</command></userinput></screen>
    90 
    91 <para>Now, as the root user:</para>
    92 
    93 <screen><userinput role='root'><command>make install</command></userinput></screen>
    94 
    95 <para>If you have <application>TeX</application> installed (which caused the
    96 HTML documentation to be built earlier), install the documentation by issuing
    97 the following commands as the root user:</para>
    98 
    99 <screen><userinput role='root'><command>install -v -m755 -d /usr/share/doc/ffmpeg-&ffmpeg-version; &amp;&amp;
    100 install -v -m644 doc/*.html /usr/share/doc/ffmpeg-&ffmpeg-version;</command></userinput></screen>
    101 
    102 </sect2>
    103 
    104 <sect2>
    105 <title>Command explanations</title>
    106 
    107 <para><command>sed -i -e "s/static uint64/const uint64/"
    108 libavcodec/liba52/resample_mmx.c</command>: This command fixes an issue
    109 on machines with MMX capability and use <application>GCC</application>-3.4.x
    110 to compile in A52 support using the <option>--enable-a52</option> parameter
    111 passed to the <command>configure</command> script.</para>
    112 
    113 <para><parameter>--enable-shared</parameter>: This switch is needed to
    114 build the <filename class="libraryfile">libavcodec</filename> and
    115 <filename class="libraryfile">libavformat</filename> shared
    116 libraries.</para>
    117 
    118 <para><parameter>--enable-pthreads</parameter>: This switch enables the
    119 build to link against the Posix threads library.</para>
    120 
    121 <para><option>--disable-ffplay</option>: Only installs the server part.
    122 <command>ffplay</command> requires <application>X</application> for
    123 building. Remove this option if <application>X</application> is
    124 installed.</para>
    125 
    126 <para><option>--enable-<replaceable>[codec]</replaceable></option>: Review
    127 the available options and codecs using the
    128 <command>./configure --help</command> command.</para>
    129 
    130 </sect2>
    131 
    132 <sect2>
    133 <title>Configuring <application>FFmpeg</application></title>
    134 
    135 <sect3 id="ffmpeg-config"><title>Config files</title>
    136 
    137 <para><filename>/etc/ffserver.conf</filename> and
    138 <filename>~/.ffmpeg/ffserver-config</filename></para>
    139 
    140 <indexterm zone="ffmpeg ffmpeg-config">
    141 <primary
    142 sortas="e-AA.ffmpeg-ffserver-config">~/.ffmpeg/ffserver-config</primary>
    143 </indexterm>
    144 <indexterm zone="ffmpeg ffmpeg-config">
    145 <primary sortas="e-etc-ffserver.conf">/etc/ffserver.conf</primary>
    146 </indexterm>
    147 
    148 <para>You'll find a sample ffserver configuration file at
    149 <ulink url="http://ffmpeg.sourceforge.net/sample.html"/> (also
    150 <filename>doc/ffserver.conf</filename> in the source tree).</para>
    151 </sect3>
    152 
    153 </sect2>
    154 
    155 <sect2>
    156 <title>Contents</title>
    157 
    158 <segmentedlist>
    159 <segtitle>Installed Programs</segtitle>
    160 <segtitle>Installed Libraries</segtitle>
    161 <segtitle>Installed Directories</segtitle>
    162 <seglistitem>
    163 <seg>ffmpeg, ffserver and optionally, ffplay</seg>
    164 <seg>libavcodec.so, libavformat.so and video hook modules</seg>
    165 <seg>/usr/include/ffmpeg, /usr/lib/vhook and
    166 /usr/share/doc/ffmpeg-&ffmpeg-version;</seg>
    167 </seglistitem>
    168 </segmentedlist>
    169 
    170 <variablelist>
    171 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
    172 <?dbfo list-presentation="list"?>
    173 
    174 <varlistentry id="ffmpeg-prog">
    175 <term><command>ffmpeg</command></term>
    176 <listitem><para>is a command-line tool to convert video files, network streams
    177 and input from a <acronym>TV</acronym> card to several video formats.</para>
    178 <indexterm zone="ffmpeg ffmpeg-prog">
    179 <primary sortas="b-ffmpeg">ffmpeg</primary></indexterm>
    180 </listitem>
    181 </varlistentry>
    182 
    183 <varlistentry id="ffplay">
    184 <term><command>ffplay</command></term>
    185 <listitem><para>is a very simple and portable media player using the
    186 <filename>ffmpeg</filename> libraries and the <acronym>SDL</acronym>
    187 library.</para>
    188 <indexterm zone="ffmpeg ffplay">
    189 <primary sortas="b-ffplay">ffplay</primary></indexterm>
    190 </listitem>
    191 </varlistentry>
    192 
    193 <varlistentry id="ffserver">
    194 <term><command>ffserver</command></term>
    195 <listitem><para>is a streaming server for everything that
    196 <command>ffmpeg</command> could use as input (files, streams, TV card input,
    197 webcam, etc.).</para>
    198 <indexterm zone="ffmpeg ffserver">
    199 <primary sortas="b-ffserver">ffserver</primary></indexterm>
    200 </listitem>
    201 </varlistentry>
    202 
    203 <varlistentry id="libavcodec">
    204 <term><filename class='libraryfile'>libavcodec.so</filename></term>
    205 <listitem><para>is a library containing the <application>FFmpeg</application>
    206 codecs (both encoding and decoding).</para>
    207 <indexterm zone="ffmpeg libavcodec">
    208 <primary sortas="c-libavcodec">libavcodec.so</primary></indexterm>
    209 </listitem>
    210 </varlistentry>
    211 
    212 <varlistentry id="libavformat">
    213 <term><filename class='libraryfile'>libavformat.so</filename></term>
    214 <listitem><para>is a library containing the file formats handling (mux and
    215 demux code for several formats) used by <command>ffplay</command> as well as
    216 allowing the generation of  audio or video streams.</para>
    217 <indexterm zone="ffmpeg libavformat">
    218 <primary sortas="c-libavformat">libavformat.so</primary></indexterm>
    219 </listitem>
    220 </varlistentry>
    221 </variablelist>
    222 
    223 </sect2>
     95make</userinput></screen>
     96
     97    <para>If you have <application>TeX</application> installed, the man pages
     98    and documentation were built during the <command>make</command> process.
     99    Skip to the <systemitem class="username">root</systemitem> user installation
     100    steps. If you do not have <application>TeX</application> installed, use the
     101    following command to build the man pages:</para>
     102
     103<screen><userinput>make -C doc {ffmpeg,ffserver,ffplay}.1</userinput></screen>
     104
     105    <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
     106
     107<screen role="root"><userinput>make install</userinput></screen>
     108
     109    <para>If you have <application>TeX</application> installed (which caused
     110    the HTML documentation to be built earlier), install the documentation by
     111    issuing the following commands as the <systemitem
     112    class="username">root</systemitem> user:</para>
     113
     114<screen role="root"><userinput>install -v -m755 -d /usr/share/doc/ffmpeg-&ffmpeg-version; &amp;&amp;
     115install -v -m644 doc/*.html /usr/share/doc/ffmpeg-&ffmpeg-version;</userinput></screen>
     116
     117  </sect2>
     118
     119  <sect2 role="commands">
     120    <title>Command Explanations</title>
     121
     122    <para><command>sed -i -e "s/static uint64/const uint64/"
     123    libavcodec/liba52/resample_mmx.c</command>: This command fixes an issue
     124    on machines with MMX capability and use <application>GCC</application>-3.4.x
     125    to compile in A52 support using the <option>--enable-a52</option> parameter
     126    passed to the <command>configure</command> script.</para>
     127
     128    <para><parameter>--enable-shared</parameter>: This switch is needed to
     129    build the <filename class="libraryfile">libavcodec</filename> and
     130    <filename class="libraryfile">libavformat</filename> shared
     131    libraries.</para>
     132
     133    <para><parameter>--enable-pthreads</parameter>: This switch enables the
     134    build to link against the Posix threads library.</para>
     135
     136    <para><parameter>--disable-ffplay</parameter>: Only installs the server part.
     137    <command>ffplay</command> requires <application>X</application> for
     138    building. Remove this option if <application>X</application> is
     139    installed.</para>
     140
     141    <para><option>--enable-<replaceable>[codec]</replaceable></option>: Review
     142    the available options and codecs using the
     143    <command>./configure --help</command> command.</para>
     144
     145  </sect2>
     146
     147  <sect2 role="configuration">
     148    <title>Configuring FFmpeg</title>
     149
     150    <sect3 id="ffmpeg-config">
     151      <title>Config Files</title>
     152
     153      <para><filename>/etc/ffserver.conf</filename> and
     154      <filename>~/.ffmpeg/ffserver-config</filename></para>
     155
     156      <indexterm zone="ffmpeg ffmpeg-config">
     157        <primary sortas="e-AA.ffmpeg-ffserver-config">~/.ffmpeg/ffserver-config</primary>
     158      </indexterm>
     159
     160      <indexterm zone="ffmpeg ffmpeg-config">
     161        <primary sortas="e-etc-ffserver.conf">/etc/ffserver.conf</primary>
     162      </indexterm>
     163
     164      <para>You'll find a sample ffserver configuration file at
     165      <ulink url="http://ffmpeg.sourceforge.net/sample.html"/> (also
     166      <filename>doc/ffserver.conf</filename> in the source tree).</para>
     167
     168    </sect3>
     169
     170  </sect2>
     171
     172  <sect2 role="content">
     173    <title>Contents</title>
     174
     175    <segmentedlist>
     176      <segtitle>Installed Programs</segtitle>
     177      <segtitle>Installed Libraries</segtitle>
     178      <segtitle>Installed Directories</segtitle>
     179
     180      <seglistitem>
     181        <seg>ffmpeg, ffserver, and optionally, ffplay</seg>
     182        <seg>libavcodec.so, libavformat.so, and video hook modules</seg>
     183        <seg>/usr/include/ffmpeg, /usr/lib/vhook, and
     184        /usr/share/doc/ffmpeg-&ffmpeg-version;</seg>
     185      </seglistitem>
     186    </segmentedlist>
     187
     188    <variablelist>
     189      <bridgehead renderas="sect3">Short Descriptions</bridgehead>
     190      <?dbfo list-presentation="list"?>
     191      <?dbhtml list-presentation="table"?>
     192
     193      <varlistentry id="ffmpeg-prog">
     194        <term><command>ffmpeg</command></term>
     195        <listitem>
     196          <para>is a command-line tool to convert video files, network streams
     197          and input from a TV card to several video formats.</para>
     198          <indexterm zone="ffmpeg ffmpeg-prog">
     199            <primary sortas="b-ffmpeg">ffmpeg</primary>
     200          </indexterm>
     201        </listitem>
     202      </varlistentry>
     203
     204      <varlistentry id="ffplay">
     205        <term><command>ffplay</command></term>
     206        <listitem>
     207          <para>is a very simple and portable media player using the
     208          <filename>ffmpeg</filename> libraries and the SDL library.</para>
     209          <indexterm zone="ffmpeg ffplay">
     210            <primary sortas="b-ffplay">ffplay</primary>
     211          </indexterm>
     212        </listitem>
     213      </varlistentry>
     214
     215      <varlistentry id="ffserver">
     216        <term><command>ffserver</command></term>
     217        <listitem>
     218          <para>is a streaming server for everything that <command>ffmpeg</command>
     219          could use as input (files, streams, TV card input, webcam, etc.).</para>
     220          <indexterm zone="ffmpeg ffserver">
     221            <primary sortas="b-ffserver">ffserver</primary>
     222          </indexterm>
     223        </listitem>
     224      </varlistentry>
     225
     226      <varlistentry id="libavcodec">
     227        <term><filename class='libraryfile'>libavcodec.so</filename></term>
     228        <listitem>
     229          <para>is a library containing the <application>FFmpeg</application>
     230          codecs (both encoding and decoding).</para>
     231          <indexterm zone="ffmpeg libavcodec">
     232            <primary sortas="c-libavcodec">libavcodec.so</primary>
     233          </indexterm>
     234        </listitem>
     235      </varlistentry>
     236
     237      <varlistentry id="libavformat">
     238        <term><filename class='libraryfile'>libavformat.so</filename></term>
     239        <listitem>
     240          <para>is a library containing the file formats handling (mux and demux code
     241          for several formats) used by <command>ffplay</command> as well as
     242          allowing the generation of  audio or video streams.</para>
     243          <indexterm zone="ffmpeg libavformat">
     244            <primary sortas="c-libavformat">libavformat.so</primary>
     245          </indexterm>
     246        </listitem>
     247      </varlistentry>
     248
     249    </variablelist>
     250
     251  </sect2>
    224252
    225253</sect1>
Note: See TracChangeset for help on using the changeset viewer.