Stopping a gst-launch-ed pipeline

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

Stopping a gst-launch-ed pipeline

Wes Miller
Administrator
When executing (in a command prompt) a gst-launch-ed pipeline that is capturing a live feed, what's the best way to stop it other than ctrl-C?  Windows and Linux answers are needed if they differ.

Thanks,

Wes
Reply | Threaded
Open this post in threaded view
|

Re: Stopping a gst-launch-ed pipeline

Kapil Agrawal
use -e option with gst-launch to send an EOS, but that could only be found if you using latest gstreamer.

best
-kapil

On Thu, Apr 8, 2010 at 8:31 PM, Wes Miller <[hidden email]> wrote:

When executing (in a command prompt) a gst-launch-ed pipeline that is
capturing a live feed, what's the best way to stop it other than ctrl-C?
Windows and Linux answers are needed if they differ.

Thanks,

Wes

--
View this message in context: http://n4.nabble.com/Stopping-a-gst-launch-ed-pipeline-tp1774202p1774202.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel



--
http://www.linkedin.com/in/kapilagrawal

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Stopping a gst-launch-ed pipeline

Wes Miller
Administrator
Not sure what this means.  Does the -e cause gst-launch to intercept ctrl-c and send an EOS or does it just send only EOS?

Wes
Reply | Threaded
Open this post in threaded view
|

Re: Stopping a gst-launch-ed pipeline

Kapil Agrawal
It causes gst-launch to intercept and send EOS

On Thu, Apr 8, 2010 at 11:22 PM, Wes Miller <[hidden email]> wrote:

Not sure what this means.  Does the -e cause gst-launch to intercept ctrl-c
and send an EOS or does it just send only EOS?

Wes
--
View this message in context: http://n4.nabble.com/Stopping-a-gst-launch-ed-pipeline-tp1774202p1774989.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel



--
http://www.linkedin.com/in/kapilagrawal

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Stopping a gst-launch-ed pipeline

djlorenzoc
Hi all,
Is there a way (not CTRL-C) to close the gst-launch pipe when it isn't feed by the camera?
I want to close it automatically,without the use of the keyboard...
Thank you

Lorenzo

2010/4/9 Kapil Agrawal <[hidden email]>
It causes gst-launch to intercept and send EOS

On Thu, Apr 8, 2010 at 11:22 PM, Wes Miller <[hidden email]> wrote:

Not sure what this means.  Does the -e cause gst-launch to intercept ctrl-c
and send an EOS or does it just send only EOS?

Wes
--
View this message in context: http://n4.nabble.com/Stopping-a-gst-launch-ed-pipeline-tp1774202p1774989.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel




------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel



------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Stopping a gst-launch-ed pipeline

djlorenzoc
In reply to this post by Kapil Agrawal
Hi all,
My target is to close the pipe without the use of the keyboard...
Is it possible to close the pipe automatically, when it isn't feed by the v4lsrc,without the use of CTRL-C?
Thank you

Lorenzo

2010/4/9 Kapil Agrawal <[hidden email]>
It causes gst-launch to intercept and send EOS

On Thu, Apr 8, 2010 at 11:22 PM, Wes Miller <[hidden email]> wrote:

Not sure what this means.  Does the -e cause gst-launch to intercept ctrl-c
and send an EOS or does it just send only EOS?

Wes
--
View this message in context: http://n4.nabble.com/Stopping-a-gst-launch-ed-pipeline-tp1774202p1774989.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel




------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel



------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Stopping a gst-launch-ed pipeline

Sudarshan Bisht
   set "num-buffers" property in v4lsrc .

On Wed, Apr 14, 2010 at 2:02 PM, lorenzo centurelli
<[hidden email]> wrote:

> Hi all,
> My target is to close the pipe without the use of the keyboard...
> Is it possible to close the pipe automatically, when it isn't feed by the
> v4lsrc,without the use of CTRL-C?
> Thank you
>
> Lorenzo
>
> 2010/4/9 Kapil Agrawal <[hidden email]>
>>
>> It causes gst-launch to intercept and send EOS
>>
>> On Thu, Apr 8, 2010 at 11:22 PM, Wes Miller <[hidden email]> wrote:
>>>
>>> Not sure what this means.  Does the -e cause gst-launch to intercept
>>> ctrl-c
>>> and send an EOS or does it just send only EOS?
>>>
>>> Wes
>>> --
>>> View this message in context:
>>> http://n4.nabble.com/Stopping-a-gst-launch-ed-pipeline-tp1774202p1774989.html
>>> Sent from the GStreamer-devel mailing list archive at Nabble.com.
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Download Intel&#174; Parallel Studio Eval
>>> Try the new software tools for yourself. Speed compiling, find bugs
>>> proactively, and fine-tune applications for parallel performance.
>>> See why Intel Parallel Studio got high marks during beta.
>>> http://p.sf.net/sfu/intel-sw-dev
>>> _______________________________________________
>>> gstreamer-devel mailing list
>>> [hidden email]
>>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>
>>
>>
>> --
>> http://www.linkedin.com/in/kapilagrawal
>>
>>
>> ------------------------------------------------------------------------------
>> Download Intel&#174; Parallel Studio Eval
>> Try the new software tools for yourself. Speed compiling, find bugs
>> proactively, and fine-tune applications for parallel performance.
>> See why Intel Parallel Studio got high marks during beta.
>> http://p.sf.net/sfu/intel-sw-dev
>> _______________________________________________
>> gstreamer-devel mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>
>
>
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>



--
Regards,

Sudarshan Bisht

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Stopping a gst-launch-ed pipeline

djlorenzoc
Hi Mr.Sudarshan Bisht,
Thank you for your answer...I need to manage the gst-launch dainamically: when the video streaming is ended (and I don't know its duration...it can be some second or some minutes...) I want to close the pipe...
I read that a pipeline can be controlled by signals: SIGUSR2 will stop the pipe line, it puts the GST in GST_STATE_NULL, but I don't know if it solves my problem and how to give it...

Thank you



2010/4/14 sudarshan bisht <[hidden email]>
  set "num-buffers" property in v4lsrc .

On Wed, Apr 14, 2010 at 2:02 PM, lorenzo centurelli
<[hidden email]> wrote:
> Hi all,
> My target is to close the pipe without the use of the keyboard...
> Is it possible to close the pipe automatically, when it isn't feed by the
> v4lsrc,without the use of CTRL-C?
> Thank you
>
> Lorenzo
>
> 2010/4/9 Kapil Agrawal <[hidden email]>
>>
>> It causes gst-launch to intercept and send EOS
>>
>> On Thu, Apr 8, 2010 at 11:22 PM, Wes Miller <[hidden email]> wrote:
>>>
>>> Not sure what this means.  Does the -e cause gst-launch to intercept
>>> ctrl-c
>>> and send an EOS or does it just send only EOS?
>>>
>>> Wes
>>> --
>>> View this message in context:
>>> http://n4.nabble.com/Stopping-a-gst-launch-ed-pipeline-tp1774202p1774989.html
>>> Sent from the GStreamer-devel mailing list archive at Nabble.com.
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Download Intel&#174; Parallel Studio Eval
>>> Try the new software tools for yourself. Speed compiling, find bugs
>>> proactively, and fine-tune applications for parallel performance.
>>> See why Intel Parallel Studio got high marks during beta.
>>> http://p.sf.net/sfu/intel-sw-dev
>>> _______________________________________________
>>> gstreamer-devel mailing list
>>> [hidden email]
>>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>
>>
>>
>> --
>> http://www.linkedin.com/in/kapilagrawal
>>
>>
>> ------------------------------------------------------------------------------
>> Download Intel&#174; Parallel Studio Eval
>> Try the new software tools for yourself. Speed compiling, find bugs
>> proactively, and fine-tune applications for parallel performance.
>> See why Intel Parallel Studio got high marks during beta.
>> http://p.sf.net/sfu/intel-sw-dev
>> _______________________________________________
>> gstreamer-devel mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>
>
>
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>



--
Regards,

Sudarshan Bisht

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Stopping a gst-launch-ed pipeline

Stefan Sauer
In reply to this post by djlorenzoc
lorenzo centurelli wrote:
> Hi all,
> My target is to close the pipe without the use of the keyboard...
> Is it possible to close the pipe automatically, when it isn't feed by
> the v4lsrc,without the use of CTRL-C?
Normaly the source sends EOS if it knows that the stream has ended. The
ctrl-c on gst-launch also sends a eos (when using -e).
Using num-buffers on a source sends eos after that many buffers have
been pushed. There is no send-eos-after-n-secs-of-inactivity feature in
source yet. You will need to write an application to do that.

Stefan

> Thank you
>
> Lorenzo
>
> 2010/4/9 Kapil Agrawal <[hidden email] <mailto:[hidden email]>>
>
>     It causes gst-launch to intercept and send EOS
>
>     On Thu, Apr 8, 2010 at 11:22 PM, Wes Miller <[hidden email]
>     <mailto:[hidden email]>> wrote:
>
>
>         Not sure what this means.  Does the -e cause gst-launch to
>         intercept ctrl-c
>         and send an EOS or does it just send only EOS?
>
>         Wes
>         --
>         View this message in context:
>         http://n4.nabble.com/Stopping-a-gst-launch-ed-pipeline-tp1774202p1774989.html
>         Sent from the GStreamer-devel mailing list archive at Nabble.com.
>
>         ------------------------------------------------------------------------------
>         Download Intel&#174; Parallel Studio Eval
>         Try the new software tools for yourself. Speed compiling, find
>         bugs
>         proactively, and fine-tune applications for parallel performance.
>         See why Intel Parallel Studio got high marks during beta.
>         http://p.sf.net/sfu/intel-sw-dev
>         _______________________________________________
>         gstreamer-devel mailing list
>         [hidden email]
>         <mailto:[hidden email]>
>         https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>
>
>
>     --
>     http://www.linkedin.com/in/kapilagrawal
>
>     ------------------------------------------------------------------------------
>     Download Intel&#174; Parallel Studio Eval
>     Try the new software tools for yourself. Speed compiling, find bugs
>     proactively, and fine-tune applications for parallel performance.
>     See why Intel Parallel Studio got high marks during beta.
>     http://p.sf.net/sfu/intel-sw-dev
>     _______________________________________________
>     gstreamer-devel mailing list
>     [hidden email]
>     <mailto:[hidden email]>
>     https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> ------------------------------------------------------------------------
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>  


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Stopping a gst-launch-ed pipeline

Freemem
In reply to this post by djlorenzoc
SIGINT equal to CTRL+C