First time here? Check out the FAQ!
answered 2018-06-27 10:05:32 -0600
Hi, You can try this command :
cap.set(cv::CAP_PROP_FOURCC, cv::VideoWriter::fourcc('M', 'J', 'P', 'G'));
It should work.