I want the camera to compress the video using VideoCapture class. However, I cannot figure out how to set the property to enable camera to start compressing video. I have tried to set the property CV_CAP_PROP_FOURCC with VideoCapture::set but that requires a double as the parameter but CV_CAP_PROP_FOURCC is supposed to take char[4]. Can someone please help?
I want the camera to compress the video using VideoCapture class. However, I cannot figure out how to set the property to enable camera to start compressing video. I have tried to set the property CV_CAP_PROP_FOURCC with VideoCapture::set but that requires a double as the parameter but CV_CAP_PROP_FOURCC is supposed to take char[4]. Can someone please help?