The difference between HTTP and RTSP and RTMP network camera

  RTSP RTMPHTTP都是可以做视频直播或者点播,但一般做直播用RTSP RTMP,做点播用HTTP。做视频会议的时候原来用SIP协议,现在基本上被RTMP协议取代了,下面我们就来看看他们的作用到底有何不同。

Common points:
1: RTSP RTMP HTTP are all in the application layer.
2: In theory, both RTSP RTMPHTTP can be used for live broadcast and on-demand, but generally RTSP RTMP is used for live broadcast, and HTTP is used for on-demand broadcast. When doing video conferencing, the SIP protocol was originally used, but now it is basically replaced by the RTMP protocol.

Differences:
1: HTTP: Hypertext Transfer Protocol (ftp is File Transfer Protocol).
HTTP: (Real Time Streaming Protocol), real-time streaming protocol.
The full name of HTTP is Routing Table Maintenance Protocol (routing table maintenance protocol).

2: HTTP handles all data as files. The http protocol is not a streaming protocol.
RTMP and RTSP protocols are streaming media protocols.

3: The RTMP protocol is Adobe's private protocol, which has not been fully disclosed. The RTSP protocol and the HTTP protocol are shared protocols and are maintained by specialized agencies.

4: The RTMP protocol generally transmits flv and f4v format streams, and the RTSP protocol generally transmits ts and mp4 format streams. HTTP has no specific streams.

5: RTSP transmission generally requires 2-3 channels, and the command and data channels are separated. HTTP and RTMP generally transmit commands and data on one TCP channel.
RTSP real-time streaming protocol As an application layer protocol, RTSP provides an extensible framework, and its significance is to make the control and on-demand of real-time streaming media data possible. In general, RTSP is a streaming media representation protocol, mainly used to control the transmission of data with real-time characteristics, but it does not transmit data itself, but must rely on certain services provided by the underlying transport protocol. RTSP can provide streaming media with operations such as play, pause, fast forward, etc. It is responsible for defining specific control messages, operation methods, status codes, etc., and also describes the interaction with RTP (RFC2326).

Guess you like

Origin blog.csdn.net/qq_45206551/article/details/131244305