How to dynamically link to tee after pipeline started using gst_parse_launch

gotsring gotsring at
Sat Mar 6 00:05:50 UTC 2021

Tee and interleave both have request pads, meaning you can just request a new
pad without necessarily pre-allocating them. So for example, if you find the
interleave element, you can request a new sink pad using
    gst_element_get_request_pad(interleave, "sink_%u")

Wasn't quite sure what your intended use case is, but I altered the example
code to create a pipeline that's not completely linked, and then grabs
references to interleave and the volume elements to finish linking
everything together before playing.


I also noticed just now that interleave has a channel-positions property to
(I think) rearrange which inputs map to which channel. Maybe this is useful
to you?

Hope this helps!

Sent from:

More information about the gstreamer-devel mailing list