Latency reduction for gstreamer

Auslands-KV auslands-kv at gmx.de
Tue May 27 06:45:00 PDT 2014


>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").

Cheers

Michael

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
>




More information about the gstreamer-devel mailing list