title: How do i get video frames and playing into imagebox in emgu c#
body: <p>I am using <code>emgucv</code> which is 'c#' wrapper for <code>opencv</code> I want to read video stream by playing the video as for testing i have a video and i want to get continues frames one next to other for this purpose i used the <code>QueryFrame()</code> method but it only get first frame of the video no more. At first frame it capute video content as expected but black screen to later frames don't know whats going inside.</p>
  <pre><code>public void processFrames(){
     capt = new Capture(&quot;video2.avi&quot;);
  
     Image&lt;Bgr, Byte&gt; ImageFrame = capt.QueryFrame().ToImage&lt;Bgr, Byte();
     if (ImageFrame!=null ) {
        ImageFrame = capt.QueryFrame().ToImage&lt;Bgr, Byte&gt;();
        imageBox1.Image = ImageFrame;
     }
     else {
        timer1.Stop();
     }    
  }
  
  private void button1_Click(object sender, EventArgs e){ 
     timer1.Start();
  }
  
  private void timer1_Tick(object sender, EventArgs e){
     processFrames();   
  }
  </code></pre>