title: python opencv format not supported
body: <pre><code>import cv2
  image_counter = 0
  video = cv2.VideoCapture(0)
  while True:
      check, frame = video.read()
      gray_f = cv2.flip(frame, 1)
      gray = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)
      gray_flip = cv2.flip(frame, 1)
      cv2.imshow(&quot;kara&quot;, gray_flip)
      key = cv2.waitKey(1)
  
      if key == ord('q'):
          break
  video.release()
  cv2.destroyAllWindows()
  </code></pre>
  <p>I have written this code for using my camera using OpenCV python 3 it worked earlier but after I upgraded my python it gives following error:-</p>
  <blockquote>
  <p>[ WARN:0] global
  C:\Users\appveyor\AppData\Local\Temp\1\pip-req-build-j8nxabm_\opencv\modules\videoio\src\cap_msmf.cpp
  (682) CvCapture_MSMF::initStream Failed to set mediaType (stream 0,
  (640x480 @ 30) MFVideoFormat_RGB24(unsupported media type)</p>
  </blockquote>
  <pre><code>Python version:3.8.5 x64
  OpenCV version: 4.4.0.42
  </code></pre>