Hikvision RTSP URL builder
Use the channel shown on the recorder. For direct access to a single-channel camera, start with 1. Replace DEVICE_IP and RTSP_PORT with the local address and port of the device serving the stream.
Main-stream URL
rtsp://DEVICE_IP:RTSP_PORT/Streaming/channels/101
Substream URL
rtsp://DEVICE_IP:RTSP_PORT/Streaming/channels/102
Which RTSP port should I use?
Hikvision’s NVR manual shows port 554 with Digest authentication. A Hikvision support example uses 10554. Use the RTSP port configured on the camera or recorder that supplies the stream.
On recorders with a Network Service menu, open RTSP in that menu to find the port. Leave the field blank to keep RTSP_PORT in the example.
Direct answer
ID = channel number × 100 + stream type: 1 main, 2 sub, and 3 third stream when supported. Channel 1 main is 101, channel 1 sub is 102, and channel 2 main is 201. For an NVR channel, use the NVR IP, NVR account, configured RTSP port, and the slot shown in Camera Management.
Channel ID formula
Type 1 = main, 2 = sub, 3 = third stream. A calculated third-stream address works only if the device exposes that stream.
RTSP channel examples
| Recorder slot | Main | Sub | Third |
|---|---|---|---|
| 1 | /Streaming/channels/101 | /Streaming/channels/102 | If supported: /Streaming/channels/103 |
| 2 | /Streaming/channels/201 | /Streaming/channels/202 | If supported: /Streaming/channels/203 |
| 3 | /Streaming/channels/301 | /Streaming/channels/302 | If supported: /Streaming/channels/303 |
| 16 | /Streaming/channels/1601 | /Streaming/channels/1602 | If supported: /Streaming/channels/1603 |
| 17 | /Streaming/channels/1701 | /Streaming/channels/1702 | If supported: /Streaming/channels/1703 |
| 19 | /Streaming/channels/1901 | /Streaming/channels/1902 | If supported: /Streaming/channels/1903 |
Choose IP and credentials
| Connection | Endpoint | Channel rule | Credentials |
|---|---|---|---|
| Direct camera | Camera IP and RTSP port | Usually channel 1 for one sensor | Camera account |
| Through NVR | NVR IP and RTSP port | Slot in Camera Management | NVR account |
| Hybrid DVR | DVR IP and RTSP port | IP channels may follow analogue channels | DVR account |
Copyable URL patterns
Use the RTSP port configured on the recorder. Port 554 is common; Hikvision also publishes 10554 examples, but that port is not universal. Use the path from your model’s documentation and keep its capitalization.
RTSP channel or ONVIF?
ONVIF can discover the recorder and media profiles; a manual RTSP URL selects one exact channel. On supported firmware, enable ONVIF under Configuration > Network > Advanced Settings > Integration Protocol and create an ONVIF user.
Add Hikvision NVR channels to SmartRTSP
- Read each camera's actual slot in Camera Management.
- Keep the Apple device and recorder on the same LAN.
- Enter NVR IP, account, RTSP port, and the calculated path.
- Use the sub-stream first in multi-camera grids.
- For direct access, use the camera's IP and account.
View this NVR in SmartRTSP
SmartRTSP is an RTSP and ONVIF camera viewer for iPhone, iPad, Mac, and Apple TV. Once this stream works, add it manually or use ONVIF discovery on your local network.
- Use the sub stream in a multi-camera grid and the main stream for detail.
- Open each channel URL separately and confirm a moving picture. Check for audible sound on channels with audio enabled.
- Connect locally without bridge hardware or a required cloud subscription.
Troubleshooting by symptom
| Symptom | Likely cause | Fix |
|---|---|---|
| 101 works, 201 fails | Camera is not in slot 2 | Check Camera Management rather than PoE port order. |
| 401 Unauthorized | The device requires sign-in or rejected the credentials. | Use the recorder’s username and password for an NVR address, or the camera’s account for direct access. |
| Connection refused or timed out | The RTSP service is disabled or unreachable at that address and port. | On the same local network, check the device’s address, confirm RTSP is enabled, and use its configured RTSP port. |
| Connected but black screen | H.265, resolution, or main-stream load | Test H.264 sub-stream ending in 02. |
| 103/203 fails | No third stream | Use 101/102 or verify capability. |
| First IP camera on hybrid DVR is not 101 | Digital slots follow analogue channels | Use the displayed slot, e.g. channel 17 main = 1701. |
Check your model and firmware
Channel assignment, stream count, codec, RTSP port, authentication, and menu names can vary by model and firmware. Check the current device settings before setup. For remote access, use a VPN instead of exposing RTSP to the public internet.
FAQ
What does 101 mean?
Channel 1 main stream.
Is 102 camera 2?
No. It is channel 1 sub-stream; channel 2 main is 201.
Camera IP or NVR IP?
Use NVR IP for an NVR channel and camera IP for direct access.