Home > Archive (Community help, from old helpdesk) > Pre-buffering video - Videocapture .NET

Pre-buffering video - Videocapture .NET

Avatar image
Aug 24, 2015
Archive Agent wrote
Hello,

I am building a motion detection software using the video capture .NET component,
and was wondering if someone could guide me some ideas on how to have some sort of pre-buffering technic for the video recording.

Here is what I mean...

I start the recording using on the fly recording (seperatecapture start, then pause it right away), when a detection goes over the threshold, it starts recording.
At this point I would like to have the 2-3 seconds of video that happened just before the start added to the main recording, so nothing is missed when it starts recording.

This type of feature is normally seen in motion detection software such iSpy and others (buffering video).

Any tips or code ideas would be appreciated. I use VB.net, but I could convert C# code.

Thank you,

Martin

androidxman on November 20, 2013 15:34
Completed
0
Vote
Reply
3 Answers
Aug 24, 2015
Archive Agent agent wrote
Roman Minyaylov

Hi

You can implement buffer and update data from buffer using OnVideoFrameBuffer event.

on November 20, 2013 17:32
Aug 24, 2015
Archive Agent agent wrote
androidxman

Hi,

Thanks for the answer, but could you guide me a bit more on this. How would I trap the frames (30 secs before the official recording) then add it to the seperatecaptureresume video file it will save when it stops? I am a bit lost on this.

on December 03, 2013 16:54
Aug 24, 2015
Archive Agent agent wrote
Roman Minyaylov

I told it already... Cache video frames into queue or array of frames and push to to event at required time.

on December 03, 2013 17:17