Just a few things to try:
- Increase recv socket max buffer size:
sysctl -w net.core.rmem_max=26214400
-
Turn Denver cores off (see this topic)
-
Replace nvv4l2decoder by
h265parse ! omxh265dec
:
gst-launch-1.0 rtspsrc location="..." latency=300 ! application/x-rtp,encoding-name="H265",payload=96 ! rtph265depay ! video/x-h265, stream-format=byte-stream,framerate=25/1 ! h265parse ! omxh265dec ! nvoverlaysink sync=false