Page 1 of 2

Setting up Zoneminder for the first time

Posted: Thu Apr 12, 2018 10:06 pm
by zmuser2018
Hi everyone,

I am new to zoneminder and hope to get the help needed to set up my CCTV cameras.

I have decided to run zoneminder of a docker container because I found there's already one available
https://hub.docker.com/r/quantumobject/ ... oneminder/

The docker image above is relatively easy to install and run and I can access zoneminder via the web url

However, I don't know how to progress. I have a hikvision cctv POE camera
can I power it simply by connecting it to my pc ethernet? or do I need to buy pow switch?
how do I add the cctv camera to zone minder via the web interface?
Is there a guide that can help me through this as on git the instructions aren't very comprehensive.

thank you

Re: Setting up Zoneminder for the first time

Posted: Thu Apr 12, 2018 11:18 pm
by bbunge
Zoneminder version, Linux distro and version, CAmera make and model number? Google is your friend if you search with zoneminder and camera model...

Re: Setting up Zoneminder for the first time

Posted: Fri Apr 13, 2018 8:36 am
by zmuser2018
Thank you for the reply.

Hikvision DS-2CD2042WD-I WDR
Ubuntu 16.04 through docker container
Zone minder version 1.31

I have searched for it but didn't find a solution to my model.
However I have come across multiple topics showing that for every model/make there are different settings.
How are these settings established? is it zoneminder that sets a specific source path for every model or is it the camera that has a specific path that needs to be searched for?

Re: Setting up Zoneminder for the first time

Posted: Fri Apr 13, 2018 3:23 pm
by rockedge
the camera that has a specific path that needs to be searched for?
Yes each camera has URL path that needs to be configured in ZM. See if you can find out your model's info here:
https://www.ispyconnect.com/sources.aspx

here is an example of a D-Link 930lb IP camera wireless set up (camera has NO password set):
Screenshot2png.png
Screenshot2png.png (39.3 KiB) Viewed 34506 times
Screenshot1.png
Screenshot1.png (40.19 KiB) Viewed 34506 times

Re: Setting up Zoneminder for the first time

Posted: Sat Apr 14, 2018 2:26 pm
by zmuser2018
Thank you

I visited the website and found the path for my model but I'm not sure whether I setting the parameters correctly.
Screen Shot 2018-04-14 at 15.20.48.png
Screen Shot 2018-04-14 at 15.20.48.png (141.58 KiB) Viewed 34480 times
Screen Shot 2018-04-14 at 15.20.13.png
Screen Shot 2018-04-14 at 15.20.13.png (108.4 KiB) Viewed 34480 times
Screen Shot 2018-04-14 at 15.19.48.png
Screen Shot 2018-04-14 at 15.19.48.png (120.72 KiB) Viewed 34480 times
As you can see I generated the url, the IP address I'm using is the one that allows me to connect to ZM remotely, what I mean by that is that if I put the ip address in the browser with the port number, it will take me to the ZM interface. I assume that's the IP address I have to provide to the generator right?

After setting those values, I am not being able to get anything from the stream. I am not even sure if my CCTV is running.
I have connected my POE camera through a cat6 ethernet cable that connects the pc to the camera. Will the camera be getting power through the PC?

Looking at the logs, I see the following errors

Code: Select all

Date/Time
Component	Server	PID	Level	Message	File	Line
2018-04-14 10:25:56.600420	zmdc		398	ERR	'zmc -m 1' exited abnormally, exit status 255	zmdc.pl	
2018-04-14 10:25:56.570130	zmdc		824	INF	'zmc -m 1' started at 18/04/14 10:25:56	zmdc.pl	
2018-04-14 10:25:56.569950	zmdc		398	INF	'zmc -m 1' starting at 18/04/14 10:25:56, pid = 824	zmdc.pl	
2018-04-14 10:25:56.485590	zmwatch		433	INF	Restarting capture daemon for Monitor-1, shared data not valid	zmwatch.pl	
2018-04-14 10:25:56.477660	zmwatch		433	ERR	Memory map file '/dev/shm/zm.mmap.1' does not exist. zmc might not be running.	zmwatch.pl	
2018-04-14 10:25:46.516590	zmdc		398	ERR	'zmc -m 1' exited abnormally, exit status 255	zmdc.pl	
2018-04-14 10:25:46.509644	zmc_m1		820	ERR	Failed to capture image from monitor 1 Monitor-1 (1/1)	zmc.cpp	284
2018-04-14 10:25:46.508483	zmc_m1		820	ERR	Unable to open input rtsp://admin:admin@192.168.1.15/H264 due to: Operation now in progress	zm_ffmpeg_camera.cpp	295
2018-04-14 10:25:46.506463	zmc_m1		820	INF	Priming capture from rtsp://admin:admin@192.168.1.15/H264	zm_ffmpeg_camera.cpp	114

Re: Setting up Zoneminder for the first time

Posted: Mon Apr 16, 2018 9:22 am
by zmuser2018
Any idea what I'm doing wrong?

Re: Setting up Zoneminder for the first time

Posted: Mon Apr 16, 2018 10:22 am
by quynh.ht
You can try to paste the link generated to web browser to test. If it works then it works. That how I test on my system.

Re: Setting up Zoneminder for the first time

Posted: Mon Apr 16, 2018 7:20 pm
by zmuser2018
I did paste the link but it goes to google results, it doesn't recognise it as a url, maybe because of the rtsp prefix?

Re: Setting up Zoneminder for the first time

Posted: Mon Apr 16, 2018 10:21 pm
by rockedge
have you tried to change Remote Method to TCP or something other than HTTP TUNNEL?

Re: Setting up Zoneminder for the first time

Posted: Tue Apr 17, 2018 8:37 am
by zmuser2018
No I have not. I will change that and see if it works. If you think there's something else wrong in my settings, in terms of what I've put, please let me know as I might have got something wrong.

Re: Setting up Zoneminder for the first time

Posted: Tue Apr 17, 2018 4:19 pm
by canbikehere
Most newer (as in made in the last few years) cameras will work with the ONVIF tool built in to Zoneminder. Click the 'Source' tab, then click the 'ONVIF' link at the top; it'll scan your local network for ONVIF-compliant cameras (which the Hikkvision probably is) and will fill in the config options for Zoneminder.

Re: Setting up Zoneminder for the first time

Posted: Wed Apr 18, 2018 11:09 am
by UKIkarus
Did nobody read the comment properly as highlighted here?
I have connected my POE camera through a cat6 ethernet cable that connects the pc to the camera. Will the camera be getting power through the PC?
To answer your question, NO your POE camera will NOT be powered via the PC and will require either a POE switch or a POE injector connected to the device in order to provide power unless you have a separate power adapter.

Rule out the fact that the camera might not even be turned on first before you guys go off on a tangent :roll: :lol:

Make sure you can provide power to the camera, and you can connect to it directly via the default IP address (unless you have reconfigured it manually) do this WITHOUT zoneminder involved.

ONLY after you have ensured the camera is operational and you can get to it on the network should you be trying to add it to zoneminder.

Re: Setting up Zoneminder for the first time

Posted: Wed Apr 18, 2018 3:06 pm
by rockedge
@UKIkarus..... good point.

Re: Setting up Zoneminder for the first time

Posted: Wed Apr 18, 2018 3:24 pm
by Pedulla
All my cams are Hikvision.
You will hear relay's click on and off a couple times once they are powered up.
No relay sounds... no worky worky... ;)

Re: Setting up Zoneminder for the first time

Posted: Fri Sep 28, 2018 8:43 am
by zmuser2018
I have got power for the hikvision cctv device.
Unfortunately I am still not being able to get the correct rtsp url to see whether the camera works or not.
I decided to use ivms-4200 client software to check if the cctv works.
in ivms-4200 if i go to show online devices, the cctv camera appears and it seems to be already activated.
However,it is very possible the password was changed and I'm not being able to change network settins(as the ip address assigned to the camera doesn't even fall under my subnet). I believe the password is required to change the settings

Called hikvision and they don't reset if is send by an ebay seller.

Now I am stuck with this camera with no way to reset the password.

A few guides online explained that it's possible to reset it but I'm not sure whether that's the case.

Can someone provide me some guidance as to whether I can reset the password of the camera and change settings in some way?

Thank you