title: OpenCV 2.4 VideoCapture not working on Windows
body: <p>I'm using Python bindings to OpenCV 2.4 installed with following <a href="http://opencvpython.blogspot.com/2012/05/install-opencv-in-windows-for-python.html" rel="noreferrer">instructions</a>.</p>
  
  <p>My problem is similar to <a href="https://stackoverflow.com/questions/11444926/videocapture-is-not-working-in-opencv-2-4-2">this one</a>, but I need Windows machine solution.</p>
  
  <p>Problem: when I try to use </p>
  
  <pre><code>cap = cv2.VideoCapture(0)
  print cap.grab()
  </code></pre>
  
  <p>it works fine, but the following code</p>
  
  <pre><code>cap = cv2.VideoCapture(filename)
  print cap.grab()
  </code></pre>
  
  <p>always return False. </p>
  
  <p>Path to the file is correct, absolute and has no spaces.</p>
  
  <p>I tried on two machines with Windows XP and Windows 7 with similar results. On Linux (Ubuntu) it works fine for me.</p>