dump video perodically

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

dump video perodically

ssilvia
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
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: dump video perodically

Michael Gruner
Hi

You may want to look at the splitmuxsink element:


You can do something like the following:

gst-launch-1.0 uridecodebin uri=<a href="rtsp://ip_address:port/mapping" class="">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


On May 29, 2019, at 2:16 PM, ssilvia <[hidden email]> 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
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel