How to remove a source of a Adder while playing?

E-J van der Linden EJvanderLinden at hetnet.nl
Thu Apr 7 22:04:37 PDT 2011


Lucas,

First try the option sync=false for the alsasink at the end of the pipeline.

If no success try to use the liveadder.

I had the same problem and I solved it with the liveadder. You can not solve it with a "static" gst-launch command, you have to write a program yourself.
The programs I made (source and linux executables) are attached as source for inspiration.

The sender sends MP3 file to a RTP network stream.
The receiver may receive multiple network streams (of multiple senders from different machines) and mixes these streams.
If new streams arrive or old streams are removed, the corresponding mixer pads are created/removed dynamically.

Be aware that liveadder seems to have a "big" memory leak, or my program is wrong (see bug report https://bugzilla.gnome.org/show_bug.cgi?id=647055)
If you make better versions of them please let me know!

E-J

Op 8 apr 2011, om 05:06 heeft Lucas Alberto het volgende geschreven:

> Hi People,
> 
> i'm trying to remove dinamically a audio input that is linked to a
> Adder element. Does someone know how to remove a source element and
> let the Adder continue mixing the other sources?
> 
> I've googled a lot to find the answer but I only found references to
> removing a branch of a "Tee". I don't know how to adapt the steps used
> in the "Tee case" because the Adder element is the inverse of a Tee.
> 
> Thanks in advance.
> Lucas Alberto, from Brazil.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20110408/9bc24e83/attachment-0005.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: myRtpReceiver.c
Type: application/octet-stream
Size: 11163 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20110408/9bc24e83/attachment-0004.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20110408/9bc24e83/attachment-0006.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: myRtpSender
Type: application/octet-stream
Size: 12560 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20110408/9bc24e83/attachment-0005.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20110408/9bc24e83/attachment-0007.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: myRtpSender.c
Type: application/octet-stream
Size: 5237 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20110408/9bc24e83/attachment-0006.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20110408/9bc24e83/attachment-0008.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: myRtpReceiver
Type: application/octet-stream
Size: 17182 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20110408/9bc24e83/attachment-0007.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20110408/9bc24e83/attachment-0009.htm>


More information about the gstreamer-devel mailing list