[gst-devel] How to let cheese switch between video mode and photo mode without interupting video

Stefan Kost ensonic at hora-obscura.de
Wed Nov 28 08:55:19 CET 2007


hi,

looked at the switch too and imho its not clearly names then. Filed:
http://bugzilla.gnome.org/show_bug.cgi?id=500142

Stefan

Quoting Stefan Kost <ensonic at hora-obscura.de>:

> Hi,
>
> Jaap A. Haitsma schrieb:
>> On Nov 19, 2007 9:05 PM, Jaap A. Haitsma <jaap at haitsma.org> wrote:
>>> On Nov 19, 2007 8:56 PM, Stefan Kost <ensonic at hora-obscura.de> wrote:
>>>> Hi,
>>>>
>>>> Jaap A. Haitsma schrieb:
>>>>> Hi,
>>>>>
>>>>> I guess some of you are familiar with the cheese webcam program [1]
>>>>> Cheese used to have two pipelines (one for taking a picture and one
>>>>> for recording a video). We refactored that code and made one pipeline
>>>>> to which we connect a photo_bin or video encoding bin to the pipeline
>>>>> depending on if we are in video or photo mode.
>>>>>
>>>>> In order to do that we need to stop and start the pipeline. Therefore
>>>>> the video is interupted
>>>>>
>>>>> So what we would like is have 2 pipelines running.
>>>> What about running one pipeline with a switch element. I haven't   
>>>> used it yet
>>>> myself. If that does not work using a tee and pad blocking could   
>>>> also work.
>>>>
>>> Thanks, I was looking for such a switch element. Probably because the
>>> name is so logical I overlooked it :-(
>>>
>>> I'll give it a try
>>>
>> I tried it. switch is unfortunately not the element I was looking for.
>> It switches inputs not outputs like I need. I tried the suggestion of
>> blocking pads but if I block one element in one branch of the tee the
>> other one also stops. See attached example:
>>
>> The example use videotestsrc which is tee'd to two imagesinks by
>> pressing the sink1 button you can block /unblock the first sink
>>
>> However if the first sink gets blocked also the second one gets
>> blocked. So that doesn't really help me. Is there anything I do wrong?
>> Should I try something else?
>
> Hmm, the queues should decouple it. Does it help if you make the queue leaky
> (check the property).
>
> Stefan
>
>>
>> Thanks
>>
>> Jaap
>>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>






More information about the gstreamer-devel mailing list