Latency in video sinks

Nicolas Dufresne nicolas.dufresne at collabora.com
Wed Feb 3 18:40:06 UTC 2016


Le mercredi 03 février 2016 à 18:51 +0100, Carlos Rafael Giani a
écrit :
> if a video sink that is a subclass of GstVideoSink uses triple 
> buffering, it means it will not show the frame right when
> show_frame() 
> is called, but 2 frames later.
> To me, this sounds like latency. I was wondering how to handle this 
> properly. It is clear to me that a latency of (2/fps) frames has to
> be 
> added, the question is how.
> 
> Option 1: Call gst_base_sink_set_render_delay() . However, render-
> delay 
> is also a property, which can be modified externally.
> Option 2: Intercept latency queries and add the 2-frame latency.

Option 1 is simple, and documentation state it's right use "This
function shall be called by subclass". Option 2 let you also set the
max lateness.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160203/8a2799b2/attachment.sig>


More information about the gstreamer-devel mailing list