title: playing video file using python opencv
body: <p>I'm trying to play a video file using python opencv this is my code , but it is not showing the vidfeo file when I run the code</p>
  
  <pre><code>import numpy as np
  import cv2
  
  cap = capture =cv2.VideoCapture('C2.mp4')
  while(cap.isOpened()):
      ret, frame = cap.read()
  
      gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
  
      cv2.imshow('frame',gray)
      cv2.waitKey(1)
  
  cap.release()
  cv2.destroyAllWindows()
  </code></pre>
  
  <p>I tried the answer in : <a href="https://stackoverflow.com/questions/30927839/unable-to-open-video-file-in-python-using-opencv">link</a> but not working again</p>