ONVIF Notifications and ZoneMinder
ONVIF triggers external events in ZoneMinder
I finally put together everything I had learned about ZoneMinder external event triggering and ONVIF VideoAnalytics.
The result is a script zmonvif-trigger.pl
that subscribes to events from several ONVIF cameras. The cameras send these events if something moves in their view field.
On reception of an ONVIF event the script generates a ZoneMinder event. Thus the ZoneMinder server does not need to analyze the video streams from several cameras. The cameras themselves watch for any movement. This saves a lot of CPU power and network bandwidth.
We can see the events in the ZoneMinder console.
If we open the event details we can see that the event has been generated by the ONVIF camera’s rule “MyMotionDetectorRule”. Moreover we can watch the video footage recorded during the event.
ZoneMinder ONVIF options
I had to enhance the ZoneMinder monitor options for the script to have the necessary technical details. We do not fill these values manually. The ONVIF probing button gathers this information and fills the options with the correct values.
This post is part of The ONVIF series. See the other posts in the series here.
This is fantastic, is your script available to the public?
wow is your script available for download ?
Have you manually set up the motion detection event on the camera’s web interface or was this done through ONVIF?
Thank you
I used the camera’s web interface.
what about reply for firsts comments?
Thank you for your interest. The script has been merged into the zoneminder codeline. If you build from source it should reside in the scripts/ folder. Or just browse it at https://github.com/ZoneMinder/zoneminder/tree/master/scripts