I just recently installed ZoneMinder and can't seem to get this HikVision camera working at all. Here's what I have so far:
Ubuntu 14.04
ZoneMinder (default 1.29.0) installed from the repository in the install guide
HikVision DS-2CD3132F-IWS IP camera
ZoneMinder is running fine, the camera is working fine on its own. I was able to successfully get my VeraLite to see the feed from it using the generic IP camera plugin. This uses /Streaming/Channels/1/picture as the URL.
Now, I've found a number of suggestions for what to use as the source in ZoneMinder for these HikVision cameras, but nothing for this specific model. Under General, I've selected Ffmpeg. Under Source I'm using RTP/RTSP with the correct resolution manually entered and 24 bit color. For Source Path I've tried the following:
rtsp://username:password@192.168.1.XXX:554/Streaming/Channels/1
rtsp://username:password@192.168.1.XXX:554/Streaming/Channels/1/picture
rtsp://username:password@192.168.1.XXX:554/cam/realmonitor?channel=1&subtype=0?tcp (with and without the ?tcp at the end)
rtsp://username:password@192.168.1.XXX:554/rtsp://192.168.1.XXX:554/ISAPI/Streaming/channels/1
Lastly, rtsp://username:password@192.168.1.XXX/video.h264 (This is what the Windows version of iSpy suggested and worked on that platform).
All of these I've tried both with and without the port specified. I'm not able to get a picture with any of these settings, just a missing image icon.
Has anyone gotten this particular model working? Am I missing something like H264 or FFMPEG that needs to be installed separately from ZoneMinder on Ubuntu?
Help getting HikVision IP camera working
-
- Posts: 3
- Joined: Sun Jul 10, 2016 10:27 pm
- knight-of-ni
- Posts: 2406
- Joined: Thu Oct 18, 2007 1:55 pm
- Location: Shiloh, IL
Re: Help getting HikVision IP camera working
Always check the Wiki to see if someone else has done the hard work for you:
https://wiki.zoneminder.com/Hikvision_DS-2CD2532F-IWS
Since it is an Onvif camera, you could also use the onvif device manager to probe the camera and tell you what the url should be.
https://sourceforge.net/projects/onvifdm/
You'll need a windows pc.
ZoneMinder 1.30.0 will have onvif probing support as well, once it is released.
https://wiki.zoneminder.com/Hikvision_DS-2CD2532F-IWS
Since it is an Onvif camera, you could also use the onvif device manager to probe the camera and tell you what the url should be.
https://sourceforge.net/projects/onvifdm/
You'll need a windows pc.
ZoneMinder 1.30.0 will have onvif probing support as well, once it is released.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
All of these can be found at https://zoneminder.blogspot.com/
-
- Posts: 3
- Joined: Sun Jul 10, 2016 10:27 pm
Re: Help getting HikVision IP camera working
Onvif finds the camera immediately, gets a stream from it even. Using the RTSP URL from its Live Video page I get a red IP in ZoneMinder and this error in my log file with Libvlc selected (as per your wiki link):knnniggett wrote:Always check the Wiki to see if someone else has done the hard work for you:
https://wiki.zoneminder.com/Hikvision_DS-2CD2532F-IWS
Since it is an Onvif camera, you could also use the onvif device manager to probe the camera and tell you what the url should be.
https://sourceforge.net/projects/onvifdm/
You'll need a windows pc.
ZoneMinder 1.30.0 will have onvif probing support as well, once it is released.
Unable to create libvlc instance due to: (null)
If I select Ffmpeg I get a green IP address (in dark theme) and this in the logs:
But selecting that device I just get what looks like a missing codec icon. I think I'm getting closer though. Any other ideas?2016-07-11 14:55:55.472388 web_js 23902 ERR getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-001051s.sock ) failed: No such file or directory - checkStreamForErrors() ?view=watch
2016-07-11 14:55:55.459787 web_php 23902 ERR socket_sendto( /var/run/zm/zms-001051s.sock ) failed: No such file or directory /usr/share/zoneminder/www/includes/functions.php 2371
2016-07-11 14:55:43.457500 web_js 3521 ERR getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-001051s.sock ) failed: No such file or directory - checkStreamForErrors() ?view=watch
2016-07-11 14:55:43.441353 web_php 3521 ERR socket_sendto( /var/run/zm/zms-001051s.sock ) failed: No such file or directory /usr/share/zoneminder/www/includes/functions.php 2371
2016-07-11 14:54:40.497524 zmc_m2 23981 INF Monitor-2: 2000 - Capturing at 25.00 fps zm_monitor.cpp 3131
2016-07-11 14:54:00.508473 zmc_m2 23981 INF Monitor-2: 1000 - Capturing at 24.39 fps zm_monitor.cpp 3131
2016-07-11 14:53:19.605968 zmc_m2 23981 INF Priming capture from rtsp://redactedUser:redactedPass@192.168.1.XXX:554/Streaming/Channels/1?transportmode=unicast&profile=Profile_1 zm_ffmpeg_camera.cpp 104
2016-07-11 14:53:19.601874 zmc_m2 23981 INF Starting Capture version 1.29.0 zmc.cpp 250
2016-07-11 14:53:19.565780 zmdc 4030 WAR Can't find process with command of 'zma -m 2'
- knight-of-ni
- Posts: 2406
- Joined: Thu Oct 18, 2007 1:55 pm
- Location: Shiloh, IL
Re: Help getting HikVision IP camera working
Code: Select all
2016-07-11 14:54:40.497524 zmc_m2 23981 INF Monitor-2: 2000 - Capturing at 25.00 fps zm_monitor.cpp 3131
2016-07-11 14:54:00.508473 zmc_m2 23981 INF Monitor-2: 1000 - Capturing at 24.39 fps zm_monitor.cpp 3131
Code: Select all
2016-07-11 14:55:55.472388 web_js 23902 ERR getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-001051s.sock ) failed: No such file or directory - checkStreamForErrors() ?view=watch
2016-07-11 14:55:55.459787 web_php 23902 ERR socket_sendto( /var/run/zm/zms-001051s.sock ) failed: No such file or directory /usr/share/zoneminder/www/includes/functions.php 2371
2016-07-11 14:55:43.457500 web_js 3521 ERR getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-001051s.sock ) failed: No such file or directory - checkStreamForErrors() ?view=watch
2016-07-11 14:55:43.441353 web_php 3521 ERR socket_sendto( /var/run/zm/zms-001051s.sock ) failed: No such file or directory /usr/share/zoneminder/www/includes/functions.php 2371
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
All of these can be found at https://zoneminder.blogspot.com/
-
- Posts: 3
- Joined: Sun Jul 10, 2016 10:27 pm
Re: Help getting HikVision IP camera working
It was the PATH_ZMS sure enough. Thanks much.
For anyone else that ends up here trying to get their DS-2CD3132 working, the source I ended up using was:
rtsp://username:password@ipaddress:554/Streaming/Channels/1?transportmode=unicast&profile=Profile_1
For anyone else that ends up here trying to get their DS-2CD3132 working, the source I ended up using was:
rtsp://username:password@ipaddress:554/Streaming/Channels/1?transportmode=unicast&profile=Profile_1