WG: need advice: saving some portions of a video stream

Thornton, Keith keith.thornton at zeiss.com
Mon Jan 16 11:50:58 UTC 2017


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' <gstreamer-devel at lists.freedesktop.org>
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:gstreamer-devel-bounces at lists.freedesktop.org] Im Auftrag von Ram Bhamidipaty
Gesendet: Sonntag, 15. Januar 2017 19:00
An: gstreamer-devel at lists.freedesktop.org
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
gstreamer-devel at lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


More information about the gstreamer-devel mailing list