Dahua

From ZoneMinder Wiki
Jump to navigationJump to search

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

HELP - 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:

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

Changing the device seems to change the functions listed in the help menu.

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.

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.