Ask Your Question

Revision history [back]

Cannot change video capture codec to MJPEG

Max OS. OpenCV 2.4.9. UVC camera capable of both YUY2 and MJPEG.

All we want to do is change the codec of a live webcam video from YUY2 to MJPEG. OpenCV always defaults to YUY2, but this results in a very slow frame rate.


will not work. That only works when recording video. We need to process video in real time.

Thank you.