Python reads multiple RTSP streams

When I was using RTSP streams for object detection tasks, I created n+1 (number of models+read RTSP streams) processes, created m (number of RTSP streams) thread streams in the process of reading RTSP streams, created n multi process transmission RTSP stream queues, and passed the image input into the corresponding model process. However, in the end, the difference from 4 seconds initially gradually became 30 seconds