Playback loop option in OpenCV videos
问题 I am trying to build a playback loop option for an OpenCV video . My program uses Python multiprocessing, and has a button send loopswitch calls through queue4 to enable or disable the loop option. My specific problem is that my video freezes on the last frame, and I would like to know if the line vidFile.set(cv2.cv.CV_CAP_PROP_POS_FRAMES, 1) is a correct use of the cv2.VideoCapture.set() method , and should indeed take the video back to frame 1 and replay it (as I think it should). EDIT