I would guess that you are observing the delay in negotiating the connection between yourself and the rtsp end point. By the way CAP_PROP_OPEN_TIMEOUT_MSEC, won’t change matters it will just force cap.open() to return if CAP_PROP_OPEN_TIMEOUT_MSEC ms is exceeded before successfully opening the stream.