If you own a Hikvision device such as an IP camera or a NVR/DVR, you can use the RTSP protocol to live stream. RTSP stands for Real Time Streaming Protocol, a network protocol for streaming the videos in real-time.
Basically, it’s designed to send audio or video live from one device to another. The same RTSP url format works for Hilook devices as well.
Hikvision RTSP URL format (with Authentication)
Hikvision RTSP: rtsp:// [USER] : [PASS] @ [ADDRESS] : [RTSP PORT] /Streaming/Channels/ [CH] 0 [STREAM TYPE]
Fill in your information as follows:
- [USER] – This is the username to access your device (IP camera, NVR, DVR)
- [PASS] – This is the password to the user
- [ADDRESS] – This can be the IP address or the domain / DDNS name of your device
- [RTSP PORT] – This is the RTSP port of your device, the default is normally 554
- [CH] – This refers to the channel number that you want to pull
- [STREAM TYPE] – 0 for main stream (highest resolution), 1 for substream (low resolution, but faster)
Example 1. Local IP address
The local IP address of the device is: 192.168.1.100 and the RTSP port is 554. These are the RTSP streaming addresses:
Hikvision Main Stream: rtsp://admin:password@192.168.1.100:554/Streaming/Channels/101
Hikvision Sub Stream: rtsp://admin:password@192.168.1.100:554/Streaming/Channels/102
Example 2. External IP address
The local IP address of the device is: 105.152.15.99 and the RTSP port is 554. These are the RTSP streaming addresses:
Hikvision Main Stream: rtsp://admin:password@105.152.15.99:554/Streaming/Channels/101
Hikvision Sub Stream: rtsp://admin:password@105.152.15.99:554/Streaming/Channels/102
RTSP without Authentication
rtsp://<IP addressof device>:<RTSP port>/Streaming/channels/<channel number><stream number>
Note: <stream number> represents main stream(01), or the sub stream(02)
Example:
rtsp://173.200.91.70:10554/Streaming/channels/101 –get the main stream of the first channel
rtsp://173.200.91.70:10554/Streaming/channels/102 –get the sub stream of the first channel