Changeset c08bd877


Ignore:
Timestamp:
11/25/2011 02:48:42 AM (12 years ago)
Author:
Andrew Benton <andy@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 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:
5b74b27
Parents:
9e5b78b
Message:

Added commands to create qt-faststart to the ffmpeg page.
Reworded bits of it. I may work on it some more tomorrow.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • multimedia/videoutils/ffmpeg.xml

    r9e5b78b rc08bd877  
    9797    <ulink url="http://medialibrary.sourceforge.net/">MediaLibrary</ulink>,
    9898    <ulink url="http://www.openjpeg.org">OpenJPEG</ulink>
    99     (<application>ffmpeg</application> includes code for it's own jpeg2000
     99    (<application>FFmpeg</application> includes code for it's own jpeg2000
    100100    encoder and decoder which is enabled by default), <xref linkend="speex"/>,
    101101    <!-- <xref linkend="tetex"/>, --> <xref linkend="sdl"/> and
     
    114114    commands:</para>
    115115
    116 <screen><userinput>./configure --prefix=/usr --enable-shared --disable-static --enable-gpl &amp;&amp;
     116<screen><userinput>mkdir build &amp;&amp;
     117cd build &amp;&amp;
     118../configure --prefix=/usr --enable-shared --disable-static --enable-gpl &amp;&amp;
    117119make</userinput></screen>
    118120
     121    <para>If you upload certain formats (quicktime, mov or mp4) to youtube, you
     122    need to "flatten" them (move the index to the front of the file) before
     123    uploading. FFmpeg contains a tool called <command>qt-faststart</command>
     124    that can do this. If need <command>qt-faststart</command>, you can compile
     125    it with gcc:</para>
     126
     127<screen><userinput>gcc ../tools/qt-faststart.c -o qt-faststart</userinput></screen>
     128
    119129    <para>If you have <xref linkend="doxygen"/> installed and wish to create
    120     the API documentation (takes about 150 MB of space), issue
     130    the API documentation (takes about 150 MB of space), issue the command
    121131    <command>doxygen</command>.</para>
    122132
     
    140150
    141151<screen role="root"><userinput>mkdir /usr/share/doc/ffmpeg-&ffmpeg-version;/api &amp;&amp;
    142 cp -v doxy/*        /usr/share/doc/ffmpeg-&ffmpeg-version;/api</userinput></screen>
     152cp -v doxy/* /usr/share/doc/ffmpeg-&ffmpeg-version;/api</userinput></screen>
     153
     154    <para>If you compiled <command>qt-faststart</command> install it as the
     155    <systemitem class="username">root</systemitem> user:</para>
     156
     157<screen role="root"><userinput>cp qt-faststart /usr/bin</userinput></screen>
    143158
    144159  </sect2>
     
    147162    <title>Command Explanations</title>
    148163
     164    <para><command>mkdir build</command> and <command>cd build</command>:
     165    This ensures that we compile the <application>FFmpeg</application> object
     166    files in a separate directory to the source files.</para>
     167   
    149168    <para><option>--enable-shared</option>: This switch is needed to
    150169    build the shared libraries, otherwise only static libraries are built
     
    159178
    160179    <para><option>--enable-<replaceable>&lt;codec&gt;</replaceable></option>:
    161     <application>ffmpeg</application> comes with code to compile decoders for
     180    <application>FFmpeg</application> comes with code to compile decoders for
    162181    almost every codec you could think of. The only reason to enable a specific
    163     codec (and make ffmpeg link to the prerequisite shared library installed on
    164     your system) is to make ffmpeg compile an <emphasis>encoder</emphasis> for
    165     that codec. Encoding video is a job for a specialist. If that is what you
    166     want to do, study the output of <command>configure --help</command>.
    167     Remember, the dependencies all install their own encoders that are often
    168     better than <application>ffmpeg</application>'s.
    169     <application>Ffmpeg</application> is an excellent collection of decoders.
    170     If you just want to use ffmpeg to watch video or listen to music there is
    171     no benefit from linking it to another library.</para>
     182    codec (and make <application>FFmpeg</application> link to the prerequisite
     183    shared library installed on your system) is to make ffmpeg compile an
     184    <emphasis>encoder</emphasis> for that codec. Encoding video is a
     185    specialist job. If that is what you want to do with
     186    <command>ffmpeg</command>, study the output of <command>configure
     187    --help</command>. Remember, the dependencies all install their own encoders
     188    (that are often better than <application>FFmpeg</application>'s).
     189    <application>FFmpeg</application> is an excellent collection of decoders.
     190    If you just want to use <application>FFmpeg</application> to watch video or
     191    listen to music (via other applications like
     192    <application>Gstreamer</application>) then you will not benefit from
     193    linking it to another library.</para>
    172194
    173195    <para><option>--disable-yasm</option>: use this option if you've not
     
    194216      </indexterm>
    195217
    196       <para>You'll find a sample ffserver configuration file at
    197       <filename>doc/ffserver.conf</filename> in the source tree.</para>
     218      <para>You'll find a sample <command>ffserver</command> configuration file
     219      at <filename>doc/ffserver.conf</filename> in the source tree.</para>
    198220
    199221    </sect3>
     
    210232
    211233      <seglistitem>
    212         <seg>ffmpeg, ffplay, ffprobe, and ffserver</seg>
     234        <seg>ffmpeg, ffplay, ffprobe, ffserver and qt-faststart</seg>
    213235        <seg>libavcodec.so, libavdevice.so, libavfilter.so, libavformat.so,
    214236        libavutil.so, libpostproc.so, and libswscale.so</seg>
     
    254276          <indexterm zone="ffmpeg ffserver">
    255277            <primary sortas="b-ffserver">ffserver</primary>
     278          </indexterm>
     279        </listitem>
     280      </varlistentry>
     281
     282      <varlistentry id="qt-faststart">
     283        <term><command>qt-faststart</command></term>
     284        <listitem>
     285          <para>moves the index file to the front of quicktime (mov/mp4)
     286          videos.</para>
     287          <indexterm zone="ffmpeg qt-faststart">
     288            <primary sortas="b-qt-faststart">qt-faststart</primary>
    256289          </indexterm>
    257290        </listitem>
Note: See TracChangeset for help on using the changeset viewer.