what is the codec for mp4 videos in python OpenCV
You can also use mp4v fourcc = cv2.VideoWriter_fourcc(*’mp4v’) where the videowriter should look like this: out = cv2.VideoWriter(‘output.mp4’,fourcc, 15, size) But there are more codecs available for mp4. You can see the list of them by setting fourcc = -1, it will show a list like this: OpenCV: FFMPEG: format mp4 / MP4 (MPEG-4 Part … Read more