Link/unlink tee branch from a pipeline

Sebastian Dröge sebastian at centricular.com
Mon Sep 14 00:21:09 PDT 2015


On So, 2015-09-13 at 23:57 -0700, Giacomo D wrote:
> Hi to everyone.
> 
> I want to know if I can link/unlink a tee-branch from my pipeline 
> without stopping the streaming.
> My situation is this:
> 
> src1 --> tee1 ---> videomixer --> videosink
>             tee1 --> xvideosink1
> 
> src2 --> tee2 ---> videomixer --> videosink
>             tee2 --> (unlinked)
> 
> After a little bit of time and when an event occurs I want to change 
> the situation to this:
> 
> 
> src1 --> tee1 ---> videomixer --> videosink
>             tee1 --> (unlinked)
> 
> src2 --> tee2 ---> videomixer --> videosink
>             tee2 --> xvideosink1
> 
> I have read that I have to use PROBE on tee element and to send EOS 
> to the sink pad when I unlink the branch.
> Is there a Python example to do this?

I have some explanation and C examples here:
https://coaxion.net/blog/2014/01/gstreamer-dynamic-pipelines/

>  In the future I want to save like a .MP4 or .AVI file the streaming
> on the xvideosink1, is it possible?

Yes, that's how you can do it.

-- 
Sebastian Dröge, Centricular Ltd · http://www.centricular.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20150914/16023257/attachment.sig>


More information about the gstreamer-devel mailing list