new camera keeps disconnecting

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
tmyvon
Posts: 5
Joined: Wed Dec 07, 2022 7:43 pm

new camera keeps disconnecting

Post by tmyvon »

I have a new camera on my system, an Amcrest ASH-22. It will randomly disconnect from ZM.. It sometimes stays connected for weeks, then goes away. Sometimes days. Each time, the camera is still running.. I can look at it from the local amcrest config tools, it responds to ping. But ZM does not like it. I've tried changing the zm config, restarting ZM, etc.. nothing works. The only thing that works is powercycling the camera. Obviously not ideal if i am away from home.
The logs on the last disconnect show this:

Code: Select all

12/20/22, 6:37:49 AM EST	zmc_m1		1008	WAR	Monitor dimensions are 1280x720 but camera is sending 1920x1080 	  zm_ffmpeg_camera.cpp	579
and about 10 minutes later:

Code: Select all

12/20/22, 6:46:34 AM EST	zmc_m1		1008	INF	Unable to read packet from stream 0: error -541478725 "End of file".
then hours of this:

Code: Select all

12/20/22, 6:47:10 AM EST	zmc_m1		1008	ERR	Failed to prime capture of initial monitor	zmc.cpp	258
12/20/22, 6:47:10 AM EST	zmc_m1		1008	ERR	Unable to open input rtsp://192.XXX.XXX.XXX:554/cam/realmonitor?channel=1&subtype=0 due to: Immediate exit requested	zm_ffmpeg_camera.cpp	325
12/20/22, 6:46:57 AM EST	zmc_m1		1008	ERR	Failed to prime capture of initial monitor	zmc.cpp	258
12/20/22, 6:46:57 AM EST	zmc_m1		1008	ERR	Unable to open input rtsp://192.XXX.XXX.XXX:554/cam/realmonitor?channel=1&subtype=0 due to: Immediate exit requested	zm_ffmpeg_camera.cpp	325
12/20/22, 6:46:45 AM EST	zmc_m1		1008	ERR	Unable to open input rtsp://192.XXX.XXX.XXX:554/cam/realmonitor?channel=1&subtype=0 due to: Immediate exit requested	zm_ffmpeg_camera.cpp	325
12/20/22, 6:46:34 AM EST	zmc_m1		1008	ERR	Failed to capture image from monitor 1 Front (1/1)	zmc.cpp	305
and it stays down. I changed the dimensions but that didnt force a reconnect. I'm hoping maybe that will work,but i've noticed the system resources are fine, so i dont think its system related.

Thanks in advance.
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: new camera keeps disconnecting

Post by Magic919 »

Sounds like it's the camera, not ZM.
-
dougmccrary
Posts: 1340
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: new camera keeps disconnecting

Post by dougmccrary »

Wireless or Ethernet?
I’ve seen bad power cause similar.
User avatar
iconnor
Posts: 3280
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: new camera keeps disconnecting

Post by iconnor »

If the camera's keyfrae interval is really huge, it can take longer than 10 seconds for ffmpeg to connect. Try increasing WATCH_MAX_DELAY under Options->System.

I would increase debug logging and hopefully ffmpeg will report more info.
Post Reply