Latency in video sinks

Carlos Rafael Giani dv at pseudoterminal.org
Wed Feb 3 17:51:43 UTC 2016


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.

Anything speaking against option 2?


More information about the gstreamer-devel mailing list