Gstreamer TCPserversink 2-3 seconds latency

Hi,
Are you able to try UDP streaming? We have tried UDP in TX2 NX as server and x86 PC as client.
Server command:

$ gst-launch-1.0 videotestsrc is-live=1 ! video/x-raw,width=1280,height=720 ! timeoverlay valignment=4 halignment=1 ! nvvidconv ! 'video/x-raw(memory:NVMM),width=1280,height=720' ! tee name=t ! nvv4l2h264enc insert-sps-pps=1 idrinterval=15 ! h264parse ! rtph264pay ! udpsink host=10.19.106.10 port=5000 sync=0 t. ! queue ! nvegltransform ! nveglglessink sync=0

Client command:

$ gst-launch-1.0 udpsrc port=5000 ! 'application/x-rtp,encoding-name=H264,payload=96' ! rtph264depay ! avdec_h264 ! xvimagesink sync=0

The result(left is TX2 NX and right is x86 PC):

Could you try server commands in the cases:

  1. gst-launch-1.0 videotestsrc in UDP
  2. gst-launch-1.0 videotestsrc in TCP
  3. gst-launch-1.0 OpenCV in UDP

See if we can clarify where the latency is from by trying these cases.

And please run gst-inspect-1.0 nvv4l2h265enc to get all properties.

1 Like