Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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

Nbb gravatar image

Having problem trying to write mp4 video

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