ONVIF Probing for ZoneMinder

ONVIF Plug’n’Play

I used the ONVIF API I had assembled to build an automatic configurator for ONVIF cameras in ZoneMinder.

Essentially I put the files from my zm-onvif poject in a folder onvif in my local copy of the ZoneMinder sources. I then added some files to integrate both parts. The most complex task for me was to understand the ZoneMinder architecture.

I have not had the time to upload the code, yet. I uploaded the code and made a pull request to include it in ZoneMinder.
Meanwhile I made some screen shots of my local installation:

 

This post is part of The ONVIF series. See the other posts in the series here.

Advertisements

Tags: , , , ,

14 responses to “ONVIF Probing for ZoneMinder”

  1. Dan says :

    Hi Jan,
    I was wondering if you are ever going to upload your files to ZM for Probing the Onvif cams.
    Thanks

  2. Jan M. Hochstein says :

    Hi Dan,
    my ONVIF extension to ZM does not currently support PTZ. (Mainly because my own cameras don’t.) ZM itself does support PTZ. So there should be a way of saving your camera’s capabilities in the ZM monitor definition. If you want to extend this yourself then you can start with the file web/skins/classic/views/monitor.php in the ZM sources.

    • Dan says :

      Thank you Jan, but I know nothing about coding. The last time I did any coding was around 1982. You probability never heard of the language “Commodore BASIC”. Most likely way before your time.

      Example:
      10 A = 10
      20 PRINT “Hello”
      30 A = A + 1
      40 IF A < 5 THEN 20
      50 END
      RUN
      Hello
      Hello
      Hello
      Hello
      Hello

      Not quite the same as today's coding. I'd be no help for anyone including myself, so until someone gets a HOOTOO PTZ and wants to do the coding for it, I'm SOL
      Thanks for replying anyway… 🙂
      Dan

  3. Emil says :

    Nice work. I installed latest zm from ppa and i hit The ONVIF-Button but i get this:

    “Unable to probe network cameras, status is ‘2’”

  4. Emil Axfors says :

    Hi.
    Installed Zm 1.29 from ppa and gott the “ONVIF” link in “add new monitor menu”
    http://192.168.1.109/zm/index.php?view=onvifprobe&mid=0

    but when pressed i get this:
    Unable to probe network cameras, status is ‘2’

    • Jan M. Hochstein says :

      You can see more detail if you run `zmonvif-probe.pl -v probe` from the command line. From the error messages you should be able to tell what went wrong.

    • Daniel says :

      I ran into the same issue (on Ubuntu Server 15.10), and partially solved it by installing the following packages:

      libclass-std-fast-perl
      libdata-dump-perl
      libsoap-wsdl-perl
      libdigest-sha-perl
      libdigest-perl
      libio-socket-multicast-perl

      In addition, ‘/usr/share/perl5/WSSecurity/SecuritySerializer.pm’ must be edited to use the ‘SHA’ package instead of ‘SHA1’ (since Ubuntu doesn’t have a SHA1 perl module as of at least 12.04).

      However, I now run into a different issue. The ONVIF probing window opens and displays properly, but none of my cameras are discovered. Running ‘zmonvif-probe.pl -v probe’ in terminal gives me the following output: http://pastebin.com/v84mkF5X

      Any ideas? Is this an issue with the cameras? Becasue ONVIF Device Manager finds all 50+ of my cameras, and only a few of them don’t load properly.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: