<div dir="ltr"><div><div>I am recording two a RTSP camera sources using this command<br><br>gst-launch 1.0 -e mpegtsmux ! filesink location=two.ts \<br>  rtspsrc location=rtsp://<a href="http://root:hest1234@192.168.130.200/axis-media/media.amp">root:hest1234@192.168.130.200/axis-media/media.amp</a> ntp-sync=true protocols=GST_RTSP_LOWER_TRANS_TCP ! \<br>  queue ! capsfilter caps="application/x-rtp,media=video" ! \<br>  rtph264depay ! mpegtsmux0. \<br>  rtspsrc location=rtsp://<a href="http://root:hest1234@192.168.130.201/axis-media/media.amp">root:hest1234@192.168.130.201/axis-media/media.amp</a> ntp-sync=true protocols=GST_RTSP_LOWER_TRANS_TCP ! \<br>  queue ! capsfilter caps="application/x-rtp,media=video" ! \<br>  rtph264depay ! mpegtsmux0.<br><div><br></div>I would like to stop the recording after 10 seconds so I can integrate the command in a Makefile, but cant seem to get my head around how.<br></div><div><br></div>I have read that some sources has a num-buffers variable but the rtspsrc does unfortunately not. <br></div><div><br></div>I have tried inserting my pipeline description in the c tutorial (<a href="https://gstreamer.freedesktop.org/documentation/tutorials/basic/hello-world.html">https://gstreamer.freedesktop.org/documentation/tutorials/basic/hello-world.html</a>), hoping that would give me more possibilities. But I know too little of the api yet to achieve my goal.<br><br><div><div><div><div>I am used to FFmpeg, where its exposed as a -t argument.</div><div><br></div><div>Any ideas on how to proceed. Preferably by example. <br></div><div><br></div><div>Kind regards<br><div><div><br><div class="gmail_signature">Jesper<br><br></div>
</div></div></div></div></div></div></div>