Ask Your Question

Revision history [back]

Hi, You can try this command :

cap.set(cv::CAP_PROP_FOURCC, cv::VideoWriter::fourcc('M', 'J', 'P', 'G'));

It should work.