Having problem trying to write mp4 video

asked 2019-05-04 10:50:13 -0600

Nbb gravatar image

I am having problem trying to write to a video. This line of code

out = cv2.VideoWriter("vid.mp4"), cv2.VideoWriter_fourcc('H','2','6','4'), 10, (960,540))

gives me the error message below. I don't understand what the error means and what I can do.

OpenCV: FFMPEG: tag 0x34363248/'H264' is not supported with codec id 27 and format 'mp4 / MP4 (MPEG-4 Part 14)' OpenCV: FFMPEG: fallback to use tag 0x31637661/'avc1' Could not find encoder for codec id 27: Encoder not found

edit retag flag offensive close merge delete

Comments

sturkmen gravatar imagesturkmen ( 2019-05-04 12:44:49 -0600 )edit