Hikvision RTSP URL Address Stream Format
The Hikvision devices use a specific format for the URL to live to stream your audio and videos from one device to another.
Below is the format of the RTSP URL for your Hikvision devices:
rtsp:// [USER] : [PASS] @ [ADDRESS] : [RTSP PORT] /Streaming/Channels/ [CH] 0 [STREAM TYPE]
Note that this format is for RTSP with Authentication. Let’s now discuss the format in detail:
Here,
- [USER] means the username needed to access your Hikvision devices, such as IP camera, NVR, or DVR.
- [PASS] means a password to access your devices.
- [ADDRESS] means the IP address or DDNS/domain of your Hikvision device.
- [RTSP PORT] is the RTSP port of your device, which is 554 by default.
- [CH] means the channel number you want to pull.
- [STREAM TYPE] indicates the resolution such that 0 for mainstream (high resolution), 1 for substream (low resolution but faster)
Samples for IP addresses
For your better understanding, let’s discuss a few examples for the local and external IP addresses:
For local IP addresses
For example, if the local IP address of your device is 192.167.1.100 and the RTSP port is 554. The RTSP streaming addresses for mainstream and sub-stream will be as follow:
Hikvision Main Stream:
rtsp://admin:[email protected]:554/Streaming/Channels/101
Hikvision Sub Stream:
rtsp://admin:[email protected]:554/Streaming/Channels/102
For external IP addresses
For example, if the local IP address of your device is 105.153.15.99 and the RTSP port is 554. The RTSP streaming addresses for mainstream and sub-stream will be as follow:
Hikvision Main Stream:
rtsp://admin:[email protected]:554/Streaming/Channels/101
Hikvision Sub Stream:
rtsp://admin:[email protected]:554/Streaming/Channels/102
RTSP URL format without Authentication
Below is the format for RTSP without Authentication:
rtsp://<IP address of device>:<RTSP port>/Streaming/channels/<channel number><stream number>
Here, <stream number> represents mainstream as 01 and the substream as 02.
Samples for IP addresses
For example, if the IP address of your device is 173.202.91.70:10 and the RTSP port is 554. The RTSP streaming addresses for mainstream and sub-stream will be as follow:
Hikvision Main Stream:
rtsp://173.202.91.70:10:554/Streaming/channels/101
Hikvision Sub Stream:
rtsp://173.202.91.70:10:554/Streaming/channels/102
How to take a screenshot via HTTP URL?
To take a screenshot of your camera’s current live view, use an URL that contains your login credentials. Here’s the format for the HTTP URL for it:
http://<username>:<password>@<address>:<httpport>/Streaming/Channels/1/picture
Here, <username> and <password> are your login credentials for your Hikvision device. While <address> and <httpport> are the IP addresses for your device and port respectively. Note that the HTTP port is 80 by default.
Sample for HTTP URL
For example, if the IP address of your device is 192.169.0.150 and the RTSP port is 80. The HTTP URL will be as follow:
http://username:[email protected]:80/Streaming/Channels/1/picture
Conclusion
To live-stream your audio and videos of your Hikvision IP cameras, NVR, or DVR to another device, you may use the RTSP protocol, which is Real Time Streaming Protocol that streams videos in real-time.
Therefore, we have listed the Hikvision RTSP URL addresses with and without Authentication for both main and sub-streams. Also, we have discussed how to screenshot your camera’s live view using the HTTP URL. So, take a ride on this blog for a quick guide and samples.
Source:
https://us.hikvision.com/en/support-resources/documentation/technical-bulletin/tb-rtsp-and-http-urls