2016-08-24 16:43:12 -0600 | commented answer | output.avi file created but its size is 0k Thanks for reply.... But none of the above corrections resolved the problem. |
2016-08-24 09:52:19 -0600 | asked a question | output.avi file created but its size is 0k import numpy import cv2 cap = cv2.VideoCapture(0) fourcc = cv2.cv.CV_FOURCC(*'MJPG') out = cv2.VideoWriter('output.avi',fourcc, 20.0, (640,480)) while(cap.isOpened()): cap.release() out.release() cv2.destroyAllWindows() |