Skip to content

Instantly share code, notes, and snippets.

@travelhawk
Last active November 25, 2022 07:52
Show Gist options
  • Save travelhawk/89c17064afcedc9b919d985da37f72fd to your computer and use it in GitHub Desktop.
Save travelhawk/89c17064afcedc9b919d985da37f72fd to your computer and use it in GitHub Desktop.
Comparison of streaming protocols

RTMP: Real Time Messaging Protocol (TCP)

Video codecs: H.264
Audio codecs: AAC
Latency: 2 - 30 seconds

Pros: Multicast support, low buffering, wide platform support
Cons: Old codecs, somewhat low security, relatively high latency

WebRTC: Web Real-Time Communication (both UDP and TCP)

Video codecs: VP8, VP9, H.264 (H.625 + AV1 in progress)
Audio codecs: Opus
Latency: Less than one second

Pros: No plugins needed, sub-second latency, supported codecs
Cons: Instability due to sub-second latency

SRT: Secure Reliable Transport (UDP)

Video codecs: Codec-agnostic
Audio codecs: Codec-agnostic
Latency: Less than one second

Pros: High quality, stability, sub-second latency, strong codec support
Cons: Weak platform support, no playback

https://github.com/Haivision/srt
https://github.com/Edward-Wu/srt-live-server

SLDP: Softvelum Low Delay Protocol

MPEG-DASH

High Latency

HLS

High Latency

MSS

High Latency, only Microsoft

RSP


Based on https://restream.io/blog/streaming-protocols/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment