gst_main_loop

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

gst_main_loop

Bibin Joseph
Is it possible to interrupt the gst_main_loop after it has started
running? Should I stop this loop first, in order to change my pipeline?
Kindly reply

Thanks and Regards,
Bibin

------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: gst_main_loop

Tim-Philipp Müller-2
On Fri, 2009-06-19 at 09:58 +0530, Bibin joseph wrote:

> Is it possible to interrupt the gst_main_loop after it has started
> running? Should I stop this loop first, in order to change my pipeline?

Could you provide some more context (or any context at all rather)?

What do you mean by 'change your pipeline'? What problems have you
encountered doing what?

GStreamer pipelines run in their own threads and aren't really aware of
any main loops or main contexts the application may or may not be
running.

Cheers
 -Tim



------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: gst_main_loop

Bibin Joseph
Tim-Philipp Müller wrote:

> On Fri, 2009-06-19 at 09:58 +0530, Bibin joseph wrote:
>
>  
>> Is it possible to interrupt the gst_main_loop after it has started
>> running? Should I stop this loop first, in order to change my pipeline?
>>    
>
> Could you provide some more context (or any context at all rather)?
>
> What do you mean by 'change your pipeline'? What problems have you
> encountered doing what?
>
> GStreamer pipelines run in their own threads and aren't really aware of
> any main loops or main contexts the application may or may not be
> running.
>
> Cheers
>  -Tim
>
>
>
> ------------------------------------------------------------------------------
> Are you an open source citizen? Join us for the Open Source Bridge conference!
> Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
> Need another reason to go? 24-hour hacker lounge. Register today!
> http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>  
I want to edit my pipeline after it has started playing. For example,
imagine,  I want to mix a video file to an already playing  stream. How
can it be made possible?

------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: gst_main_loop

Tim-Philipp Müller-2
On Tue, 2009-06-23 at 09:57 +0530, Bibin joseph wrote:

> >> Is it possible to interrupt the gst_main_loop after it has started
> >> running? Should I stop this loop first, in order to change my pipeline?
> >>
> > (...)
>
> I want to edit my pipeline after it has started playing. For example,
> imagine,  I want to mix a video file to an already playing  stream. How
> can it be made possible?

Dynamic pipelines are still a bit tricky to do, but should be possible
(depends a bit on the elements involved). You'll need a bit more
knowledge of GStreamer internals than you would need for a non-dynamic
application, to take care of pad blocking where required and inject
newsegment events and somesuch if needed. I believe there is a document
in our design document section about dynamic pipelines.

However, with videomixer you should just be able to plug your new source
element/stream into the pipeline and then request a new sink pad from
videomixer and link that to your new source/stream, I think.

In any case, you do not have to stop any main loops in your app for
this.

Cheers
 -Tim



------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel