Solved

Capture video before and after a trigger

Posted on 2011-03-25
4
306 Views
Last Modified: 2013-11-13
I am looking for ideas on how to achieve the following:

1. A video camera streams feed continuously, but it is not recorded
2. An event occurs - e.g a door is opened, triggering a switch
3. The video from 30s before the event and up to 30s after the event is captured and saved to disk
4. The system waits for any subsequent events and repeats the process.

The video stream is going to be VGA standard at 25fps - any hints?
0
Comment
Question by:cquinn
  • 2
4 Comments
 
LVL 38

Expert Comment

by:lherrou
ID: 35218241
cquinn,

There's a lot of motion detection software out there, and the state of the art is pretty good. Do you have to have a physical trigger? Because that gets a lot more complicated.

Cheers,
LHerrou
0
 
LVL 15

Author Comment

by:cquinn
ID: 35219932
It has to be a trigger, as there will already be a lot of motion in the frame, so motion detection is out.

The trigger may not be physical - it could be generated form a smart phone for example - imagine it is a sport being played and we wish to record a significant event such as a home run, or touchdown, and the event is triggered by an onlooker - by the time they signal the event, it has already passed, which is why we need to timeslip back up to 30 seconds to capture the build up to the event, the eevent itself and its immediate aftermathy.
0
 
LVL 5

Accepted Solution

by:
KenIBrown2 earned 250 total points
ID: 35244874
It seems to me that the problem is finding some software that can buffer 30s video but in some temp storage, and then on demand (and also say 30s later after capturing another 30s,) commit that 60s temp storage to a single file that is somehow tagged with the time/date say, & then saved as a 'proper' file.

How about finding an app that can save video to named files in (say) 1s chunks. Keep track of these chunks in a circular buffer style, and when your event is triggered ( or rather 30s later) : flag for the set of 60 x 1s-chunk-files to be copied out to some say folder whos name represents the trigger time.

...Then offline concatenate the 60 sep files into one...

I can only think of MaxMSP/Jitter that could actually do this in my limited experience.


0
 
LVL 15

Author Closing Comment

by:cquinn
ID: 35308632
We are going to use ffmpeg for the splicing and slicing, after capturing in one minute chunks.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Can Blu ray 3D be viewed on DVD player? 9 446
Monitors - I need a new one 2 196
Video/audio Recording tool 14 104
How to extract back songs to MP3 files 19 84
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
: Microsoft Office Collaborate for free and online versions of Microsoft  Word, Excel, Powerpoint, OneNote, Onedrive , Email, Calendar etc. In short we can say that Microsoft office is a suite of servers, applications and services developed by  Micr…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now