Amcrest camera IP8M-2796EW-AI triggers

Current Development version likely to have breaking changes
Post Reply
VARN
Posts: 11
Joined: Sun Apr 09, 2023 3:29 pm

Amcrest camera IP8M-2796EW-AI triggers

Post by VARN »

I installed the 1.37.41 version using

Code: Select all

sudo apt remove zoneminder
autoremove
sudo apt install zoneminder
I added the repository as well but can't find the link at the moment.

I am trying to record using the on camera motion detection, I have it setup on the camera.
Zoneminder gives me this error in the log

Code: Select all

zmdc	232139	ERR	'zmalarm-server.py 15002 --log=y --event=y --alarm=n' exited abnormally, exit status 255	zmdc.pl	-
zmdc	232237	FAT	Can't exec: Bad file descriptor	zmdc.pl
Settings I use:

Code: Select all

Recording On motion
save jpegs disabled
video writer camera passthrough
output container auto

Code: Select all

General
manufacturer Amcrest
Model IP8M-2796EW-AI
Source Type Ffmpeg
groups Se
Triggers None available
I tried setting the camera to H.265, H.264H, H.264 and matching the setting in zoneminder. I noticed when I click on scan network it says the camera is 1920 x 1080 so I also tried setting it to that. The triggered events are not recorded to the disk.
I can view the live feed just fine.

Does anyone have this working and can share their settings?
VARN
Posts: 11
Joined: Sun Apr 09, 2023 3:29 pm

Re: Amcrest camera IP8M-2796EW-AI triggers

Post by VARN »

Turns out unchecking OPT_USE_ALARMSERVER got rid of that error

These are the settings I have on the Amcrest camera:
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image

And here are the setting in Zoneminder:

Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image

Do you see any settings here that are mismatched? The camera is connected to a managed switch that connects to the computer.
User avatar
iconnor
Posts: 3197
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Amcrest camera IP8M-2796EW-AI triggers

Post by iconnor »

The important code these days is built right into zmc, and you shouldn't need alarm-server.pl.

So turn on debug, and look in your zmc logs to see if it is able to listen to onvif events, and if the alarm string matches, etc.

You can use odm to see if onvif events are even being sent.

I have had success with amcrest cams with just the generic onvif code, without the amcrest specific stuff, but havn't dived in further.
VARN
Posts: 11
Joined: Sun Apr 09, 2023 3:29 pm

Re: Amcrest camera IP8M-2796EW-AI triggers

Post by VARN »

I turned on debug for everything and set it to level 9, there are no entries for onvif.

Code: Select all

8/11/23, 4:06:27 PM EDT	zmc_m2	402026	DB1	State 1 IDLE because analysis_image_count(1600)-last_alarm_count(0) = 1600 > post_event_count(5) and timestamp.tv_sec(1691784387) - recording.tv_src(0) >= min_section_length(10)	zm_monitor.cpp	2277
8/11/23, 4:06:27 PM EDT	zmc_m2	402026	DB1	!score IDLE	zm_monitor.cpp	2246
8/11/23, 4:06:27 PM EDT	zmc_m2	402026	DB1	Not analysing 1	zm_monitor.cpp	2183
8/11/23, 4:06:27 PM EDT	zmc_m2	402025	DB1	Not Decoding ? On demand	zm_monitor.cpp	2809
8/11/23, 4:06:27 PM EDT	zmc_m2	402026	DB1	State 1 IDLE because analysis_image_count(1599)-last_alarm_count(0) = 1599 > post_event_count(5) and timestamp.tv_sec(1691784387) - recording.tv_src(0) >= min_section_length(10)	zm_monitor.cpp	2277
8/11/23, 4:06:27 PM EDT	zmc_m2	402026	DB1	!score IDLE	zm_monitor.cpp	2246
8/11/23, 4:06:27 PM EDT	zmc_m2	402026	DB1	Not analysing 1	zm_monitor.cpp	2183
8/11/23, 4:06:27 PM EDT	zmc_m2	402025	DB1	Not Decoding ? On demand	zm_monitor.cpp	2809
8/11/23, 4:06:27 PM EDT	zmc_m2	402026	DB1	State 1 IDLE because analysis_image_count(1598)-last_alarm_count(0) = 1598 > post_event_count(5) and timestamp.tv_sec(1691784387) - recording.tv_src(0) >= min_section_length(10)	zm_monitor.cpp	2277
8/11/23, 4:06:27 PM EDT	zmc_m2	402026	DB1	!score IDLE	zm_monitor.cpp	2246
8/11/23, 4:06:27 PM EDT	zmc_m2	402026	DB1	Not analysing 1	zm_monitor.cpp	2183
8/11/23, 4:06:27 PM EDT	zmc_m2	402025	DB1	Not Decoding ? On demand	zm_monitor.cpp	2809
8/11/23, 4:06:27 PM EDT	zmc_m2	402026	DB1	State 1 IDLE because analysis_image_count(1597)-last_alarm_count(0) = 1597 > post_event_count(5) and timestamp.tv_sec(1691784387) - recording.tv_src(0) >= min_section_length(10)	zm_monitor.cpp	2277
8/11/23, 4:06:27 PM EDT	zmc_m2	402026	DB1	!score IDLE	zm_monitor.cpp	2246
8/11/23, 4:06:27 PM EDT	zmc_m2	402026	DB1	Not analysing 1	zm_monitor.cpp	2183
8/11/23, 4:06:27 PM EDT	zmc_m2	402025	DB1	Not Decoding ? On demand	zm_monitor.cpp	2809
8/11/23, 4:06:27 PM EDT	zmc_m2	401996	INF	Amcrest 2: 1600 - Capturing at 15.03 fps, capturing bandwidth 266792bytes/sec Analysing at 0.00 fps	zm_monitor.cpp	1790
8/11/23, 4:06:27 PM EDT	zmc_m2	402026	DB1	State 1 IDLE because analysis_image_count(1596)-last_alarm_count(0) = 1596 > post_event_count(5) and timestamp.tv_sec(1691784387) - recording.tv_src(0) >= min_section_length(10)	zm_monitor.cpp	2277
Not sure what odm is, I didn't find any settings called that. I'm guessing it's some other software? I tried the probe and the button that says onvif, neither can find the camera.
I guess I need to try and figure out how onvif works and what it does, and how to get Amcrest to communicate it to Zoneminder.
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: Amcrest camera IP8M-2796EW-AI triggers

Post by Magic919 »

It’s ONVIF Device Manager.
-
VARN
Posts: 11
Joined: Sun Apr 09, 2023 3:29 pm

Re: Amcrest camera IP8M-2796EW-AI triggers

Post by VARN »

I can only find a program called that for windows, is there one for ubuntu?

I was able to verify onvif is doing something, when I restart the camera zoneminder puts in the log it can't connect to the camera using onvif. I missed the message and the searching the logs doesn't seem to work, just stays on loading.

I tried making a new user on the camera and telling zoneminder to connect through that. Nothing changed from using the administrator account.

I did see this entry in the log

Code: Select all

8/14/23, 6:38:46 PM EDT	zmc_m2	827831	DB1	Unknown codec type 2	zm_monitor.cpp	2674
The only encoding or decoding it does is for live view and that works so I don't know what it is telling me.
Post Reply