Jetson Nano with Gstreamer server latency improve

Hi everyone,

We want to improve the rtsp stream latency with the before topic:

We running the rtsp server with gst-rtsp-server in the Nano.
And when we use the client player (VLC) with wired to connect the rtsp server, the client player will get 800ms latency. Could you have any advice to improve the latency?

Nano side command: ./test-launch v4l2src device=/dev/video1 ! “video/x-raw, width=640, height=480, format=(string)YUY2” ! queue ! nvvidconv ! “video/x-raw(memory:NVMM), width=640, height=480, format=(string)NV12” ! nvv4l2h264enc bitrate=912000 ! ‘video/x-h264, stream-format=(string)byte-stream’ ! rtph264pay name=pay0 pt=96

Hi,
On Jetson Nano, please run sudo jetson_clocks and set the property in nvv4l2h264enc:

  maxperf-enable      : Enable or Disable Max Performance mode
                        flags: readable, writable, changeable only in NULL or READY state
                        Boolean. Default: false

And some latency is from source, you may refer to the post:

and check glass-to-glass latency of the v4l2 source.