Ask Your Question
0

How to use CV_FOURCC in version 4.1.0?

asked 2019-08-17 10:51:32 -0500

Hi, i am new with openCV. i'm trying to paste a code snippet from old versions. But i get lots of error.

 VideoWriter parlakVideo("videoParlak.avi", CV_FOURCC(‘M’, ‘P’, ‘4’, ‘2’), 20, boyut, true);
VideoWriter karanlikVideo("videoKaranlik.avi", CV_FOURCC(‘M’, ‘P’, ‘4’, ‘2’), 20, boyut, true);

here is my try:

VideoWriter parlakVideo("video.wmv", VideoWriter::fourcc ((‘M’, ‘P’, ‘4’, ‘2’), 20, boyut, true);
VideoWriter karanlikVideo("video.wmv", VideoWriter::fourcc((‘M’, ‘P’, ‘4’, ‘2’), 20, boyut, true);
edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
1

answered 2019-08-17 15:38:33 -0500

berak gravatar image

please use VideoWriter::fourcc() instead

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2019-08-17 10:51:32 -0500

Seen: 47 times

Last updated: Aug 17