As I understood, in openCV 2.4 the cvSize type is neglected, and one can use a Python tuple instead. When I’ve tried in the CreateVideoWriter function:
import cv2 as cv
writer = cv.CreateVideoWriter('movie', cv.CV_FOURCC('M', 'J', 'P', 'G'), fps, (width, height))
I’m getting this error:
TypeError: CvSize argument ‘frame_size’ expects two integers.
Any help?
You are mixing cv2 features ( no need for CvSize) with cv functions cv.CreateVideowriter()
Instead use: