Hi,
I am looking for advice on how to save small portions of a video stream. I have a basic security cam application - and I want to save some portions of of the output stream. I can currently process the input video stream and send it to a motion detection processor, and I can save the full video stream to disk as a Transport Stream. Instead - what I would like to do is only save the video when motion is detected, something like one minute before and three minutes after motion is detected. I was thinking about modifying the mpegtsmux or maybe the filesing plugin. Or perhaps there is some better way. Suggestions are welcome. Thank you for any input. -Ram _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
I would try the following, use a tee to create two branches. In one branch you analyse the frames to detect movement. In the other branch you have a queue with a minimum threshold of one minute followed by a pad probe which drops the frames. This branch contains your encoder and filesink. When you detect movement in your firs branch you change the pad probe to let the frames through to your encoder and set the minimum threshold to 0. You then record for a further three minutes.
-----Ursprüngliche Nachricht----- Von: gstreamer-devel [mailto:[hidden email]] Im Auftrag von Ram Bhamidipaty Gesendet: Sonntag, 15. Januar 2017 19:00 An: [hidden email] Betreff: need advice: saving some portions of a video stream Hi, I am looking for advice on how to save small portions of a video stream. I have a basic security cam application - and I want to save some portions of of the output stream. I can currently process the input video stream and send it to a motion detection processor, and I can save the full video stream to disk as a Transport Stream. Instead - what I would like to do is only save the video when motion is detected, something like one minute before and three minutes after motion is detected. I was thinking about modifying the mpegtsmux or maybe the filesing plugin. Or perhaps there is some better way. Suggestions are welcome. Thank you for any input. -Ram _______________________________________________ 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 |
In reply to this post by Ram Bhamidipaty
Hi, I answered this e-mail this morning but didn't receive it reflected from the gstreamer list. Have I landed on some sort of spam list? If this mail is reflected I'll know that that is not the case :-)
-----Ursprüngliche Nachricht----- Von: Thornton, Keith Gesendet: Montag, 16. Januar 2017 08:50 An: 'Discussion of the development of and with GStreamer' <[hidden email]> Betreff: AW: need advice: saving some portions of a video stream I would try the following, use a tee to create two branches. In one branch you analyse the frames to detect movement. In the other branch you have a queue with a minimum threshold of one minute followed by a pad probe which drops the frames. This branch contains your encoder and filesink. When you detect movement in your firs branch you change the pad probe to let the frames through to your encoder and set the minimum threshold to 0. You then record for a further three minutes. -----Ursprüngliche Nachricht----- Von: gstreamer-devel [mailto:[hidden email]] Im Auftrag von Ram Bhamidipaty Gesendet: Sonntag, 15. Januar 2017 19:00 An: [hidden email] Betreff: need advice: saving some portions of a video stream Hi, I am looking for advice on how to save small portions of a video stream. I have a basic security cam application - and I want to save some portions of of the output stream. I can currently process the input video stream and send it to a motion detection processor, and I can save the full video stream to disk as a Transport Stream. Instead - what I would like to do is only save the video when motion is detected, something like one minute before and three minutes after motion is detected. I was thinking about modifying the mpegtsmux or maybe the filesing plugin. Or perhaps there is some better way. Suggestions are welcome. Thank you for any input. -Ram _______________________________________________ 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 |
On Mon, 2017-01-16 at 11:50 +0000, Thornton, Keith wrote: Hi Keith,
:) Cheers -Tim _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Thanks Tim. I must be in the Zeiss spam list
L Von: gstreamer-devel [mailto:[hidden email]]
Im Auftrag von Tim-Philipp Müller On Mon, 2017-01-16 at 11:50 +0000, Thornton, Keith wrote: Hi Keith,
:) Cheers -Tim _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |