I\'m having trouble writing h264 video with OpenCV 3 via FFmpeg (\"\'X\',\'2\',\'6\',\'4\'\" FOURCC). I\'ve seen all the related posts so far on SO, but nothing helps. Code:
The problem had nothing to do with the displayed warning. I was trying to write single-channel images, while the VideoWriter was expecting a 3-channel color image (default value of isColor, the 5-th argument to VideoWriter's constructor, is "true"). The solution was setting isColor to false.