Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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.