Select which streams get passed to mpegtsmux

gimmeamilk gimmeamilkbttf at gmail.com
Thu Jan 24 03:32:26 PST 2013


I have a decodebin with potentially several A/V streams coming out of it to
an mpegtsmux. I want to be able to change on-the-fly which decodebin srcpads
get their data pumped to the mpegtsmux sink. I've looked at input-selector
and output-selector but they are one-to-many or many-to-one, rather than the
many-to-many setup I have. 

I'm currently unlinking and destroying the mpegtsmux sinkpads for those
streams I want to block out, then creating and linking new sinkpads when I
want to re-enable them. This seems to work, but is there a better way? Just
unlinking the sinkpads doesn't seem to work - it seems to stall data on
those pads that should still be active.

Also, does gst_pad_link() take ownership of the pad references passed in, or
does it add refs?

Thanks.




--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Select-which-streams-get-passed-to-mpegtsmux-tp4658142.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list