Ask Your Question
0

H264 with VideoWriter (Windows)

asked 2016-09-29 05:38:02 -0500

Excludos gravatar image

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.

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
2

answered 2016-09-29 07:57:42 -0500

LBerger gravatar image

updated 2016-09-29 08:00:23 -0500

You have to read this and download codec from cisco :

FFMPEG build contains H264 encoder based on the OpenH264 library, that should be installed separatelly. OpenH264 Video Codec provided by Cisco Systems, Inc.

becarefull read this issue and check which version is used now

edit flag offensive delete link more

Comments

edit: Nevermind, I used the wrong version.

Thanks for the help! This fixed all my problems so far :D

Excludos gravatar imageExcludos ( 2016-09-29 08:33:42 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2016-09-29 05:36:45 -0500

Seen: 4,309 times

Last updated: Sep 29 '16