title: Not able to play video in opencv (Python 2.7)
body: <p>I have the following working code in python using opencv (it is tested on another environment), but for some reason I tried to play the video on my computer with Windows 10, Python27 and OpenCV 3.0.0. And it does not play.</p>
  
  <p><strong>Question:</strong> what can I do to play video in opencv under python 2.7? and what I am doing wrong?</p>
  
  <p><strong>Here is my code:</strong></p>
  
  <pre><code>import cv2
  
  cap = cv2.VideoCapture("output.avi")
  cv2.namedWindow("input")
  f = True
  while (f):
      f, img = cap.read()
      if f == True:
          cv2.imshow("input", img)
          ch = cv2.waitKey(33)
          if ch == 32:
              break
  
  cap.release()
  cv2.destroyAllWindows()
  </code></pre>