Ask Your Question

Revision history [back]

Camera input video compression

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?

click to hide/show revision 2
Added compression tag

Camera input video compression

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?