title: TCP connection refused when using ffserver / ffmpeg
body: <p>I am getting a "TCP connection to localhost:8090 failed: Connection refused" error when trying to use ffserver on Ubuntu 10.04LTS Desktop.</p>
  
  <p>I am typing:</p>
  
  <blockquote>
    <p>ffmpeg -f video4linux2 -s 640x480 -r 30000/1001 -i /dev/video0 -f avi -vcodec mjpeg -r 30000/1001 <code>http://localhost:8090/feed1.ffm</code></p>
  </blockquote>
  
  <p>Here is the full output:</p>
  
  <pre><code>Input #0, video4linux2, from '/dev/video0':  
  Duration: N/A, start: 1314207657.841770, bitrate: N/A  
     Stream #0.0: Video: mjpeg, yuvj420p, 1280x720 [SAR 96:96 DAR 16:9], -5 kb/s, 30 tbr, 1000k tbn, 30 tbc  
  [tcp @ 0x9e58980] TCP connection to localhost:8090 failed: Connection refused  
  [buffer @ 0x9e58260] w:1280 h:720 pixfmt:yuvj420p tb:1/1000000 sar:96/96 sws_param:  
  Output #0, avi, to 'http://localhost:8090/feed1.ffm':  
    Metadata:  
      ISFT            : Lavf53.8.0  
      Stream #0.0: Video: mjpeg, yuvj420p, 1280x720 [SAR 96:96 DAR 16:9], q=2-31, 200 kb/s, 29.97 tbn, 29.97 tbc  
  Stream mapping:  
    Stream #0.0 -&gt; #0.0`  
  </code></pre>
  
  <p>ffserver seems to acknowledge the request though:</p>
  
  <pre><code>Wed Aug 24 13:40:57 2011 127.0.0.1 - - [POST] "/feed1.ffm HTTP/1.1" 200 1356  
  </code></pre>
  
  <p>Where is the problem? How can I use ffmpeg correctly?</p>