Montage will only display 6 of 8 cameras

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
montreal73
Posts: 9
Joined: Fri Sep 16, 2022 7:57 pm

Montage will only display 6 of 8 cameras

Post by montreal73 »

Hi,
I am running Ubuntu 22.04.1 LTS and Zoneminder 1.36.25. I have 8 cameras working. If I set Zoneminder to 'Cycle', each camera displays correctly. If I go to Montage Review, I can see all 8 camera's images.

However, if I go to 'Montage', I only see 6 camera images. They are all showing live video but the page never finishes loading, no matter how long I wait. Weirdly, it is not always the same six cameras. I have tried Firefox and Chromium. I have tried on the computer running Zoneminder and on a separate computer on the same network.

I have gone to Options/Web and turned on web_compact_montage. It does not seem to make a difference. In Montage, I have tried rows of three and rows of 4 and rows of 5. The extra images are not under any of the other images.

Source is Ffmpeg. Method TCP. Mix of Amcrest and ReoLink cameras. Load around 2-3.

What am I missing? Any suggestions?
dougmccrary
Posts: 1322
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: Montage will only display 6 of 8 cameras

Post by dougmccrary »

Yeah, that's a browser limitation.
You need multi-port.

https://medium.com/zmninja/multi-port-s ... 836a336c93
amremington
Posts: 6
Joined: Thu Sep 15, 2022 10:34 pm

Re: Montage will only display 6 of 8 cameras

Post by amremington »

I just posted about this as well and was given the same info. The link above worked perfect and was easy to follow.
pat2
Posts: 157
Joined: Fri Sep 16, 2016 6:35 pm

Re: Montage will only display 6 of 8 cameras

Post by pat2 »

Multi-port works.

More easy use firefox and follow https://zoneminder.readthedocs.io/en/1.34.7/faq.html (see section I have several monitors configured but when I load the Montage view in FireFox why can I only see two? or, Why don’t all my cameras display when I use the Montage view in FireFox?)

I have 11 cameras working fine in "Montage" view
---------------------------------------------------------------------------
ZM 1.36.36 - 14 cameras on Orange Pi 5 (arm64) - Ubuntu Jammy 22.04
dougmccrary
Posts: 1322
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: Montage will only display 6 of 8 cameras

Post by dougmccrary »

More easy use firefox and
If it's just you and you use the same computer all the time, yes.

Multiport is a universal solution. Works on any browser AFAIK.
pat2
Posts: 157
Joined: Fri Sep 16, 2016 6:35 pm

Re: Montage will only display 6 of 8 cameras

Post by pat2 »

I agree, Doug. For public use it's the solution.

For private use, I decided just to replicate the same Firefox configuration on another PC. Moreover with ZM Ninja (on mobile,...) there is no limitation.
To avoid to do multiple port forwarding on the router...
---------------------------------------------------------------------------
ZM 1.36.36 - 14 cameras on Orange Pi 5 (arm64) - Ubuntu Jammy 22.04
montreal73
Posts: 9
Joined: Fri Sep 16, 2022 7:57 pm

Re: Montage will only display 6 of 8 cameras

Post by montreal73 »

Thank you for your replies. They solved the problem. I took the easy out and did the Firefox method.

I had been running zmNinja Montage before I gave into my 'new shiny' temptation and moved from a well working Bionic Beaver system to Ubuntu 22.04.1.

I tried setting up ZMninja but kept running into problems. For example, .AppImage files do not run without help: https://itsfoss.com/cant-run-appimage-ubuntu/

After seeing pat2's post, I perserved and got ZM ninja working again and will use that.
dougmccrary
Posts: 1322
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: Montage will only display 6 of 8 cameras

Post by dougmccrary »

To avoid to do multiple port forwarding on the router...
On my ASUS it’s just two lines.
dougmccrary
Posts: 1322
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: Montage will only display 6 of 8 cameras

Post by dougmccrary »

To avoid to do multiple port forwarding on the router...
On my ASUS it’s just two lines.
YMMV
ncpv
Posts: 12
Joined: Mon Nov 26, 2018 5:42 pm

Re: Montage will only display 6 of 8 cameras

Post by ncpv »

You can also fix the problem by adding multiple server entries and assigning your monitors to the different servers, so that each server has no more than 5 monitors.

Check out this post: viewtopic.php?p=108940
pat2
Posts: 157
Joined: Fri Sep 16, 2016 6:35 pm

Re: Montage will only display 6 of 8 cameras

Post by pat2 »

montreal73 wrote: Sun Sep 18, 2022 3:39 pm Thank you for your replies. They solved the problem. I took the easy out and did the Firefox method.

I had been running zmNinja Montage before I gave into my 'new shiny' temptation and moved from a well working Bionic Beaver system to Ubuntu 22.04.1.

I tried setting up ZMninja but kept running into problems. For example, .AppImage files do not run without help: https://itsfoss.com/cant-run-appimage-ubuntu/

After seeing pat2's post, I perserved and got ZM ninja working again and will use that.
To summarize 2 are the possible solutions (there is a third one by ncpv).


A. firefox tweak, very easy and fast: https://zoneminder.readthedocs.io/en/1. ... in-firefox

To solve follow the instructions below:
enter about:config in the firefox's address bar, go to:

browser.cache.check_doc_frequency change 3 to a 1
browser.cache.disk.enable change True -> False
network.http.max-connections-per-server -> put a value of 100
network.http.max-persistent-connections-per-proxy -> 100 again
network.http.max-persistent-connections-per-server -> 100 again

B. multi port server configuration: if you have 3 cameras with the following id: 1, 2, 4 (note the id of camera):

- go in Zoneminder: Option-> Network-> Min_Streaming_Port 30000

- go in /etc/apache2/ports.conf (I hope you are working in https way) and add:

<IfModule ssl_module>
Listen 443
Listen 30001 # this is for my first monitor with ID=1
Listen 30002 # this is for my second monitor with ID=2
# port 30003 is not used
Listen 30004 # this is for my third monitor with ID=4
</IfModule>

- go in in your Virtualhost /etc/apache2/sites-enabled/default-ssl.conf and substitute:

<VirtualHost *:443 *:30001 *:30002 *:30004 *>
instead of
<VirtualHost *:443>

- to go in WAN, add in your router the following portforwarding rule: on my ASUS WAN->Virtual Server/Port Forwarding-> Add Profile:

Service Name HTTPS2
Protocol TCP
External Port 30001:30004 (don't mind if are port forwardind a port 30003 you will not use)
Internal IP Address 192.168.1.208 (or whatever is your LAN IP)

restart the router

sudo apachectl -t (to check if apache configuration is correct)
if ok:
sudo service apache2 restart (restart apache)
sudo service zoneminder restart (restart zm)

*********************************************************************************************************************************************

If you are in http (I do not reccomend if you are in WAN!):

- go in Zoneminder: Option-> Network-> Min_Streaming_Port 30000

- go in /etc/apache2/ports.conf and add:

Listen 80
Listen 30001 # this is for my first monitor with ID=1
Listen 30002 # this is for my second monitor with ID=2
# port 30003 is not used
Listen 30004 # this is for my third monitor with ID=4


go in in your Virtualhost /etc/apache2/sites-enabled/000-default.conf and substitute:

<VirtualHost *:80 *:30001 *:30002 *:30004 *>
instead of
<VirtualHost *:80>

- to go in WAN, add in your router the following portforwarding rule: on my ASUS WAN->Virtual Server/Port Forwarding-> Add Profile:

Service Name HTTP2
Protocol TCP
External Port 30001:30004 (don't mind if are port forwardind a port 30003 you will not use)
Internal IP Address 192.168.1.208 (or whatever is your LAN IP)

restart the router

sudo apachectl -t (to check if apache configuration is correct)
if ok:
sudo service apache2 restart (restart apache)
sudo service zoneminder restart (restart zm)
---------------------------------------------------------------------------
ZM 1.36.36 - 14 cameras on Orange Pi 5 (arm64) - Ubuntu Jammy 22.04
Post Reply