Encode 6 streams h265/h264

could you help to take a look at this post which is running a single model for object detections for multiple rtsp camera streams which is similar to the original post here: