Can't have more than 5 monitors active?

Forum for questions and support relating to the 1.32.x releases only.
Post Reply
Chimaera
Posts: 21
Joined: Mon Apr 15, 2019 8:13 pm

Can't have more than 5 monitors active?

Post by Chimaera »

I have a new Pi 4 running Buster with ZM 1.32.3. I'm using a bunch of Amcrest cams over RTSP and they work fine until I try to add the 6th monitor, which won't come up (errors below). If I remove a previously working monitor, the new one comes up. Try to add a 6th, same issue. Doesn't matter which order or which substreams, it's always 5 works then 6th fails.

I had this working in a virtual Centos 7 box without issue, with less ram (2gb vs 4 on the Pi) so I don't think it's that. Any ideas???

Code: Select all

Jul 15 07:37:08 localhost zmc_m24[12069]: DB1 [zmc_m24] [Success finding decoder (h264_mmal)]
Jul 15 07:37:08 localhost zmc_m24[12069]: DB1 [zmc_m24] [Video Found decoder h264_mmal]
Jul 15 07:37:08 localhost zmc_m24[12069]: DB1 [zmc_m24] [Dumping stream index i(0) index(0)]
Jul 15 07:37:08 localhost zmc_m24[12069]: DB1 [zmc_m24] [    Stream #0:0]
Jul 15 07:37:08 localhost zmc_m24[12069]: DB1 [zmc_m24] [, frames:28, timebase: 1/90000]
Jul 15 07:37:08 localhost zmc_m24[12069]: DB1 [zmc_m24] [: Video: h264 (High), yuvj420p(pc, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9]]
Jul 15 07:37:08 localhost zmc_m24[12069]: DB1 [zmc_m24] [10 fps, ]
Jul 15 07:37:08 localhost zmc_m24[12069]: DB1 [zmc_m24] [90k stream tb numerator , ]
Jul 15 07:37:08 localhost zmc_m24[12069]: DB1 [zmc_m24] [20 codec time base:]
Jul 15 07:37:08 localhost zmc_m24[12069]: DB1 [zmc_m24] [#012]
Jul 15 07:37:08 localhost zmc_m24[12069]: DB1 [zmc_m24] [Calling avcodec_open2]
Jul 15 07:37:08 localhost zmc_m24[12069]: DB1 [zmc_m24] [HWACCEL not in use]
Jul 15 07:37:08 localhost zmc_m24[12069]: DB1 [zmc_m24] [Audio Found decoder]
Jul 15 07:37:08 localhost zmc_m24[12069]: DB1 [zmc_m24] [Dumping stream index i(1) index(0)]
Jul 15 07:37:08 localhost zmc_m24[12069]: DB1 [zmc_m24] [    Stream #0:1]
Jul 15 07:37:08 localhost zmc_m24[12069]: DB1 [zmc_m24] [, frames:46, timebase: 1/16000]
Jul 15 07:37:08 localhost zmc_m24[12069]: DB1 [zmc_m24] [: Audio: aac (LC), 16000 Hz, mono, fltp]
Jul 15 07:37:08 localhost zmc_m24[12069]: DB1 [zmc_m24] [#012]
Jul 15 07:37:08 localhost zmc_m24[12069]: DB1 [zmc_m24] [Calling avcodec_open2]
Jul 15 07:37:08 localhost zmc_m24[12069]: DB1 [zmc_m24] [Calling sws_isSupportedInput]
Jul 15 07:37:08 localhost zmc_m24[12069]: WAR [zmc_m24] [Unable to receive frame 0: Resource temporarily unavailable, continuing]
Jul 15 07:37:08 localhost zma_m24[12071]: DB1 [zma_m24] [Waiting for capture daemon]
Jul 15 07:37:08 localhost zmc_m24[12069]: WAR [zmc_m24] [Unable to receive frame 0: Resource temporarily unavailable, continuing]
Jul 15 07:37:08 localhost zmc_m24[12069]: WAR [zmc_m24] [Unable to receive frame 0: Resource temporarily unavailable, continuing]
Jul 15 07:37:08 localhost zmc_m24[12069]: WAR [zmc_m24] [Unable to receive frame 0: Resource temporarily unavailable, continuing]
Jul 15 07:37:09 localhost zmc_m24[12069]: WAR [zmc_m24] [Unable to receive frame 0: Resource temporarily unavailable, continuing]
Jul 15 07:37:09 localhost zmc_m24[12069]: WAR [zmc_m24] [Unable to receive frame 0: Resource temporarily unavailable, continuing]
Jul 15 07:37:09 localhost zmc_m24[12069]: WAR [zmc_m24] [Unable to receive frame 0: Resource temporarily unavailable, continuing]
Jul 15 07:37:09 localhost zmc_m24[12069]: WAR [zmc_m24] [Unable to receive frame 0: Resource temporarily unavailable, continuing]
Jul 15 07:37:09 localhost zmc_m24[12069]: WAR [zmc_m24] [Unable to receive frame 0: Resource temporarily unavailable, continuing]
Jul 15 07:37:09 localhost zmc_m24[12069]: WAR [zmc_m24] [Unable to receive frame 0: Resource temporarily unavailable, continuing]
Jul 15 07:37:09 localhost zmc_m24[12069]: WAR [zmc_m24] [Unable to receive frame 0: Resource temporarily unavailable, continuing]
Jul 15 07:37:09 localhost zmc_m24[12069]: WAR [zmc_m24] [Unable to receive frame 0: Resource temporarily unavailable, continuing]
Jul 15 07:37:09 localhost zmc_m24[12069]: WAR [zmc_m24] [Unable to receive frame 0: Resource temporarily unavailable, continuing]
Jul 15 07:37:09 localhost zmc_m24[12069]: WAR [zmc_m24] [Unable to receive frame 0: Resource temporarily unavailable, continuing]
Jul 15 07:37:09 localhost zmc_m24[12069]: WAR [zmc_m24] [Unable to receive frame 0: Resource temporarily unavailable, continuing]
Jul 15 07:37:09 localhost zmc_m24[12069]: WAR [zmc_m24] [Unable to receive frame 0: Resource temporarily unavailable, continuing]
Jul 15 07:37:09 localhost zmc_m24[12069]: ERR [zmc_m24] [Unable to send packet at frame 0: Unknown error occurred, continuing]
Jul 15 07:37:09 localhost zmc_m24[12069]: ERR [zmc_m24] [Unable to send packet at frame 0: Unknown error occurred, continuing]
Jul 15 07:37:09 localhost zma_m24[12071]: DB1 [zma_m24] [Waiting for capture daemon]
Jul 15 07:37:10 localhost zmc_m24[12069]: ERR [zmc_m24] [Unable to send packet at frame 0: Unknown error occurred, continuing]
Jul 15 07:37:10 localhost zmc_m24[12069]: ERR [zmc_m24] [Unable to send packet at frame 0: Unknown error occurred, continuing]
Jul 15 07:37:10 localhost zmc_m24[12069]: ERR [zmc_m24] [Unable to send packet at frame 0: Unknown error occurred, continuing]
Jul 15 07:37:10 localhost zmc_m24[12069]: ERR [zmc_m24] [Unable to send packet at frame 0: Unknown error occurred, continuing]
Jul 15 07:37:10 localhost zmc_m24[12069]: ERR [zmc_m24] [Unable to send packet at frame 0: Unknown error occurred, continuing]
Jul 15 07:37:10 localhost zmc_m24[12069]: ERR [zmc_m24] [Unable to send packet at frame 0: Unknown error occurred, continuing]
Jul 15 07:37:10 localhost zmc_m24[12069]: ERR [zmc_m24] [Unable to send packet at frame 0: Unknown error occurred, continuing]
Jul 15 07:37:10 localhost zmc_m24[12069]: ERR [zmc_m24] [Unable to send packet at frame 0: Unknown error occurred, continuing]
Jul 15 07:37:10 localhost zma_m24[12071]: DB1 [zma_m24] [Waiting for capture daemon]
Jul 15 07:37:10 localhost zmeventnotification[4307]: DBG [---------->Tick START<--------------]
Jul 15 07:37:10 localhost zmeventnotification[4307]: DBG [After tick: TOTAL: 0, FCM+WEB: 0, FCM: 0, WEB: 0, MQTT:0, invalid WEB: 0, PENDING: 0]
Jul 15 07:37:10 localhost zmeventnotification[4307]: DBG [Empty job queue]
Jul 15 07:37:10 localhost zmc_m24[12069]: ERR [zmc_m24] [Unable to send packet at frame 0: Unknown error occurred, continuing]
Jul 15 07:37:10 localhost zmeventnotification[4307]: INF [re-loading monitor Amcrest2]
Jul 15 07:37:11 localhost zmeventnotification[4307]: DBG [checkEvents() events found=0]
Jul 15 07:37:11 localhost zmeventnotification[4307]: DBG [---------->Tick END<--------------]
Jul 15 07:37:11 localhost zmc_m24[12069]: ERR [zmc_m24] [Unable to send packet at frame 0: Unknown error occurred, continuing]
Jul 15 07:37:11 localhost zmc_m24[12069]: ERR [zmc_m24] [Unable to send packet at frame 0: Unknown error occurred, continuing]
Jul 15 07:37:11 localhost zmc_m24[12069]: ERR [zmc_m24] [Unable to send packet at frame 0: Unknown error occurred, continuing]
Jul 15 07:37:11 localhost zmc_m24[12069]: ERR [zmc_m24] [Unable to send packet at frame 0: Unknown error occurred, continuing]
Jul 15 07:37:11 localhost zmc_m24[12069]: ERR [zmc_m24] [Unable to send packet at frame 0: Unknown error occurred, continuing]
Jul 15 07:37:11 localhost zmc_m24[12069]: ERR [zmc_m24] [Unable to send packet at frame 0: Unknown error occurred, continuing]
Jul 15 07:37:11 localhost zmc_m24[12069]: ERR [zmc_m24] [Unable to send packet at frame 0: Unknown error occurred, continuing]
Jul 15 07:37:11 localhost zma_m24[12071]: DB1 [zma_m24] [Waiting for capture daemon]
Jul 15 07:37:11 localhost zmc_m24[12069]: ERR [zmc_m24] [Unable to send packet at frame 0: Unknown error occurred, continuing]
Jul 15 07:37:12 localhost zmc_m24[12069]: ERR [zmc_m24] [Unable to send packet at frame 0: Unknown error occurred, continuing]
Jul 15 07:37:12 localhost zmc_m24[12069]: ERR [zmc_m24] [Unable to send packet at frame 0: Unknown error occurred, continuing]
Jul 15 07:37:12 localhost zmc_m24[12069]: ERR [zmc_m24] [Unable to send packet at frame 0: Unknown error occurred, continuing]
Jul 15 07:37:12 localhost zmc_m24[12069]: ERR [zmc_m24] [Unable to send packet at frame 0: Unknown error occurred, continuing]
Jul 15 07:37:12 localhost zmc_m24[12069]: ERR [zmc_m24] [Unable to send packet at frame 0: Unknown error occurred, continuing]
Jul 15 07:37:12 localhost zmc_m24[12069]: ERR [zmc_m24] [Unable to send packet at frame 0: Unknown error occurred, continuing]
Jul 15 07:37:12 localhost zmc_m24[12069]: ERR [zmc_m24] [Unable to send packet at frame 0: Unknown error occurred, continuing]
Jul 15 07:37:12 localhost zma_m24[12071]: DB1 [zma_m24] [Waiting for capture daemon]
Jul 15 07:37:12 localhost zmc_m24[12069]: ERR [zmc_m24] [Unable to send packet at frame 0: Unknown error occurred, continuing]
Jul 15 07:37:13 localhost zmc_m24[12069]: ERR [zmc_m24] [Unable to send packet at frame 0: Unknown error occurred, continuing]
Jul 15 07:37:13 localhost zmc_m24[12069]: ERR [zmc_m24] [Unable to send packet at frame 0: Unknown error occurred, continuing]
Jul 15 07:37:13 localhost zmc_m24[12069]: ERR [zmc_m24] [Unable to send packet at frame 0: Unknown error occurred, continuing]
Jul 15 07:37:13 localhost zmc_m24[12069]: ERR [zmc_m24] [Unable to send packet at frame 0: Unknown error occurred, continuing]
Jul 15 07:37:13 localhost zmc_m24[12069]: ERR [zmc_m24] [Unable to send packet at frame 0: Unknown error occurred, continuing]
Jul 15 07:37:13 localhost zmc_m24[12069]: ERR [zmc_m24] [Unable to send packet at frame 0: Unknown error occurred, continuing]
Jul 15 07:37:13 localhost zmc_m24[12069]: ERR [zmc_m24] [Unable to send packet at frame 0: Unknown error occurred, continuing]
Jul 15 07:37:13 localhost zmc_m24[12069]: ERR [zmc_m24] [Unable to send packet at frame 0: Unknown error occurred, continuing]
Jul 15 07:37:13 localhost zma_m24[12071]: DB1 [zma_m24] [Waiting for capture daemon]
Jul 15 07:37:13 localhost zmc_m24[12069]: ERR [zmc_m24] [Unable to send packet at frame 0: Unknown error occurred, continuing]
Jul 15 07:37:14 localhost zmwatch[4303]: DBG [Monitor 3 LastWriteTime is 1563190634.]
Jul 15 07:37:14 localhost zmwatch[4303]: DBG [Monitor 3 last captured 0 seconds ago, max is 5]
Jul 15 07:37:14 localhost zmwatch[4303]: DBG [Monitor 3 last analysed 1 seconds ago, max is 5]
Jul 15 07:37:14 localhost zmwatch[4303]: DBG [Monitor 12 LastWriteTime is 1563190634.]
Jul 15 07:37:14 localhost zmwatch[4303]: DBG [Monitor 12 last captured 0 seconds ago, max is 5]
Jul 15 07:37:14 localhost zmwatch[4303]: DBG [Monitor 12 last analysed 0 seconds ago, max is 5]
Jul 15 07:37:14 localhost zmwatch[4303]: DBG [Monitor 14 LastWriteTime is 1563190634.]
Jul 15 07:37:14 localhost zmwatch[4303]: DBG [Monitor 14 last captured 0 seconds ago, max is 5]
Jul 15 07:37:14 localhost zmwatch[4303]: DBG [Monitor 14 last analysed 1 seconds ago, max is 5]
Jul 15 07:37:14 localhost zmwatch[4303]: DBG [Monitor 16 LastWriteTime is 1563190634.]
Jul 15 07:37:14 localhost zmwatch[4303]: DBG [Monitor 16 last captured 0 seconds ago, max is 5]
Jul 15 07:37:14 localhost zmwatch[4303]: DBG [Monitor 16 last analysed 0 seconds ago, max is 5]
Jul 15 07:37:14 localhost zmwatch[4303]: DBG [Monitor 23 LastWriteTime is 1563190634.]
Jul 15 07:37:14 localhost zmwatch[4303]: DBG [Monitor 23 last captured 0 seconds ago, max is 5]
Jul 15 07:37:14 localhost zmwatch[4303]: DBG [Monitor 23 last analysed 0 seconds ago, max is 5]
Jul 15 07:37:14 localhost zmwatch[4303]: DBG [Monitor 24 LastWriteTime is 0.]
Jul 15 07:37:14 localhost zmwatch[4303]: INF [Restarting capture daemon for Amcrest2, no image since startup. Startup time was 1563190625 - now 1563190634 > 5]
Jul 15 07:37:14 localhost zmwatch[4303]: DBG [Command: /usr/bin/zmdc.pl stop zma -m 24]
bbunge
Posts: 2932
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Can't have more than 5 monitors active?

Post by bbunge »

You are out of memory in tmpfs AKA /dev/shm. With a Pi you should feel lucky to get one camera to run.

Also, set Zoneminder to capture .jpgs and turn off video storage.

And your API will not work as there is a problem with Buster that has not been solved...yet.
Chimaera
Posts: 21
Joined: Mon Apr 15, 2019 8:13 pm

Re: Can't have more than 5 monitors active?

Post by Chimaera »

API is working fine, other than notifications. I can use ZMninja but not get push notifications. Video storage is on a NAS over ethernet not the Pi so speed isn't an issue there.

Pi 4 has 4gb ram, more than my Centos 7 VM had so /dev/shm should be fine too, it's 2gb with 1.5gb free.
Post Reply