How to dynamically link to tee after pipeline started using gst_parse_launch

gotsring gotsring at live.com
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.

dynamic_interleave_link.cpp
<http://gstreamer-devel.966125.n4.nabble.com/file/t379531/dynamic_interleave_link.cpp>  

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?
https://gstreamer.freedesktop.org/documentation/interleave/interleave.html?gi-language=c#interleave:channel-positions

Hope this helps!



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list