Add AI to Existing Hikvision, Dahua, Axis and Bosch Cameras

You can add AI video analytics to existing Hikvision, Dahua, Axis and Bosch security cameras if they provide a compatible, accessible video stream or snapshot endpoint. InsightCam analyzes periodic camera snapshots and sends alerts for configured visual events, allowing businesses to keep their existing surveillance equipment. Compatibility depends on the camera model, firmware, network configuration and available stream formats.

What you need before connecting your cameras

Most network security cameras provide a way for external applications to access video. RTSP is commonly used to access a video stream, while ONVIF provides a standardized way to discover compatible devices and retrieve information about their media profiles and streams.

Some cameras also provide an HTTP or HTTPS snapshot endpoint that returns an individual image. This can be another option when supported by the camera and the analytics connection method.

Before starting, identify your camera model, its firmware version, its local IP address and the credentials required to view video. Check whether the camera is directly accessible on your network or connected through a network video recorder (NVR).

Create a dedicated account with permission to view the required stream wherever the camera supports this. Avoid using the main administrator account for routine analytics access.

The standard RTSP port is 554, but manufacturers and installers can configure different ports. Check the actual device settings instead of assuming that the default applies. ONVIF may use a separate service port.

For an explanation of what happens after a camera is connected, read What is AI video analytics?.

How to find the stream on each camera brand

The following instructions describe common configuration approaches rather than exact menu sequences. Settings and menu names differ by model and firmware, so consult the documentation for your specific device.

Hikvision cameras

Sign in to the camera or recorder using an authorized administrative account. Look for network services, streaming configuration and integration protocol settings. Verify that RTSP is available and check whether ONVIF needs to be enabled separately.

Some Hikvision devices require a dedicated ONVIF user. Create one with the minimum permissions needed to retrieve and view video.

Hikvision documents RTSP addresses that use a streaming channel identifier. On many devices, channel 101 represents the first camera's main stream and 102 represents its secondary stream. Recorder channel numbering can differ.

The manufacturer's RTSP stream documentation explains the address structure. Confirm the correct port and authentication requirements before testing the connection.

Dahua cameras

Open the camera configuration interface and locate the network connection and video encoding settings. Check the configured RTSP port and ensure that the required stream is enabled.

Dahua commonly distinguishes between a main stream and an extra stream. Its RTSP address structure typically uses a channel parameter to select the camera and a subtype parameter to select the stream. Subtype 0 commonly selects the main stream, while subtype 1 selects the first secondary stream.

If you are connecting through a recorder, verify the channel number associated with the physical camera. For an ONVIF connection, check the device's integration settings and user permissions.

The Dahua RTSP connection guide provides a documented example for testing a video feed. Start with conventional H.264 encoding if you encounter compatibility problems.

Axis cameras

Axis network cameras commonly provide RTSP access through their media streaming interface. The available stream settings may include resolution, compression, encoding format and named stream profiles.

Check the camera's user management and streaming settings. If using ONVIF, confirm that an appropriate ONVIF account and compatible media profile are available.

The AXIS OS knowledge base describes RTSP access and configurable video parameters. Select the profile that provides sufficient visual detail for your intended detection task without unnecessarily increasing bandwidth.

For cameras with multiple sensors or video channels, confirm that the selected profile shows the correct physical area.

Bosch cameras

Bosch IP cameras and video encoders can provide multiple encoding streams, depending on the device. Review the network services, encoder configuration and user access settings to identify the available video feeds.

Confirm that RTSP access is permitted and that the selected encoder stream uses a compatible video format. If ONVIF is available, use a compatible media profile to obtain the stream address rather than guessing a device specific path.

Older equipment may have different protocol and codec capabilities from newer models. Check the manual for the exact camera or encoder before making changes to an existing surveillance installation.

Main stream or substream: which should you use?

The main stream usually provides the highest available image quality configured for the camera. A substream typically uses a lower resolution or bitrate and can reduce network traffic.

Neither is automatically the best option for analytics. The right choice depends on the size of objects in the image, the distance from the camera and how clearly the monitored area appears.

Stream optionPractical use
Main streamDistant subjects or scenes requiring more visual detail
SubstreamNearby subjects and lower bandwidth connections
HTTP snapshotIndividual image retrieval when a compatible endpoint is available

Start with a secondary stream if it provides a clear view of the target area. Compare its images with the main stream before relying on detection alerts. A person at the far end of a warehouse may be too small to distinguish in a heavily compressed image.

Avoid changing the main recording profile unnecessarily. Your existing recorder may depend on its current resolution and encoding settings.

Connecting your existing camera to AI analytics

First, test the stream with a trusted RTSP player or compatible ONVIF client from an authorized network. Confirm that authentication succeeds, video appears consistently and the image shows the intended area.

Next, sign in to InsightCam and start adding a camera. Choose the appropriate connection method: RTSP, ONVIF through a compatible gateway, or HTTP/HTTPS snapshot access where available.

Provide the required connection details and credentials. The analytics connection must be able to reach the camera or gateway. A private network address that works on your office computer is not necessarily accessible from an external service.

Use an approved secure connectivity arrangement rather than exposing camera ports directly to the public internet. Ask your network administrator or installer to help if the camera is on an isolated surveillance network.

Once images are available, configure the relevant detection area, event rules and alert schedules. For example, you could monitor person presence near a restricted entrance outside business hours or vehicle presence in a delivery area.

Test alerts under representative conditions before using them operationally. For a broader installation walkthrough, see how to add AI to existing CCTV.

Common connection problems and how to fix them

Incorrect stream address or port

A working camera login does not guarantee that its RTSP address is correct. Check the channel identifier, stream selection, path capitalization and configured port. If ONVIF discovery is available, retrieving the media profile's stream URI can help avoid manual address errors.

H.265 versus H.264 compatibility

H.265 can reduce bandwidth for a given image quality, but not every integration or decoder supports it. If a stream connects without displaying usable video, try standard H.264 on a secondary stream. Leave the recording stream unchanged where possible.

Special characters in passwords

Characters such as @, #, ? and % can interfere with URL parsing when credentials are embedded in an RTSP address. Use separate username and password fields whenever available. Otherwise, apply URL percent encoding to credential components if the connection method supports embedded credentials. Never publish an address containing real credentials.

Authentication or network failures

Check account permissions, ONVIF user requirements, firewall rules and whether the integration can reach the selected port. An authentication error may indicate invalid credentials or insufficient permissions, while a timeout may indicate a network routing problem.

Poor image quality or unreliable alerts

A successful connection does not guarantee useful detections. Check lighting, camera angle, compression and whether objects are hidden from view. Follow this camera positioning guide for AI detection before adjusting your detection rules.

Hikvision, Dahua, Axis and Bosch are trademarks of their respective owners. InsightCam is an independent service and is not affiliated with these manufacturers.

Frequently asked questions

Can I add AI analytics to an older Hikvision camera?

Yes, if the camera or its recorder provides a compatible and accessible stream or snapshot endpoint. Check the model's supported protocols, encoding settings and authentication options before connecting it.

How do I find my Dahua RTSP stream address?

Check the camera's network settings for its RTSP port and consult the manufacturer's documentation for the stream address format. Confirm the correct channel and subtype for the video feed you want to analyze.

Can I use ONVIF to connect an Axis or Bosch camera?

Yes, where the camera supports compatible ONVIF media services and the integration can access them through the appropriate connection method. You may need to enable ONVIF access and configure a dedicated user account.

Do I need to replace my existing NVR to add AI?

No, replacing the recorder is not generally necessary when compatible video feeds are accessible separately. Your existing recording system can continue operating while analytics processes camera images.

Can AI analytics detect every event on an existing camera?

No, detection depends on image quality, visibility, camera positioning and the timing of snapshot analysis. Brief events between snapshots or objects obscured from the camera may be missed, so test the configuration before relying on alerts.

Add your first camera