Ask Your Question
0

python-opencv set cv2.VideoCapture connection timeout

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

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 -0600 )edit

you can use a simple pyqt with time-thread for capturing your snapshot

israfil gravatar imageisrafil ( 2019-02-07 19:33:46 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-02-07 19:35:59 -0600

you can use a simple pyqt with time-thread for capturing your snapshot

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2018-12-04 20:56:18 -0600

Seen: 3,602 times

Last updated: Dec 04 '18