Smart PSS - Playback IPC IVS Events from NVR

Discussion in 'Dahua' started by Jtpowell, May 15, 2018.

Share This Page

  1. Jtpowell

    Jtpowell n3wb

    Joined:
    Nov 15, 2016
    Messages:
    23
    Likes Received:
    7
    Hi,

    Is it possible to see IPC generated IVS events ("intelligent" record type) in-line with the general feed when I search on the Playback section of Smart PSS?

    • I've successfully configured IVS rules on my cameras.
      • I am able to use Event Config to record video when the IVS rules are triggered.
      • However, the video files that are created are saved locally on the client where I'm running Smart PSS--they are not saved to the NVR.
      • When I query the NVR records for my cameras, I can only return records for the general record type--no IVS triggered events are present.
    I don't know if this is even possible or how the behavior would be configured--I'd be grateful to anyone who can point me in the right direction!

    Screen shot that may help clarify what I'm looking to do:
    2018-05-15_15-27-13-0000.png

    NVR:
    DAHUA - NVR4216-4K
    Firmware: 3.210.0005.0.R.2016614

    Cameras
    :
    (x2) DAHUA - Starlight Verifocal Turrets - IPC-HDW5231R-Z
    Firmware: 2.460.0000.7.R.20170306

    Smart PSS:
    Version: 2.02.0
     
    Arjun likes this.
  2. TechBill

    TechBill Getting comfortable

    Joined:
    Nov 1, 2014
    Messages:
    946
    Likes Received:
    304
    If I recalled correctly, the motion and IVS share the same color line if you are viewing recording from the camera storage card. I did mentioned it last year about this to see if it was intended or a bug but never got a response on it. If you are not seeing any lines in your timeline for motion or iVS etc, there a post today someone mentioned that he couldn't find any IVS recording saved on the storage card in the latest firmware thread. Maybe a new bug was introduced in recent firmware and if your camera have the latest one then maybe that why you are not getting any lines in your timeline but I do recall it share the same line with motion if viewing on camera playback.
     
  3. Jtpowell

    Jtpowell n3wb

    Joined:
    Nov 15, 2016
    Messages:
    23
    Likes Received:
    7
    Good thinking--I confirmed this isn't the case by unchecking the general record type and only querying for the intelligent record type (plus alarm and MD, just to be sure).

    Also, my cameras do not have any local storage--everything is being written to the HDD in my NVR (unless I configure events to record the video feed, which causes the video clips to be saved to my local Win10 machine where I'm running Smart PSS, if I keep Smart PSS open).
     
  4. tigerwillow1

    tigerwillow1 Getting comfortable

    Joined:
    Jul 18, 2016
    Messages:
    712
    Likes Received:
    333
    I'm not familiar with this behavior because all of my events are recorded on the nvr. Doesn't matter if smartPss is open or not. Here's a sample timeline:
    timeline.jpg
     
  5. Jtpowell

    Jtpowell n3wb

    Joined:
    Nov 15, 2016
    Messages:
    23
    Likes Received:
    7
    Are your IVS rules defined on your NVR or on your cameras? I don’t have the option to define mine on my NVR.
     
  6. tigerwillow1

    tigerwillow1 Getting comfortable

    Joined:
    Jul 18, 2016
    Messages:
    712
    Likes Received:
    333
    I defined the rules on the cameras, but I'm able to do it on the nvr as well. Before I updated the firmware on my older chinese market cameras, their IVS wasn't configurable on the nvr, but the events were still recorded. All of my cameras play well with the nvr now. Are you wanting to record the IVS events on the nvr? I found that it has to be enabled in more than one place, which wasn't all that obvious to me (this is with a 5216-4ks2). I don't remember everything, but here's what I see offhand that has to be set up to record ivs events:

    1. event/ivs/period
    2. event/ivs/record channel
    3. storage/schedule

    I have to figure it out again every time I use a new channel on the nvr.
     
  7. Jtpowell

    Jtpowell n3wb

    Joined:
    Nov 15, 2016
    Messages:
    23
    Likes Received:
    7
    I’m able to define those same settings on my cameras themselves, but not on my NVR. Based on a comment in another thread, I suspect I shouldn't need to configure IVS settings on my NVR.

    I'm working under the impression for now that the way this is expected to function is my NVR should receive data from my IPC that is identified as somehow as being an IVS triggered event. I'm super vague on what's going on under the hood or what I should do to make this happen (if it's possible with my setup).
     
  8. tigerwillow1

    tigerwillow1 Getting comfortable

    Joined:
    Jul 18, 2016
    Messages:
    712
    Likes Received:
    333
    Something is not right with your setup. Your nvr firmware is slightly newer than mine, and that also looks to be the case on the 5231. I looked up a couple of prior posts I made about event recording problems that are more accurate than my current vague memory. One of the things is a silly sounding setup sequence that on the surface has nothing to do with events, but seems to fix something. Nothing to lose giving it a try.

    Dahua NVR5216-4KS2 / NVR5216-16P-4KS2
    Dahua NVR not recording Events
     
  9. TechBill

    TechBill Getting comfortable

    Joined:
    Nov 1, 2014
    Messages:
    946
    Likes Received:
    304
    Is your SmartPSS device manager connected to the NVR itself. Not the cameras?
     
  10. tigerwillow1

    tigerwillow1 Getting comfortable

    Joined:
    Jul 18, 2016
    Messages:
    712
    Likes Received:
    333
    Obvious good question!
     
  11. Jtpowell

    Jtpowell n3wb

    Joined:
    Nov 15, 2016
    Messages:
    23
    Likes Received:
    7
    It's connected to all three.

    I've also updated the firmware for my cameras to a newer version I found last night (which hasn't resolved the issue). I chose the NTSC firmware this time where I was previously using the PAL firmware--one of the links tigerwillow1 posted above made some reference to going through a similar swap that resolved this issue for someone else. Problem persists.

    New IPC firmware: 2.622.0000000.18.R.20171110


    2018-05-16_5-47-20.png
     
  12. TechBill

    TechBill Getting comfortable

    Joined:
    Nov 1, 2014
    Messages:
    946
    Likes Received:
    304

    You don't need to connect it to all three, just connect only your NVR.

    When you do a playback, did you only select the NVR to playback from?
     
  13. Jtpowell

    Jtpowell n3wb

    Joined:
    Nov 15, 2016
    Messages:
    23
    Likes Received:
    7
    I've removed my cameras from Smart PSS, leaving only the NVR. I also deleted/recreated all of my IVS triggers for good measure.

    I play back from the NVR (this is the only option since I don't have local storage in the cams).

    Here's a screen shot of my live view from the NVR (front porch is the visible channel). Note the Street tripwire is in a triggered state due a car that had just driven by. This does not result in a corresponding alarm or intelligent record type on the playback timeline, but it does demonstrate that my tripwires and their states are at least being pushed in the video stream to the NVR from the cameras. I've skimmed the API documentation this morning to see if I could wrap my head around how this should be working behind the scenes. I don't have a good understanding yet, though.

    2018-05-16_10-17-19.png
     
    Arjun likes this.
  14. Arjun

    Arjun Pulling my weight

    Joined:
    Feb 26, 2017
    Messages:
    736
    Likes Received:
    203
    Location:
    USA
    I'm sure many of us have gone through this in the earlier part of our setup. First things first--uninstall SmartPSS
    The best approach is to define all the rules within your camera's web interface (not the NVR, not through SmartPSS)--ensure that the record option is selected anytime event is triggered
    After that's all done -- perform a factory reset on your NVR (also load the latest firmware if you can locate it on Dahua's website), and reconfigure through the initial startup screen steps, reconnect all of your cameras to your NVR, ensure its set to record 24/7 (with all options selected in the schedule)

    After you're able to confirm that everything is up and running again (which includes IVS) as per your NVR,

    Reinstall SmartPSS and add back your NVR through the device configuration tool

    It should be able to sense the IVS Events again tagged by the NVR

    This seems to be an issue in the NVR firmware (latest as well as earlier versions) -- just need to followup with it every now and then. Nothing is ever set and forget
     
  15. TechBill

    TechBill Getting comfortable

    Joined:
    Nov 1, 2014
    Messages:
    946
    Likes Received:
    304
    Is the schedule on NVR set to record IVS triggers on days and time you wanted it to record?
     
    Arjun likes this.
  16. Arjun

    Arjun Pulling my weight

    Joined:
    Feb 26, 2017
    Messages:
    736
    Likes Received:
    203
    Location:
    USA
    Also, doesn't hurt to get a little creative when defining rules in IVS :)
    A few extra staggered zig-zag lines would be good
     
  17. tigerwillow1

    tigerwillow1 Getting comfortable

    Joined:
    Jul 18, 2016
    Messages:
    712
    Likes Received:
    333
    If you log onto the nvr's web interface do you see the events? (To be sure, unclick "regular". The green bars on the nvr timeline will hide short orange bars.)
     
  18. Jtpowell

    Jtpowell n3wb

    Joined:
    Nov 15, 2016
    Messages:
    23
    Likes Received:
    7
    Nope--no difference in the web GUI.
     
  19. Jtpowell

    Jtpowell n3wb

    Joined:
    Nov 15, 2016
    Messages:
    23
    Likes Received:
    7
    Yep.
     
  20. Jtpowell

    Jtpowell n3wb

    Joined:
    Nov 15, 2016
    Messages:
    23
    Likes Received:
    7
    It's absolutely possible this might resolve the issue--I've seen similar stories in these forums. I believe (for the moment) that there has to be a precise answer, though.
     
    Arjun likes this.
  21. tigerwillow1

    tigerwillow1 Getting comfortable

    Joined:
    Jul 18, 2016
    Messages:
    712
    Likes Received:
    333
    If you don't see events on the nvr's timeline, my hopefully logical conclusion is that smartPss has absolutely nothing to do with the events not being noted. The problem has to be in the camera configuration, or the nvr configuration. You could look through the nvr log and see if there are any events that were picked up. On my cameras, the camera log doesn't record IVS events, so that's no help. It looks like the camera log should note motion events. I'm going to check that out and I'll report back when I figure it out.
     
  22. Arjun

    Arjun Pulling my weight

    Joined:
    Feb 26, 2017
    Messages:
    736
    Likes Received:
    203
    Location:
    USA
    In the beginning when I was dealing with the first batch of these smart cameras, the IVS events didn't used to tagged in playback, however, I did used to see the events being saved into the NVR log. However, the IVS markers never wanted to show. The outcome may vary for each individual, but for more, performing the factory reset works. Also, better to use a dedicated PoE switch than depending on the rear of the NVR. Sometimes bandwidth issues / bottle-necking may also play some role.

     
  23. TechBill

    TechBill Getting comfortable

    Joined:
    Nov 1, 2014
    Messages:
    946
    Likes Received:
    304
    It is possible that the events is in the timeline but you need to zoom in the timeline to make the event lines thicker and more noticeable.

    Try hovering your mouse cursor over the timeline and use scroll wheel to zoom in the timeline.
     
    toolazyforalogin and Arjun like this.
  24. Arjun

    Arjun Pulling my weight

    Joined:
    Feb 26, 2017
    Messages:
    736
    Likes Received:
    203
    Location:
    USA
    Yeah, sometimes those lines are as thin as air :lol:
    It takes a little bit of trying, don't give up @Jtpowell

     
  25. tigerwillow1

    tigerwillow1 Getting comfortable

    Joined:
    Jul 18, 2016
    Messages:
    712
    Likes Received:
    333
    Attempting to help I did some experimenting. In the nvr configuration for the test camera, I shut off "record channel", and removed ivs events from the channel's storage schedule. As expected, ivs events stopped appearing on the timeline, They do, however, still appear in the nvr's log as "tripwire" events. So seeing if the events are recorded in the log might help isolate where the problem is.

    I first tried the same thing with motion detection because these events also record in the camera's log. What I found is that the nvr doesn't handle motion detect setup correctly. Lucky for me I don't need to use this.
     
  26. Jtpowell

    Jtpowell n3wb

    Joined:
    Nov 15, 2016
    Messages:
    23
    Likes Received:
    7
    I actually ruled this out by removing the general record type from the query--no results, unfortunately.
     
  27. Jtpowell

    Jtpowell n3wb

    Joined:
    Nov 15, 2016
    Messages:
    23
    Likes Received:
    7
    I hadn't thought about the log file until you posted this--I think this might be the best clue yet as to what's happening with my system. I do not see tripwire events in my system log for the NVR *nor* on the camera itself. The tripwires are there, they flash when things cross them, but there's no log entry made corresponding to it. I turned on motion detection and confirmed those will show up in the log.

    I did a factory reset on one camera, but the tripwire events still don't appear in the log. I also spent a lot of time poking around the camera and NVR APIs--this really helped me start to get a better mental model of how the functionality is structured. For now, I'm going to focus on getting the tripwire events to appear in the logs on a single camera. Perhaps the issue is further upstream than the NVR.

    While the tripwire events don't appear in my system logs, I am able to build working alarms that use them in Smart PSS. So the rules are there and are registering as events in some fashion. I'm going to put an SD card in the camera later today to see if I can get it to save locally when the tripwire is triggered.

    I really appreciate the help from you all!
     
    Arjun likes this.
  28. Arjun

    Arjun Pulling my weight

    Joined:
    Feb 26, 2017
    Messages:
    736
    Likes Received:
    203
    Location:
    USA
    Also make sure that the IVS and motion detection settings are enabled in NVR and disable Face Detection (cannot enable both at same time). Make sure schedule is same in NVR as well as camera.
    Also make sure that Smart Plan is set as IVS not as Face Detection.

    Sometimes when switching out cameras or changing port or channel number or even adding additional cameras, the NVR will create a tangled mess with the IVS settings. This is a bug that Dahua has yet to figure out (similar to time synchronization, lol)

    The issue is very similar to Microsoft Windows 10 Mess (they have hidden the good old control panel within the operating system, and they want users to transition and use the settings option instead for making changes to device configuration, lol)
     
  29. TechBill

    TechBill Getting comfortable

    Joined:
    Nov 1, 2014
    Messages:
    946
    Likes Received:
    304

    There is something amiss on your setup somewhere since IVS have worked for me in all firmware version since day 1.

    One last thing to check is make sure Smart Codec isn't enabled (if it was enabled you shouldn't been able to set up IVS anyway but double check it.)
     
    Arjun likes this.
  30. Jtpowell

    Jtpowell n3wb

    Joined:
    Nov 15, 2016
    Messages:
    23
    Likes Received:
    7
    It's off.

    I've taken this down to just a single camera and added a micro SD card to it for local storage. Leaving the NVR and other camera out of the equation for now--I can't get this to work on just one camera by itself.

    The tripwires are getting triggered, and I can create an alarm on the camera that logs the event (though it logs it only within the Alarm tab--the event still doesn't appear on the camera's main log for all record types). However, the tripwire does not cause a corresponding recording or snapshot to occur (and they're set up).