Thanks!  The num-buffers parameter helps and the video stops recording, however, the command pipeline I have (included below) continues recording audio.  Is there a parameter to specify audio-time as well?  Ideally, a single parameter for specifying the time for both audio and video would be preferred by separate ones are OK as well.  <br>
<br>Also, I would hope the pipeline would terminate automatically so that it can be scripted.<br><br>gst-launch v4l2src ! &#39;video/x-raw-yuv,width=640,<div class="h5">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></div>Thanks,<br>~Pavel<br><br><div class="gmail_quote">On Sun, Mar 7, 2010 at 7:30 PM, sudarshan bisht <span dir="ltr">&lt;<a href="mailto:bisht.sudarshan@gmail.com">bisht.sudarshan@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><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"><div><div></div><div class="h5">On Mon, Mar 8, 2010 at 4:32 AM, Pavel Johnson <span dir="ltr">&lt;<a href="mailto:pavel.johnson@gmail.com" target="_blank">pavel.johnson@gmail.com</a>&gt;</span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="padding-left: 1ex; margin: 0px 0px 0px 0.8ex; border-left: 1px solid rgb(204, 204, 204);"><div><div></div><div class="h5">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></div></div>
------------------------------------------------------------------------------<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" target="_blank">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>
<font color="#888888">
<br>Sudarshan Bisht<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>