Got it

RTSP address format of mainstream cameras

Latest reply: Mar 13, 2021 08:24:34 478 2 1 0 0

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

ParameterNote
username

Username.

For example: admin

password

Password.

For example: 12345

ip

Device IP address.

For example:192.0.0.64

portThe default port number is 554. You can leave this parameter blank if the default port number is 554.
codec
  • H264

  • MPEG-4

  • etc

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]

ParameterNote
username

Username.

For example: admin

password

Password.

For example: 12345

ip

Device IP address.

For example:10.7.8.122

portThe 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

ParameterNote
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

portThe 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]

ParameterNote
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!

Welcome!!!
View more
  • x
  • convention:

Thanks for posting
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.