Skip to content

Instantly share code, notes, and snippets.

@diffficult
Last active December 22, 2021 22:24
Show Gist options
  • Save diffficult/d8406660239e0a49896b0cdb44e97e05 to your computer and use it in GitHub Desktop.
Save diffficult/d8406660239e0a49896b0cdb44e97e05 to your computer and use it in GitHub Desktop.
Hik Vision RTSP feeds

Live View URL

rtsp://<address>:<port>/Streaming/Channels/<id>/

rtsp://<username>:<password>@<address>:<port>/Streaming/Channels/<id>/

Where <address> is the IP address of your camera, <port> is the RTSP port of the camera, and <username> and <password> refer to the login credentials of your camera.

Using the first format, you will be asked to login and verify your credentials before being allowed to view the stream.

Using the second format, you will automatically login when requesting the stream

<id> refers to the channel number and stream type of the camera. For example, an <id> of 101 refers to channel #1 (first digit, 1xx) using the main stream (second and third digits, x01).

Typically, you'll use a program such as VLC Media Player to decode the RTSP stream.

Examples

Main Stream

rtsp://192.168.1.100:554/Streaming/Channels/101/

rtsp://admin:[email protected]:554/Streaming/Channels/101/

Sub Stream

rtsp://192.168.1.100:554/Streaming/Channels/102/

rtsp://admin:[email protected]:554/Streaming/Channels/102

Take a snapshot via HTTP URL

http://<username>:<password>@<address>:<httpport>/Streaming/Channels/1/picture

Where <username> and <password> are the login credentials of the camera in question, and <address> and <httpport> are the IP address of the camera and its HTTP port (default 80).

The above URL will present a snapshot of the camera's current live view. Typically, this is used to embed a regular snapshot based on a time interval on a web page, but there are of course many things you can do with the URL.

For example

http://admin:[email protected]:80/Streaming/Channels/1/picture

Source: use-IP forum > https://www.use-ip.co.uk/forum/threads/hikvision-rtsp-stream-urls.890/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment