On Jetson Xavier, I have made a custom app, with this pipeline:-
v4l2src -> …YUY2… -> videoconvert -> nvvideoconvert ->nvinfer1->nvinfer2->tiler->nvvideoconvert->nvosd->Tee
I get a good enough fps but there seems to be a constant lag. I have tried disabling one of the nvinfers but I see no improvement.
I tried the advice from the troubleshooting guide(https://docs.nvidia.com/metropolis/deepstream/plugin-manual/index.html#page/DeepStream%20Plugins%20Development%20Guide/deepstream_plugin_troubleshooting.html) but still there is lag.