Switching Streams sent via GstBaseSrc

Nicolas Dufresne nicolas at ndufresne.ca
Wed Dec 2 00:08:33 UTC 2020


Le mar. 1 déc. 2020 17 h 15, Stirling Westrup <swestrup at gmail.com> a écrit :

> I have an element built on top of GstBaseSrc to generate multiple
> streams, one after the other. The streams have different content,
> stream-id's and caps.
>
> I *thought* that all I would have to do was send an EOS followed by a
> new stream-start , caps, and segment, and all would just work.
>
> Instead, the moment GstBaseSrc sees the EOS event via
> gst_element_send_event, it just shuts down. Same thing if I return EOS
> from the capture routine.
>
> What is the correct way to switch from sending one stream to sending
> another, when using GstBaseSrc?
>

One after another means you want to stitch the time segment. Refer to
concat element on how to do this. That being said, it might be easier to
use contact and a simpler source?


>
> --
> Stirling Westrup (he/him)
> Programmer, Entrepreneur.
> http://www.linkedin.com/in/swestrup
> (+1) 514-626-0928
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20201201/de37a0c4/attachment-0001.htm>


More information about the gstreamer-devel mailing list