Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
opencv convert to jpeg python of "webm" files
import cv2
cap = cv2.VideoCapture('test.webm')
i=0
while(cap.isOpened()):
ret, frame = cap.read()
if ret == False:
break
cv2.imwrite('tester'+str(i)+'.jpg',frame)
i+=1
cap.release()
cv2.destroyAllWindows()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.