Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

H264 with VideoWriter (Windows)

Hi there,

I'm trying to find a way to export frames with VideoWriter in H.264 format (or anything equally good). However I can't seem to find a way to do it. I've downloaded some different codecs that do show up if I use -1, but can't be chosen using the fourcc code. I've seen some different forum posts saying to recompile ffmpeg with h264 support, but I'm having trouble doing that (And I can't find any that are precompiled), and even if I did, will it even work with opencv anymore? Since they library it's using is spesifically called opencv_ffmpeg310_64.dll.

Have anyone done this on windows before and have an idea (or a quick guide) on how to do it? Thank you in advance!

Environment is opencv 3.10 x64 on windows 10 btw.

I also apologize if this has been answered before. I've been looking through many forums, and while some posts touch on the subject I couldn't find any with the answer I need.