I try to screenshot multiple rtsp streams using threads. unfortunately it seems that opencv only handle one stream at the time
def mutiple_threads() # run x 100 threads
cap = cv2.VideoCapture(stream)
ret, frame = cap.read()
only one opencv is running and blocking the rest from the threads.
Is there a way to run multiple opencv at the same time using threads ?
also how do i kill a running opencv after a certain time. Can’t find a timeout or similar.
timer + cap.release() no succes.