title: How to capture and broadcast MJPEG stream from an IP webcam
body: <p>I've purchased a Foscam FI8910W IP webcam which outputs a live video stream in MJPEG format, and I'm trying to embed the live stream in a webpage.</p>
  
  <p>I've already accomplished this goal by simply using the camera feed's URL as the source for an HTML img tag. The problem with this is that each browser session accessing this page connects to the camera, so the limited bandwidth that the camera has is quickly used up, so no more than 2 or 3 users can view the page at the same time.</p>
  
  <p>What I would like to do is set up some sort of streaming server to access the camera's feed directly, and reproduce/process it in some way so that when users browse to my site they are pulling from the server rather than the camera.</p>
  
  <p>Ideally this would be done without the need for any browser plugins, and would work across any browser. I'm pretty experienced in several programming languages, so writing something to handle this is not totally out of the question, I just don't have the slightest idea how to get started. </p>