Difference between revisions of "Hikvision"

From ZoneMinder Wiki
Jump to navigationJump to search
(→‎About: Changed format of list, to make it more readable. Added model DS-2DE3204W-DE.)
 
(2 intermediate revisions by one other user not shown)
Line 35: Line 35:
These seem to work. The biggest problem is people trying to use 'network camera' instead of 'ffmpeg' source type. Both have rtsp but only ffmpeg works here (because of h.264?) see [[http://www.cctvforum.com/viewtopic.php?f=19&t=37034]]
These seem to work. The biggest problem is people trying to use 'network camera' instead of 'ffmpeg' source type. Both have rtsp but only ffmpeg works here (because of h.264?) see [[http://www.cctvforum.com/viewtopic.php?f=19&t=37034]]


The '''DS-2CD2055FWD-I''' bullet works with ZM 1.30.4 with Ffmpeg.
{|class="wikitable"
 
!Model
The '''DS-2CD2632F-IS''' Update Version outdoor bullet works with ZM 1.30.4 ONVIF works for fast setup. See Model Specific Wiki page [[Hikvision DS-2CD1631FWD-I CCTV POE 3MP HD Varifocal IR Bullet]]
!Comment
 
|-
The '''DS-2CD2732F-I''' and '''DS-2CD2032-I''' are tested.
| DS-2CD2055FWD-I bullet
 
| Works with ZM 1.30.4 with Ffmpeg
[The DS-2CD2032-I's come in several different versions (Chinese, Int'l, English, etc...) each with multiple firmwares available. Be sure that you use the correct firmware for your camera model for best results.]
|-
 
| DS-2CD2632F-IS Update Version outdoor bullet  
The '''DS-2CD2035-I''' outdoor bullet works using Ffmpeg.
| Works with ZM 1.30.4 ONVIF works for fast setup. See Model Specific Wiki page Hikvision DS-2CD1631FWD-I CCTV POE 3MP HD Varifocal IR Bullet
 
|-
The '''DS-2CD2532F-IWS''' was tested to work reliably only with Libvlc as source type.
| DS-2CD2732F-I
 
| Tested.
The '''DS-2CD2012-I''' works too.
|-
 
| DS-2CD2032-I  
The '''DS-2CD2085FWD-I''' works too.
| Tested. The DS-2CD2032-I's come in several different versions (Chinese, Int'l, English, etc...) each with multiple firmwares available. Be sure that you use the correct firmware for your camera model for best results.
|-
| DS-2CD2035-I outdoor bullet  
| Works using Ffmpeg.
|-
| DS-2CD2532F-IWS  
| Tested to work reliably only with Libvlc as source type.
|-
| DS-2CD2012-I  
| Works.
|-
| DS-2CD2085FWD-I
| Works
|-
| DS-2DE3204W-DE
| At least pan, tilt and focus (to min. or max.) work in ZM 1.34. Used ffmpeg for capture and HikVision protocol for control.
|}


You can add some flags to the stream. An example is in the [http://forums.zoneminder.com/viewtopic.php?f=30&t=21651 forum] where ?tcp is added to the end of the stream to reduce artifacts.
You can add some flags to the stream. An example is in the [http://forums.zoneminder.com/viewtopic.php?f=30&t=21651 forum] where ?tcp is added to the end of the stream to reduce artifacts.
Line 142: Line 158:
The "Remote" option also seems to work now in ZM 1.28 (at least with ds-2cd2032-i's of a certain firmware version), with less rtsp streaming errors than when using ffmpeg.  The source path /Streaming/Channels/1 works fine with firmware version 5.1.6, but seems to not work any longer in 5.2.5.  The source path /cam/realmonitor?channel=1&subtype=0 works on any firmware model.  In ZM 1.28 (perhaps earlier as well), TCP is automatically forced when the "Remote" source type is chosen and RTP/RTSP is used (https://github.com/ZoneMinder/ZoneMinder/issues/323), so the trailing "?tcp" is not necessary for either URL when this configuration is used.
The "Remote" option also seems to work now in ZM 1.28 (at least with ds-2cd2032-i's of a certain firmware version), with less rtsp streaming errors than when using ffmpeg.  The source path /Streaming/Channels/1 works fine with firmware version 5.1.6, but seems to not work any longer in 5.2.5.  The source path /cam/realmonitor?channel=1&subtype=0 works on any firmware model.  In ZM 1.28 (perhaps earlier as well), TCP is automatically forced when the "Remote" source type is chosen and RTP/RTSP is used (https://github.com/ZoneMinder/ZoneMinder/issues/323), so the trailing "?tcp" is not necessary for either URL when this configuration is used.


=== See Also ===
==Issues==
* It's recommended to use ZM 1.34 (or the most up to date stable (even numbered) branch), as older ZMs may lack compatibility. e.g. 1.30.4 w/ffmpeg will fail, yet 1.34 w/ffmpeg will work with the streams.
 
== See Also ==


*[https://forums.zoneminder.com The forum] has multiple posts regarding Hikvision. Search there for more details.
*[https://forums.zoneminder.com The forum] has multiple posts regarding Hikvision. Search there for more details.

Latest revision as of 03:53, 28 September 2020

Models


For the DS-2CD2032-I model, see the the DS-2CD2332-I model.

About

These seem to work. The biggest problem is people trying to use 'network camera' instead of 'ffmpeg' source type. Both have rtsp but only ffmpeg works here (because of h.264?) see [[1]]

Model Comment
DS-2CD2055FWD-I bullet Works with ZM 1.30.4 with Ffmpeg
DS-2CD2632F-IS Update Version outdoor bullet Works with ZM 1.30.4 ONVIF works for fast setup. See Model Specific Wiki page Hikvision DS-2CD1631FWD-I CCTV POE 3MP HD Varifocal IR Bullet
DS-2CD2732F-I Tested.
DS-2CD2032-I Tested. The DS-2CD2032-I's come in several different versions (Chinese, Int'l, English, etc...) each with multiple firmwares available. Be sure that you use the correct firmware for your camera model for best results.
DS-2CD2035-I outdoor bullet Works using Ffmpeg.
DS-2CD2532F-IWS Tested to work reliably only with Libvlc as source type.
DS-2CD2012-I Works.
DS-2CD2085FWD-I Works
DS-2DE3204W-DE At least pan, tilt and focus (to min. or max.) work in ZM 1.34. Used ffmpeg for capture and HikVision protocol for control.

You can add some flags to the stream. An example is in the forum where ?tcp is added to the end of the stream to reduce artifacts.

Videostream:

Hikvision DS-2DE2A404IW-DE3

The Model Hikvision DT2A404 is a OEM version of the Hikvision DS-2DE2A404IW-DE3 IP after reset is 192.168.1.64

The following configuration is a example that is tested Zoneminder 1.32.3 but is expected to work with other versions, too. The easy way ist to use the ONVIF Probe button in the upper right corner of each "Monitor" window.

In general, use the following configuration:

Config Tab Option Config Setting
General Source Type Ffmpeg
Source Source Path to access the mainstream:
rtsp://user:yourpassword@192.168.1.64:554/ch1/main/av_stream
example: rtsp://admin:yourpassword@192.168.1.64:554/ch1/main/av_stream

or rtsp://user:yourpassword@192.168.1.64:554/Streaming/Channels/101?transportmode=mcast&profile=Profile_1

to access the substream:

rtsp://192.168.0.1:554/ch1/sub/av_stream
example: rtsp://admin:yourpassword@192.168.1.64:554/ch1/sub/av_stream
Remote Method TCP or UDP
Target Colorspace 32 bit colour
Capture Width (pixels) 2560
Capture Height (pixels) 1440
Preserve Aspect Ratio Unselected
Orientation Normal
Deinterlacing Disabled
Control
Control Type HikVision
Control Device (necessary for ptz,enter the exact camera model DS-2DE2A404IW-DE3
Control Address user:yourpassword@192.168.1.64
within the Hikvision Control Type: Protocol HikVision


General Tab

Source Type : Ffmpeg / Libvlc / Remote(only some FW revisions)

Source Tab

Source Path : rtsp://<username>:<password>@<ip_address>:<port>/Streaming/Channels/1?tcp

(example: rtsp://admin:12345@mycamera.mydomain.com//Streaming/Channels/1)

Target Colorspace : 24 bit colour
Capture Width (pixels) : 1280 (set these to match camera config)
Capture Height (pixels) : 720

I also had to set max FPS slightly higher than set in camera, or i lost the lower half of the frame. (Camera seems to send 10.6fps when 10 is selected)

The following URL gives another Source path that was far more stable on Zoneminder 1.25: http://onlinetechadvice.blogspot.com/2014/04/hikvision-ds-2cd2032-i-working-in.html#comment-form

The Source path that worked for me is: rtsp://username:password@XXX.XXX.XXX.XXX:554/cam/realmonitor?channel=1&subtype=0?tcp Of course, replace username and password and port with your specific installation information.

The "Remote" option also seems to work now in ZM 1.28 (at least with ds-2cd2032-i's of a certain firmware version), with less rtsp streaming errors than when using ffmpeg. The source path /Streaming/Channels/1 works fine with firmware version 5.1.6, but seems to not work any longer in 5.2.5. The source path /cam/realmonitor?channel=1&subtype=0 works on any firmware model. In ZM 1.28 (perhaps earlier as well), TCP is automatically forced when the "Remote" source type is chosen and RTP/RTSP is used (https://github.com/ZoneMinder/ZoneMinder/issues/323), so the trailing "?tcp" is not necessary for either URL when this configuration is used.

Issues

  • It's recommended to use ZM 1.34 (or the most up to date stable (even numbered) branch), as older ZMs may lack compatibility. e.g. 1.30.4 w/ffmpeg will fail, yet 1.34 w/ffmpeg will work with the streams.

See Also

  • The forum has multiple posts regarding Hikvision. Search there for more details.