Ask Your Question

soumyadeep's profile - activity

2015-07-19 23:58:06 -0600 commented answer Unable to open some avi files in OpenCV-Python -- Why?

import cv2 cap = cv2.VideoCapture('m.avi') print cap.grab() this code always returns FALSE wheras when opening a video 'b.avi' which was captured by webcam using opencv it returns TRUE

2015-07-18 00:59:22 -0600 asked a question video is not opening in opencv 2.4.10 with python

import cv2 cap = cv2.VideoCapture('m.avi') print cap.grab()

this code always returns a False value but when opening the video file which was captured by the webcam using opencv code, it returns True

2015-03-31 09:53:13 -0600 asked a question i am unable to play video from file. the code is given as follows:
 import cv2
cap = cv2.VideoCapture("m.avi")
while(cap.isOpened()):
    ret, frame = cap.read()
    print cap.grab()
    cv2.imshow('frame',frame)
    if cv2.waitKey(1) & 0xFF == ord('q'):
        break

cap.release()
cv2.destroyAllWindows()