[gst-devel] how to restart a pipeline
AJAY GAUTAM
ajaygautam1981 at gmail.com
Thu Oct 9 05:14:07 CEST 2008
Hi Pavel ,
You can Unlink the elements ,then set state of pipeline as NULL ,then set
next file to play using the same pipeline,then Link the elements and set
state as PLAY.
I think it is help to you.
On Thu, Oct 9, 2008 at 1:34 AM, Pavel Zeldin <pzeldin at gmail.com> wrote:
> I need advice on how to restart a pipeline cleanly. The pipeline
> handles recording from several live sources. The recording goes to a
> file (may be several files) and/or network.
> >From time to time I want to close the current file(s) and begin a new
> one. File should not be closed while there is outstanding data in the
> pipeline.
> To ensure this the application sends EOS to the pipeline. When EOS is
> seen on the bus the application stops the pipeline.
> But in order to restart it all dynamic pads must be created and linked
> again, and caps negotiation repeated. This takes long time.
> Is there a simpler (i.e. faster) way?
>
> -Pavel.
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
--
Thanx & Regards
Ajay Gautam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20081009/f1bccb7a/attachment.htm>
More information about the gstreamer-devel
mailing list