Performance impact of bins/ghostpads?

Edward Hervey bilboed at bilboed.com
Fri Mar 3 08:57:09 UTC 2023


Hi,

On Fri, 2023-03-03 at 09:29 +0100, Florian Echtler via gstreamer-devel
wrote:
> The default content of videopipe is just "videoconvert !
> fpsdisplaysink".

  So you "just" added a video conversion element which does take
processing time.

  Never connect such elements directly to a sink, put a `queue` element
just before the (video) sink so that it can have a thread dedicated tod
displaying. Without that ... videoconvert will be idling until the
previous frame has been displayed (which won't happen if you disable
sync in the sink, ergo what you observed).

  So no:
  * it's not bins/ghostpads that introduce this kind of overhead.
  * Always add a queue just before your sinks
  * never disabled sync on sinks (except for *reaaaaaally* good
reasons)
  * fpsdisplaysink has a bunch of issues ... just use of debugging
purposes and try with regular video sinks (or autovideosink)

  BR,

     Edward


More information about the gstreamer-devel mailing list