Hi,
I am receiving a 30 fps/1080p MJPEG stream over RTP to the AM5728, and I want to transcode to h264 and retransmit to another device. I'm finding that there is some latency being introduced in ducatih264enc. How can I adjust the properties to minimize the overall latency? My sending pipeline (on AM5728) looks like:
gst-launch-1.0 -v udpsrc port=1234 caps="application/x-rtp, media=(string)video, payload=(int)26, clock-rate=(int)90000, ssrc=(guint)2823054885" ! rtpjitterbuffer latency=20 drop-on-latency=false ! rtpjpegdepay ! jpegparse ! ducatijpegdec ! vpe ! video/x-raw, format=NV12, width=1920, height=1080, framerate=30/1 ! ducatih264enc ! h264parse ! rtph264pay ! udpsink host=192.168.100.114 port=1234
I've tried setting the ducatih264enc properties : rate-preset=1 hrd-buffer-size=4096 , but the latency is still noticeable.
My receiving pipeline (on other device) is:
gst-launch-1.0 -v udpsrc port=1234 ! application/x-rtp,encoding-name=H264,payload=96 ! rtpjitterbuffer latency=100 drop-on-latency=false ! rtph264depay ! h264parse ! vaapidecode ! fpsdisplaysink sync=false
Thank you,
Vishal