Ask Your Question

BPCook's profile - activity

2015-03-12 11:05:57 -0600 commented question Selecting MJPG with a USB webcam

Does anyone have an answer to this? I really would like to default to MJPEG.

2015-03-11 23:19:16 -0600 asked a question 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.

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.