Ask Your Question

Revision history [back]

I have the same problem using opencv-python (tried version 4.4.0.42, and also version 3.4.11.41). When using the function cv2.VideoCapture(0) on a computer with windows 7 (32 bit), I get the same error:

\cap_msmf.cpp (682) CvCapture_MSMF::initStream Failed to set mediaType (stream 0, (640x480 @ 30) MFVideoFormat_RGB24(unsupported media type)

But if I run the script on a windows 10 machine (64 bit) it runs fine.

Could it be a problem related with windows 7?