title: How to convert RTSP stream into flv/swf Stream (w. ffmpeg)?
body: <p>I want embed a webcam stream (From geovision video server) into a website. Unfortunately only the rtsp stream gives direct access to the video data.</p>
  
  <p>I tried a bunch of different variants. With this version I got no errors:</p>
  
  <pre><code>openRTSP -b 50000 -w 352 -h 288 -f 5 -v -c -u admin password rtsp://xxxxxx.dyndns.org:8554/CH001.sdp | \
  ffmpeg -r 5 -b 256000 -f mp4 -i - http://127.0.0.1:8090/feed1.ffm
  </code></pre>
  
  <p>Unfortunately I get no video. Sometimes I see a single frame of the webcam, but no livestream.</p>
  
  <p>This is my ffserver.conf</p>
  
  <pre><code>Port 8090
  BindAddress 0.0.0.0
  MaxClients 200
  MaxBandwidth 20000
  CustomLog /var/log/flvserver/access.log
  
  NoDaemon
  
  # Server Status
  &lt;Stream stat.html&gt;
  Format status
  &lt;/Stream&gt;
  
  &lt;Feed feed1.ffm&gt;
  File /tmp/feed1.ffm
  FileMaxSize 200K
  ACL allow 127.0.0.1
  &lt;/Feed&gt;
  
  # SWF output - great for testing
  &lt;Stream test.swf&gt;
   # the source feed
   Feed feed1.ffm
   # the output stream format - SWF = flash
   Format swf
   #VideoCodec flv
   # this must match the ffmpeg -r argument
   VideoFrameRate 5
   # another quality tweak
   VideoBitRate 256K
   # quality ranges - 1-31 (1 = best, 31 = worst)
   VideoQMin 1
   VideoQMax 3
   VideoSize 352x288
   # wecams don't have audio
   NoAudio
  &lt;/Stream&gt;
  </code></pre>
  
  <p>What am I doing wrong? THe test.swf seems to load forever...</p>