Company
Date Published
Author
Michael Carroll
Word count
1166
Language
English
Hacker News points
None

Summary

Real-Time Messaging Protocol (RTMP), originally developed by Macromedia for Flash Media Server, remains a widely used protocol for live streaming ingestion despite the decline of Flash. It operates over a persistent TCP connection on port 1935, enabling low-latency streaming through efficient audio and video data handling. RTMP's architecture includes a handshake process, chunk streaming, and multiplexing, allowing multiple streams to be transmitted over a single connection. Although newer protocols like HLS, WebRTC, and SRT offer advanced features and lower latency, RTMP is still favored for its integration with existing infrastructures and CDNs, making it suitable for large-scale broadcasts. It faces limitations such as lack of adaptive bitrate support, firewall restrictions, and higher latency compared to WebRTC and SRT, but remains a popular choice for video ingestion before transcoding to modern formats like HLS. RTMP's security can be enhanced through RTMPS, token-based authentication, and access controls to prevent unauthorized access and stream hijacking.