How to do lengthy processing in an element

philippe renon philippe_renon at yahoo.fr
Fri Dec 9 10:05:13 UTC 2016


It is a one shot task that I need to execute.
The element analyzes video frames and once it has accumulated enough samples it needs to do a one shot computation that can take several seconds to complete.The result of the computation needs to be fed back into the element.

 

    Le Vendredi 9 décembre 2016 10h57, Sebastian Dröge <sebastian at centricular.com> a écrit :
 
 

 On Fri, 2016-12-09 at 09:50 +0000, philippe renon wrote:
> Answering my own question : gst_element_async_call() seems to fit the
> bill.

That's more for one-shot, simple tasks that don't take are not
continuously running. Like if you have to do some action on your
element from a non-streaming thread.

For long-running tasks that are just the element processing, you should
consider starting a new thread.

-- 
Sebastian Dröge, Centricular Ltd · http://www.centricular.com

 
   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20161209/aa78bb25/attachment.html>


More information about the gstreamer-devel mailing list