1. RTSP
The Real Time Streaming Protocol, or RTSP, is an application-level protocol for control over the delivery of data with real-time properties. RTSP provides an extensible framework to enable controlled, on-demand delivery of real-time data, such as audio and video. Sources of data can include both live data feeds and stored clips. This protocol is intended to control multiple data delivery sessions, provide a means for choosing delivery channels such as UDP, multicast UDP and TCP, and provide a means for choosing delivery mechanisms based upon RTP (RFC 1889).
2.汉萄洌康RTSP播放地址格式
rtsp://[username]:[password]@[ip]:[port]/[codec]/[channel]/[subtype]/av_stream
- username
用戶名. 例如admin. - password
密碼. 例如123456效览。 - ip
設(shè)備IP. 例如 192.168.2.231 - port
端口號(hào)默認(rèn)為554荡短,若為默認(rèn)可不填寫。 - codec
h264/MPEG-4/mpeg4 - channel
通道號(hào)掘托,起始為1. 如通道1則為ch1. - subtype
碼流類型. 主碼流為main瘦锹,輔碼流為sub.
e.g.
- 主碼流
rtsp://admin:123456@192.168.2.231:554/h264/ch1/main/av_stream
等價(jià)于:
rtsp://admin:123456@192.168.2.231
- 子碼流
rtsp://admin:123456@192.168.2.231:554/h264/ch1/sub/av_stream