Help with video capturing for mjpg

Got it! thank you for helping out! this works!
Adding to it, the Videocapture class have to be initialized using VideoCapture(index,cv2.CAP_V4L2), at least for me!

Thank you thank you.