当前位置 : 主页 > 编程语言 > java >

三款摄像头设备URL总结

来源:互联网 收集:自由互联 发布时间:2022-07-19
三款摄像头设备RTSP URL总结 李国帅于2017/8/31 定下了每工作日写一个什么东西,可有不能随便的抄袭,若是真没什么想法,免不了那些以前的小东西应景,总不算是说了不做。 Axis rtsp:


三款摄像头设备RTSP URL总结

李国帅于2017/8/31

定下了每工作日写一个什么东西,可有不能随便的抄袭,若是真没什么想法,免不了那些以前的小东西应景,总不算是说了不做。

Axis

rtsp://192.168.17.240/mpeg4/1/media.amp

rtsp://192.168.17.240:554/mpeg4/1/media.amp

大华摄像头

rtsp://admin:admin@192.168.10.109:554/cam/realmonitor?channel=1&subtype=0

海康DVS

rtsp://192.168.10.108/H.264/ch1/sub/av_stream

rtsp://192.168.10.108/h264/ch1/sub/av_stream

rtsp://192.168.17.108:554/h264/ch1/main/av_stream

rtsp://192.168.10.108:554/PSIA/streaming/channels/102

rtsp://192.168.10.108:554/Streaming/Channels/102/*表示以单播方式取通道1的子码流*/

rtsp://admin:12345@192.168.10.108/h264/ch1/main/av_stream

rtsp://admin:12345@192.168.17.108:554/h264/ch1/main/av_stream

rtsp://admin:ss123456@192.168.3.25/H.264/ch1/sub/av_stream

192.168.17.108 admin 12345

在ie中用ip访问,上述地址@前面为账号信息

提醒一下

对于海康的设备需要注意以下几点:

型号很多,而且很多的型号的url也是不同的。

rtsp信令虽然相同,不过里面的字段却是相差很大,有些型号的设备比如TrackID定义,Agent字段的大小写不同,ntp时间字段也是很混乱。

有些型号的IPC或者NVR实际上在VLC这样的播放器上播放也是不正常的,特别是在播放录像的时候,如果是自己写播放器,需要对它们进行调整。

--------------------

附带axis设备自定义url的一些介绍

AMC supports the following custom protocol schemes:

Scheme Description

axrtpm MJPEG, MPEG-4 and H.264 multicast RTP streams

axrtpu MJPEG, MPEG-4 and H.264 unicast RTP streams

axrtsp MJPEG, MPEG-4 and H.264 unicast RTSP streams

axrtsphttp MJPEG, MPEG-4 and H.264 unicast RTSP streams over HTTP

axrtsphttps MJPEG, MPEG-4 and H.264 unicast RTSP streams over HTTPS

axmpeghttp MPEG-2 unicast streams

axsdp MPEG-2, MPEG-4 and H.264 multicast streams without RTSP. See note 1.

For example, to access a multicast H.264 stream via the RTP protocol, the URL with the custom protocol scheme could look like this

axrtpm://<server-address>/axis-media/media.amp?videocodec=h264 (VAPIX version 3 - firmware version 5.xx)

MPEG-4 stream via the RTSP protocol:

axrtsp://<server-address>/mpeg4/media.amp (VAPIX version 2 - firmware version 4.xx)

Secondary audio stream on supported products:

axrtsphttp://<server-address>/axis-media/media.amp?video=0&audio=1&audiochannel=2 (VAPIX version 3 - firmware version 5.xx)

Unicast MPEG-2 stream:

axmpeghttp://<server-address>/axis-cgi/mpeg2/video.cgi

Multicast stream without using RTSP (firmware version 5.30 and higher):

axsdp://<server-address>/axis-cgi/alwaysmulti.sdp?camera=1

MJPEG stream via the RTPS protocol tunneled over HTTP with embedded credentials:

axrtsphttp://root:pass@<server-address>/axis-media/media.amp?videocodec=jpeg (VAPIX version 3 - firmware version 5.xx)

Note 1: The axsdp protocol enables receiving multicast streams without using the RTSP protcol. When using this protocol the URL should point to the location of a SDP file. The server must be configured to always stream multicast video or/and audio streams. This option is available on some older products (firmware version earlier that 4.20) and in newer products (supported from firmware version 5.30).

Note 2: To stream only video add "/trackID=1" to the URL, to stream only audio add "/trackID=2". To get only audio from an audio capable Axis device use an URL like this (here we get audio streamed over RTP unicast):

axrtpu://<server-address>/mpeg4/media.amp/trackID=2

上一篇:ASCII字符显示例子
下一篇:没有了
网友评论