Sophie

Sophie

distrib > Mageia > 2 > i586 > media > tainted-updates > by-pkgid > cd7a767f018dbe1083813120c7fda415 > files > 19

ffmpeg-0.10.4-1.mga2.tainted.i586.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html401/loose.dtd">
<html>
<!-- Created on June 16, 2012 by texi2html 1.82 -->
<!--
texi2html was written by: 
            Lionel Cons <Lionel.Cons@cern.ch> (original author)
            Karl Berry  <karl@freefriends.org>
            Olaf Bachmann <obachman@mathematik.uni-kl.de>
            and many others.
Maintained by: Many creative people.
Send bugs and suggestions to <texi2html-bug@nongnu.org>

-->
<head>
<title>FFmpeg documentation : : </title>

<meta name="description" content=": ">
<meta name="keywords" content="FFmpeg documentation : : ">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="texi2html 1.82">

<style type="text/css">
<!--
a.summary-letter { text-decoration: none }
a { color: #2D6198; }
a:visited { color: #884488; }
h1 a, h2 a, h3 a { text-decoration: inherit; color: inherit; }
p { margin-left: 1em; margin-right: 1em; }
table { margin-left: 2em; }
pre { margin-left: 2em; }
#footer { text-align: center; }
#body { margin-left: 1em; margin-right: 1em; }
body { background-color: #313131; margin: 0; }

#container {
    background-color: white;
    color: #202020;
    margin-left: 1em;
    margin-right: 1em;
}

h1 {
    background-color: #7BB37B;
    border: 1px solid #6A996A;
    color: #151515;
    font-size: 1.2em;
    padding-bottom: 0.2em;
    padding-left: 0.4em;
    padding-top: 0.2em;
}

h2 {
    color: #313131;
    font-size: 1.2em;
}

h3 {
    color: #313131;
    font-size: 0.8em;
    margin-bottom: -8px;
}

.note {
    margin: 1em;
    border: 1px solid #bbc9d8;
    background-color: #dde1e1;
}

.important {
    margin: 1em;
    border: 1px solid #d26767;
    background-color: #f8e1e1;
}

-->
</style>

<link rel="icon" href="favicon.png" type="image/png" />
<link rel="stylesheet" type="text/css" href="default.css" />

</head>

<body >
<div id="container">

<div id="body">
<a name="SEC_Top"></a>
<h1 class="settitle">ffserver Documentation</h1>

<a name="SEC_Contents"></a>
<h1>Table of Contents</h1>
<div class="contents">

<ul class="toc">
  <li><a name="toc-Synopsys" href="#Synopsys">1. Synopsys</a></li>
  <li><a name="toc-Description" href="#Description">2. Description</a>
  <ul class="toc">
    <li><a name="toc-How-does-it-work_003f" href="#How-does-it-work_003f">2.1 How does it work?</a></li>
    <li><a name="toc-Status-stream" href="#Status-stream">2.2 Status stream</a></li>
    <li><a name="toc-What-can-this-do_003f" href="#What-can-this-do_003f">2.3 What can this do?</a></li>
    <li><a name="toc-What-do-I-need_003f" href="#What-do-I-need_003f">2.4 What do I need?</a></li>
    <li><a name="toc-How-do-I-make-it-work_003f" href="#How-do-I-make-it-work_003f">2.5 How do I make it work?</a></li>
    <li><a name="toc-What-happens-next_003f" href="#What-happens-next_003f">2.6 What happens next?</a></li>
    <li><a name="toc-Troubleshooting" href="#Troubleshooting">2.7 Troubleshooting</a>
    <ul class="toc">
      <li><a name="toc-I-don_0027t-hear-any-audio_002c-but-video-is-fine_002e" href="#I-don_0027t-hear-any-audio_002c-but-video-is-fine_002e">2.7.1 I don&rsquo;t hear any audio, but video is fine.</a></li>
      <li><a name="toc-The-audio-and-video-lose-sync-after-a-while_002e" href="#The-audio-and-video-lose-sync-after-a-while_002e">2.7.2 The audio and video lose sync after a while.</a></li>
      <li><a name="toc-After-a-long-while_002c-the-video-update-rate-goes-way-down-in-WMP_002e" href="#After-a-long-while_002c-the-video-update-rate-goes-way-down-in-WMP_002e">2.7.3 After a long while, the video update rate goes way down in WMP.</a></li>
      <li><a name="toc-WMP-6_002e4-behaves-differently-to-WMP-7_002e" href="#WMP-6_002e4-behaves-differently-to-WMP-7_002e">2.7.4 WMP 6.4 behaves differently to WMP 7.</a></li>
    </ul></li>
    <li><a name="toc-What-else-can-it-do_003f" href="#What-else-can-it-do_003f">2.8 What else can it do?</a></li>
    <li><a name="toc-Tips" href="#Tips">2.9 Tips</a></li>
    <li><a name="toc-Why-does-the-_003fbuffer-_002f-Preroll-stop-working-after-a-time_003f" href="#Why-does-the-_003fbuffer-_002f-Preroll-stop-working-after-a-time_003f">2.10 Why does the ?buffer / Preroll stop working after a time?</a></li>
    <li><a name="toc-Does-the-_003fdate_003d-stuff-work_002e" href="#Does-the-_003fdate_003d-stuff-work_002e">2.11 Does the <code>?date=</code> stuff work.</a></li>
  </ul></li>
  <li><a name="toc-Options" href="#Options">3. Options</a>
  <ul class="toc">
    <li><a name="toc-Stream-specifiers-1" href="#Stream-specifiers-1">3.1 Stream specifiers</a></li>
    <li><a name="toc-Generic-options" href="#Generic-options">3.2 Generic options</a></li>
    <li><a name="toc-AVOptions" href="#AVOptions">3.3 AVOptions</a></li>
    <li><a name="toc-Main-options" href="#Main-options">3.4 Main options</a></li>
  </ul>
</li>
</ul>
</div>

<a name="Synopsys"></a>
<h1 class="chapter"><a href="ffserver.html#toc-Synopsys">1. Synopsys</a></h1>

<p>The generic syntax is:
</p>
<table><tr><td>&nbsp;</td><td><pre class="example">ffserver [options]
</pre></td></tr></table>

<a name="Description"></a>
<h1 class="chapter"><a href="ffserver.html#toc-Description">2. Description</a></h1>

<p>ffserver is a streaming server for both audio and video. It supports
</p>
<p>several live feeds, streaming from files and time shifting on live feeds
(you can seek to positions in the past on each live feed, provided you
specify a big enough feed storage in ffserver.conf).
</p>
<p>ffserver runs in daemon mode by default; that is, it puts itself in
the background and detaches from its TTY, unless it is launched in
debug mode or a NoDaemon option is specified in the configuration
file.
</p>
<p>This documentation covers only the streaming aspects of ffserver /
ffmpeg. All questions about parameters for ffmpeg, codec questions,
etc. are not covered here. Read &lsquo;<tt>ffmpeg.html</tt>&rsquo; for more
information.
</p>
<a name="How-does-it-work_003f"></a>
<h2 class="section"><a href="ffserver.html#toc-How-does-it-work_003f">2.1 How does it work?</a></h2>

<p>ffserver receives prerecorded files or FFM streams from some ffmpeg
instance as input, then streams them over RTP/RTSP/HTTP.
</p>
<p>An ffserver instance will listen on some port as specified in the
configuration file. You can launch one or more instances of ffmpeg and
send one or more FFM streams to the port where ffserver is expecting
to receive them. Alternately, you can make ffserver launch such ffmpeg
instances at startup.
</p>
<p>Input streams are called feeds, and each one is specified by a &lt;Feed&gt;
section in the configuration file.
</p>
<p>For each feed you can have different output streams in various
formats, each one specified by a &lt;Stream&gt; section in the configuration
file.
</p>
<a name="Status-stream"></a>
<h2 class="section"><a href="ffserver.html#toc-Status-stream">2.2 Status stream</a></h2>

<p>ffserver supports an HTTP interface which exposes the current status
of the server.
</p>
<p>Simply point your browser to the address of the special status stream
specified in the configuration file.
</p>
<p>For example if you have:
</p><table><tr><td>&nbsp;</td><td><pre class="example">&lt;Stream status.html&gt;
Format status

# Only allow local people to get the status
ACL allow localhost
ACL allow 192.168.0.0 192.168.255.255
&lt;/Stream&gt;
</pre></td></tr></table>

<p>then the server will post a page with the status information when
the special stream &lsquo;<tt>status.html</tt>&rsquo; is requested.
</p>
<a name="What-can-this-do_003f"></a>
<h2 class="section"><a href="ffserver.html#toc-What-can-this-do_003f">2.3 What can this do?</a></h2>

<p>When properly configured and running, you can capture video and audio in real
time from a suitable capture card, and stream it out over the Internet to
either Windows Media Player or RealAudio player (with some restrictions).
</p>
<p>It can also stream from files, though that is currently broken. Very often, a
web server can be used to serve up the files just as well.
</p>
<p>It can stream prerecorded video from .ffm files, though it is somewhat tricky
to make it work correctly.
</p>
<a name="What-do-I-need_003f"></a>
<h2 class="section"><a href="ffserver.html#toc-What-do-I-need_003f">2.4 What do I need?</a></h2>

<p>I use Linux on a 900 MHz Duron with a cheapo Bt848 based TV capture card. I&rsquo;m
using stock Linux 2.4.17 with the stock drivers. [Actually that isn&rsquo;t true,
I needed some special drivers for my motherboard-based sound card.]
</p>
<p>I understand that FreeBSD systems work just fine as well.
</p>
<a name="How-do-I-make-it-work_003f"></a>
<h2 class="section"><a href="ffserver.html#toc-How-do-I-make-it-work_003f">2.5 How do I make it work?</a></h2>

<p>First, build the kit. It *really* helps to have installed LAME first. Then when
you run the ffserver ./configure, make sure that you have the
<code>--enable-libmp3lame</code> flag turned on.
</p>
<p>LAME is important as it allows for streaming audio to Windows Media Player.
Don&rsquo;t ask why the other audio types do not work.
</p>
<p>As a simple test, just run the following two command lines where INPUTFILE
is some file which you can decode with ffmpeg:
</p>
<table><tr><td>&nbsp;</td><td><pre class="example">ffserver -f doc/ffserver.conf &amp;
ffmpeg -i INPUTFILE http://localhost:8090/feed1.ffm
</pre></td></tr></table>

<p>At this point you should be able to go to your Windows machine and fire up
Windows Media Player (WMP). Go to Open URL and enter
</p>
<table><tr><td>&nbsp;</td><td><pre class="example">    http://&lt;linuxbox&gt;:8090/test.asf
</pre></td></tr></table>

<p>You should (after a short delay) see video and hear audio.
</p>
<p>WARNING: trying to stream test1.mpg doesn&rsquo;t work with WMP as it tries to
transfer the entire file before starting to play.
The same is true of AVI files.
</p>
<a name="What-happens-next_003f"></a>
<h2 class="section"><a href="ffserver.html#toc-What-happens-next_003f">2.6 What happens next?</a></h2>

<p>You should edit the ffserver.conf file to suit your needs (in terms of
frame rates etc). Then install ffserver and ffmpeg, write a script to start
them up, and off you go.
</p>
<a name="Troubleshooting"></a>
<h2 class="section"><a href="ffserver.html#toc-Troubleshooting">2.7 Troubleshooting</a></h2>

<a name="I-don_0027t-hear-any-audio_002c-but-video-is-fine_002e"></a>
<h3 class="subsection"><a href="ffserver.html#toc-I-don_0027t-hear-any-audio_002c-but-video-is-fine_002e">2.7.1 I don&rsquo;t hear any audio, but video is fine.</a></h3>

<p>Maybe you didn&rsquo;t install LAME, or got your ./configure statement wrong. Check
the ffmpeg output to see if a line referring to MP3 is present. If not, then
your configuration was incorrect. If it is, then maybe your wiring is not
set up correctly. Maybe the sound card is not getting data from the right
input source. Maybe you have a really awful audio interface (like I do)
that only captures in stereo and also requires that one channel be flipped.
If you are one of these people, then export &rsquo;AUDIO_FLIP_LEFT=1&rsquo; before
starting ffmpeg.
</p>
<a name="The-audio-and-video-lose-sync-after-a-while_002e"></a>
<h3 class="subsection"><a href="ffserver.html#toc-The-audio-and-video-lose-sync-after-a-while_002e">2.7.2 The audio and video lose sync after a while.</a></h3>

<p>Yes, they do.
</p>
<a name="After-a-long-while_002c-the-video-update-rate-goes-way-down-in-WMP_002e"></a>
<h3 class="subsection"><a href="ffserver.html#toc-After-a-long-while_002c-the-video-update-rate-goes-way-down-in-WMP_002e">2.7.3 After a long while, the video update rate goes way down in WMP.</a></h3>

<p>Yes, it does. Who knows why?
</p>
<a name="WMP-6_002e4-behaves-differently-to-WMP-7_002e"></a>
<h3 class="subsection"><a href="ffserver.html#toc-WMP-6_002e4-behaves-differently-to-WMP-7_002e">2.7.4 WMP 6.4 behaves differently to WMP 7.</a></h3>

<p>Yes, it does. Any thoughts on this would be gratefully received. These
differences extend to embedding WMP into a web page. [There are two
object IDs that you can use: The old one, which does not play well, and
the new one, which does (both tested on the same system). However,
I suspect that the new one is not available unless you have installed WMP 7].
</p>
<a name="What-else-can-it-do_003f"></a>
<h2 class="section"><a href="ffserver.html#toc-What-else-can-it-do_003f">2.8 What else can it do?</a></h2>

<p>You can replay video from .ffm files that was recorded earlier.
However, there are a number of caveats, including the fact that the
ffserver parameters must match the original parameters used to record the
file. If they do not, then ffserver deletes the file before recording into it.
(Now that I write this, it seems broken).
</p>
<p>You can fiddle with many of the codec choices and encoding parameters, and
there are a bunch more parameters that you cannot control. Post a message
to the mailing list if there are some &rsquo;must have&rsquo; parameters. Look in
ffserver.conf for a list of the currently available controls.
</p>
<p>It will automatically generate the ASX or RAM files that are often used
in browsers. These files are actually redirections to the underlying ASF
or RM file. The reason for this is that the browser often fetches the
entire file before starting up the external viewer. The redirection files
are very small and can be transferred quickly. [The stream itself is
often &rsquo;infinite&rsquo; and thus the browser tries to download it and never
finishes.]
</p>
<a name="Tips"></a>
<h2 class="section"><a href="ffserver.html#toc-Tips">2.9 Tips</a></h2>

<p>* When you connect to a live stream, most players (WMP, RA, etc) want to
buffer a certain number of seconds of material so that they can display the
signal continuously. However, ffserver (by default) starts sending data
in realtime. This means that there is a pause of a few seconds while the
buffering is being done by the player. The good news is that this can be
cured by adding a &rsquo;?buffer=5&rsquo; to the end of the URL. This means that the
stream should start 5 seconds in the past &ndash; and so the first 5 seconds
of the stream are sent as fast as the network will allow. It will then
slow down to real time. This noticeably improves the startup experience.
</p>
<p>You can also add a &rsquo;Preroll 15&rsquo; statement into the ffserver.conf that will
add the 15 second prebuffering on all requests that do not otherwise
specify a time. In addition, ffserver will skip frames until a key_frame
is found. This further reduces the startup delay by not transferring data
that will be discarded.
</p>
<p>* You may want to adjust the MaxBandwidth in the ffserver.conf to limit
the amount of bandwidth consumed by live streams.
</p>
<a name="Why-does-the-_003fbuffer-_002f-Preroll-stop-working-after-a-time_003f"></a>
<h2 class="section"><a href="ffserver.html#toc-Why-does-the-_003fbuffer-_002f-Preroll-stop-working-after-a-time_003f">2.10 Why does the ?buffer / Preroll stop working after a time?</a></h2>

<p>It turns out that (on my machine at least) the number of frames successfully
grabbed is marginally less than the number that ought to be grabbed. This
means that the timestamp in the encoded data stream gets behind realtime.
This means that if you say &rsquo;Preroll 10&rsquo;, then when the stream gets 10
or more seconds behind, there is no Preroll left.
</p>
<p>Fixing this requires a change in the internals of how timestamps are
handled.
</p>
<a name="Does-the-_003fdate_003d-stuff-work_002e"></a>
<h2 class="section"><a href="ffserver.html#toc-Does-the-_003fdate_003d-stuff-work_002e">2.11 Does the <code>?date=</code> stuff work.</a></h2>

<p>Yes (subject to the limitation outlined above). Also note that whenever you
start ffserver, it deletes the ffm file (if any parameters have changed),
thus wiping out what you had recorded before.
</p>
<p>The format of the <code>?date=xxxxxx</code> is fairly flexible. You should use one
of the following formats (the &rsquo;T&rsquo; is literal):
</p>
<table><tr><td>&nbsp;</td><td><pre class="example">* YYYY-MM-DDTHH:MM:SS     (localtime)
* YYYY-MM-DDTHH:MM:SSZ    (UTC)
</pre></td></tr></table>

<p>You can omit the YYYY-MM-DD, and then it refers to the current day. However
note that &lsquo;<samp>?date=16:00:00</samp>&rsquo; refers to 16:00 on the current day &ndash; this
may be in the future and so is unlikely to be useful.
</p>
<p>You use this by adding the ?date= to the end of the URL for the stream.
For example:   &lsquo;<samp>http://localhost:8080/test.asf?date=2002-07-26T23:05:00</samp>&rsquo;.
</p>
<a name="Options"></a>
<h1 class="chapter"><a href="ffserver.html#toc-Options">3. Options</a></h1>

<p>All the numerical options, if not specified otherwise, accept in input
a string representing a number, which may contain one of the
International System number postfixes, for example &rsquo;K&rsquo;, &rsquo;M&rsquo;, &rsquo;G&rsquo;.
If &rsquo;i&rsquo; is appended after the postfix, powers of 2 are used instead of
powers of 10. The &rsquo;B&rsquo; postfix multiplies the value for 8, and can be
appended after another postfix or used alone. This allows using for
example &rsquo;KB&rsquo;, &rsquo;MiB&rsquo;, &rsquo;G&rsquo; and &rsquo;B&rsquo; as postfix.
</p>
<p>Options which do not take arguments are boolean options, and set the
corresponding value to true. They can be set to false by prefixing
with &quot;no&quot; the option name, for example using &quot;-nofoo&quot; in the
command line will set to false the boolean option with name &quot;foo&quot;.
</p>
<p><a name="Stream-specifiers"></a>
</p><a name="Stream-specifiers-1"></a>
<h2 class="section"><a href="ffserver.html#toc-Stream-specifiers-1">3.1 Stream specifiers</a></h2>
<p>Some options are applied per-stream, e.g. bitrate or codec. Stream specifiers
are used to precisely specify which stream(s) does a given option belong to.
</p>
<p>A stream specifier is a string generally appended to the option name and
separated from it by a colon. E.g. <code>-codec:a:1 ac3</code> option contains
<code>a:1</code> stream specifer, which matches the second audio stream. Therefore it
would select the ac3 codec for the second audio stream.
</p>
<p>A stream specifier can match several stream, the option is then applied to all
of them. E.g. the stream specifier in <code>-b:a 128k</code> matches all audio
streams.
</p>
<p>An empty stream specifier matches all streams, for example <code>-codec copy</code>
or <code>-codec: copy</code> would copy all the streams without reencoding.
</p>
<p>Possible forms of stream specifiers are:
</p><dl compact="compact">
<dt> &lsquo;<samp><var>stream_index</var></samp>&rsquo;</dt>
<dd><p>Matches the stream with this index. E.g. <code>-threads:1 4</code> would set the
thread count for the second stream to 4.
</p></dd>
<dt> &lsquo;<samp><var>stream_type</var>[:<var>stream_index</var>]</samp>&rsquo;</dt>
<dd><p><var>stream_type</var> is one of: &rsquo;v&rsquo; for video, &rsquo;a&rsquo; for audio, &rsquo;s&rsquo; for subtitle,
&rsquo;d&rsquo; for data and &rsquo;t&rsquo; for attachments. If <var>stream_index</var> is given, then
matches stream number <var>stream_index</var> of this type. Otherwise matches all
streams of this type.
</p></dd>
<dt> &lsquo;<samp>p:<var>program_id</var>[:<var>stream_index</var>]</samp>&rsquo;</dt>
<dd><p>If <var>stream_index</var> is given, then matches stream number <var>stream_index</var> in
program with id <var>program_id</var>. Otherwise matches all streams in this program.
</p></dd>
</dl>
<a name="Generic-options"></a>
<h2 class="section"><a href="ffserver.html#toc-Generic-options">3.2 Generic options</a></h2>

<p>These options are shared amongst the av* tools.
</p>
<dl compact="compact">
<dt> &lsquo;<samp>-L</samp>&rsquo;</dt>
<dd><p>Show license.
</p>
</dd>
<dt> &lsquo;<samp>-h, -?, -help, --help</samp>&rsquo;</dt>
<dd><p>Show help.
</p>
</dd>
<dt> &lsquo;<samp>-version</samp>&rsquo;</dt>
<dd><p>Show version.
</p>
</dd>
<dt> &lsquo;<samp>-formats</samp>&rsquo;</dt>
<dd><p>Show available formats.
</p>
<p>The fields preceding the format names have the following meanings:
</p><dl compact="compact">
<dt> &lsquo;<samp>D</samp>&rsquo;</dt>
<dd><p>Decoding available
</p></dd>
<dt> &lsquo;<samp>E</samp>&rsquo;</dt>
<dd><p>Encoding available
</p></dd>
</dl>

</dd>
<dt> &lsquo;<samp>-codecs</samp>&rsquo;</dt>
<dd><p>Show available codecs.
</p>
<p>The fields preceding the codec names have the following meanings:
</p><dl compact="compact">
<dt> &lsquo;<samp>D</samp>&rsquo;</dt>
<dd><p>Decoding available
</p></dd>
<dt> &lsquo;<samp>E</samp>&rsquo;</dt>
<dd><p>Encoding available
</p></dd>
<dt> &lsquo;<samp>V/A/S</samp>&rsquo;</dt>
<dd><p>Video/audio/subtitle codec
</p></dd>
<dt> &lsquo;<samp>S</samp>&rsquo;</dt>
<dd><p>Codec supports slices
</p></dd>
<dt> &lsquo;<samp>D</samp>&rsquo;</dt>
<dd><p>Codec supports direct rendering
</p></dd>
<dt> &lsquo;<samp>T</samp>&rsquo;</dt>
<dd><p>Codec can handle input truncated at random locations instead of only at frame boundaries
</p></dd>
</dl>

</dd>
<dt> &lsquo;<samp>-bsfs</samp>&rsquo;</dt>
<dd><p>Show available bitstream filters.
</p>
</dd>
<dt> &lsquo;<samp>-protocols</samp>&rsquo;</dt>
<dd><p>Show available protocols.
</p>
</dd>
<dt> &lsquo;<samp>-filters</samp>&rsquo;</dt>
<dd><p>Show available libavfilter filters.
</p>
</dd>
<dt> &lsquo;<samp>-pix_fmts</samp>&rsquo;</dt>
<dd><p>Show available pixel formats.
</p>
</dd>
<dt> &lsquo;<samp>-sample_fmts</samp>&rsquo;</dt>
<dd><p>Show available sample formats.
</p>
</dd>
<dt> &lsquo;<samp>-loglevel <var>loglevel</var> | -v <var>loglevel</var></samp>&rsquo;</dt>
<dd><p>Set the logging level used by the library.
<var>loglevel</var> is a number or a string containing one of the following values:
</p><dl compact="compact">
<dt> &lsquo;<samp>quiet</samp>&rsquo;</dt>
<dt> &lsquo;<samp>panic</samp>&rsquo;</dt>
<dt> &lsquo;<samp>fatal</samp>&rsquo;</dt>
<dt> &lsquo;<samp>error</samp>&rsquo;</dt>
<dt> &lsquo;<samp>warning</samp>&rsquo;</dt>
<dt> &lsquo;<samp>info</samp>&rsquo;</dt>
<dt> &lsquo;<samp>verbose</samp>&rsquo;</dt>
<dt> &lsquo;<samp>debug</samp>&rsquo;</dt>
</dl>

<p>By default the program logs to stderr, if coloring is supported by the
terminal, colors are used to mark errors and warnings. Log coloring
can be disabled setting the environment variable
<code>AV_LOG_FORCE_NOCOLOR</code> or <code>NO_COLOR</code>, or can be forced setting
the environment variable <code>AV_LOG_FORCE_COLOR</code>.
The use of the environment variable <code>NO_COLOR</code> is deprecated and
will be dropped in a following FFmpeg version.
</p>
</dd>
<dt> &lsquo;<samp>-report</samp>&rsquo;</dt>
<dd><p>Dump full command line and console output to a file named
<code><var>program</var>-<var>YYYYMMDD</var>-<var>HHMMSS</var>.log</code> in the current
directory.
This file can be useful for bug reports.
It also implies <code>-loglevel verbose</code>.
</p>
<p>Note: setting the environment variable <code>FFREPORT</code> to any value has the
same effect.
</p>
</dd>
</dl>

<a name="AVOptions"></a>
<h2 class="section"><a href="ffserver.html#toc-AVOptions">3.3 AVOptions</a></h2>

<p>These options are provided directly by the libavformat, libavdevice and
libavcodec libraries. To see the list of available AVOptions, use the
&lsquo;<samp>-help</samp>&rsquo; option. They are separated into two categories:
</p><dl compact="compact">
<dt> &lsquo;<samp>generic</samp>&rsquo;</dt>
<dd><p>These options can be set for any container, codec or device. Generic options
are listed under AVFormatContext options for containers/devices and under
AVCodecContext options for codecs.
</p></dd>
<dt> &lsquo;<samp>private</samp>&rsquo;</dt>
<dd><p>These options are specific to the given container, device or codec. Private
options are listed under their corresponding containers/devices/codecs.
</p></dd>
</dl>

<p>For example to write an ID3v2.3 header instead of a default ID3v2.4 to
an MP3 file, use the &lsquo;<samp>id3v2_version</samp>&rsquo; private option of the MP3
muxer:
</p><table><tr><td>&nbsp;</td><td><pre class="example">ffmpeg -i input.flac -id3v2_version 3 out.mp3
</pre></td></tr></table>

<p>All codec AVOptions are obviously per-stream, so the chapter on stream
specifiers applies to them
</p>
<p>Note &lsquo;<samp>-nooption</samp>&rsquo; syntax cannot be used for boolean AVOptions,
use &lsquo;<samp>-option 0</samp>&rsquo;/&lsquo;<samp>-option 1</samp>&rsquo;.
</p>
<p>Note2 old undocumented way of specifying per-stream AVOptions by prepending
v/a/s to the options name is now obsolete and will be removed soon.
</p>
<a name="Main-options"></a>
<h2 class="section"><a href="ffserver.html#toc-Main-options">3.4 Main options</a></h2>

<dl compact="compact">
<dt> &lsquo;<samp>-f <var>configfile</var></samp>&rsquo;</dt>
<dd><p>Use &lsquo;<tt>configfile</tt>&rsquo; instead of &lsquo;<tt>/etc/ffserver.conf</tt>&rsquo;.
</p></dd>
<dt> &lsquo;<samp>-n</samp>&rsquo;</dt>
<dd><p>Enable no-launch mode. This option disables all the Launch directives
within the various &lt;Stream&gt; sections. Since ffserver will not launch
any ffmpeg instances, you will have to launch them manually.
</p></dd>
<dt> &lsquo;<samp>-d</samp>&rsquo;</dt>
<dd><p>Enable debug mode. This option increases log verbosity, directs log
messages to stdout and causes ffserver to run in the foreground
rather than as a daemon.
</p></dd>
</dl>


<div id="footer">
<p>
 <font size="-1">
  This document was generated on <i>June 16, 2012</i> using <a href="http://www.nongnu.org/texi2html/"><i>texi2html 1.82</i></a>.
 </font>
 <br>
</div></div>
</p>
</body>
</html>
</div>