Latency reduction for gstreamer

Tim Müller tim at centricular.com
Tue May 27 07:14:33 PDT 2014


On Tue, 2014-05-27 at 15:45 +0200, Auslands-KV wrote:

> From my experience it is the "sync" option on the videosink element
> which causes a lot of latency. Setting this to "false" reduces latency
> in my tests from 3 seconds to less than 1 second. (Default is "true").

sync=false will just disregard any and all timing information. It might
be acceptable in some very specialised use cases where you have complete
control over the network, sender and receiver setup, but more often than
not it just causes other problems and is just a hack to make something
work without having to dig deeper.

 Cheers
  -Tim

> Am 27.05.2014 15:42, schrieb Tim Müller:
> > On Mon, 2014-05-26 at 12:36 +0000, Stephan.Urbach at elektrobit.com wrote:
> >
> > Hi Stephan,
> >  
> >> I stream under Windows a .mp4 video with VLC via rtsp and receive the
> >> stream with gstreamer. I have noticed a large latency between the
> >> sending and the receiving video.
> >>
> >> I‘m using the following command line for receiving: gst-launch-1.0
> >> playbin uri=rtsp://127.0.0.1:8554/ 
> >>
> >> Are there options to reduce the latency in gtreamer?
> > How large is 'a large latency'?
> >
> > You can set the "latency" property on rtspsrc (which is 2 seconds by
> > default) to something smaller. In code you would do that using the
> > 'setup-source' signal callback of playbin. With gst-launch-1.0:
> >
> > gst-launch-1.0 -v playbin uri=rtsp://127.0.0.1:8554/test \
> >                     uridecodebin0::source::latency=250 
> >
> >  Cheers
> >   -Tim
> >
> 
> 
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

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



More information about the gstreamer-devel mailing list