videowriter using ffmpeg h264 codec on windows with opencv 248
Can anyone explain how does one actually go about creating a video with the h264 codec using opencv on windows machine. when i try to open a videowriter with
video->open("video.avi", CV_FOURCC('h','2','6','4'), 30., Size(640, 480), true);
i always get the error
Could not find encoder for codec id 28: Encoder not found Video not opened
i have tried it with the pre-compiled libraries as well as compiling opencv myself with ffmpeg on. I tried using it on x86 as well as x64. i even tried it with opencv246 and opencv248.
you have to install the codec for this . it does not come bundled with opencv
does that mean that ffmpeg does not provide the codec? is it supposed to have libx264 support?