High RTMP latency in rtmpsrc

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

High RTMP latency in rtmpsrc

Dagomi
Hi all,

I try to explain quickly the propblem. The setup is a en to end system, ffmpeg generates a rtmp stream and Gstreamer reproduce this stream.

- if use a Gstreamer like a player the latency round 8 to 10 seconds
- if use ffplay (ffmpeg) like a player the latency roud <2 seconds

Why gstreamer have this high latency?

Ty in advance

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: High RTMP latency in rtmpsrc

ShilVin
Librtmp downloads first 8 to 10 seconds old content in burst, leading to the
delayed playback(Latency).
Same behavior is seen with rtmpdump also.

I am not sure if this is configurable in librtmp.




--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: High RTMP latency in rtmpsrc

zebrafish
You can override the default librtmp buffering by setting the url to have a
param named "buffer" with the amount of latency you're targeting (see
https://rtmpdump.mplayerhq.hu/librtmp.3.html). Additionally, you can force
rtmpsrc to act as a live src with gst_base_src_set_live. Finally you can
lower the latency by disabling sync in the pipeline so that buffers are
displayed as soon as possible with total disregard for timestamps (that's
most likely not what you want, however).



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel