Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

CvVideoWriter get current fourcc

Using class cv::VideoWriter I can specify CV_FOURCC_PROMPT (which is -1) as fourcc parameter in constructor or its open function, in which case "Open Codec Selection Dialog" will be opened and user will select one of installed codecs. My application will perform video recording several times and I want to avoid asking user the same question more than once.

Is there a way to retrieve user selected codec from already opened cv::VideoWriter instance and re-use it as fourcc parameter for other instances?