title: Displaying image stream of an IPcam
body: <p>I'm currently developing a WPF application where one of the controls displays a stream of images; much like any webcam. These images originate of an IP camera and can only be accessed by an HTTP Url, which is fixed and always the sames. Now capturing the images is no problem, via</p>
  
  <pre><code>    BitmapImage bitmapImage = new BitmapImage();
  
      bitmapImage.BeginInit();
      bitmapImage.UriSource = uri;
      bitmapImage.CacheOption = BitmapCacheOption.None;
      bitmapImage.CreateOptions = BitmapCreateOptions.IgnoreImageCache;
      bitmapImage.EndInit();
  
      return bitmapImage;
  </code></pre>
  
  <p>This much works. The problem arises when I attempt to hook up several cameras (more than 6), the application chokes and eventually crashes. All cameras run on a separate thread btw.</p>
  
  <p>I've identified the basic problem: creating a (highlevel?) bitmap eats too much resources as I need the app to process about 600 images/sec in real-time (about 30Mb/sec) eventually.</p>
  
  <p>In a nutshell, i'm looking for a way to make this retrieval/rendering process a lot more efficient.</p>
  
  <p>Thanks in advance!</p>
  
  <p><strong>UPDATE:</strong> </p>
  
  <p>Forgot to mention perhaps, im working in .NET 4 WPF, the camera itself is a Mobotix M12, accessed by ethernet.</p>