Can only view one stream at a time for the same camera

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
xiki
Posts: 3
Joined: Mon Apr 12, 2021 8:23 pm

Can only view one stream at a time for the same camera

Post by xiki »

I have installed zoneminder on a debian LXC following the guide for nginx as shown here: https://wiki.zoneminder.com/Debian_10_B ... om_ZM_Repo

I have an IP camera - Annke C800 using Hikvision and have set up a monitor with source type Ffmpeg and currently running a monitor function.

I can successfully see a live stream from the camera but only from one instance. If I open the monitor stream ( by clicking on the monitor name ) in another tab, or visit the steam from my mobile using the same url, or placing the url stream somewhere else ( http://<host>/cgi-bin/nph-zms?mode=jpeg&monitor=2&scale=100&maxfps=30&buffer=1000&user=<name>&pass=<pass> ) ..

I start getting the following error on both web_js and web_php components:

Code: Select all

getStreamCmdResponse stream error: Socket /run/zm/zms-691589s.sock does not exist. This file is created by zms, and since it does not exist, either zms did not run, or zms exited early. Please check your zms logs and ensure that CGI is enabled in apache and check that the PATH_ZMS is set correctly. Make sure that ZM is actually recording. If you are trying to view a live stream and the capture process (zmc) is not running then zms will exit. Please go to http://zoneminder.readthedocs.io/en/latest/faq.html#why-can-t-i-see-streamed-images-when-i-can-see-stills-in-the-zone-window-etc for more information. - checkStreamForErrors()	
So stream works, but not at multiple instances of the same stream ( also I haven't tested with more than one camera as I only own one at the moment ). Is this a default behaviour or am I doing something wrong?
xiki
Posts: 3
Joined: Mon Apr 12, 2021 8:23 pm

Re: Can only view one stream at a time for the same camera

Post by xiki »

My bad :oops:

I didn't fully follow the instructions till the end.

It was important for this case to create the file

Code: Select all

nano /etc/default/fcgiwrap
and insert the number of cameras needed

Code: Select all

DAEMON_OPTS=-c 10
Post Reply