VideoCapture can open a video but then after some second or minute cap.read​() keeps returning false
This has kinda just been an issue that everyone seems to occasionally run into while using opencv with IP cameras. You can sidestep the problem by checking if cap.read() returns false and closing and re-opening the stream if it happens (If you keep having problems after closing and re-opening then there's actually a connection issue and it's not just opencv).
While accessing live-streaming IP camera.
VideoCapture can open a video but then after some second or minute can't read it. cap.read​() keeps returning false and frame is none after some time.
FPS rate of that camera is 180000. This is so high.
Python-> 3.8.5 (default, Jul 28 2020, 12:59:40)
[GCC 9.3.0] on linux
OS- Ubuntu (18.04 or 20.04)
OpenCV - 4.4.0
opencv-contrib-python==4.4.0.46