I am looking for help configuring the streammux element. Given a batch size equal to the number of streammux sink pads and a guarantee that the streammux will be presented frames on each of its sink pads with the exact same PTS more or less instantaneously (though with the potential for jitter in when the streammux is presented with those frames), what settings should I use in order to guarantee that a full batch is sent out each time those frames are presented to the streammux?
For some more color on this problem, I am streaming panoramic video into an nvurisrcbin. The model that I am using operates on a more typical aspect ratio, so I am cropping into two RoIs on the same image and trying to send them through an nvinfer element in the same batch. Here is a simplified diagram of my pipeline
+-> nvvideoconvert -+
| |
| v
nvurisrcbin -> tee streammux -> nvinfer -> fakesink
| ^
| |
+-> nvvideoconvert -+
I am having trouble coming up with the proper settings that will guarantee that the two cropped regions from the same frame wind up in the same batch. I am finding that the streammux will occasionally push through a batch of size one and then wind up out-of-sync.
I would think that specifying sync-inputs=1 and raising batched-push-timeout to the max value would help address this, but the problem persists. I have also tried adding overall-min-fps-n=1 and overall-min-fps-d=1000 to the streammux configuration file, but again, the muxing still falls out of sync.
I have also confirmed with pad probes on the videoconvert and streammux src pads that the source frames are arriving more-or-less synchronously:
1752019527.1466298: src_0 pushing frame with pts 1874484747
1752019527.1467605: src_1 pushing frame with pts 1874484747
1752019527.1554282: Batch PTSs: [1874484747, 1874484747]
1752019531.5618634: src_0 pushing frame with pts 1875297564
1752019531.5619516: src_1 pushing frame with pts 1875297564
1752019531.5620193: Batch PTSs: [1875297564]
1752019531.562435: src_0 pushing frame with pts 2062815057
1752019531.562484: Batch PTSs: [2062815057, 1875297564]
1752019531.5625913: src_1 pushing frame with pts 2062815057
• Hardware Platform (Jetson / GPU)
GPU
• DeepStream Version
7.0
• JetPack Version (valid for Jetson only)
• TensorRT Version
8.6.1.6-1+cuda12.0
• NVIDIA GPU Driver Version (valid for GPU only)
535.230.02
• Issue Type( questions, new requirements, bugs)
Question
• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)