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>Pavel<br>