Link to home
Start Free TrialLog in
Avatar of cquinn
cquinnFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Capture video before and after a trigger

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?
Avatar of lherrou
lherrou
Flag of Ukraine image

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
Avatar of cquinn

ASKER

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.
ASKER CERTIFIED SOLUTION
Avatar of Kenneth Brown
Kenneth Brown
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of cquinn

ASKER

We are going to use ffmpeg for the splicing and slicing, after capturing in one minute chunks.