dump video perodically

Michael Gruner michael.gruner at ridgerun.com
Fri May 31 21:40:17 UTC 2019


Hi

You may want to look at the splitmuxsink element:

https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-good-plugins/html/gst-plugins-good-plugins-splitmuxsink.html <https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-good-plugins/html/gst-plugins-good-plugins-splitmuxsink.html>

You can do something like the following:

gst-launch-1.0 uridecodebin uri=rtsp://ip_address:port/mapping <rtsp://ip_address:port/mapping> ! encodebin ! splitmuxsink  max-size-time=600000000000 location=video_%03d.mp4

That pipeline will record the video stream in 10min chunk videos. I may be missing some properties, but I hope it gets you started.

Michael
www.ridgerun.com <http://www.ridgerun.com/>


> On May 29, 2019, at 2:16 PM, ssilvia <shejuti at ou.edu> wrote:
> 
> I am new to GStreamer. I want to read live video stream from an IP camera and
> write 10 minutes chunk of the video stream into a new mp4 file every 10
> minutes. How should I approach this? What elements should I used in the
> pipeline to dump the streams?
> 
> Thanks in advance.
> Silvia
> 
> 
> 
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20190531/21600d6e/attachment-0001.html>


More information about the gstreamer-devel mailing list