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?
VP09
– Rotemfourcc = cv2.VideoWriter_fourcc('V','P','0','9')
for webm I get an error: OpenCV: FFMPEG: tag 0x39305056/'VP09' is not supported with codec id 167 and format 'webm / WebM' What could be the problem? – ron kolel