[gst-devel] Switching two video sources with input-selector
Luciana Fujii Pontello
luciana at holoscopio.com
Sat Oct 9 18:48:59 CEST 2010
On Sat, 2010-10-09 at 17:44 +0200, Frans van Berckel wrote:
> Hi Guy's,
>
> Did you take a look into the Gstreamer Gnonlin element yet?
>
> http://gstreamer.freedesktop.org/modules/gnonlin.html
Yes. Gnonlin works very well to switch between filesrc and a live
source, but I was only able to do that setting the times in the timeline
before starting to play. What I wanted to achieve was switching to a
filesrc when the user requests to.
I honestly don't know how to do that with gnonlin and haven't found any
docs about it at the time. I tried the obvious, which was setting the
timeline while playing after the user requests the switch, but it didn't
work. I also tried some variants of that, like blocking pads and then
setting the timeline. The truth is I don't know much about gnonlin and I
didn't look at the code enough to know how it works. Is that supposed to
work? Is it even a use case that gnonlin intends to cover?
Anyway, what I could do to switch between souces was, incredibly, use
videomixer as my input-selector. I already used videomixer to provide
picture-in-picture, so I just use alpha to hide every other video I
don't want to show. You can imagine that there are some problems with
that aproach, but it was better than anything I tried for that.
Regards,
Luciana Fujii
More information about the gstreamer-devel
mailing list