Optimization of a vp9 codec stream from a pylon camera

Hello, I am trying to use a vp9 codec to stream from a pylon camera as close to real time as possible. However, I am experiencing a delay of a couple of seconds between performing an action before the camera and it showing on the screen. These are my pipelines:

  1. gst-launch-1.0 pylonsrc ! queue max-size-buffers=1 max-size-bytes=163840 leaky=downstream ! videorate ! video/x-raw,framerate=30/1 ! videoconvert ! queue max-size-buffers=1 max-size-bytes=163840 leaky=downstream ! videoscale ! video/x-raw,width=2600,height=2128 ! queue max-size-buffers=1 max-size-bytes=163840 leaky=downstream ! vp9enc deadline=1 cpu-used=10 target-bitrate=256000 buffer-size=5000 keyframe-max-dist=64 threads=20 ! queue max-size-buffers=1 max-size-bytes=163840 leaky=downstream ! rtpvp9pay mtu=800 ! queue max-size-buffers=1 max-size-bytes=163840 leaky=downstream ! udpsink host=127.0.0.1 port=5000 max-lateness=50 processing-deadline=10000000 sync=false async=false

  2. gst-launch-1.0 udpsrc port=5000 caps=“application/x-rtp,media=video,encoding-name=VP9,payload=96” ! rtpjitterbuffer latency=50 ! rtpvp9depay ! vp9parse ! vp9dec ! videoconvert ! autovideosink sync=false

I’d really appreciate if someone could help me make the delay smaller (have been at it for a couple of days). Thank you in advance!