ENGINEERING GUIDE

SRT vs RTMP: The First-Mile Protocol War

Compare **SRT vs RTMP** for live video contribution, focusing on **latency recovery** and packet loss resilience over public internet.

Essential for remote production and cloud switching. To calculate your required buffer, use our SRT latency calculator. Explore more broadcast engineering tools for IP video and media networking.

For the last fifteen years, RTMP (Real-Time Messaging Protocol) was the absolute gold standard for sending live video to platforms like Twitch, YouTube, and Facebook. Initially developed by Macromedia (later Adobe) for Flash player, RMTP is ubiquitous. But today, broadcast engineers rely heavily on SRT (Secure Reliable Transport) for remote point-to-point contribution. Why?

The Problem with TCP-based RTMP

RTMP runs on TCP (Transmission Control Protocol). TCP is designed to guarantee that every single packet arrives in the exact order it was sent. If a packet drops over a bad hotel WiFi connection, TCP halts the entire stream data flow until the receiver sends a requested ACK, and the sender re-transmits the dropped packet.

This is great for downloading a PDF file (where a missing byte corrupts the file), but it is terrible for live video. When TCP halts the stream to recover a packet, the video buffers, latency spikes exponentially, and eventually the connection times out. You get the dreaded spinning wheel.

The SRT Solution (UDP + ARQ)

SRT was developed by Haivision to solve this exact problem. SRT runs on UDP (User Datagram Protocol). UDP sends data as fast as possible in a continuous spray and doesn't care if it arrives or in what order. Left alone, UDP video looks like corrupted, pixelated garbage.

But SRT adds a wrapper around UDP called ARQ (Automatic Repeat reQuest) coupled with an intentional, fixed latency buffer.

If the packet doesn't arrive in time, SRT simply drops the frame and moves on, causing a momentary visual glitch rather than causing the entire stream to buffer indefinitely. This guarantees a fixed, mathematically stable latency.

Caller, Listener, and Rendezvous

One common hurdle for engineers switching to SRT is Firewall Traversal. Unlike RTMP, which always pushes to a server, SRT lets you choose which end initiates the connection:

Pro Tip: The 4x RTT Rule
To calculate the correct SRT latency buffer, measure your ping (Round Trip Time) between the two sites. A safe, professional broadcast-grade buffer is 4 times the RTT. (e.g., if ping is 30ms, set your SRT latency to 120ms).
Configure your SRT Buffer

Calculate the exact SRT latency config based on ping (RTT).