<div>Hi ,</div>
<div>      you can set &quot;num-buffers&quot; in v4l2src element , and I think number of buffers will depend on the framerate (fps)  and the time duration ( in seconds) .</div>
<div> </div>
<div>      Suppose fps is 30 frame/sec and the time duration is 30 secs then num-buffers will be 30*30 = 900 .</div>
<div>   </div>
<div>      Try this out . <br><br></div>
<div class="gmail_quote">On Mon, Mar 8, 2010 at 4:32 AM, Pavel Johnson <span dir="ltr">&lt;<a href="mailto:pavel.johnson@gmail.com">pavel.johnson@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hello,<br><br>I am new to Gstreamer so please bear with me if this has been addressed.<br><br>I am trying to record video from a webcam using the command line below and would like to specify the duration for which the video/audio needs to be recorded, i.e. the command below should terminate after say 30 sec of recording.  What command options and where in the command line can the recording duration be included?  If there is no option, what tools are available to achieve this?<br>
<br>gst-launch v4l2src ! &#39;video/x-raw-yuv,width=640,height=480,framerate=30/1&#39; ! \<br>tee name=t_vid ! queue ! videoflip method=horizontal-flip ! \<br>xvimagesink sync=false t_vid. ! queue ! \<br>videorate ! &#39;video/x-raw-yuv,framerate=30/1&#39; ! queue ! mux. \<br>
pulsesrc ! audio/x-raw-int,rate=22000,channels=1,width=16 ! queue ! \<br>audioconvert ! queue ! mux. avimux name=mux ! \<br>filesink location=/test.mpg<br><br>TIA,<br><font color="#888888">Pavel<br></font><br>------------------------------------------------------------------------------<br>
Download Intel&amp;#174; Parallel Studio Eval<br>Try the new software tools for yourself. Speed compiling, find bugs<br>proactively, and fine-tune applications for parallel performance.<br>See why Intel Parallel Studio got high marks during beta.<br>
<a href="http://p.sf.net/sfu/intel-sw-dev" target="_blank">http://p.sf.net/sfu/intel-sw-dev</a><br>_______________________________________________<br>gstreamer-devel mailing list<br><a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br><br></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>
<br>Sudarshan Bisht<br>