Delay frame between 2 plugin

Hi,

I’m building an app, that do inference on a video stream and zoom where the ball is. To know where the ball is i need 60 frames to estimate the position.

I have a probe at the nvinfer that stock the inference result then when it have enough data, it compute the coordonate and set videocrop where to zoom.

I want to delay the frame between nvinfer and videocrop to use future frame to know where to zoom

I tried to use queue with max-size-buffer but i don’t work like that.

Actually the pipeline zoom on the video but it’s late

Thanks
Pierre

Here is the pipeline:
Processing: image.png…