Page 1 of 1

Events not being triggered as expected

Posted: Fri Mar 03, 2023 3:47 pm
by keet
I've added a new camera to my house and I'm struggling to get it to record events as expected. It is placed over the garage doors looking down into the driveway. I've set up 2 zones, one on the concrete and one in the grass. I've used linked monitors as I read that processing on the HD stream can be resource-intensive. The HD stream (set to Nodect) is linked to the SD stream (set to Modect) where I've configured the motion detection.

The issue is that obvious motion events (such as an adult walking through the frame or cars coming/going in the drive) are not being triggered, regardless of which preset I use for the zones, but large events, such as headlights sweeping the drive or a lightning flash, will. As a test, I will walk the path marked in orange on the attached screenshot to attempt to trigger the event; my driveway zone goes to the near edge of the sidewalk and covers the visible concrete.

Walking through the grass is never triggered, nor is the path across the end of the drive. I will wait in the side yard for a few seconds, to run out the buffer, then return to the start. Generally, motion isn't detected until I'm at the red X where, because of my height and the placement of the camera, my head goes to the top of the trigger zone.

Additionally, there is no audio captured with the stream, either in the event playback or in the exported videos. I've confirmed the stream has audio by putting the source URL in VLC where I can hear the goings on outside. I have ticked the "Whether to store the audio stream when saving an event" box in the Storage tab.

Admittedly, I know just enough to be dangerous with this program and I'm assuming there's something obvious to a more seasoned user that will explain this... My monitor setups, which used ONVIF to create, are as follows:

SD Stream
Monitor
Resolution: 1280x720
Image Buffer Size: 60
Maximum Image Buffer Size: 0
Warmup Frames: 15
Pre Event Image Count: 30
Post Event Image Count: 5
Stream Replay Image Buffer: 0
Alarm Frame Count: 1
Zone(s)
Units: Percent
Alarm Check Method: Alarmed Pixels
Min/Max Pixel Threshold: 60, [blank]
Min/Max Alarmed Area: 20, [blank]
Overload Frame Ignore Count: 0

HD Stream
Monitor
Resolution: 12688x1520
Image Buffer Size: 60
Maximum Image Buffer Size: 0
Warmup Frames: 15
Pre Event Image Count: 30
Post Event Image Count: 5
Stream Replay Image Buffer: 0
Alarm Frame Count: 1
Zone
None Defined

Re: Events not being triggered as expected

Posted: Sat Mar 04, 2023 1:21 am
by dougmccrary
Try changing your Zone units from % to pixels.

Re: Events not being triggered as expected

Posted: Sat Mar 04, 2023 6:59 pm
by iconnor
ANd reduce the minimum values to around 500

Re: Events not being triggered as expected

Posted: Mon Mar 06, 2023 3:06 pm
by keet
Thank you for the suggestions, guys; that got things working as expected!

Any suggestions to fix the audio capture issues?

Re: Events not being triggered as expected

Posted: Tue Mar 07, 2023 6:09 am
by dougmccrary
What does VLC say about the audio?
I think there are cams that that checkbox doesn't work with. Not sure there's a fix, but you'd need to know what the cam is sending to find a fix.

Re: Events not being triggered as expected

Posted: Tue Mar 07, 2023 4:10 pm
by keet
Good suggestion. In VLC, under Tools > Codec Information I have the following:

Stream 0
  • Codec: MPEG-H Part2/HEVC (H.265) (hevc)
    Type: Video
    Video Resolution: 2688x1520
    Buffer Dimensions: 2688x1520
    Frame Rate: 20
    Decoded Format:
    Orientation: Top Left
    Chroma Location: Left
Stream 1
  • Codec: PCM MU-LAW (mlaw)
    Type: Audio
    Channels: Mono
    Sample rate: 8000 Hz
    Bits per Sample: 16

Re: Events not being triggered as expected

Posted: Wed Mar 08, 2023 8:25 am
by dougmccrary
mine are alaw and work.
Screenshot from 2023-03-08 00-22-01.png
Screenshot from 2023-03-08 00-22-01.png (69.39 KiB) Viewed 2116 times
So, got any audio options on your camera?

Re: Events not being triggered as expected

Posted: Wed Mar 08, 2023 3:03 pm
by keet
Not a ton...
Screenshot 2023-03-08 090202.png
Screenshot 2023-03-08 090202.png (12.67 KiB) Viewed 2100 times
And just to make sure I didn't do something dumb, here's my setup in ZM:
Screenshot 2023-03-08 090209.png
Screenshot 2023-03-08 090209.png (20.01 KiB) Viewed 2100 times

Re: Events not being triggered as expected

Posted: Thu Mar 09, 2023 9:29 am
by dougmccrary
See if there's a g711 or g.711 no "U" That'll prolly work.

Re: Events not being triggered as expected

Posted: Thu Mar 09, 2023 3:00 pm
by keet
Well, I do have a G.711A but it's my only other option...
Screenshot 2023-03-09 085643.png
Screenshot 2023-03-09 085643.png (15.03 KiB) Viewed 2074 times

And here is the new codec info
Screenshot 2023-03-09 085634.png
Screenshot 2023-03-09 085634.png (13.31 KiB) Viewed 2074 times

Just so I know what I should be expecting - should I hear audio in the web playback in the ZM Console? I'm not getting anything there or in the exported videos. Are there any known issues using Firefox?

Re: Events not being triggered as expected

Posted: Thu Mar 09, 2023 8:37 pm
by dougmccrary
should I hear audio in the web playback in the ZM Console?
Of a recording, yes. The live view doesn't give sound presently, although I think it did at some point.
I'm not getting anything there or in the exported videos.
You should have sound on any playback, from anywhere in or out of ZM.
Are there any known issues using Firefox?
Well, yes, but not zm specific AFAIK.

I think the problem now is "just" saving JPEGs. Analysis is OK, but you need camera passthrough, I think. Less cpu and storage load, too.

Re: Events not being triggered as expected

Posted: Fri Oct 06, 2023 5:07 pm
by keet
Just wanted to follow up on this from forever ago. I changed the video writer in the monitor storage settings to camera passthrough and now I'm capturing camera audio. I did have to change the encoding of one of my cameras to H.264 to get the audio and camera passthrough to work. Happy days!

Re: Events not being triggered as expected

Posted: Sat Oct 07, 2023 12:00 am
by dougmccrary
Yay! :D