title: Emgu CV VideoWriter with specific codec
body: <p>I need to use the VideoWriter class of Emgu CV library  in order to capture a screen at real time.</p>
  
  <p>what is problem now is the FILE SIZE... so, i have to use the specific codec.</p>
  
  <p>so far i have tried the code im posting:</p>
  
  <blockquote>
    <p>// VideoWriter prototype: VideoWriter(String fname, Int32 comprescode,
    Int32 pfs, Int32 width, Int32 height, Boolean isColor);</p>
    
    <p>VideoWriter captureOutput;= new VideoWriter(@"test.avi", -1, 1, width,
    height, true);</p>
  </blockquote>
  
  <p>as a result I got video COmpression dialog which i have a chance to select the codec.</p>
  
  <p><img src="https://i.stack.imgur.com/UAJAY.png" alt="enter image description here"></p>
  
  <p>I selected Microsoft Windows Media Video 9 codec and it seems i need to use this codec in order solve the file size problem.</p>
  
  <p>Instead to select every time when my program runs, I am gonna select it out in my program (in source code).</p>
  
  <p>there are some codec codes can be applied with CvInvoke.CV_FOURCC('I', 'Y', 'U', 'V') or others but i dont have any ideas for Windows Media Video 9.</p>
  
  <p>I am just wondering if there somebody faced same problem like im experiencing.</p>
  
  <p>any ideas highly appreciated.
  thanks~</p>