title: Bitmaps to video in C#
body: <h2>DONE SO FAR</h2>
  
  <p>I use AForge MJPEGStream to get bitmaps from different IPcams and display them in my app. Now I want to record multiple (like at least 8) of these bitmapstreams to the local HDD. I already  used AForge AVIWriter (DLL) to write the file of 1 stream from a List, but because those Bitmaps all go in RAM I had to write it to HDD earlier (so I can record 8 streams at once). So I tried to write a frame every NewFrame-event to HDD. The problem with this is that AVIWriter.Open(string fileName, int width, int height) uses Win32.OpenFileMode.Create instead of Win32.OpenFileMode.ReadWrite and so deleting the videofile instead of opening it to add a frame. </p>
  
  <h2>Preferred goal</h2>
  
  <p>Record multiple MJPEG streams to disk as video files(could be done from the NewFrame-even described above, which provides Bitmaps). The very best result would be 1 hour long .MKV files encoded with X264. I don't care how to achieve this goal as long as it's done within my existing project in C# (so no need to keep using AForge).</p>