I try to create a video by images in cv2, I succeeded to create a mp4 video:
fourcc = cv2.VideoWriter_fourcc(*'mp4v')
out = cv2.VideoWriter('video.mp4', fourcc, FRAME_RATE,
(img.shape[1], img.shape[0]))
How can I create ogg and webm video file? What is the fourcc codec for these format?
ogg has codec 'theo':
fourcc = cv2.VideoWriter_fourcc(*'theo')You should also be able to do this format:
fourcc = cv2.VideoWriter_fourcc('T', 'H', 'E', 'O')