Applies to: All Hanwha cameras
Summary:
This article provides instructions for preparing a Hanwha camera for Milestone.
Step By Step Guide:
Mandatory Configuration
Configure the IP address and password. Then, under Date & Time, set correct Time zone for the site location and enable Daylight Savings.
NOTE: It is strongly recommended to synchronize camera time to a local or
internet NTP server. At minimum, confirm the PC time is correct and
synchronize the camera time with the PC.
NOTE: Milestone uses motion detection configured on the server by default,
so no additional setup is needed. However, if you want to save on server
resources, you can choose to configure motion detection in the camera instead.
Optional Settings
The following settings are optional:
- Fine tune motion configuration on the camera to minimize false alarms.
- Configure analytics that may be used such as line crossing, intrusion, etc.
- If the camera has AI capabilities, use the plug-in to enable the Object Detection and Best/Detection shot for the AI metadata in Milestone (see Hanwha Plug-in for Milestone).
- Install the Hanwha plug-in for Milestone if needed. The Server-side needs to be installed on the server running the Directory Role (see Hanwha Plug-in for Milestone).
- Enable optional camera settings as detailed in the Optional Common Camera Settings section.
Manually Adding a Camera to Milestone
To add a camera:
- In the Milestone Management Client, right-click Recording server and select Add Hardware.
Express will scan the network for cameras using the username/passwords added and selected. Address Range Scanning will only scan in a defined range. Manual will connect to a single camera.
- Add a username and password for the cameras (Hanwha cameras have no default password).
- Select the Hanwha driver in the tree (expanding it shows a variety of camera types), then click Next.
NOTE: It is easiest to leave all Hanwha options checked as Milestone will query
the camera for the proper type. - Enter the IP address or range of camera(s) to add.
- Wait for the process to detect the camera(s) successfully and obtain camera information.
- Enable any hardware options needed.
NOTE: Metadata should always be selected. Other items like Input, Output,
Microphone, etc. can be added as needed if being used.
After Adding a Camera to Milestone
After adding a camera:
- If changes are made in the Management Client, Milestone will push those settings to the camera. If settings are changed in the camera, those changes will remain in effect. Milestone will not attempt to push settings in the Management Client back to the camera after the initial addition. However, if the camera is reset/re-powered, the Management Client will push current settings from Milestone.
- Configure video streams. By default, Milestone uses one stream for everything at the h.264 codec, max resolution, and max framerate. It is recommended to utilize another stream for live video and low resolution.
For example, in the Management Client, go to the camera Settings tab and configure Video stream 1 for your recording stream. Configure Video stream 2 at a lower resolution stream for live viewing.
Go to the Streams tab, add a video stream for Video stream 2 and set as the Default live stream to pull when needed.
NOTE: If using h.265, keep in mind that it uses more resources to decode
for both server-side motion and in-client motion.NOTE: If live stream does not show up in the Preview pane of the Management
Client, check if the Resolution setting is valid for this camera. - If the camera has a fisheye lens, it must be enabled to de-warp in the client.
a. In the Management Client, go to the camera and select the Fisheye Lens tab.
b. Click Enable.
c. Set the Camera position/orientation and then choose the Lens type (see Immervision Fisheye Dewarp Lens Codes).
NOTE: Many Hanwha cameras support de-warping on the edge via additional
channels. If this is required, create the channels before adding the
camera to Milestone.
Configuring Camera Side Motion
To configure camera side motion:
NOTE: This is only needed if using Camera Side motion.
- Configure motion detection in the camera as normal.
Refer to the following article: How do I enable motion detection on my cameras?
- In the Management Client, go to the camera and select the Events tab.
- Click the Add button and add both Motion Started (HW) and Motion Stopped (HW).
NOTE: Each motion window in the camera that will trigger recording needs
its own entry. - Check the Show already added events checkbox.
- Select the event you just added then click OK.
- In the General pane, change the Motion Window dropdown.
- Repeat steps 3-6 as many times as necessary.
- In the Management Client, go to Rules and create a new rule for Motion Recording.
To perform an action on Event:
a. Navigate to Devices > Configurable Events > Motion Started (HW) and select the device or group to use camera side motion.
b. Set conditions as needed or leave blank if this is 24/7.
c. Set the action to Start Recording on <devices>.
If pre-recording, enter a negative value for the seconds. Be careful not to make this too high as the server has to cache the video for that amount of time.
Stop criteria will automatically pop up as Motion Stopped (HW).
e. Set a post event record time if needed.
Stop recording is the time it receives the Motion Stopped event from the camera.
Creating Events Based on Analytics
Analytic events are created the same way as Motion Detection.
In the Events tab, select the analytic to use and enable it along with the window or line. Create your rule and use the analytic as the action.
NOTE: Motion is unique in that it has a Start and Stop event, unlike other
analytics which only send a trigger at the beginning.
Creating Alarms Based on Camera Events
To create an alarm:
- In the Management Client, go to Alarms > Alarm Definitions and create a new Alarm Definition.
- In the Triggering event field, enter Device Events.
A second dropdown box will appear.
- Choose any analytic that is enabled.
- In the Sources field, select the camera(s)/group, etc.
- Finish the rest of the Alarm Definition as needed.
Special Considerations
Consider the following when preparing a Hanwha camera for Milestone:
- Milestone always uses profiles 4-6 in a Hanwha camera (1-3 are default profiles). If another application is using one of those profiles, Milestone will pull in those stream settings.
For example, if a Hanwha RoadAI camera runs an application on the camera, when the app is loaded it creates a profile on profile 4 at 720p and MJPEG. Adding that camera to Milestone will cause the primary stream in Milestone to show up as 720p and MJPEG. Changing it in Milestone can cause the app to crash or not function as intended.
For very high-resolution cameras, the first time you view live video via the web interface, it will create a profile called PLUGINFREE, which is a lower resolution stream for the browser. This is created on the first available profile, profile 4. If it has not been added to Milestone yet, it will be used as VMS0.
To prevent issues, either change the stream usage in Milestone or consult the manufacturer of the app. For instance, with the RoadAI camera, you can stop the app, delete the extra profile, add the camera to Milestone, and then restart the app so it uses a profile after Milestone’s profiles. The following images illustrate how the OPENSDKMJPEG stream is handled in such scenarios.
Example 1: OPENSDKMJPEG stream is already on the camera and Milestone will use it.
Example 2: The app was removed, camera was added to Milestone, and the app re-installed. OPENSDKMJEG is not sharing a profile with Milestone now.
- Milestone sets the VMS0 as the Record profile in the camera, which means if an SD Card is used, it will record using that profile. In some Hanwha cameras, this setting locks certain options like Group of Video (GoV), bitrate settings, etc. If not recording to an SD card, use VMS1 or VMS2 as your Milestone Record profile. The camera’s Record setting will stay on VMS0.
- If SD Card Retrieval is enabled then the camera must have an SD card installed and configured.
See the following article: What are Hanwha's recommended Micro SD/SDHC/SDXC memory cards for IP cameras?
- By default, when using server-side motion recording with Hanwha’s AI camera plugin, only a metadata event will be recorded when camera motion is detected.
Example 1: The camera detected motion so both the video stream and metadata stream will record. It is possible for the camera to detect an object without Milestone triggering a motion event or starting a recording.
Example 2: The camera is not triggering any motion so metadata does not record either. It is possible to create a rule to record metadata 24/7 or based on specific events.
- If using audio analytics, ensure you add the microphone when the hardware is added; otherwise, the analytics will not be available.
- Milestone does not always reflect the proper resolutions supported by the camera. If video is not streaming and RTP/RTSP/TCP is set, the resolution might not be supported. Check the camera interface for supported resolutions.
Optional Common Camera Settings
The following camera settings are optional:
-
WiseStream III – Setup > Video & Audio > WiseStream
WiseStream uses an algorithm to compress non-moving objects at a higher rate to save on bandwidth and storage. AI cameras use WiseStream III which uses AI objects for the algorithm, while non-AI cameras use a pixel-based algorithm. The quality is how much compression will be applied. The higher the value the more the non-moving objects will be compressed.
-
Dynamic GOV/FPS – Setup > Video Profiles > Select Recording Profile
These utilize the WiseStream algorithm to control the framerate of the profile and/or the key-frame interval to save on bandwidth and storage.
NOTE: Ensure the correct profile that Genetec is using (264 or 265) is
selected. -
AI Based Shutter – Setup > Video & Audio > Camera Setup > Exposure
This is only available on AI-based cameras. This setting controls the shutter speed based on whether objects are present to reduce motion blur in low light.
NOTE: This option is not available if WDR is turned on.
-
WiseNR2 Noise Reduction – Setup > Video & Audio > Camera Setup > Exposure
This utilizes an additional algorithm to improve low light images and reduce noise. (Shown in image above.)
NOTE: This setting is not available in all cameras.