Local Source (Webcam) not working or can it just not be viewed?

Forum for questions and support relating to the 1.30.x releases only.
Locked
yakuraku
Posts: 7
Joined: Mon Sep 04, 2017 5:50 pm

Local Source (Webcam) not working or can it just not be viewed?

Post by yakuraku »

HI,

in my setup I have a webcam installed to monitor a switch close to the server. The Overview states it is ok, but I can not get any video out of it.

The log when I have the monitor configure:

Code: Select all

2017-09-04 22:48:10.626793	zmc_dvideo0		2630	INF	Monitor-1: 1000 - Capturing at 8.26 fps	zm_monitor.cpp	3125
2017-09-04 22:46:09.392759	zmc_dvideo0		2630	INF	Starting Capture version 1.30.4	zmc.cpp	247
2017-09-04 22:46:09.342480	zmdc		2321	WAR	Can't find process with command of 'zma -m 1'	zmdc.pl	
2017-09-04 22:46:09.323395	zmc_dvideo0		2630	INF	No direct match for the selected palette (0x00000001) and target colorspace (04). Format conversion is required, performance penalty expected	zm_local_camera.cpp	413
2017-09-04 22:46:09.277860	zmdc		2630	INF	'zmc -d /dev/video0' started at 17/09/04 22:46:09	zmdc.pl	
2017-09-04 22:46:09.275880	zmdc		2321	INF	'zmc -d /dev/video0' starting at 17/09/04 22:46:09, pid = 2630	zmdc.pl	
2017-09-04 22:46:09.269210	zmdc		2321	INF	Starting pending process, zmc -d /dev/video0	zmdc.pl	
2017-09-04 22:46:09.264320	zmdc		2321	ERR	'zmc -d /dev/video0' exited abnormally, exit status 255	zmdc.pl	
2017-09-04 22:46:09.247035	zmc_dvideo0		2627	INF	No direct match for the selected palette (0x00000001) and target colorspace (04). Format conversion is required, performance penalty expected	zm_local_camera.cpp	413
2017-09-04 22:46:09.209670	zmdc		2321	INF	'zmc -d /dev/video0' starting at 17/09/04 22:46:09, pid = 2627	zmdc.pl	
2017-09-04 22:46:09.207360	zmdc		2627	INF	'zmc -d /dev/video0' started at 17/09/04 22:46:09	zmdc.pl	
And this is the log, when I try to watch the video (Besides some controls there is nothing to see)

Code: Select all

2017-09-04 22:49:24.261058	web_php		1856	ERR	Socket /var/run/zm/zms-901745s.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.	/usr/share/zoneminder/www/includes/functions.php	2033
2017-09-04 22:49:21.266249	web_js		1856	ERR	getStreamCmdResponse stream error: Socket /var/run/zm/zms-901745s.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()	?view=watch	
2017-09-04 22:49:21.233215	web_php		1856	ERR	Socket /var/run/zm/zms-901745s.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.	/usr/share/zoneminder/www/includes/functions.php	2033
2017-09-04 22:49:19.080450	web_php		1388	ERR	Socket /var/run/zm/zms-901745s.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.	/usr/share/zoneminder/www/includes/functions.php	2033
2017-09-04 22:49:18.157322	web_js		1856	ERR	getStreamCmdResponse stream error: socket_bind( /var/run/zm/zms-901745w.sock ) failed: Address already in use - checkStreamForErrors()	?view=watch	
2017-09-04 22:49:18.138116	web_php		1856	ERR	socket_bind( /var/run/zm/zms-901745w.sock ) failed: Address already in use	/usr/share/zoneminder/www/includes/functions.php	2033
2017-09-04 22:49:16.084746	web_js		1388	ERR	getStreamCmdResponse stream error: Socket /var/run/zm/zms-901745s.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()	?view=watch	
2017-09-04 22:49:16.051462	web_php		1388	ERR	Socket /var/run/zm/zms-901745s.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.	/usr/share/zoneminder/www/includes/functions.php	2033
2017-09-04 22:49:13.047733	web_js		1388	ERR	getStreamCmdResponse stream error: Socket /var/run/zm/zms-901745s.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()	?view=watch	
2017-09-04 22:49:13.028508	web_php		1387	ERR	Socket /var/run/zm/zms-901745s.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.	/usr/share/zoneminder/www/includes/functions.php	2033
2017-09-04 22:49:10.042688	web_php		1545	ERR	Socket /var/run/zm/zms-901745s.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.	/usr/share/zoneminder/www/includes/functions.php	2033
2017-09-04 22:49:10.027045	web_js		1387	ERR	getStreamCmdResponse stream error: socket_bind( /var/run/zm/zms-901745w.sock ) failed: Address already in use - checkStreamForErrors()	?view=watch	
2017-09-04 22:49:10.005974	web_php		1387	ERR	socket_bind( /var/run/zm/zms-901745w.sock ) failed: Address already in use	/usr/share/zoneminder/www/includes/functions.php	2033
2017-09-04 22:49:07.040564	web_js		1545	ERR	getStreamCmdResponse stream error: Socket /var/run/zm/zms-901745s.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()	?view=watch	
2017-09-04 22:49:07.019309	web_php		1387	ERR	Socket /var/run/zm/zms-901745s.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.	/usr/share/zoneminder/www/includes/functions.php	2033
2017-09-04 22:49:04.794178	web_php		1550	ERR	Socket /var/run/zm/zms-901745s.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.	/usr/share/zoneminder/www/includes/functions.php	2033
2017-09-04 22:49:04.015686	web_js		1545	ERR	getStreamCmdResponse stream error: socket_bind( /var/run/zm/zms-901745w.sock ) failed: Address already in use - checkStreamForErrors()	?view=watch	
2017-09-04 22:49:03.999544	web_php		1545	ERR	socket_bind( /var/run/zm/zms-901745w.sock ) failed: Address already in use	/usr/share/zoneminder/www/includes/functions.php	2033
2017-09-04 22:49:01.789284	web_js		1550	ERR	getStreamCmdResponse stream error: Socket /var/run/zm/zms-901745s.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()	?view=watch	
2017-09-04 22:49:01.771184	web_php		1550	ERR	Socket /var/run/zm/zms-901745s.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.	/usr/share/zoneminder/www/includes/functions.php	2033
2017-09-04 22:48:58.769880	web_js		1550	ERR	getStreamCmdResponse stream error: Socket /var/run/zm/zms-901745s.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()	?view=watch	
2017-09-04 22:48:58.747261	web_php		1550	ERR	Socket /var/run/zm/zms-901745s.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.	/usr/share/zoneminder/www/includes/functions.php	2033
2017-09-04 22:48:30.337124	web_js		2404	ERR	getStreamCmdResponse stream error: Socket /var/run/zm/zms-505015s.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()	?view=watch	
2017-09-04 22:48:30.296378	web_php		2404	ERR	Socket /var/run/zm/zms-505015s.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.	/usr/share/zoneminder/www/includes/functions.php	2033
What I see when i spam "ls /var/run/zm/" is that the matching sock files are generated and direktly removed again.


Edit: I have recorded a few minutes, and I can view the "Stills" from the recording. So the capture does work. But the Stream not :/
bbunge
Posts: 2975
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Local Source (Webcam) not working or can it just not be viewed?

Post by bbunge »

If you are running Ubuntu:
PATH_ZMS is not set to /zm/cgi-bin/nph-zms
Create a new user: adduser www-data video

https://wiki.zoneminder.com/Ubuntu_Serv ... e_easy_way
yakuraku
Posts: 7
Joined: Mon Sep 04, 2017 5:50 pm

Re: Local Source (Webcam) not working or can it just not be viewed?

Post by yakuraku »

Ok, the PATH_ZMS was not adjusted.

Thanks for the help.
Locked