Ask Your Question
0

How to use CV_FOURCC in version 4.1.0?

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

hernancrespo gravatar image

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
2

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

berak gravatar image

please use VideoWriter::fourcc() instead

edit flag offensive delete link more

Question Tools

1 follower

Stats

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

Seen: 11,832 times

Last updated: Aug 17 '19