title: Getting individual frames using CV_CAP_PROP_POS_FRAMES in cvSetCaptureProperty
body: <p>I am trying to jump to a specific frame by setting the <code>CV_CAP_PROP_POS_FRAMES</code> property and then reading the frame like this:</p>
  
  <pre><code>cvSetCaptureProperty( input_video, CV_CAP_PROP_POS_FRAMES, current_frame );
  frame = cvQueryFrame( input_video );
  </code></pre>
  
  <p>The problem I am facing is that, OpenCV 2.1 returns the same frame for the 12 consecutive values of <code>current_frame</code> whereas I want to read each individual frame, not just the key frames. Can anyone please tell me what's wrong?</p>
  
  <hr>
  
  <p>I did some research and found out that the problem is caused by the decompression algorithm.</p>
  
  <p>The MPEG-like algorithms (including HD, et all) do not compress each frame separately, but save a keyframe from time to time, and then only the differences between the last frame and subsequent frames.</p>
  
  <p>The problem you reported is caused by the fact that, when you select a frame, the decoder (ffmpeg, likely) automatically advances to the next keyframe.</p>
  
  <p>So, is there a way around this? I don't want only key frames but each individual frame.</p>