How to stop multifilesink pipeline

Tim Müller tim at centricular.com
Tue Jul 4 11:58:39 UTC 2017


On Tue, 2017-07-04 at 03:58 -0700, Farzan wrote:

Hi,

> I am new to Gstreamer, can anyone tell me how to set a timer or max
> number of files to end the following pipeline
> 
> gst-launch-0.10  v4l2src ! jpegenc ! multifilesink
> location="frame%d.jpg"
> 
> For example if I need only 10 frames what do I need to keep the
> pipeline from going on and stop after taking 10 frames.

You can use

  v4l2src num-buffers=10 ! ..

if you want to stop after 10 frames (not so easy to specify in time
units).

Also, please note that GStreamer 0.10 is ancient and unmaintained, you
should really upgrade to 1.0 instead.

Cheers
 -Tim

-- 
Tim Müller, Centricular Ltd - http://www.centricular.com

Join us at the GStreamer Conference!
21-22 October 2017 in Prague, Czech Republic
http://gstreamer.freedesktop.org/conference/


More information about the gstreamer-devel mailing list