RTMP
Real-Time Messaging ProtocolBest for: Sending your stream to the server
- Video, from Your encoder
- Video, from Your encoder
- Video, from Your encoder
- Video, from Your encoder
Compare protocols
Best for: Sending your stream to the server
Best for: Viewers on phones, TVs and browsers
RTMP keeps one TCP connection open and pushes audio and video with only a few seconds of delay, which is why streaming software uses it to send a stream to a platform. HLS cuts video into small files over normal HTTP, so any phone or browser can play it and caches can serve millions. Most live streams use RTMP in and HLS out.
Tick everything that is true for you.
Your pick shows here
Tick one or more lines and we weigh them for you.
| What differs | RTMP | HLS |
|---|---|---|
| Main job today | Ingest: encoder to server | Delivery: server to viewers |
| Transport | One long TCP connection | Many HTTP(S) requests for short segments |
| Port | 1935 (RTMPS often 443) | 443 or 80 |
| Typical delay | A few seconds | About 6 to 30 seconds; Low-Latency HLS about 2 to 5 |
| Plays in browsers | No | Yes, natively or with a small player script |
| Adaptive quality | No, one bitrate per stream | Yes, the player switches between renditions |
| Scaling to many viewers | Hard: every viewer holds a connection | Easy: segments are plain files that caches serve |
| Files | None, a continuous stream | .m3u8 playlists and .ts or .mp4 segments |
Each page plays the real packets on a map, step by step, with every header explained.
Each line describes one of the two. Which one?
Question 1 of 8
Main job today
Ingest: encoder to server
Not for sending. Browsers no longer play RTMP, but it is still the most common way encoders push a live stream to a server, often as RTMPS with TLS.
The player waits for a few complete segments, each a few seconds long, before it starts. Low-Latency HLS uses smaller parts to cut that down.
Yes. A media server takes the RTMP stream in, cuts it into segments and writes the playlist. That is how most live platforms work.
It is the HLS playlist: a small text file listing the video segments and, in a master playlist, the quality levels a player can choose from.