RTMP vs RTSP / RTP: what to choose for interactive livestream?

If you are trying to develop an interactive livestream application, you rely on ultra-low (real-time) latency. For example, for video conferencing or a remote laboratory.

Two protocols that should be suitable for such circumstances:

  • RTSP, when transmitting data via RTP
  • RTMP

* WebRTC: As I try to give a wider audience the opportunity to interact with each other, WebRTC is not suitable. Because, as far as I know, it is not intended for a wider audience.

My questions:

  • Which should I choose for this use case? RTSP / RTP or RTMP?

  • Which protocol provides the best results in terms of end-to-end delay , session start time?

  • Which one consumes more hardware?

  • RTMP seems to use a persistent TCP connection. But which protocol is used for transmission? It cannot be TCP because it cannot provide real-time delay?

  • What are the pros and cons of using any of the protocols?

I did not find any comparison of these two protocols in scientific articles or books. Just that the popular Periscope mobile app uses RTMP.

Other applications, such as Instagram or Facebook, for example, provide textual interaction with the streamer. If developers want to create the following “killer application” based on real-time interactive streams: I think this question is necessary to answer.

+4
1

.

WebRTC: , WebRTC . , , .

. WebRTC , . WebRTC.

, WebRTC RTP .

TCP, ?

, . TCP, , . TCP .

UDP , , , TCP .

RTMP

RTMP - Flash. . . - .

, Periscope RTMP.

, -.

  1. , ?

WebRTC

  1. ?

. , , .

, :

  • . ?
  • ? , ? , ?
  • ? . YouTube , . , .
  • ? , , crappier ?
  • ?
  • ?
  • , ?
  • ?
  • ?

: fooobar.com/questions/418267/...

, . . , .

+4

Source: https://habr.com/ru/post/1683097/


All Articles