BaseTransform with live video

Mathieu Duponchelle mathieu at centricular.com
Thu Apr 11 12:51:56 UTC 2019


If your transform element is too slow for real time operation, it should handle
QoS events and skip ahead. Out of curiosity, are you performing the transformation
in pure python? If so, it would probably be wise to optimize the critical bits out to
a C extension for example, as pure python for heavy duty image manipulation is
bound to have very poor performance :)

On 4/10/19 3:21 PM, rs99 wrote:
> Hello,
>
> I have a set of plugins written in Python. A transform element
> (BaseTransform subclass) analyzes video frames and outputs data as a stream
> of serialized Python objects (custom application/x-mydatastream caps;
> serialization is done in do_prepare_output_buffer()). A second element, an
> aggregator, takes data from this stream and merges it with the initial video
> stream (coming from a tee element), drawing overlays on top of it.
>
> Basically, this works fine, but the resulting stream is only as fast as the
> slowest element in the pipeline, the transform element which runs the
> analysis. For live video input, this means that frames are being dropped.
> Ideally, I'd like the video to be played at full framerate, with the
> overlays displayed when available, or based on cached data. Is this
> possible?
>
>
>
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


More information about the gstreamer-devel mailing list