title: Change FPS on video capture from file with opencv
body: <p>I'm reading a video file, and it's slower than the actual FPS of the file (59 FPS @1080p) even if i'm not doing any processing to the image:</p>
  
  <pre><code>       using namespace cv;
         using namespace std;
         // Global variables
          UMat frame; //current frame
          int main(int argc, char** argv)
          {
  
                  VideoCapture capture("myFile.MP4");
                  namedWindow("Frame");
                  capture.set(CAP_PROP_FPS, 120); //not changing anything
                  cout&gt;&gt;capture.get(CAP_PROP_FPS);
                  while (charCheckForEscKey != 27) {
  
                         capture &gt;&gt;frame;
                  if (frame.empty())
                      break;
                  imshow("Frame", frame);
  
                  }
  
      }
  </code></pre>
  
  <p>Even if I tried to set CAP_PROP_FPS to 120 it doesn't change the fps of the file and when I get(CAP_PROP_FPS) I still get 59.9... </p>
  
  <p>When I read the video the actual outcome is more or less 54 FPS (even using UMat).</p>
  
  <p>Is there a way to read the file at a higher FPS rate ?</p>
  
  <p>I asked he question on the opencv Q&amp;A website as well :<a href="http://answers.opencv.org/question/117482/change-fps-on-video-capture-from-file/" rel="nofollow noreferrer">http://answers.opencv.org/question/117482/change-fps-on-video-capture-from-file/</a></p>
  
  <p>Is it just because my computer is too slow ? </p>