# Jetson Nano with Gstreamer server latency improve

**URL:** <https://forums.developer.nvidia.com/t/jetson-nano-with-gstreamer-server-latency-improve/144736>\
**Category:** Jetson Nano\
**Tags:** gstreamer\
**Created:** [July 30, 2020, 10:07am UTC](https://forums.developer.nvidia.com/t/jetson-nano-with-gstreamer-server-latency-improve/144736 "2020-07-30T10:07:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![walker.hsiao](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@walker.hsiao](https://forums.developer.nvidia.com/u/walker.hsiao)\
**Post date:** [July 30, 2020, 10:07am UTC](https://forums.developer.nvidia.com/t/jetson-nano-with-gstreamer-server-latency-improve/144736/1 "2020-07-30T10:07:02Z")

</div>

Hi everyone,

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

> [@](#):
>
> Hi everyone, We are developing the webcam streaming with rtsp server on Jetson Nano, when we use the vlc (PC client) to connect the server, we get connection fail with the error message in Nano (rtsp server). 0:06:44.760563336 9974 0x5589b321e0 ERROR rtspclient rtsp-client.c:2651:handle\_setup\_request: client 0x5589d04220: no control in path '/test’ Install gstreamer rtsp server with command: sudo apt-get install libgstrtspserver-1.0 And git clone the rtsp server example: …

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

---

<div class="post-metadata">

**Author:** ![DaneLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/danelll/32/14043_2.png) [@DaneLLL](https://forums.developer.nvidia.com/u/DaneLLL)\
**Post date:** [July 31, 2020, 1:31am UTC](https://forums.developer.nvidia.com/t/jetson-nano-with-gstreamer-server-latency-improve/144736/3 "2020-07-31T01:31:31Z")

</div>

Hi,  
On Jetson Nano, please run _sudo jetson\_clocks_ and set the property in _nvv4l2h264enc_:

```auto
  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:

> [@CSI latency is over 80 milliseconds...?](https://forums.developer.nvidia.com/t/csi-latency-is-over-80-milliseconds/55327/4):
>
> Hi, We try with onboard ov5693 running at 720p60 and see 2-3 frame latency. Attach the JPGs for reference. [online stopwatch] [Full Screen Stopwatch - Perfect for large audiences.](http://ipadstopwatch.com/full-screen-stopwatch.html)[External Media](https://a70ad2d16996820e6285-3c315462976343d903d5b3a03b69072d.ssl.cf2.rackcdn.com/eb656aa33a23fa53285de097955e54fd "Media hosted on another site. Click to open in a new tab.")[External Media](https://a70ad2d16996820e6285-3c315462976343d903d5b3a03b69072d.ssl.cf2.rackcdn.com/1ccc9a299ab49d45e1d8a5af31fe78b4 "Media hosted on another site. Click to open in a new tab.") Do you run with ‘sudo ~/jetson\_clocks.sh’ being set?

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

---

<div class="post-metadata">

**Author:** ![nadeemm](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/nadeemm/32/367020_2.png) [@nadeemm](https://forums.developer.nvidia.com/u/nadeemm)\
**Post date:** [October 18, 2021, 5:53pm UTC](https://forums.developer.nvidia.com/t/jetson-nano-with-gstreamer-server-latency-improve/144736/5 "2021-10-18T17:53:13Z")

</div>


