[gst-devel] How to seamlessly switch between two sinks / output pipelines?

Jaap Haitsma jaap at haitsma.org
Fri Oct 26 17:54:56 CEST 2007


Forgot to cc the list on the mail below

On 10/24/07, Stefan Kost <ensonic at hora-obscura.de> wrote:
> Hi,
>
> Jaap Haitsma schrieb:
> > Hi,
> >
> > What I like to do is the following
> >
> > I'm recording audio and video from a src and displaying it in a
> > window. I'd like to route that stream seamlessly to one pipeline that
> > can make a photo or to a pipeline that can make a video recording, by
> > controlling some kind of switch.
> >
> > What I currently do is if I'm in photo mode and want to switch is stop
> > the pipeline, change the pipeline to video mode by removing and adding
> > the appropriate GstElements and restart the pipeline. Stopping,
> > changing the pipeline and starting however interrupts the video
> > display.
> >
> > So the question is can I change from photo mode to video mode, without
> > stopping the complete pipeline?
> >
>
> You could also put identity into your video pipeline and connect to hand-off
> signal. when the capture-button is pressed you set a flag, store the buffer from
> handoff and reset the flag.
>
Thanks, but I'd like to store the resulting video in ogg format. How
do I put the frame buffers into a pipeline again to encode the video.


Basically you're saying the way to do this is having 2 different
pipelines where I copy buffers from one to the other myself.
Isn't there a gstreamer element that can switch the streams seamlessly.

Thanks

Jaap




More information about the gstreamer-devel mailing list