Live stream insert some clip and when clip ended switch back to origin stream

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Live stream insert some clip and when clip ended switch back to origin stream

Topilski
This post was updated on .
Dear Gstreamer community, 

I’m writing here if anyone can advice what to use in order to switch from live video to file based video in my case the output is rtmp live stream.

My goal is while transcoding a live stream that goes out to rtmp to switch into file video then when file ends switch back to live stream, something like live Ad Insertion, 

Due to so many libraries and module available for GStreamer a little help on where to start would be appreciate. We have tried some approaches but didn't work so well.
Reply | Threaded
Open this post in threaded view
|

Re: Live stream insert some cleip and when clip ended switch back to origin stream

Vivia Nikolaidou
Hi,

You can use the input-selector element for that. When you get the EOS
event from the file source, you just switch the active pad of the
input selector.

Generally, it may happen that you have two sources, one of them
reaches EOS, and then you want to switch to the other one. In these
cases, you should grab the EOS event from the ending source (both
audio and video, if relevant), remove that source, and unref the
event. If you let the event slip downstream, it will eventually stop
your whole pipeline.

Best regards,

Vivia

On 13 September 2016 at 16:24, Topilski <[hidden email]> wrote:

> Dear Gstreamer community,
>
> I’m writing here if anyone can advice what to use in order to switch from
> live video to file based video in my case the output is rtmp live stream.
>
> My goal is while transcoding a live stream that goes out to rtmp to switch
> into file video then when file ends switch back to live stream, something
> like live Ad Insertion,
>
> Due to so many libraries and module available for GStreamer a little help on
> where to start would be appreciate. We have tried some approaches but didn't
> work so well.
>
>
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Live-stream-insert-some-cleip-and-when-clip-ended-switch-back-to-origin-stream-tp4679560.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel