Skip to content
UA Discuss your project
  1. Home
  2. Resources
  3. Video analytics on Hikvision, Dahua and Trassir cameras: RTSP, ONVIF and whether you must replace the NVR

Video analytics on Hikvision, Dahua and Trassir cameras: RTSP, ONVIF and whether you must replace the NVR

7 min read · Updated 2026-11-17

Author: DuoVision team

For: IT directors, security managers and owners of factories, warehouses and shops that already run Hikvision or Dahua cameras or a Trassir system

Summary

  • Video analytics reads a video stream. It needs access to the stream from a camera or recorder over RTSP or ONVIF, and usually no replacement hardware. Hikvision and Dahua cameras serve RTSP, and Trassir can both take in RTSP and ONVIF cameras and serve a stream from its own server.
  • On Hikvision the stream address looks like rtsp://user:password@IP:port/Streaming/channels/101, where 101 is channel 1 main stream and 102 is channel 1 sub-stream. Dahua uses the template /cam/realmonitor?channel=1&subtype=0.
  • Replacing cameras or the recorder is usually unnecessary. We connect to what you have, check on your own video whether a person, crate or plate is clearly visible in the target zone, and suggest an extra camera only where the angle is wrong.
  • Your existing video system stays in place and keeps recording the archive. The analytics runs alongside it and produces event cards with a frame, a time and a camera.

For: IT directors, security managers and owners of factories, warehouses and shops that already run Hikvision or Dahua cameras or a Trassir system

What analytics needs from your cameras

An analytics program does not control your surveillance system. It takes a video stream, the way any client such as VLC would, and analyses the frames. So it comes down to three questions:

  • can the stream be obtained over the network (RTSP, ONVIF), and from where: the camera or the recorder;
  • is the picture good enough for the rule: resolution and angle;
  • can the link and the device carry one more stream.

This is the same logic as in cameras for AI video surveillance, applied here to specific manufacturers.

RTSP: stream addresses on Hikvision and Dahua

RTSP is the protocol cameras and recorders use to serve video. The address templates of the two most common manufacturers look like this.

ManufacturerAddress templateNote
Hikvisionrtsp://user:pass@IP:port/Streaming/channels/101Hikvision support gives a "channel plus stream" template for NVRs (Streaming/channels/...); by the usual numbering, 101 is channel 1 main stream and 102 the sub-stream
Dahuartsp://user:pass@IP:port/cam/realmonitor?channel=1&subtype=0subtype=0 is the main stream and subtype=1 the sub-stream; the template is given in Dahua's network camera manual, and some models differ

The main stream has higher resolution and the sub-stream is lighter. Which one to use depends on the rule: fine details such as a hairnet or a plate need more resolution, and we check this on your own video. Exact ports, channel numbering and parameters should be checked against the manual for the specific model, because they differ between firmware versions. For a stream from a recorder (NVR), Hikvision describes the same template, with the recorder's address and a channel number instead of a camera address.

ONVIF: what it is and how to switch it on

ONVIF is an open standard for interoperability between cameras of different makers. Three profiles described on onvif.org matter for analytics:

  • Profile S: basic video streaming. It is being phased out, with 31 March 2027 as the last date to submit for certification;
  • Profile T: H.264 and H.265 video, image settings, motion and tampering events, metadata and streaming over HTTPS;
  • Profile G: edge storage, meaning queries and control of recordings kept on the camera.

According to a 2018 ONVIF blog post, Dahua products support Profiles S, G, Q, T and C. For Hikvision we did not confirm an official list on onvif.org, so for a specific model we look it up in the ONVIF conformant products database. On Hikvision cameras ONVIF is switched on in the settings (Configuration, Network, Advanced Settings, Integration Protocol): you tick "Enable ONVIF" and create a separate ONVIF user with the right access level. For Dahua we check the procedure in the model manual.

If RTSP already works, ONVIF is optional. It helps when you need to discover cameras on the network and read their parameters and events conveniently.

Trassir: stream from the server and adding cameras

Trassir works in both directions. According to Trassir documentation, its server adds cameras over ONVIF (you need the camera's IP, port, login and password) and over RTSP (separate addresses for the main and sub stream, port usually 554). To serve video to another program, you configure SDK access and a port in the server settings. Video is requested through the SDK: the server returns an address with a token of the form rtsp://address:555/token, where port 555 can be changed and the token expires within seconds without pings. So there is no fixed address per channel as on a Hikvision NVR, and the connection is set up once on site.

If you already run Trassir there are two routes: take the stream from the cameras directly and let Trassir keep recording the archive, or take it from the Trassir server. Which to choose depends on how the cameras are connected and how many streams the server can carry.

A separate question is Ukraine's list of prohibited software kept by the State Special Communications Service, which changes over time. We explained who must follow it, and when, in Macroscop and Axxon on the prohibited software list. For your own product, check the current version of the list.

Stream from the camera or from the recorder

OptionAdvantagesWhat to check
Directly from the cameraDoes not load the recorder, and the main stream usually has higher qualityA camera serves a limited number of simultaneous streams, and the camera network must be reachable
From the recorder (NVR)One address for many channels, no need to log in to each cameraHikvision counts the remote connection limit per device, and the number comes from the model's specification

Hikvision states that when the remote connection limit on an NVR is exceeded, an error about the maximum number of streams appears, and that remote connections and bandwidth are separate limits. We did not confirm Dahua's limit, so we take numbers from the datasheet of your model. Some cameras serve two or three streams at once, and we calculate in advance whether that is enough alongside your existing surveillance.

Resolution and angles

Manufacturers do not publish a single minimum number of pixels per person for ordinary analytics that we could verify, so we do not rely on a universal figure. The check is simple: we take video from your camera and see whether the target zone shows what the rule checks.

  • For hairnets, masks and beard covers, the head should be clear, without a steep downward camera tilt.
  • For gloves, hands must be in the visible area, and for a crate on the floor, the floor must be visible across the depth of the zone.
  • For vehicle plates, separate plate-size requirements apply, published by manufacturers for each camera (see license plate recognition).
  • Blocked views, bright windows and a very low ceiling camera hurt results regardless of brand.

Where the angle is wrong, we add one camera to that area. The other cameras stay where they are.

What we do with your existing system

  1. We get a list of cameras and recorders (model, firmware, channels).
  2. We take a test stream from one or two key cameras, by day and by night.
  3. We check the angle and the size of objects in the rule zones. A crate on the floor, a hairnet, a mask, a phone, PPE (hard hats, vests, glasses), a vehicle plate and leaving in work clothing are all set up as a service on cameras you already have.
  4. We connect the stream and run the rules in shadow mode: only you see the cards, and no alerts go to staff.
  5. Only after the cards have been reviewed do we switch the rules into daily work.

Your video archive, recorder and surveillance software stay unchanged. The analytics server can sit on your premises so video does not leave the company. An example of such a launch on more than 30 cameras is the meat processing plant case study, where no new cameras were installed. To ask about a pilot, use the contact page.

Frequently asked questions

Do we need to replace Hikvision or Dahua cameras or the recorder for video analytics?

Usually not. The stream must be reachable over RTSP or ONVIF, and the target zone must show what the rule needs: head, hands, crate or plate. If the angle in one area is wrong, we add one camera there.

How do we take a stream from Hikvision or Dahua?

Over RTSP. On Hikvision the address template includes /Streaming/channels/101 for the main stream of channel 1 and 102 for the sub-stream. Dahua uses /cam/realmonitor?channel=1&subtype=0. Ports and parameters should be checked against the model manual.

Does your analytics work with Trassir?

Yes, in two ways: take the stream from the cameras directly, or from the Trassir server through RTSP for the SDK. Trassir keeps recording the archive. Whether your system falls under the restrictions of the State Special Communications list should be checked against the current list.

Will analytics affect recording to the archive?

We take an additional stream, so it must be checked whether the camera or recorder can carry one more connection. We calculate this before launch from the specifications of your models. The archive and recorder themselves stay unchanged.

What camera resolution is required?

There is no universal number. It depends on the rule and the distance. We take video from your camera and check whether the target object is visible in the zone. For many rules, the cameras already installed are enough.

Where to apply this

Sources

  1. Hikvision Support, How do I setup RTSP stream (NVR), checked 17.11.2026
  2. Hikvision Support, How do I enable ONVIF on a Hikvision camera
  3. Hikvision Support, How to see the number of streams from an NVR (error: maximum number of streams)
  4. Dahua, Network Camera Web 3.0 Operation Manual V2.0.1 (RTSP address template)
  5. ONVIF, Profile S
  6. ONVIF, Profile T
  7. ONVIF, Profile G
  8. ONVIF blog, Meet our members: Dahua Technology (Profiles S, G, Q, T, C), 2018
  9. Trassir, Adding ONVIF cameras
  10. Trassir, Adding RTSP cameras
  11. Trassir, SDK: video request (container=rtsp)

Let’s discuss your site

Request a consultation or a project estimate. We will tell you what your cameras can monitor, where it is best to process the video and how much it will cost.