Reduce latency to less than 500ms for RTSP stream

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

Reduce latency to less than 500ms for RTSP stream

Bhavya
Hi,

I am using GStreamer 1.2.3 version on TI-J6 hardware for RTSP playback.

gst-launch-1.0 rtspsrc location=rtsp://172.16.0.105:1935/vod/ccc.mp4 name=d d. ! rtph264depay ! queue max-size-time=1000000000 min-threshold-time=1000000000 max-size-bytes=0 max-size-buffers=0 ! ducatih264dec ! waylandsink d. ! rtpmpadepay ! queue max-size-time=1000000000 min-threshold-time=1000000000 max-size-bytes=0 max-size-buffers=0 ! allgomp3dec ! pulsesink

Above is the pipeline used in my application, with this playback is smooth if latency is set to 1.2 sec or more. Now i have a requirement of achieving latency less than 500ms.
When i set sync is false on audio and video sink and latency to only 100ms, playback is smooth itself.
That means it is not because of delay in packet receiving right?

How can debug this issue, Is the timestamp set by jitterbuffer element is not proper? What can be changed in my pipeline to achieve smoother playback with less latency.

Thanks & Regards,
Bhavya R
Reply | Threaded
Open this post in threaded view
|

Re: Reduce latency to less than 500ms for RTSP stream

Tim Müller
On Tue, 2016-03-08 at 09:53 -0800, Bhavya wrote:

Hi,

> gst-launch-1.0 rtspsrc location=rtsp://172.16.0.105:1935/vod/ccc.mp4
> name=d
> d. ! rtph264depay ! queue max-size-time=1000000000
> min-threshold-time=1000000000 max-size-bytes=0 max-size-buffers=0 !
> ducatih264dec ! waylandsink d. ! rtpmpadepay ! queue
> max-size-time=1000000000 min-threshold-time=1000000000 max-size-
> bytes=0
> max-size-buffers=0 ! allgomp3dec ! pulsesink

> What can be changed in my pipeline to achieve smoother
> playback with less latency. 

Have you tried setting the "latency" property on rtspsrc to something
lower than the default?

 Cheers
  -Tim

--
Tim Müller, Centricular Ltd - http://www.centricular.com


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

Re: Reduce latency to less than 500ms for RTSP stream

Bhavya
Hi Tim,

Yes. If i set latency property of rtspsrc for anything less than 1.2ms playback is not smooth, audio loss and video frame drop observed.

Thanks & Regards,
Bhavya R