Hello, guys!
Good day!
This topic is the RTSP address format of mainstream cameras.
Hikvision
rtsp://[username]:[password]@[ip]:[port]/[codec]/[channel]/[subtype]/av_stream
| Parameter | Note |
| username | Username. For example: admin |
| password | Password. For example: 12345 |
| ip | Device IP address. For example:192.0.0.64 |
| port | The default port number is 554. You can leave this parameter blank if the default port number is 554. |
| codec |
|
| channel | Indicates the channel ID. The value starts from 1. For example: for channel 1, the value is ch1. |
| subtype | Stream type. The value is main for the primary stream and sub for the secondary stream. |
For example:
To request the primary stream of Hikvision camera channel 1, the URL is as follows:
Primary stream
rtsp://admin:12345@192.0.0.64:554/h264/ch1/main/av_stream
rtsp://admin:12345@192.0.0.64:554/MPEG-4/ch1/main/av_stream
Sub stream
rtsp://admin:12345@192.0.0.64/mpeg4/ch1/sub/av_stream
rtsp://admin:12345@192.0.0.64/h264/ch1/sub/av_stream
Dahua
rtsp://[username]:[password]@[ip]:[port]/cam/realmonitor?[channel]&[subtype]
| Parameter | Note |
| username | Username. For example: admin |
| password | Password. For example: 12345 |
| ip | Device IP address. For example:10.7.8.122 |
| port | The default port number is 554. You can leave this parameter blank if the default port number is 554. |
| channel | Indicates the channel ID. The value starts from 1. For example: for channel 2, the value is ch2. |
| subtype | Stream type. The value is 0 (subtype=0) for the primary stream and 1 (subtype=1) for the secondary stream. |
For example, to request the secondary stream of channel 2 of a device, the URL is as follows:
rtsp://admin:admin@10.12.4.84:554/cam/realmonitor?channel=2&subtype=1
D-Link
rtsp://[username]:[password]@[ip]:[port]/[channel].sdp
| Parameter | Note |
| username | Username. For example: admin |
| password | Password. For example: 12345 If there is no network authentication, write it as rtsp:// [ip]:[port]/[channel].sdp. |
| ip | Device IP address. For example:192.168.0.108 |
| port | The default port number is 554. You can leave this parameter blank if the default port number is 554. |
| channel | Indicates the channel ID. The value starts from 1. For example: for channel 2, the value is live2. |
For example, to request the code stream of channel 2 of a device, the URL is as follows:rtsp://admin:12345@192.168.200.201:554/live2.sdp
Axis
rtsp://[username]:[password]@[ip]/axis-media/media.amp?[videocodec]&[resolution]
| Parameter | Note |
| username | Username. For example: admin |
| password | Password. For example: 12345 If there is no network authentication, omit the user name, password, and @ character. |
| ip | Device IP address. For example:192.168.0.108 |
| videocodec | MPEG and H.264 are supported. The default value can be used. |
| resolution | Resolution, for example, resolution=1920x1080. If the default resolution is used, this parameter can be used by default. |
For example, to request the 1280x720 code stream encoded by H.264 on a device, the URL is as follows:
rtsp:// 192.168.200.202/axis-media/media.amp?videocodec=h264&resolution=1280x720
Huawei
rtsp://admin:Xinzhou123@192.168.1.102/LiveMedia/ch1/Media1
Hope it helpful!