Mutlti Threads Not working

VideoCapture with the FFMpeg backend has a lock in VideoCapture::open() which means that only one open can happen in any thread at any one time. See below for more details

With rtsp streams this is more apparent because each stream can take a number of seconds to open. Try with a video file to see if the situation improves.

1 Like