Comments

I am guessing then that your h264 codec used is not supported by ffmpeg which seems a bit weird. To be just sure. Download the latest ffmpeg version on yourself and build openCV again. Could be that there is still an older ffmpeg version inside openCV contained.