title: How to change frame rate FPS of an existing video using openCV python
body: <p>I am trying to change the Frame rate i.e., FPS of an existing video using openCV library in python. Below is the code that I am trying to execute. Even after setting the FPS property using <code>cv2.CAP_PROP_FPS</code> the video is not playing faster in the <code>cv2.imshow()</code> method. Even After setting the FPS property the getter returns the older FPS value. So how do I set the FPS value higher and make the video play faster?</p>
  
  <p><strong>Used version:</strong>
  python = 3.7.4 and 
  opencv-python - 4.1.0.25</p>
  
  <pre><code>import cv2
  
  video = cv2.VideoCapture("yourVideoPath.mp4");
  video.set(cv2.CAP_PROP_FPS, int(60))
  
  if __name__ == '__main__':
      print("Frame rate : {0}".format(video.get(cv2.CAP_PROP_FPS)))
      while video.isOpened():
          ret1, frame2 = video.read()
          cv2.imshow("Changed", frame2)
  
          if cv2.waitKey(10) &amp; 0xFF == ord('q'):  # press q to quit
              break
  
  video.release()
  cv2.destroyAllWindows()
  </code></pre>