Adding a Camera to an NVR via RTSP: IP Camera Integration and Configuration Guide
How do you add an IP camera to an NVR via RTSP? A comprehensive technical guide to adding Hikvision, Dahua, Hanwha Vision, Axis, and other brands of IP cameras to NVRs using RTSP addresses, including custom protocol settings, Main Stream, Sub Stream, recording configuration, and troubleshooting connection issues.

Adding a camera to an NVR via RTSP is a method for integrating IP security cameras of different brands and models into network video recorders using their video stream addresses. RTSP connectivity is an important alternative, particularly in projects that require security cameras from different manufacturers to operate on the same recording infrastructure, need ONVIF connection issues resolved, or involve integrating specialized video sources into centralized recording systems.
If the NVR supports the custom RTSP protocol, the IP camera’s Main Stream and Sub Stream addresses can be entered manually. This may make it possible to view and record compatible video streams.
However, the fact that a camera outputs video over RTSP does not guarantee that it will work compatibly with every NVR, or that all of the camera’s AI, motion detection, PTZ control, and alarm features will be fully available.
What Is Adding a Camera to an NVR via RTSP?
RTSP (Real Time Streaming Protocol) is a communication protocol used to control video streams provided by IP security cameras, video encoder devices, and media servers.
An NVR (Network Video Recorder) is a recording device that can receive, display, and record IP camera video streams over a network.
When a camera is added via RTSP, the NVR acts as an RTSP client that connects to the camera’s video stream address. Video and audio data are generally carried over RTP.
This method can be used to perform the following operations on compatible devices:
Add IP cameras from different brands to the same NVR
Provide an alternative when ONVIF connection issues occur
Manually configure Main Stream and Sub Stream feeds
Integrate video encoder devices into the system
Record RTSP-enabled thermal cameras
Monitor cameras at remote sites over a secure network connection
Record RTSP streams generated by specialized video analytics applications
Expand existing CCTV infrastructure with products from different manufacturers
How Does an RTSP Camera Connection to an NVR Work?
In RTSP-based camera integration, the IP camera generates video images using a specific codec, resolution, frame rate, and bitrate configuration.
The NVR connects to the specified RTSP address and receives the video stream.
System component | Function |
|---|---|
IP camera | Generates video and, if available, audio streams |
PoE switch | Provides network connectivity and power |
RTSP server | Manages media sessions on the camera |
RTP | Carries audio and video data |
NVR | Receives, displays, and records the video stream |
HDD | Stores video recordings |
Monitor | Displays live and recorded footage |
VMS | Provides centralized video management |
Once the RTSP connection is established, the NVR can process the supported video stream in a way that suits its recording architecture.
Requirements for Adding a Camera via RTSP
The following technical requirements should be checked before adding an IP camera to an NVR via RTSP.
Requirement | Description |
|---|---|
RTSP-enabled IP camera | The camera must provide an accessible RTSP stream |
NVR with RTSP client support | Manual RTSP or Custom Protocol support must be available |
Camera IP address | Must be accessible to the NVR |
RTSP port | Usually TCP 554 |
RTSP URL | The correct video stream address must be known |
Username | Must have permission to view the camera |
Password | Valid camera user password |
Video codec | Must be supported by the NVR |
Resolution | Must be within the NVR channel capacity |
Bitrate | Must remain within the NVR’s incoming bandwidth limits |
Available IP camera channel | A usable channel must be available on the NVR |
HDD | If recording is required, sufficient storage capacity must be available |
The NVR’s ability to stream its own images over RTSP does not mean it can add external cameras via RTSP. RTSP server and RTSP client support are separate features.
How to Create an IP Camera RTSP Address
A typical RTSP connection address consists of the following components.
rtsp://kullanici:[email protected]:554/akis-yolu
URL component | Description |
|---|---|
rtsp:// | Communication protocol |
username | Camera username |
password | Camera user password |
192.168.1.100 | IP camera address |
554 | RTSP service port |
stream-path | Manufacturer-specific video stream path |
If the NVR has separate fields for the username and password, it may not be necessary to include the credentials in the RTSP URL.
For security reasons, avoid storing the password in plain text in the URL whenever possible.
IP Camera RTSP Addresses by Brand
The table below lists commonly used RTSP stream paths for various IP camera manufacturers.
Camera brand | Main Stream or primary profile | Sub Stream or secondary profile |
|---|---|---|
Hikvision |
|
|
Dahua |
|
|
Hanwha Vision |
|
|
Axis |
|
|
Uniview |
|
|
Tiandy |
|
|
Bosch |
|
|
Vivotek |
|
|
Milesight |
|
|
Reolink |
|
|
TP-Link Tapo |
|
|
TP-Link VIGI |
|
|
HiLook |
|
|
Amcrest |
|
|
EZVIZ |
| Model-dependent |
Foscam |
|
|
RTSP addresses may vary by camera model and firmware version. Hanwha Vision profile numbers may not correspond to fixed Main Stream or Sub Stream settings. For the High and Low stream profiles in the Axis example, the profiles must be configured on the camera.
Some manufacturers, such as Foscam, may use different RTSP ports. Not all cloud-based and battery-powered cameras provide a continuous RTSP video stream.
Steps for Adding a Camera to an NVR via RTSP
Step 1: Find the camera’s IP address
First, identify the camera’s IP address and check its network configuration.
You can use manufacturers’ device discovery tools.
Camera brand | Device discovery tool |
|---|---|
Hikvision | SADP Tool |
Dahua | ConfigTool |
Hanwha Vision | Wisenet Device Manager |
Axis | AXIS Device Manager |
Uniview | EZTools |
TP-Link VIGI | VIGI Security Manager |
Avoid IP address conflicts and verify that the camera is reachable from the NVR.
Step 2: Check the camera’s network configuration
A sample local CCTV network can be configured as follows.
Network component | Sample IP address |
|---|---|
Gateway | 192.168.1.1 |
NVR | 192.168.1.200 |
IP Camera 1 | 192.168.1.101 |
IP Camera 2 | 192.168.1.102 |
IP Camera 3 | 192.168.1.103 |
Technical service computer | 192.168.1.50 |
Subnet Mask | 255.255.255.0 |
Having the camera and NVR on the same IP subnet simplifies setup.
Devices on different VLANs or IP networks can also connect if appropriate routing and firewall policies are in place.
Step 3: Check the camera’s RTSP service
Check whether the RTSP service is enabled through the camera’s web management interface.
RTSP options are generally found under network settings, port configuration, or integration protocols.
The default RTSP port is 554 on most devices, but the actual port value must always be verified on the camera.
Step 4: Set the Main Stream and Sub Stream settings
Check the main-stream and sub-stream settings on the IP camera.
The following example settings may offer broad device compatibility for an initial connection test.
Camera setting | Main Stream | Sub Stream |
|---|---|---|
Video codec | H.264 | H.264 |
Resolution | 1920 × 1080 | 640 × 360 |
FPS | 15 | 10 |
Bitrate Mode | CBR | CBR |
Bitrate | 2048 Kbps | 512 Kbps |
I-Frame Interval | 15–30 frames | 10–20 frames |
Smart Codec | Disabled during testing | Disabled during testing |
These values are provided for an initial test. The final recording resolution should be determined according to PPM and DORI requirements, scene activity, and image-quality targets.
Step 5: Test the RTSP connection with VLC Player
Verify that the RTSP address works before adding the camera to the NVR.
Install VLC Media Player on a computer, then perform the following steps:
Open VLC Media Player.
From the Media menu, select Open Network Stream.
Enter the camera’s RTSP address.
Enter a username and password if required.
Check that the video opens.
Test Main Stream and Sub Stream separately.
Check for image freezing, distortion, or connection drops.
Main Stream example:
rtsp://192.168.1.101:554/Streaming/Channels/101
Sub Stream example:
rtsp://192.168.1.101:554/Streaming/Channels/102
If video opens in VLC, this indicates that the camera’s video stream is working. However, you must separately verify that the NVR supports the same codec and RTSP implementation.
Step 6: Open the NVR camera management menu
Open the camera addition menu in the NVR’s web interface or local monitor management screen.
Depending on the manufacturer and firmware version, the menu may use one of the following names.
Menu name | Function |
|---|---|
Camera Management | Camera management |
Camera Registration | Camera registration |
IP Camera | IP camera management |
Remote Device | Remote device management |
Manual Add | Manual device addition |
Custom Add | Custom device addition |
Custom Protocol | Custom protocol configuration |
User Defined | User-defined connection |
Step 7: Select RTSP or Custom Protocol
Select RTSP, Custom, or user-defined protocol from the protocols supported by the NVR.
Some NVR devices require the full RTSP URL to be entered, while others provide separate fields for the IP address, port, and stream path.
Step 8: Entering camera information
An example camera configuration is shown below.
NVR configuration field | Example value |
|---|---|
Camera Name | Store-Entrance |
IP Address | 192.168.1.101 |
Protocol | Custom RTSP |
RTSP Port | 554 |
Main Stream Path |
|
Sub Stream Path |
|
Username | Authorized camera user |
Password | Camera user password |
Transport Protocol | TCP or Auto |
Channel | Available NVR channel |
Whether to enter the full URL or only the path in the stream path field depends on the device interface.
Step 9: Verifying the camera connection
After saving the camera information, check the connection status on the NVR.
Camera connection status | Meaning |
|---|---|
Online | Camera connection established |
Offline | Camera connection could not be established |
Connecting | Connection being established |
Authentication Failed | Authentication error |
Network Unreachable | Network access problem |
Unsupported Stream | Unsupported video stream |
No Video | Connection is active, but video cannot be received or decoded |
An Online connection status alone does not prove that recording has started or that all video features are working.
Step 10: Configuring recording
After the camera has been added successfully, a recording schedule must be created on the NVR.
Check the recording disk status, channel recording settings, continuous recording schedule, and video stream selection.
With cameras added via RTSP, manufacturer-specific motion detection and alarm events may not be transferred to the NVR. For this reason, continuous recording may be preferable during initial tests.
Adding a Camera to a Hikvision NVR via RTSP
On Hikvision NVR devices with the Custom Protocol feature, IP cameras from other brands can be configured using custom RTSP stream paths.
Example: Adding a Dahua Camera to a Hikvision NVR
Assume that the Dahua camera has the IP address 192.168.1.110 and RTSP port 554.
Main Stream:
rtsp://192.168.1.110:554/cam/realmonitor?channel=1&subtype=0
Sub Stream:
rtsp://192.168.1.110:554/cam/realmonitor?channel=1&subtype=1
The following general procedure can be used on Hikvision NVR models that support Custom Protocol:
Open the Camera Management menu.
Open the Custom Protocol management option.
Create a new user-defined protocol.
Set the RTSP stream path for the Main Stream.
Enable the Sub Stream if supported.
Enter the Sub Stream path.
Select the RTSP port and a supported transport method.
Save the custom protocol you created.
Open the manual camera-add menu.
Enter the camera IP address and user credentials.
Select the Custom Protocol you created.
Test live viewing and recording.
Custom Protocol field | Example value |
|---|---|
Protocol Name | Dahua-RTSP |
Stream Protocol | RTSP |
Main Stream Port | 554 |
Main Stream Path |
|
Sub Stream Port | 554 |
Sub Stream Path |
|
Transport | TCP or Auto |
This procedure is a general configuration example. The availability of the Custom Protocol menu and the options it offers depend on the NVR model and firmware version.
Adding a Camera to a Dahua NVR via RTSP
On Dahua NVR models that support the Custom camera-add feature, IP cameras can be added to the system directly using RTSP URLs.
Example: Adding a Hikvision Camera to a Dahua NVR
Assume that the Hikvision IP camera has the IP address 192.168.1.120.
Main Stream:
rtsp://192.168.1.120:554/Streaming/Channels/101
Sub Stream:
rtsp://192.168.1.120:554/Streaming/Channels/102
The general procedure in the Dahua NVR interface is as follows:
Log in to the NVR web management interface.
Open the Camera List or Remote Device management section.
Select Manual Add.
Select Custom from the Manufacturer field.
Set the Main Stream RTSP URL.
Enter the Sub Stream address as well, if the interface supports it.
Enter the required camera credentials.
Save the camera.
Check the image on the Live View screen.
Test the recording schedule and Playback function.
Dahua's official technical support documentation illustrates adding a Custom RTSP camera using the NVR5216-16P-EI model.
Adding a Camera to a Hanwha Vision NVR via RTSP
The camera recording methods used on Hanwha Vision Wisenet NVR devices may vary by product series and firmware version.
On models that support manual RTSP or adding a user-defined video source, RTSP streams from cameras of other brands may be evaluated.
Example of a Hikvision camera stream:
rtsp://192.168.1.130:554/Streaming/Channels/101
Example of a Dahua camera stream:
rtsp://192.168.1.131:554/cam/realmonitor?channel=1&subtype=0
Before integration on Hanwha Vision NVR systems, check the following features:
Manual camera recording protocols
ONVIF compatibility
RTSP client support
Support for H.264 and H.265
Supported video resolutions
Camera profile selection
Live-viewing capacity
Recording bandwidth
Sub Stream support
The ability of Hanwha Vision NVR devices to stream their own recording channels via RTSP does not prove that they directly support adding Custom RTSP cameras.
Adding an Axis IP Camera to an NVR via RTSP
Axis IP cameras can provide RTSP video streams configurable with different parameters as part of the VAPIX architecture.
General Axis RTSP address:
rtsp://192.168.1.140:554/axis-media/media.amp
H.264 video stream:
rtsp://192.168.1.140:554/axis-media/media.amp?videocodec=h264
1080p and 15 FPS video stream:
rtsp://192.168.1.140:554/axis-media/media.amp?videocodec=h264&resolution=1920x1080&fps=15
If custom stream profiles have been created on the camera, they can be used in the RTSP URL.
Main Stream example:
rtsp://192.168.1.140:554/axis-media/media.amp?streamprofile=High
Sub Stream example:
rtsp://192.168.1.140:554/axis-media/media.amp?streamprofile=Low
RTSP parameter support on Axis cameras may vary by model and AXIS OS version.
Using Cameras from Different Brands on the Same NVR via RTSP
Custom protocol configurations that support RTSP can enable cameras from different brands to be used on the same recording device.
An example mixed-brand CCTV system can be configured as follows.
NVR channel | Camera brand | Camera IP address | RTSP port |
|---|---|---|---|
1 | Hikvision | 192.168.1.101 | 554 |
2 | Dahua | 192.168.1.102 | 554 |
3 | Hanwha Vision | 192.168.1.103 | 554 |
4 | Axis | 192.168.1.104 | 554 |
5 | Uniview | 192.168.1.105 | 554 |
6 | Vivotek | 192.168.1.106 | 554 |
7 | Milesight | 192.168.1.107 | 554 |
8 | Tiandy | 192.168.1.108 | 554 |
Each camera's video codec, resolution, bitrate, and RTSP connection path should be checked separately.
Integration features may vary even between different models from the same camera brand.
Differences Between Adding an NVR Camera via RTSP and ONVIF
RTSP and ONVIF provide different functions in IP camera systems.
ONVIF covers device discovery and standardized interfaces between applications, while RTSP enables control of media streams.
Technical feature | Manual RTSP | ONVIF | Manufacturer-specific protocol |
|---|---|---|---|
Live view | Yes | Yes | Yes |
Continuous video recording | Depends on NVR support | Usually available | Usually available |
Automatic device discovery | No | May be supported | May be supported |
Camera profile query | Manual | May be supported | Usually available |
Remote camera configuration | Limited | For supported functions | Usually more comprehensive |
PTZ control | Usually unavailable | Depends on profile and product | Depends on product |
Motion detection events | Usually not transferred | May be supported | Depends on product |
AI events | Usually not transferred | Depends on profile and product | Depends on product |
Audio recording | Depends on stream and codec support | Depends on product | Depends on product |
Two-way audio | Usually unavailable | Depends on product | Depends on product |
Video metadata | Depends on custom applications | Via interfaces such as Profile M | Depends on product |
Ease of configuration | Moderate | Usually easier | Usually easier |
Brand independence | High potential | Depends on standards compliance | Limited |
For more comprehensive information about ONVIF, What Is ONVIF? A Guide to IP Cameras, NVRs, and Profiles T/S/G/M you can consult the technical article titled
Should You Choose RTSP or ONVIF?
In systems using cameras and NVRs from the same brand, manufacturer-specific protocols may offer an advantage by enabling the use of supported advanced features.
When integrating IP cameras from different brands, suitable ONVIF profiles and device compatibility should be checked first.
If an ONVIF connection encounters problems or only a video stream is needed, manual RTSP can be considered as an alternative.
Why Are Main Stream and Sub Stream Important for Cameras Added via RTSP?
The Main Stream is generally used for high-resolution recording and detailed viewing.
The Sub Stream, with lower resolution and bitrate, can be used for multiview monitoring, mobile viewing, and connections with limited bandwidth.
Use case | Main Stream | Sub Stream |
|---|---|---|
High-quality recording | Suitable | Generally not preferred |
Single-camera full-screen viewing | Suitable | Limited detail |
16 or 32 split-screen views | High processing load | Usually advantageous |
Mobile viewing | High data consumption | Lower data consumption |
Remote connection | High bandwidth requirement | Lower bandwidth |
Examining facial and license plate details | With a suitable configuration | Usually insufficient |
Video analytics | Depends on analysis requirements | Depends on analysis requirements |
If only the Main Stream is configured over RTSP, the NVR may require substantial processing and video-decoding capacity when displaying multiple screens.
On some NVR devices, an undefined Sub Stream address can cause live-viewing problems.
The Camera Records via RTSP but Does Not Provide a Live View
Cameras added via RTSP or ONVIF can sometimes play back past recordings while failing to display live video on the monitor.
This is related to the fact that NVR recording and live-viewing operations may use different video-processing mechanisms.
Possible problem | Area to check |
|---|---|
Main Stream works, Sub Stream does not | Sub Stream RTSP address |
Sub Stream disabled | Camera video settings |
H.265 live-decoding incompatibility | H.264 test stream |
Smart Codec incompatibility | Smart compression settings |
Insufficient NVR decoder capacity | Simultaneous decoding capacity |
Resolution incompatibility | Camera and NVR specifications |
High FPS | Camera frame rate |
Video profile incompatibility | H.264/H.265 Profile and Level |
Multi-screen stream selection | NVR live-view settings |
Firmware incompatibility | Firmware updates |
Recommended diagnostic sequence
First, save the current camera settings, then test the Main Stream and Sub Stream addresses separately using VLC.
Next, compare the single-screen and multi-screen viewing behavior on the NVR.
If the problem persists, the camera can be tested temporarily with H.264, 1080p, 15 FPS, and standard compression settings.
If video is available in the H.264 test but not with the H.265 configuration, check video-decoding compatibility, the codec profile, and the NVR firmware version.
Low-resolution test settings should not be used permanently until the image quality required for recording has been verified.
Should RTSP Use TCP or UDP?
While RTSP control communication is generally carried out over TCP, media data can be transported over UDP or by the interleaved method within a TCP connection.
Technical characteristic | RTP over TCP | RTP over UDP |
|---|---|---|
Behavior in response to packet loss | TCP can retransmit | Lost packets are generally not retransmitted |
Firewall configuration | Generally easier | Additional media ports may be required |
Latency | May increase when packets are lost | May be lower under some conditions |
Image distortion | Can be reduced through retransmission | Can occur when packets are lost |
Multicast | Not available with standard interleaved TCP | May be supported |
NVR integration test | Generally a suitable starting point | Depends on network conditions |
For manual RTSP camera integration, selecting TCP can simplify diagnostics if it is supported.
However, in systems with high latency, heavy network traffic, or packet loss, TCP and UDP performance should be measured to determine the appropriate method.
RTSP Camera Connection on PoE NVR Devices
On NVR devices with integrated PoE ports, the camera network may operate in a different IP address range from the NVR management network.
Network segment | Example IP address |
|---|---|
NVR LAN address | 192.168.1.200 |
NVR internal PoE network address | 192.168.254.1 |
PoE Camera 1 | 192.168.254.2 |
PoE Camera 2 | 192.168.254.3 |
External PoE switch cameras | 192.168.1.100–150 |
These addresses are examples only.
IP cameras connected to the NVR's internal PoE ports may not be directly accessible from external computers.
In this case, use network access methods supported by the manufacturer to test the RTSP connection. The presence of a Virtual Host feature on some devices, which provides access to the camera web interface, does not mean that the RTSP port is also accessible.
Can a Camera Be Added from Another NVR Device via RTSP?
This type of integration is possible if the first NVR supports streaming channels via RTSP and the second NVR supports adding a manual RTSP video source.
Example of Hikvision NVR channel addresses
Source NVR IP address: 192.168.1.200
Source NVR channel | Main Stream RTSP address |
|---|---|
1 |
|
2 |
|
3 |
|
4 |
|
8 |
|
16 |
|
32 |
|
64 |
|
For Sub Stream, the stream code at the end of the channel number is 02 instead of 01.
For example, the Sub Stream address for channel 16:
rtsp://192.168.1.200:554/Streaming/Channels/1602
For these examples to work, the relevant channels must exist on the source NVR, and the correct stream paths must be supported.
Example of Dahua NVR channel addresses
Source NVR IP address: 192.168.1.210
Source NVR channel | Main Stream RTSP address |
|---|---|
1 |
|
2 |
|
4 |
|
8 |
|
16 |
|
32 |
|
64 |
|
To obtain Sub Stream, the subtype value can be changed to 1.
When transferring video from one NVR to another, the source device’s outgoing bandwidth and simultaneous connection capacity must be taken into account.
This method is not the same as a dedicated recording backup or historical-recording synchronization function. If the source NVR connection is lost, the second NVR may also lose the relevant live stream.
Can an Analog Camera Be Added to an NVR via RTSP?
Analog security cameras do not have their own IP address or RTSP video stream.
However, if the DVR, XVR, or video encoder to which the analog cameras are connected can stream video via RTSP, the relevant channel can be added to a compatible NVR as an IP video source.
Analog camera technology | RTSP integration method |
|---|---|
HD-TVI | Via DVR |
HDCVI | Via XVR |
AHD | Via a compatible DVR/XVR |
CVBS | Via DVR or video encoder |
Analog PTZ | Video stream via encoder or DVR |
This method can be considered when integrating existing analog CCTV systems with new IP-based centralized recording infrastructures.
Do not expect analog PTZ control and alarm events to be transferred solely through RTSP integration.
Comparing H.264 and H.265 in RTSP Camera Integration
RTSP is not a video compression format. Media streams created using different video codecs can be controlled via RTSP.
Video codec | Assessment for NVR integration |
|---|---|
H.264 | Broad device compatibility |
H.265 | More efficient compression on supported devices |
H.264+ | Should be tested because of manufacturer-specific optimization |
H.265+ | Should be tested because of manufacturer-specific optimization |
Smart H.265 | Integration and decoding compatibility should be checked |
MJPEG | May require high bandwidth |
AV1 | NVR and camera support should also be verified |
Using H.265 does not guarantee bandwidth or recording-capacity savings of any particular amount in all conditions.
The actual savings depend on scene content, image quality, camera encoder performance, and configuration characteristics.
Calculating Bandwidth for Adding RTSP Cameras to an NVR
Along with the number of camera channels supported by an NVR, its incoming recording bandwidth capacity is also important.
Total video bandwidth can be calculated by adding the bitrates of the camera streams received simultaneously.
Number of cameras | 2 Mbps per camera | 4 Mbps per camera | 8 Mbps per camera |
|---|---|---|---|
4 | 8 Mbps | 16 Mbps | 32 Mbps |
8 | 16 Mbps | 32 Mbps | 64 Mbps |
16 | 32 Mbps | 64 Mbps | 128 Mbps |
32 | 64 Mbps | 128 Mbps | 256 Mbps |
64 | 128 Mbps | 256 Mbps | 512 Mbps |
128 | 256 Mbps | 512 Mbps | 1024 Mbps |
Bandwidth calculation with Main Stream and Sub Stream combined
Assume that the Main Stream bitrate for 32 cameras is 4096 Kbps and the Sub Stream bitrate is 512 Kbps.
Video stream | Calculated traffic |
|---|---|
32 Main Streams | 131.072 Mbps |
32 Sub Streams | 16.384 Mbps |
Total media traffic | 147.456 Mbps |
25% example capacity reserve | 36.864 Mbps |
Planned network capacity | 184.32 Mbps |
In this example, a 100 Mbps network connection would not be sufficient. Gigabit Ethernet infrastructure should be considered, and the NVR's actual incoming stream capacity should be checked.
A 25% capacity reserve is an engineering assumption, not a fixed rate required by a standard.
Calculating NVR HDD Capacity for RTSP Cameras
The recording capacity for cameras added via RTSP depends on the average recording bitrate and recording duration rather than the video codec used.
HDD capacity can be estimated using the following formula:
HDD capacity (TB) = Number of cameras × Bitrate (Mbps) × 86,400 × Recording days / 8,000,000
The table below assumes continuous 24/7 recording and an average bitrate of 4 Mbps per camera.
Number of cameras | 30 days | 60 days | 90 days |
|---|---|---|---|
4 | 5.184 TB | 10.368 TB | 15.552 TB |
8 | 10.368 TB | 20.736 TB | 31.104 TB |
16 | 20.736 TB | 41.472 TB | 62.208 TB |
32 | 41.472 TB | 82.944 TB | 124.416 TB |
64 | 82.944 TB | 165.888 TB | 248.832 TB |
Calculations use decimal TB units. Audio recordings, RAID capacity losses, filesystem overhead, and operational reserves are not included.
Adding a camera via an RTSP connection does not, by itself, change the HDD capacity requirement.
RTSP Camera-Addition Errors and Solutions
Problem encountered | Possible cause | Solution |
|---|---|---|
Camera Offline | IP access problem | Check the network and firewall |
Connection Timeout | Packets are not reaching the destination | Check the IP, port, and routing |
Connection Refused | RTSP service is not listening | Verify the RTSP service and port |
401 Unauthorized | Authentication error | Check the username and password |
403 Forbidden | Access-permission problem | Check camera user permissions |
404 Not Found | Incorrect stream path | Verify the RTSP URL |
461 Unsupported Transport | Transport incompatibility | Select a supported TCP/UDP method |
Online but no video | Codec or stream problem | Controlled test with H.264 |
Recording available, but no live view | Decoder or Sub Stream problem | Test the streams separately |
Image freezes | Network loss or capacity issue | Switch and traffic analysis |
Image is delayed | Buffer or network issue | Latency and transport settings |
Camera disconnects continuously | Network, power, or session issue | Check PoE, cable, and connection |
Audio is not being recorded | Audio is disabled or the codec is incompatible | Camera and NVR audio settings |
PTZ is not working | Manual RTSP functionality limitation | ONVIF or manufacturer protocol |
Motion detection is not working | Event integration is unavailable | NVR local analytics or ONVIF |
NVR does not add the camera | Custom RTSP support is unavailable | Review the device technical manual |
No Resource warning | Video decoding capacity has been exceeded | Multi-screen and stream optimization |
Not Enough Bandwidth | Insufficient incoming stream capacity | Check bitrate and NVR capacity |
How to Test an RTSP Port with PowerShell?
PowerShell can be used on Windows to check access to a camera’s RTSP TCP port.
Test-NetConnection 192.168.1.101 -Port 554
If the TcpTestSucceeded field is True in the test result, it indicates that a TCP connection could be established.
However, an accessible port does not prove that RTSP user authentication, the video stream address, or video decoding will succeed.
How to Check a Camera’s RTSP Stream with FFmpeg?
FFmpeg and FFprobe tools can be used to inspect the technical characteristics of IP camera video streams.
Example FFprobe command:
ffprobe -v error -rtsp_transport tcp -show_streams "rtsp://192.168.1.101:554/Streaming/Channels/101"
For cameras that require authentication, authorized user credentials should be supplied using a method supported by the client in a secure test environment.
FFprobe can be used to inspect the following video properties:
Video codec
Resolution
Frame rate
Codec profile
Pixel format
Audio codec
Presence of video and audio streams
Bitrate information reported by the stream
Some live video streams may not report bitrate information directly. In this case, actual network traffic may need to be measured.
AI Video Analytics Features in Cameras Added via RTSP
AI-enabled IP cameras can generate various event and metadata information in addition to the image stream.
However, adding a camera manually via RTSP does not mean that all these features can be transferred to the NVR device.
AI feature | Manual RTSP integration |
|---|---|
Live video image | May be supported |
Video recording | May be supported |
Human detection events | Usually not transferred |
Vehicle detection events | Usually not transferred |
Line-crossing events | Usually not transferred |
Area intrusion events | Usually not transferred |
Facial recognition results | Custom integration may be required |
License plate recognition results | Custom integration may be required |
People-counting data | Additional data integration may be required |
Heat map data | Additional data integration may be required |
RE-ID data | Application-specific integration is required |
Smart video search | Depends on NVR and metadata support |
If the NVR has its own AI analytics engine, it can apply local analytics to video images received via RTSP. Whether this is possible depends on the NVR’s software and hardware capabilities.
Can People-Counting Cameras Be Added to an NVR via RTSP?
People-counting cameras or sensors that provide an RTSP video stream can be added to compatible NVR devices as video sources.
This method can be useful for field verification, reviewing counting events, calibration, and analyzing measurement errors.
Requirement in the people-counting system | Method that can be used |
|---|---|
Live sensor image | RTSP |
Video recording | RTSP and NVR |
Entry and exit counts | API, MQTT, or manufacturer data interface |
Real-time occupancy | Data integration |
Checkout queue analysis | Analytics data interface |
Aisle visitor analysis | Analytics data interface |
RE-ID results | Manufacturer-specific API or integration |
Counting accuracy check | Manual counting and video validation |
Centralized reporting | Cloud or local analytics platform |
Receiving the video stream and receiving counting data are different integration processes.
Recording RTSP images does not automatically transfer the corresponding visitor counts to the NVR.
The video-recording capabilities of people-counting sensors should also be assessed in light of manufacturer support and personal data protection requirements.
Cybersecurity in RTSP Camera Integration
The media and control communications in basic RTSP connections should not be assumed to be encrypted.
A layered protection approach should be applied to secure IP camera systems.
Security control | Recommended practice |
|---|---|
Camera user account | Unique and strong credentials |
User authorization | Only necessary viewing permissions |
RTSP port | No uncontrolled internet access |
Camera network | Separate CCTV VLAN |
Firewall | Access restricted to authorized systems |
Remote connection | VPN or secure access infrastructure |
Firmware | Supported security updates |
Unused services | Disable them |
Authentication | Use secure and compatible methods |
Video encryption | Supported secure media technologies |
NVR configuration | Secure backup and access control |
Security logs | Regular monitoring |
RTSPS can protect the RTSP control connection over TLS. SRTP or other appropriate encryption mechanisms may be required to ensure the confidentiality of separate RTP media connections.
Controlled and secure remote-access infrastructure should be preferred over exposing RTSP ports directly to the internet.
Commissioning and Validation in RTSP Camera Integration
In professional CCTV projects, a camera appearing Online on the NVR does not mean that integration is complete.
When commissioning the system, recording continuity, live-view performance, connection stability, and image quality should be verified.
Validation criterion | Test method |
|---|---|
Main Stream access | VLC and NVR test |
Sub Stream access | Separate stream test |
Live view | Single-screen check |
Multi-screen | Simultaneous viewing |
Continuous recording | Recording timeline check |
Playback | Playback of different time periods |
Video export | Sample recording file |
Audio recording | Check the supported audio stream |
Reconnection | Controlled connection interruption test |
Camera restart | Automatic connection check |
NVR restart | Check camera and recording session |
Night image | IR and low-light test |
Moving scene | Bitrate and image quality |
Maximum system load | Test with all cameras active |
Time synchronization | Camera and NVR time check |
PPM and DORI | Measure image detail adequacy |
Recording duration | Verify HDD capacity and retention |
Cybersecurity | Authorized access and network checks |
For critical projects, an observation period of 24–72 hours or longer stability tests appropriate to the project risk may be planned.
These periods are example engineering recommendations and are not a mandatory standard duration for every project.
Technical Checklist for Adding an RTSP Camera to an NVR
No. | Check criterion |
|---|---|
1 | NVR device RTSP client support |
2 | Number of available camera channels |
3 | Camera RTSP service support |
4 | Camera IP address |
5 | IP address conflict |
6 | Subnet Mask and Gateway |
7 | VLAN and network routing |
8 | RTSP port number |
9 | Camera username and password |
10 | User access permissions |
11 | Main Stream RTSP address |
12 | Sub Stream RTSP address |
13 | VLC Main Stream test |
14 | VLC Sub Stream test |
15 | H.264/H.265 compatibility |
16 | Camera resolution |
17 | Frame rate |
18 | Bitrate configuration |
19 | I-Frame Interval |
20 | Smart Codec compatibility |
21 | TCP/UDP transport method |
22 | NVR incoming bandwidth |
23 | NVR video decoding capacity |
24 | NVR HDD capacity |
25 | Recording schedule |
26 | Live-view check |
27 | Multi-screen check |
28 | Playback and recording export |
29 | Audio stream compatibility |
30 | PTZ and event integration requirements |
31 | Firmware compatibility |
32 | Connection interruption test |
33 | Automatic reconnection |
34 | NTP time synchronization |
35 | Network segmentation |
36 | Firewall security policies |
37 | Recording duration verification |
38 | Image quality validation |
39 | Long-term stability test |
40 | System commissioning report |
Frequently Asked Questions About Adding an RTSP Camera to an NVR
Can a camera be added to any NVR via RTSP?
No. The NVR must be able to add external RTSP video sources as a client. This feature is not available on all NVR models.
Can a Dahua camera be added to a Hikvision NVR via RTSP?
Compatible Dahua video streams can be configured manually on Hikvision NVR models that support the Custom RTSP protocol.
Can a Hikvision camera be added to a Dahua NVR via RTSP?
Yes. Hikvision RTSP video addresses can be used on suitable Dahua NVR models that support adding custom cameras.
Can RTSP be used if ONVIF is not working?
If the NVR has manual RTSP support and the camera provides a compatible stream, RTSP can be used as an alternative.
Does a camera added via RTSP record video?
Recording is possible if the NVR supports recording external RTSP sources.
Which port is used when adding a camera via RTSP?
The commonly used default RTSP port is 554. The camera’s actual configuration should be checked.
Is an internet connection required for an RTSP camera connection to an NVR?
No. The camera and NVR can operate on the same local network or on different local networks that are accessible to each other.
Can a wireless camera be added via RTSP?
Wi-Fi cameras that provide a continuous RTSP stream can be added to compatible NVR devices.
Can an 4G camera be added to an NVR via RTSP?
This may be possible if suitable network access, a secure VPN or supported connection architecture, and a continuous RTSP stream are available. Mobile operators’ CGNAT infrastructure may affect connectivity.
Can an H.265 camera be added via RTSP?
Yes. The camera and NVR must both support the relevant H.265 stream features.
Can a PTZ camera be controlled via RTSP?
A manual RTSP connection is generally for video streaming. PTZ control may require ONVIF or manufacturer-specific control interfaces.
Can audio be recorded via RTSP?
Audio can be recorded if the camera stream includes audio and the NVR supports the relevant audio codec. Legal requirements relating to audio recording should be assessed separately.
Can two-way audio be used via RTSP?
Standard manual RTSP camera setup generally does not provide two-way audio. Additional audio communication mechanisms and support from both devices are required.
Does motion detection work on a camera added via RTSP?
The camera’s event messages may not be transferred automatically over manual RTSP. This feature can be used separately if the NVR supports its own video motion analysis.
Why does a camera added via RTSP appear Offline?
Possible causes include an incorrect IP address, network access issues, the RTSP port, login credentials, the stream path, or codec incompatibility.
VLC Player displays the video, but the NVR does not. Why?
The NVR’s RTSP client application, codec profile, resolution support, authentication method, or video decoding capacity may be incompatible with the camera stream.
Why does a camera added via RTSP record video but not provide a live view?
The Sub Stream connection, live-view profile, codec compatibility, or NVR decoder capacity should be checked.
Can the same IP camera be added to two different NVR devices?
Yes, if the camera has sufficient capacity for simultaneous connections and video streaming. The increased network traffic should be taken into account.
Can channels from another NVR be recorded via RTSP?
Yes, if the source NVR provides an RTSP stream for the channel and the target NVR supports external RTSP video sources.
Do cameras added via RTSP use more HDD capacity?
No. Recording capacity depends primarily on average bitrate, number of cameras, audio data, and recording duration.
Does an RTSP connection reduce image quality?
RTSP does not directly perform video compression. Image quality depends on the camera encoder settings, the video profile received, and the NVR’s image-processing capabilities.
Is an RTSP connection secure?
Encryption should not be assumed for a basic RTSP connection. Use secure network access, strong authentication, and supported encrypted communication methods.
Conclusion
Adding an IP camera to an NVR via RTSP is an important integration method that enables security cameras from different manufacturers to be used within the same video recording infrastructure.
It can be considered particularly for multi-brand CCTV projects, ONVIF connection problems, integrating existing analog systems with IP infrastructures, and recording custom RTSP video sources.
For a successful RTSP integration, the camera stream address, Main Stream and Sub Stream configuration, video codec compatibility, NVR recording and video decoding capacity, network bandwidth, and cybersecurity requirements should all be analyzed together.
In a professional CCTV system, the success of RTSP integration should be measured not only by whether video is received, but also by recording continuity, image quality, data integrity, connection stability, and field validation.