Difference between revisions of "Dahua"

From ZoneMinder Wiki
Jump to navigationJump to search
(Added comment about IPC-HDW4631EMP-0280B)
 
(14 intermediate revisions by 7 users not shown)
Line 1: Line 1:
= About =
Dahua is a Chinese manufacturer who produces a wide range of cameras, network video records, and related security hardware.  Dahua devices are often shipped under the brand name "Alhua". 
For more information on Dahua devices, consult [https://dahuawiki.com/USA/IPCamera/ Dahua Wiki US IP Cameras] ([https://web.archive.org/web/20180517190013/https://dahuawiki.com/USA/IPCamera/ Archive link]).
= Cameras =
Dahua has a well defined naming convention for their products which can be found here [https://dahuawiki.com/Template:NameConvention https://dahuawiki.com/Template:NameConvention] ([https://web.archive.org/web/20180517203721/https://dahuawiki.com/Template:NameConvention Archive link]).  If there is a product you are looking to configure, but cannot find the correct settings for it, consult the [https://dahuawiki.com Dahua Wiki].
== IPC-HFW1200S ==
This camera *does* work with Zoneminder.  Can access the camera's web page, but there is no documentation as to how to get to the image stream.  The "webplugin.tar.gz" does not exist.  Telnet port is open, but the default admin:admin does not log you in.  The camera seems to be operating fine if you go through the RTSP protocol, and the settings I've used in the ZM monitor setup are:
General Tab:
    Source Type: Ffmpeg
Source Tab:
    Source Path: rtsp://admin:admin@192.168.1.100:554/cam/realmonitor?channel=1&subtype=0 (or subtype=1 for low res)
    Remote Method:  RTP/RTSP
    The capture width and height need to be appropriate for the url given above, and if they're not then you'll
    get no image.  For subtype=0 use 1920x1080; and for subtype=1 use 352x240.  These both work for me.  There
    may be other supported subtypes & resolutions.
== IPC-HDB4300C ==
== IPC-HDB4300C ==
This camera works perfectly as long as you have Zoneminder set up with FFMPEG.
This camera works perfectly as long as you have Zoneminder set up with FFMPEG.
Line 10: Line 33:
Once you have played around a bit, it might be best if you reset the camera back to factory defaults.  Under the dome cover there is a reset button.  Hold it for at least five seconds.  If you expect the red light to flash off and on or do something else interesting, you are going to be disappointed.  The light stays on, but the unit does reset.
Once you have played around a bit, it might be best if you reset the camera back to factory defaults.  Under the dome cover there is a reset button.  Hold it for at least five seconds.  If you expect the red light to flash off and on or do something else interesting, you are going to be disappointed.  The light stays on, but the unit does reset.
=== Help and Documentation ===
=== Help and Documentation ===
On the web interface, if you click on the upper right corner question mark icon, you will get help... in Chinese.  This might work for you, but if English is better, then try this:
On the web interface, if you click on the question mark icon in the upper right corner of any page, you will get help... in Chinese.  If you are not fluent in Chinese, I have some help for you.  Copy the URL in the help window to a new window, replace "SimpleChinese" with "English" and hit Enter.  Viola! Help in English.
 
Some of these help menus have information that is not contained anywhere else, so it is worth the time to go to each help page, do the substitution and read what is there.
 
Here is an example for the help page:


http://192.168.1.108/help/English/help.htm?device=1
http://192.168.1.108/help/English/help.htm?device=1
One thing you will immediately notice is that you cannot simply edit the URL in the open help window that is showing Simple Chinese.  Instead, you need to copy the URL in the open help window to a new window, substitute the word "English" for "SimpleChinese" and hit Enter.


Note that changing the device number at the end of the URL seems to change the functions listed in the help menu.  I suspect that is because different Dahua devices have different capabilities, but they all use the same Web management interface.
Note that changing the device number at the end of the URL seems to change the functions listed in the help menu.  I suspect that is because different Dahua devices have different capabilities, but they all use the same Web management interface.
Line 83: Line 108:


Capture Height (pixels) - 288
Capture Height (pixels) - 288
=== Trigger at low resolution, capture at high resolution ===
Processing high resolution frames in order to detect motion can be costly from a computational standpoint.  To lighten processor load, it is possible to set up two monitors - one for the sub-stream, and one for the primary high resolution stream.
On the General tab for the sub-stream monitor, set the Function to Modect.  In this mode, Zoneminder will record events when motion is detected in this sub-stream feed.
On the General tab for the primary stream monitor, set the Function to Nodect.  In this mode, Zoneminder will NOT record events based on motion detected in this feed.  Put another way, your computer processor will not spend horsepower analyzing this high resolution feed (which takes more horsepower than analyzing the sub-stream feed).
Important: On the primary stream monitor, on the General tab, under Linked Monitors, click on the name of the sub-stream monitor (For example, if the sub-stream is Monitor-1, and the primary stream is Monitor-2, then click on Monitor-1).  The name should turn blue.  Save these settings.
Now, when motion is detected on the sub-stream feed, the sub-stream and the primary, high resolution stream will both be recorded.  To unlink the primary montor from the sub-stream, Ctrl-click on the monitor name under Linked Monitors and save the settings.


== IPC-HDB3200C ==
== IPC-HDB3200C ==
Line 99: Line 135:


Note that this camera can occasionally go into an 'indeterminate' state if power is interrupted or browned-out.  When in this state, it will respond to pings and telnet, but will not stream an image.  There is an app https://play.google.com/store/apps/details?id=nz.co.trillium.dahuareboot that will reboot it out of this state.
Note that this camera can occasionally go into an 'indeterminate' state if power is interrupted or browned-out.  When in this state, it will respond to pings and telnet, but will not stream an image.  There is an app https://play.google.com/store/apps/details?id=nz.co.trillium.dahuareboot that will reboot it out of this state.
== HFW-4300S ==
*Source Type:  FFMPEG
*Remote Protocol: RTSP
*Remote Method: RTP/RTSP/HTTP
*Source Path: rtsp://ip.address/live
*Target Colorspace: 24 bit colour
*Capture Width (pixels): 1920
*Capture Height (pixels): 1080
*Preserve Aspect Ratio: Unselected
*Orientation: Normal
*Deinterlacing: Disabled
*POE:Yes
Seems to be a good full 1080p camera for the price. Ordered via aliexpress.com
Issue with non IE based browsers, requires a plugin to access the video stream when directly accessing the administrative front end for the camera, so in Firefox or Chrome, you cannot see the video stream when accessing http://ip.address, works fine in Windows 10 Edge after fiddling with compatibility mode and downloading the plugin.
Have five of these running on a house security system at 720x576.
== IPC-HDBW4431R-ZS ==
The IPC-HDBW4431R-ZS is an PoE (802.3af) ONVIF compatible camera manufactured by Dahua as a part of their Eco-Savvy series.  The Eco-Savvy series appears to be largely compatible hardware with the Dahua "Lite" series.
The IPC-HDW4631EMP-0280B is a 6MP IP camera which works with identical settings except that the resolution is 3072 width by 2048 height.
=== Configuration ===
{| class="wikitable"
! style="text-align:center;" | Config Tab
! Option
! Config Setting
|-
|General
|Source Type
|Ffmpeg
|-
|rowspan="8"|Source
|Source Path
|rtsp://admin:admin@192.168.1.100:554/cam/realmonitor?channel=1&subtype=0
|-
|Remote Method
|TCP
|-
|Target Colorspace
|24 bit colour
|-
|Capture Width (pixels)
|2560
|-
|Capture Height (pixels)
|1440
|-
|Preserve Aspect Ratio
|Unselected
|-
|Orientation
|Normal
|-
|Deinterlacing
|Disabled
|}
== Dahua IPC-A35 ==
The Dahua IPC-A35 can be found using zoneminder 1.32.x ONVIF "Monitor Probe" feature. At the Console screen, click on "Add" to add a new camera. Then on the top right, click on "ONVIF" and follow the configuration dialogue.
In general, use the following configuration:
{| class="wikitable"
! style="text-align:center;" | Config Tab
! Option
! Config Setting
|-
|General
|Source Type
|Ffmpeg
|-
|rowspan="8"|Source
|Source Path
|rtsp://admin:password@192.168.0.xxx:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif
|-
|Remote Method
|UDP
|-
|Target Colorspace
|32 bit colour
|-
|Capture Width (pixels)
|1920
|-
|Capture Height (pixels)
|1080
|-
|Preserve Aspect Ratio
|Unselected
|-
|Orientation
|Normal
|-
|Deinterlacing
|Disabled
|}
=== Specs ===
* Compatible product page: [http://au.dahuasecurity.com/au/products/ipc-hdbw2431r-zsvfs-20067.html IPC-HDBW2431R-ZS] ([https://web.archive.org/web/20180517191508/http://au.dahuasecurity.com/au/products/ipc-hdbw2431r-zsvfs-20067.html Archive link])
* Specification Sheet: [[Media:IPC-HDBW4431R-ZS.pdf]]
* "Lite" Series equivalent spec sheet: [[Media:DH-IPC-HDBW2431R-ZSVFS_Datasheet_20180202.pdf]]
=== Possible Compatible models ===
* DH-IPC-HDBW2431RP-ZS - 4MP WDR IR Dome Network Camera, PAL
* DH-IPC-HDBW2431RN-ZS - 4MP WDR IR Dome Network Camera, NTSC
* IPC-HDBW2431RP-ZS - 4MP WDR IR Dome Network Camera, PAL
* IPC-HDBW2431RN-ZS - 4MP WDR IR Dome Network Camera, NTSC
* DH-IPC-HDBW2431RP-VFS - 4MP WDR IR Dome Network Camera, PAL
* DH-IPC-HDBW2431RN-VFS - 4MP WDR IR Dome Network Camera, NTSC
* IPC-HDBW2431RP-VFS - 4MP WDR IR Dome Network Camera, PAL
* IPC-HDBD2431RN-VFS - 4MP WDR IR Dome Network Camera, NTSC
In addition it ''may'' be compatible with the following models:
* DH-IPC-HDBW4431RP-ZS - 4MP WDR IR Dome Network Camera, PAL
* DH-IPC-HDBW4431RN-ZS - 4MP WDR IR Dome Network Camera, NTSC
* IPC-HDBW4431RP-ZS - 4MP WDR IR Dome Network Camera, PAL
* IPC-HDBW4431RN-ZS - 4MP WDR IR Dome Network Camera, NTSC
* DH-IPC-HDBW4431RP-VFS - 4MP WDR IR Dome Network Camera, PAL
* DH-IPC-HDBW4431RN-VFS - 4MP WDR IR Dome Network Camera, NTSC
* IPC-HDBW4431RP-VFS - 4MP WDR IR Dome Network Camera, PAL
* IPC-HDBD4431RN-VFS - 4MP WDR IR Dome Network Camera, NTSC
* DH-IPC-HDBW4431R-ZS - 4MP WDR IR Dome Network Camera
* IPC-HDBW4431R-ZS - 4MP WDR IR Dome Network Camera
* DH-IPC-HDBW4431R-VFS - 4MP WDR IR Dome Network Camera
* IPC-HDBW4431R-VFS - 4MP WDR IR Dome Network Camera
== 22204TNI & 50230UNI-A & DH-SD40A212TN-HNI ==
22204TNI & 50230UNI-A & DH-SD40A212TN-HNI are an PoE (802.3af) ONVIF compatible camera manufactured by Dahua. Running firmware 2.640 & 2.622 so many other Dahua cameras would likely work with the following configuration. Tested on ZoneMinder 1.32 & 1.34
I highly recommend creating a separate login within the camera's own setup with just access to live view and manual control for zoneminder to use.
Camera's ip = 192.168.1.108
Camera's username = admin
Camera's password = admin
=== Configuration ===
{| class="wikitable"
! style="text-align:center;" | Config Tab
! Option
! Config Setting
|-
|rowspan="2"|General
|Source Type
|Ffmpeg
|-
|Maximum FPS
|Leave blank
|-
|rowspan="9"|Source
|Source Path
|rtsp://admin:admin@192.168.1.108:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif
|-
|Method
|TCP
|-
|Options
|Leave blank
|-
|Target Colorspace
|32 bit color
|-
|Capture Width (pixels)
|1920
|-
|Capture Height (pixels)
|1080
|-
|Preserve Aspect Ratio
|Unselected
|-
|Orientation
|Normal
|-
|Deinterlacing
|0 (Disabled)
|-
|rowspan="6"|Control
|Controllable
|[x]
|-
|Control Type
|Dahua
|-
|Control Device
|Dahua's serial number
|-
|Control Address if using http
|http://admin:admin@192.168.1.108:80
|-
|Control Address if using https
|https://admin:admin@192.168.1.108:443
|-
|Auto Stop Timeout
|1
|}
NOTE: if using https on the cameras, you will also need to edit Dahua.pm control file in order to ignore the self signed certificate. Perl version 5.30 installed on ubuntu 20.04.
If zoneminder is installed on Debian based distros:
    sudo nano /usr/share/perl5/ZoneMinder/Control/Dahua.pm
Add "use IO::Socket::SSL" after the all of the "use ..." at the top of the file so it looks like this:
    use 5.8.0;
    use strict;
    use warnings;
    use IO::Socket::SSL
With the SSL library added, now we need to instruct the connection to ignore self signed & mismatched certs.
Change this around line number 90:
    use LWP::UserAgent;
    $self->{ua} = LWP::UserAgent->new(keep_alive => 1);
To this:
    use LWP::UserAgent;
    $self->{ua} = LWP::UserAgent->new(keep_alive => 1);
    $self->{ua}->ssl_opts(
    SSL_verify_mode => SSL_VERIFY_NONE,
    verify_hostname => 0
    );
== Dahua/Alhua IPC-HDW-4631C-A ==
An unbranded Dahua / Alhua 6MP turret camera. This is the closest I can find on the manufacturer web site: https://www.dahuasecurity.com/products/All-Products/Network-Cameras/Pro-Series/6-MP/IPC-HDW4631EM-ASE
The camera firmware video viewer requires some ActiveX plugin, but the settings tab works.
Works out of the box with Zoneminder 1.34.
In general, use the following configuration:
{| class="wikitable"
! style="text-align:center;" | Config Tab
! Option
! Config Setting
|-
|General
|Source Type
|Ffmpeg
|-
|rowspan="7"|Source
|Source Path
|rtsp://USER:PASSWORD@IP_ADDRESS:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif
|-
|Method
|TCP
|-
|Target Colorspace
|32 bit colour
|-
|Capture Resolution (pixels)
|1920x1080 (3072x2048 also works)
|-
|Preserve Aspect Ratio
|Unselected
|-
|Orientation
|Normal
|-
|Deinterlacing
|0
|}

Latest revision as of 16:47, 5 July 2020

About

Dahua is a Chinese manufacturer who produces a wide range of cameras, network video records, and related security hardware. Dahua devices are often shipped under the brand name "Alhua".

For more information on Dahua devices, consult Dahua Wiki US IP Cameras (Archive link).

Cameras

Dahua has a well defined naming convention for their products which can be found here https://dahuawiki.com/Template:NameConvention (Archive link). If there is a product you are looking to configure, but cannot find the correct settings for it, consult the Dahua Wiki.

IPC-HFW1200S

This camera *does* work with Zoneminder. Can access the camera's web page, but there is no documentation as to how to get to the image stream. The "webplugin.tar.gz" does not exist. Telnet port is open, but the default admin:admin does not log you in. The camera seems to be operating fine if you go through the RTSP protocol, and the settings I've used in the ZM monitor setup are:

General Tab:

   Source Type: Ffmpeg

Source Tab:

   Source Path: rtsp://admin:admin@192.168.1.100:554/cam/realmonitor?channel=1&subtype=0 (or subtype=1 for low res)
   Remote Method:  RTP/RTSP
   The capture width and height need to be appropriate for the url given above, and if they're not then you'll 
   get no image.  For subtype=0 use 1920x1080; and for subtype=1 use 352x240.  These both work for me.  There 
   may be other supported subtypes & resolutions.

IPC-HDB4300C

This camera works perfectly as long as you have Zoneminder set up with FFMPEG.

Capabilities

Stream 0 is 1920 x 1080 @ 25fps and stream 1 is 708 x 576 @ 25fps. Both streams are compressed using H264 MPEG-4 AVC. The FFMPEG decoder is the way to go.

Initial Configuration

The camera defaults to an IP address of 192.168.1.108 with a username/password of admin/admin. It has a built-in web browser that lets you set a number of functions. The camera comes with a manual on a mini-CD. The manual is marginally useful. It is best just to get on the web interface and play.

Once you have played around a bit, it might be best if you reset the camera back to factory defaults. Under the dome cover there is a reset button. Hold it for at least five seconds. If you expect the red light to flash off and on or do something else interesting, you are going to be disappointed. The light stays on, but the unit does reset.

Help and Documentation

On the web interface, if you click on the question mark icon in the upper right corner of any page, you will get help... in Chinese. If you are not fluent in Chinese, I have some help for you. Copy the URL in the help window to a new window, replace "SimpleChinese" with "English" and hit Enter. Viola! Help in English.

Some of these help menus have information that is not contained anywhere else, so it is worth the time to go to each help page, do the substitution and read what is there.

Here is an example for the help page:

http://192.168.1.108/help/English/help.htm?device=1

Note that changing the device number at the end of the URL seems to change the functions listed in the help menu. I suspect that is because different Dahua devices have different capabilities, but they all use the same Web management interface.

Confirming Camera is On Your Network

Before I try to get a camera to work on Zoneminder, I try to look at it using the Swiss Army Knife of video tools, the VLC Player. Just download the player and put the following url into the File/Open Network dialog box:

rtsp://admin:admin@192.168.1.108

You should see pictures coming out of your camera. If you don't, then I am not going to be able to help you much. The camera does respond to pings, so you might try pinging it. If you can't ping it, you are not going to get very far.

You will find information on the Internet saying you need something like the following in order for it to work:

rtsp://admin:admin@192.168.1.108:554/live

This does work, but it does not seem to be necessary. Going to the IP address directly gets you to Stream 0 - the HD stream. You can see the properties of the stream using VLC by going to Window/Media Information/Codec Details. If you want to specifically point to the HD stream, use:

rtsp://admin:admin@192.168.1.108:554/cam/realmonitor?channel=1&subtype=0

To get to the SD or lower resolution feed, use: rtsp://admin:admin@192.168.1.108:554/cam/realmonitor?channel=1&subtype=1

Setting up Zoneminder with the HDB4300C

I tried to get this camera to work with an older version of Zoneminder and had a devil of a time. In fact, I downloaded and compiled a new version of Zoneminder from scratch, and somehow managed to get it compiled without FFMPEG. The drop-down box was there, but it did not work. Anyway, I finally went to http://github.com/zoneminder and followed the directions for making an installation using Ubuntu, my preferred Linux distro, and everything worked just fine. But I will warn you at the beginning of this that, if you are getting Zoneminder up and running for the first time, it is possible to build it in a way that it won't work with this camera, even thought it looks like everything is fine. But don't worry - you won't have these problems, I'm sure...

Here are the settings I used for my Zoneminder setup. If I don't say anything about a setting, leave it alone - I started with a clean install of Zoneminder and I only changed the following things to get it to work with the camera:

General Tab

  • Source type - FFMPEG

Source Tab

  • Source Path - rtsp://admin:admin@192.168.1.108

That's it.

Advanced settings

As I mentioned before, this camera has at least two outputs (I believe it also has a snapshot output, but I have not discovered the path for it yet). You can get to the full resolution output using the Source Path above. If you use the web interface for the camera, and you go to 'Video", you will see that the main stream is H.264 1080P at 1920 x 1080, 25 frames per second. You will also see on the Sub-Stream tab that the lower resolution stream is also H.264 encoded at 352 x 288, 6 frames per second. This information is important if you want to get the full resolution from the camera in Zoneminder.

I use both outputs. The sub-stream is used for motion detection. When motion is detected on this feed, I then record the full resolution feed. Here are my settings. Again, if I don't mention a setting, leave it at the default value.

Full Resolution Stream

When I went with the default values in the camera and in Zoneminder, I ended up with vertical striping in the high resolution video stream. This appears to be a processing problem - I am guessing that Zoneminder cannot keep up. The feed looks normal when I view it using the web interface provided by the camera manufacturer, so that leaves out the camera and the network.

To fix the vertical striping, I reduced the frame rate for the main stream from 25 frames per second to 10 frames per second. Once I did that, I created a new monitor with the following settings:

General Tab

Source Type - Ffmpeg

Source Tab

Source Path- rtsp://admin:admin@YOURIPADDRESSHERE

Target Colorspace - 32 bit colour

Capture Width (pixels) - 1920

Capture Height (pixels) - 1080

Sub-Stream (lower resolution stream)

As mentioned above, this is a lower resolution stream so it consumes less network bandwidth and processing resources. Here are my settings for this stream:

General Tab

Source Type - Ffmpeg

Source Tab

Source Path - rtsp://admin:admin@YOURIPADDRESSHERE:554/cam/realmonitor?channel=1&subtype=1

Target Colourspace - 32 bit colour

Capture Width (pixels) - 352

Capture Height (pixels) - 288

Trigger at low resolution, capture at high resolution

Processing high resolution frames in order to detect motion can be costly from a computational standpoint. To lighten processor load, it is possible to set up two monitors - one for the sub-stream, and one for the primary high resolution stream.

On the General tab for the sub-stream monitor, set the Function to Modect. In this mode, Zoneminder will record events when motion is detected in this sub-stream feed.

On the General tab for the primary stream monitor, set the Function to Nodect. In this mode, Zoneminder will NOT record events based on motion detected in this feed. Put another way, your computer processor will not spend horsepower analyzing this high resolution feed (which takes more horsepower than analyzing the sub-stream feed).

Important: On the primary stream monitor, on the General tab, under Linked Monitors, click on the name of the sub-stream monitor (For example, if the sub-stream is Monitor-1, and the primary stream is Monitor-2, then click on Monitor-1). The name should turn blue. Save these settings.

Now, when motion is detected on the sub-stream feed, the sub-stream and the primary, high resolution stream will both be recorded. To unlink the primary montor from the sub-stream, Ctrl-click on the monitor name under Linked Monitors and save the settings.

IPC-HDB3200C

  • Source Type: Remote
  • Remote Protocol: RTSP
  • Remote Method: RTP/RTSP
  • Remote Host Name: user:password@ip.address
  • Remote Host Port: 554
  • Remote Host Path: /cam/realmonitor?channel=1&subtype=0&tcp
  • Target Colorspace: 24 bit colour
  • Capture Width (pixels): 1920
  • Capture Height (pixels): 1080
  • Preserve Aspect Ratio: Unselected
  • Orientation: Normal
  • Deinterlacing: Disabled

Note that this camera can occasionally go into an 'indeterminate' state if power is interrupted or browned-out. When in this state, it will respond to pings and telnet, but will not stream an image. There is an app https://play.google.com/store/apps/details?id=nz.co.trillium.dahuareboot that will reboot it out of this state.

HFW-4300S

  • Source Type: FFMPEG
  • Remote Protocol: RTSP
  • Remote Method: RTP/RTSP/HTTP
  • Source Path: rtsp://ip.address/live
  • Target Colorspace: 24 bit colour
  • Capture Width (pixels): 1920
  • Capture Height (pixels): 1080
  • Preserve Aspect Ratio: Unselected
  • Orientation: Normal
  • Deinterlacing: Disabled
  • POE:Yes

Seems to be a good full 1080p camera for the price. Ordered via aliexpress.com

Issue with non IE based browsers, requires a plugin to access the video stream when directly accessing the administrative front end for the camera, so in Firefox or Chrome, you cannot see the video stream when accessing http://ip.address, works fine in Windows 10 Edge after fiddling with compatibility mode and downloading the plugin.

Have five of these running on a house security system at 720x576.

IPC-HDBW4431R-ZS

The IPC-HDBW4431R-ZS is an PoE (802.3af) ONVIF compatible camera manufactured by Dahua as a part of their Eco-Savvy series. The Eco-Savvy series appears to be largely compatible hardware with the Dahua "Lite" series.

The IPC-HDW4631EMP-0280B is a 6MP IP camera which works with identical settings except that the resolution is 3072 width by 2048 height.

Configuration

Config Tab Option Config Setting
General Source Type Ffmpeg
Source Source Path rtsp://admin:admin@192.168.1.100:554/cam/realmonitor?channel=1&subtype=0
Remote Method TCP
Target Colorspace 24 bit colour
Capture Width (pixels) 2560
Capture Height (pixels) 1440
Preserve Aspect Ratio Unselected
Orientation Normal
Deinterlacing Disabled



Dahua IPC-A35

The Dahua IPC-A35 can be found using zoneminder 1.32.x ONVIF "Monitor Probe" feature. At the Console screen, click on "Add" to add a new camera. Then on the top right, click on "ONVIF" and follow the configuration dialogue.

In general, use the following configuration:

Config Tab Option Config Setting
General Source Type Ffmpeg
Source Source Path rtsp://admin:password@192.168.0.xxx:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif
Remote Method UDP
Target Colorspace 32 bit colour
Capture Width (pixels) 1920
Capture Height (pixels) 1080
Preserve Aspect Ratio Unselected
Orientation Normal
Deinterlacing Disabled


Specs

Possible Compatible models

  • DH-IPC-HDBW2431RP-ZS - 4MP WDR IR Dome Network Camera, PAL
  • DH-IPC-HDBW2431RN-ZS - 4MP WDR IR Dome Network Camera, NTSC
  • IPC-HDBW2431RP-ZS - 4MP WDR IR Dome Network Camera, PAL
  • IPC-HDBW2431RN-ZS - 4MP WDR IR Dome Network Camera, NTSC
  • DH-IPC-HDBW2431RP-VFS - 4MP WDR IR Dome Network Camera, PAL
  • DH-IPC-HDBW2431RN-VFS - 4MP WDR IR Dome Network Camera, NTSC
  • IPC-HDBW2431RP-VFS - 4MP WDR IR Dome Network Camera, PAL
  • IPC-HDBD2431RN-VFS - 4MP WDR IR Dome Network Camera, NTSC

In addition it may be compatible with the following models:

  • DH-IPC-HDBW4431RP-ZS - 4MP WDR IR Dome Network Camera, PAL
  • DH-IPC-HDBW4431RN-ZS - 4MP WDR IR Dome Network Camera, NTSC
  • IPC-HDBW4431RP-ZS - 4MP WDR IR Dome Network Camera, PAL
  • IPC-HDBW4431RN-ZS - 4MP WDR IR Dome Network Camera, NTSC
  • DH-IPC-HDBW4431RP-VFS - 4MP WDR IR Dome Network Camera, PAL
  • DH-IPC-HDBW4431RN-VFS - 4MP WDR IR Dome Network Camera, NTSC
  • IPC-HDBW4431RP-VFS - 4MP WDR IR Dome Network Camera, PAL
  • IPC-HDBD4431RN-VFS - 4MP WDR IR Dome Network Camera, NTSC
  • DH-IPC-HDBW4431R-ZS - 4MP WDR IR Dome Network Camera
  • IPC-HDBW4431R-ZS - 4MP WDR IR Dome Network Camera
  • DH-IPC-HDBW4431R-VFS - 4MP WDR IR Dome Network Camera
  • IPC-HDBW4431R-VFS - 4MP WDR IR Dome Network Camera


22204TNI & 50230UNI-A & DH-SD40A212TN-HNI

22204TNI & 50230UNI-A & DH-SD40A212TN-HNI are an PoE (802.3af) ONVIF compatible camera manufactured by Dahua. Running firmware 2.640 & 2.622 so many other Dahua cameras would likely work with the following configuration. Tested on ZoneMinder 1.32 & 1.34

I highly recommend creating a separate login within the camera's own setup with just access to live view and manual control for zoneminder to use.

Camera's ip = 192.168.1.108 Camera's username = admin Camera's password = admin

Configuration

Config Tab Option Config Setting
General Source Type Ffmpeg
Maximum FPS Leave blank
Source Source Path rtsp://admin:admin@192.168.1.108:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif
Method TCP
Options Leave blank
Target Colorspace 32 bit color
Capture Width (pixels) 1920
Capture Height (pixels) 1080
Preserve Aspect Ratio Unselected
Orientation Normal
Deinterlacing 0 (Disabled)
Control Controllable [x]
Control Type Dahua
Control Device Dahua's serial number
Control Address if using http http://admin:admin@192.168.1.108:80
Control Address if using https https://admin:admin@192.168.1.108:443
Auto Stop Timeout 1

NOTE: if using https on the cameras, you will also need to edit Dahua.pm control file in order to ignore the self signed certificate. Perl version 5.30 installed on ubuntu 20.04.

If zoneminder is installed on Debian based distros:

   sudo nano /usr/share/perl5/ZoneMinder/Control/Dahua.pm

Add "use IO::Socket::SSL" after the all of the "use ..." at the top of the file so it looks like this:

   use 5.8.0;
   use strict;
   use warnings;
   use IO::Socket::SSL

With the SSL library added, now we need to instruct the connection to ignore self signed & mismatched certs. Change this around line number 90:

   use LWP::UserAgent;
   $self->{ua} = LWP::UserAgent->new(keep_alive => 1);

To this:

   use LWP::UserAgent;
   $self->{ua} = LWP::UserAgent->new(keep_alive => 1);
   $self->{ua}->ssl_opts(
   SSL_verify_mode => SSL_VERIFY_NONE,
   verify_hostname => 0
   );

Dahua/Alhua IPC-HDW-4631C-A

An unbranded Dahua / Alhua 6MP turret camera. This is the closest I can find on the manufacturer web site: https://www.dahuasecurity.com/products/All-Products/Network-Cameras/Pro-Series/6-MP/IPC-HDW4631EM-ASE

The camera firmware video viewer requires some ActiveX plugin, but the settings tab works.

Works out of the box with Zoneminder 1.34.

In general, use the following configuration:

Config Tab Option Config Setting
General Source Type Ffmpeg
Source Source Path rtsp://USER:PASSWORD@IP_ADDRESS:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif
Method TCP
Target Colorspace 32 bit colour
Capture Resolution (pixels) 1920x1080 (3072x2048 also works)
Preserve Aspect Ratio Unselected
Orientation Normal
Deinterlacing 0