writing and reading high definition frames to a file

asked 2014-06-12 18:41:46 -0500

97Viper gravatar image

updated 2014-06-12 21:56:17 -0500

Haris gravatar image

I am using frames described by:

cap.set(CV_CAP_PROP_FOURCC, CV_FOURCC('H', '2', '6', '4'));
cap.set(CV_CAP_PROP_FOURCC, CV_FOURCC('M', 'J', 'P', 'G'));
cap.set(CV_CAP_PROP_FRAME_WIDTH, 1920);
cap.set(CV_CAP_PROP_FRAME_HEIGHT, 1080);
cap.set(CV_CAP_PROP_FPS, 30);

Issue is writing the frame to a file and then reading it back in the original HD format. imwriting to file as a .jpeg and imreading it back to the same frame.

edit retag flag offensive close merge delete