

# global frame (or actually displayed frame) counter I solved it encoding the frame using python-vlc library overriding libvlc_video_set_callbacks and then using the frame already converted in numpy format using opencv.īuf_p = ctypes.cast(buf1, ctypes.c_void_p) # When everything done, release the capture Gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY) I created a class to be able to set the properties of a webcam, but I don't think it is right to do it with this way with BMCC from Capture import Captureįourcc = cv2.cv.CV_FOURCC(*'MSVC') # cv2.VideoWriter_fourcc() does not exist I'm recording there, but it's ok, that's not the main thing I want to do I tried to use the usual opencv code to detect the cam and display frames but it didn't work. The first step is obviously capturing frame but I don't know how to do it. I want to process videos using a blackMagic card.
