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.
cap.set(6, cv2.cv.CV_FOURCC('M','J','P','G'))
will not work. That only works when recording video. We need to process video in real time.
Thank you.