title: Python OpenCV video.get(cv2.CAP_PROP_FPS) returns 0.0 FPS
body: <p>This is my video</p>
  
  <p><a href="https://i.stack.imgur.com/su2nl.png" rel="noreferrer"><img src="https://i.stack.imgur.com/su2nl.png" alt="enter image description here"></a></p>
  
  <p>This is the script to find fps:</p>
  
  <pre><code>import cv2
  if __name__ == '__main__' :
  
      video = cv2.VideoCapture("test.mp4");
  
      # Find OpenCV version
      (major_ver, minor_ver, subminor_ver) = (cv2.__version__).split('.')
  
      if int(major_ver)  &lt; 3 :
          fps = video.get(cv2.cv.CV_CAP_PROP_FPS)
          print "Frames per second using video.get(cv2.cv.CV_CAP_PROP_FPS): {0}".format(fps)
      else :
          fps = video.get(cv2.CAP_PROP_FPS)
          print "Frames per second using video.get(cv2.CAP_PROP_FPS) : {0}".format(fps)
  
      video.release(); 
  </code></pre>
  
  <p>This is the output of the script for this video:
  <code>Frames per second using video.get(cv2.CAP_PROP_FPS) : 0.0</code></p>
  
  <p>Why is it returning 0.0? The FPS is 14.0</p>