title: How to stream with ffmpeg via http protocol
body: <p>I'm currently doing a stream that is supposed to display correctly within Flowplayer. 
  First I send it to another PC via RTP. Here, I also checked with VLC that the codec etc. arrive correctly, which they do. </p>
  
  <p>Now I want to expose this stream to Flowplayer as a file, so it can be displayed, via something I used in VLC: 
  <code>http://localhost:8080/test.mp4</code>
  for example.</p>
  
  <p>The full line I got is: <code>ffmpeg -i input -f mp4 http://localhost:8080/test.mp4</code> </p>
  
  <p>However, no matter how I try to do this, I only get an input/output error. Is this only possible with something like ffserver or another? </p>
  
  <p>What I think is this doesn't work because ffmpeg can't act as a server; on VLC it works since it can. (Though VLC ruins the codecs I set and it can't be read afterwards for some reason)</p>
  
  <p>A (sort of) workaround I can use is saving the RTP stream to a file, and then letting flowplayer load it. This, however, only works once the file is not accessed anymore; I get a codec error otherwise.</p>