Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Videowriter recording MP4 + X264 (OpenCV 3.1)

I'm trying to record a video with the X264 codec and MP4 format. The resulting video recording works, and can be played with a videoplayer, however I receive following warning.

OpenCV: FFMPEG: tag 0x34363258/'X264' is not supported with codec id 28 and format 'mp4 / MP4 (MPEG-4 Part 14)' OpenCV: FFMPEG: fallback to use tag 0x00000021/'!???'

I've been looking in the OpenCV code and it looks that a fallback mechanism is used (and another tag is used instead). Can someone tell me why this is happening, and how I can remove the warning.

https://github.com/opencv/opencv/blob/master/modules/videoio/src/cap_ffmpeg_impl.hpp#L1918

Thanks! Cédric