Quantcast
Channel: OpenCV Q&A Forum - Latest question feed
Viewing all articles
Browse latest Browse all 19555

CvVideoWriter get current fourcc

$
0
0
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?

Viewing all articles
Browse latest Browse all 19555

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>