Is the frame order guaranteeed with max-same-source-frames = 1?

Please provide complete information as applicable to your setup.

• Hardware Platform: GPU
• DeepStream Version: 6.1.1
• TensorRT Version:
• NVIDIA GPU Driver Version: 515.65.01
• Issue Type: Question

We are using the new nvstreammux and have configured max-same-source-frames = 1 to get the best possible throughput when sources have different frames rates. Are frames from a source guaranteed to be in time order in a batch when nvstreammux puts more than one frame from the same source in a batch? If that is not the case we can adapt our code to handle frames being out of order, but before doing that it would be good for us to know if that is a real case so we do not make unnecessary changes.

What do you mean by “in time order in a batch”?

Thanks for looking into this! If the batch contains two frames from the same source with PTS t1 and t2 where t1 < t2, is it guaranteed that the index in the batch of t1 will be lower than the index of t2?

No. It is not guaranteed.

1 Like

Thanks for the information! We will ensure that our code can handle frames in a batch which are not in time order.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.