question how to add own customized element between source element and decodebin2 element when using playbin2

Christophe Oosterlynck tiftof at gmail.com
Tue Nov 13 05:40:33 PST 2012


Hi,

I'm looking to do the same thing. Right after the source, I want to insert
another element and let playbin2 do the rest.

>From what I see I have 2 possibilities:
* react to "notify::source" signal, add the extra element to the bin, link
it to the source and let playbin2 continue
* wait until playbin2 has finished constructing the whole pipeline, unlink
source and next element and insert extra element in between.

Can I do one of these safely or shouldn't I fiddle with the playbin2
pipeline behind its back?

What I want to achieve with this: buffer a live udp source.
The buffering mechanism in playbin2 is not usable for live sources as you
cannot pause them. I want to insert a queue element right behind the udpsrc
element with min-threshold-bytes. This works when I create a custom pipeline
with gst-launch. If this is not the best way to handle this, let me know.
Nevertheless, I'm still interested in the answer to my question on fiddling
with the playbin2 pipeline.

Best regards,

Christophe



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/question-how-to-add-own-customized-element-between-source-element-and-decodebin2-element-when-using-2-tp4353571p4656889.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list