I want to convert video to frame images.
Using this simple code
import cv2
vidcap = cv2.VideoCapture('gog.mp4')
success,image = vidcap.read()
count = 0
success = True
while success:
success,image = vidcap.read()
print 'Read a new frame: ', success
cv2.imwrite("frame%d.jpg" % count, image)
count += 1
output is
Unable to stop the stream: Inappropriate ioctl for device
I am using python 2.7.6 on ubuntu server. How do I fix this issue?