title: How to minimize the delay in a live streaming with ffmpeg
body: <p>i have a problem.
  I would to do a live streaming with ffmpeg from my webcam. </p>
  
  <ol>
  <li>I launch the ffserver and it works.</li>
  <li><p>From another terminal I launch ffmpeg to stream with this command
  and it works:</p>
  
  <pre><code>sudo ffmpeg -re -f video4linux2 -i /dev/video0 -fflags nobuffer -an http://localhost:8090/feed1.ffm
  </code></pre></li>
  <li><p>In my configuration file I have this stream:</p>
  
  <pre><code>&lt;Stream test.webm&gt;
  Feed feed1.ffm
  Format webm
   NoAudio
   VideoCodec libvpx
   VideoSize 720x576
   VideoFrameRate 25
   # Video settings
      VideoCodec libvpx
      VideoSize 720x576           # Video resolution
      VideoFrameRate 25           # Video FPS
      AVOptionVideo flags +global_header  # Parameters passed to encoder 
                                      # (same as ffmpeg command-line parameters)
      AVOptionVideo cpu-used 0
      AVOptionVideo qmin 10
      AVOptionVideo qmax 42
      #AVOptionVideo quality good
      PreRoll 5
       StartSendOnKey
      VideoBitRate 400            # Video bitrate
   &lt;/Stream&gt;
  </code></pre></li>
  <li><p>I launch the stream with</p>
  
  <p>ffplay http://<i>192.168.1.2</i>:8090/test.webm
  It works but I have a delay of 4 seconds and I would to minimize this delay because is essential for my application.
  Thanks</p></li>
  </ol>