[gst-devel] Stopping a live capture

Zhao, Halley halley.zhao at intel.com
Mon Apr 12 02:31:01 CEST 2010


For test use, you can specific ‘-num-buffers=n’ for camera src.
For real case, you’d better send EOS to camera src to quit the pipeline.

From my experience, ‘ctrl+c’ made my mp4 file corrupted, though it works for ogg file.
Not sure v4l2src support EOS or not, I added it in my camera src to make sure the hw stop in order.



________________________________
From: thiagossantos at gmail.com [mailto:thiagossantos at gmail.com]
Sent: 2010年4月12日 1:33
To: Discussion of the development of GStreamer
Subject: Re: [gst-devel] Stopping a live capture


On Thu, Apr 8, 2010 at 10:44 AM, Wesley J. Miller <WMiller at sdr.com<mailto:WMiller at sdr.com>> wrote:

When executing 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.

gst-launch stops whenever it gets EOS, an error or the user presses ctrl-c AFAIK.

When capturing live, it is useful to use -e option to force the pipeline to push an EOS through the pipeline to make elements finalize their work properly when ctrl-c is pressed.


Thanks,

Wes

PS Sorry about the mangled previous posting - pressed the wrong button.  :-(

------------------------------------------------------------------------------
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
gstreamer-devel at lists.sourceforge.net<mailto:gstreamer-devel at lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel



--
Thiago Sousa Santos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20100412/0ce2550f/attachment.htm>


More information about the gstreamer-devel mailing list