I am adding object detection to an RTSP stream. Everytime that I run this code with YOLO on it, the stream freezes after 5 - 10 seconds. I have tried to reframe the size of the window, but it still crashes. On top of that, I have added a "no buffering" limit to ffmpeg. I was expecting that it was a problem loading frames, so that once it was minimized that it would solve the problem. Continue reading...