<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi<div class=""><br class=""></div><div class="">You may want to look at the splitmuxsink element:</div><div class=""><br class=""></div><div class=""><a href="https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-good-plugins/html/gst-plugins-good-plugins-splitmuxsink.html" class="">https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-good-plugins/html/gst-plugins-good-plugins-splitmuxsink.html</a></div><div class=""><br class=""></div><div class="">You can do something like the following:</div><div class=""><br class=""></div><div class="">gst-launch-1.0 uridecodebin uri=<a href="rtsp://ip_address:port/mapping" class="">rtsp://ip_address:port/mapping</a> ! encodebin ! splitmuxsink  max-size-time=600000000000 location=video_%03d.mp4</div><div class=""><br class=""></div><div class="">That pipeline will record the video stream in 10min chunk videos. I may be missing some properties, but I hope it gets you started.</div><div class=""><br class=""></div><div class="">Michael</div><div class=""><a href="http://www.ridgerun.com" class="">www.ridgerun.com</a></div><div class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On May 29, 2019, at 2:16 PM, ssilvia <<a href="mailto:shejuti@ou.edu" class="">shejuti@ou.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">I am new to GStreamer. I want to read live video stream from an IP camera and<br class="">write 10 minutes chunk of the video stream into a new mp4 file every 10<br class="">minutes. How should I approach this? What elements should I used in the<br class="">pipeline to dump the streams?<br class=""><br class="">Thanks in advance.<br class="">Silvia<br class=""><br class=""><br class=""><br class="">--<br class="">Sent from: <a href="http://gstreamer-devel.966125.n4.nabble.com/" class="">http://gstreamer-devel.966125.n4.nabble.com/</a><br class="">_______________________________________________<br class="">gstreamer-devel mailing list<br class=""><a href="mailto:gstreamer-devel@lists.freedesktop.org" class="">gstreamer-devel@lists.freedesktop.org</a><br class="">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</div></div></blockquote></div><br class=""></div></body></html>