Is there a combined "appsink+appsrc" passthrough?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Is there a combined "appsink+appsrc" passthrough?

PeterT
Hi there,

I'd like to call into my app from within the pipeline using the same callbacks scheme provided by appsink/appsrc. Instead of creating two pipelines (one that ends with appsink, and one that starts with appsrc), is there one element that acts as a passthrough, combining a sink+src in the same plugin yet exposing callbacks? I realize there are 1e6 ways of doing things in GStreamer (e.g., I could probably use a pad probe, or listen to the bus) but the omission of an appsinksrc or apppassthrough confuses me.

Thanks!
Peter
Reply | Threaded
Open this post in threaded view
|

Re: Is there a combined "appsink+appsrc" passthrough?

Tim Müller
On Sat, 2016-12-03 at 13:12 -0800, PeterT wrote:

Hi Peter,

You can use the identity element's "handoff" signal to get a callback
whenever a buffer pass through, or use gst_pad_add_probe() for more
fine-grained control. Not quite sure if that's really what you were
after though.

Cheers
 -Tim

--
Tim Müller, Centricular Ltd - http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Is there a combined "appsink+appsrc" passthrough?

PeterT
Thanks Tim, I didn't know about the identity element or handoff signals. That's what I'm looking for.

Cheers,
Peter