Frame Skip disable during alerts?
Posted: Sun May 06, 2012 10:50 pm
I like to use a script which produces a daily summary video for each camera. I like to use MoCord to get a view of the whole day, not just during alerts. As a result I need a big difference between frames per second during non-alerts and alerts.
To keep a full day's review to about 2 minutes (for camera monitoring a 'quiet' street), the video needs to progress at ~30 min (rec) per second (play) during non-alert and ~30 sec (rec) per second (play) during alert. I can't set the frame rate to be 60 x different, or my non-alert state would be one frame per ~3 seconds.
I want to use the frame skip feature to allow the motion detection to function during non-alert at ~5fps and drop down to 0.5fps. Then during an alert the fps would go up from 5 to 15 fps with zero frame drops.
This would allow the motion detection to work on 5 to 15 fps, but recording to vary from 0.5 to 15 fps.
Does anyone know how it might be possible to make this work in the code? I haven't quite figured out how all the scripts in ZM work yet, but if you could at least point me to the right script or function that determines if a frame will be dropped, I think I could work in a system flag and an if statement to check if the monitor is in alert.
Any ideas?
To keep a full day's review to about 2 minutes (for camera monitoring a 'quiet' street), the video needs to progress at ~30 min (rec) per second (play) during non-alert and ~30 sec (rec) per second (play) during alert. I can't set the frame rate to be 60 x different, or my non-alert state would be one frame per ~3 seconds.
I want to use the frame skip feature to allow the motion detection to function during non-alert at ~5fps and drop down to 0.5fps. Then during an alert the fps would go up from 5 to 15 fps with zero frame drops.
This would allow the motion detection to work on 5 to 15 fps, but recording to vary from 0.5 to 15 fps.
Does anyone know how it might be possible to make this work in the code? I haven't quite figured out how all the scripts in ZM work yet, but if you could at least point me to the right script or function that determines if a frame will be dropped, I think I could work in a system flag and an if statement to check if the monitor is in alert.
Any ideas?