python-opencv set cv2.VideoCapture connection timeout

asked 2018-12-04 20:56:18 -0500

I used opencv-python to capture snapshot from hundreds of thousands rtsp urls,I used gevent coroutine to accelerate capturing snapshot,But It seemed no use. and I found there no way to set rtsp connection timeout argument, it seems rtsp default connection timeout is 30s.Can anyone help me or give some way to faster capturing snapshot from massive rtsp urls?

2018-12-04 09:44:47,285 [INFO] start
2018-12-04 09:45:17,354 [ERROR] can't open stream
2018-12-04 09:45:17,354 [INFO] end
edit retag flag offensive close merge delete

Comments

I used opencv-python to capture snapshot from hundreds of thousands rtsp urls

probably, opencv is the wrong library for this.

berak gravatar imageberak ( 2018-12-05 01:18:54 -0500 )edit