Technology

SRT vs RTMP: Latency, Bandwidth, Reliability and Which One to Use

RTMP still carries most live streams from the encoder to the server. SRT does the same job over UDP and holds up far better when the network drops packets. Here is how to choose, with settings that work.

The short answer

SRT and RTMP do the same job: they carry your stream from the encoder (OBS, vMix, a hardware encoder or a phone app) to a server. Neither one is what your viewers watch. Viewers get HLS or WebRTC from the server, which we compare in RTMP vs HLS vs WebRTC. So this decision is only about the first mile, and the first mile is where most live streams break.

RTMP runs over TCP and every platform accepts it. On a wired connection to a nearby server it works very well, and there is no reason to change. SRT runs over UDP and recovers lost packets inside a fixed delay buffer. It was built for the networks where RTMP struggles: cellular, venue Wi-Fi and long distances. Our rule of thumb is simple. Stable cable and a server on the same continent: RTMP is fine. Anything shakier or farther away: use SRT.

Why they behave so differently

The difference starts at the transport. RTMP sits on TCP, which guarantees that every byte arrives, and in order. When a packet is lost, TCP resends it and holds back everything behind it until the gap is filled. It also slows down, because it reads loss as congestion. For a file download that is exactly right. For live video it means the encoder's output buffer fills up, OBS starts dropping frames and, if the loss continues, the connection resets and the stream has to reconnect.

SRT takes the opposite approach. It sends over UDP and the receiver tracks sequence numbers. When one is missing, it asks for that packet alone and the sender resends it, as long as it can still arrive in time. That "in time" is the latency buffer you configure. A packet that cannot be recovered inside the buffer is skipped instead of freezing the stream. The delay stays fixed, and you trade a small, predictable buffer for a stream that survives loss.

Distance makes the gap bigger. Every TCP retransmission costs a full round trip, so an encoder on another continent suffers far more from the same loss rate than one in the next city. SRT sizes its buffer to the round trip and keeps going.

SRT vs RTMP side by side

AspectRTMPSRT
TransportTCPUDP with selective retransmission (ARQ)
Under packet lossStalls, slows down and can disconnectRecovers lost packets within its buffer
Added delaySmall on a clean line, grows with lossFixed: the latency you set (120 ms by default)
CodecsH.264 and AAC; the Enhanced RTMP extension adds HEVC and AV1Codec agnostic; encoders usually send H.264 or HEVC inside MPEG-TS
EncryptionOnly as RTMPS (RTMP over TLS)Optional AES with a passphrase set on both ends
Who accepts itEvery social platform, server and encoderOBS, vMix, FFmpeg, pro encoders and most streaming servers; few social platforms
Who defines itA specification published by AdobeHaivision's open-source library, libsrt (MPL 2.0)

Neither is a formal standard from a standards body. RTMP was created by Macromedia for Flash around 2002 and documented later by Adobe. SRT was developed by Haivision and released as open source in 2017; its reference implementation is on GitHub. In practice both interoperate well, because nearly every product builds on the same few implementations.

SRT vs RTMP latency: what really changes

Many people switch to SRT expecting the stream to become real time. It does not work that way, because ingest is only one link in the chain. On a clean connection, RTMP's ingest delay is already small. SRT adds exactly the buffer you choose, usually somewhere between 120 milliseconds and one second. What your viewers feel depends on delivery: standard HLS commonly runs 10 to 30 seconds behind, Low-Latency HLS about 2 to 5 and WebRTC under a second.

For reference, on XtreamCast the standard HLS player keeps about 30 seconds of margin on purpose, so a hiccup on the viewer's network does not turn into buffering. If you need less, the LL-HLS add-on brings a channel to about 3 seconds for USD 20/month, and WebRTC playback reaches up to 0.3 s on a good connection for USD 20/month. Both work the same with RTMP or SRT ingest; the details are on our low-latency streaming page.

Where SRT does help with latency is on bad networks. RTMP's delay grows while TCP retransmits and its buffers fill, and every disconnect costs many seconds while the encoder reconnects and players recover. SRT keeps the delay where you set it.

Choosing the SRT latency value

The buffer has to cover a few round trips to the server, so the right value depends on your connection. A common rule is at least 3 to 4 times the round-trip time, and more on lossy links. In OBS and FFmpeg the value goes in the URL in microseconds; vMix asks for it in milliseconds.

Value in an OBS URLBufferWhen to use it
latency=120000120 msWired connection, server nearby
latency=200000200 msGood fiber or cable: a sensible starting point
latency=500000500 ms4G or 5G, shared venue Wi-Fi
latency=1000000 or more1 s or moreVery unstable links, satellite, another continent

Start at 200 ms. If OBS reports dropped frames or the picture breaks up on the server side, go up one step and test again. A larger buffer buys stability at the cost of delay, so find your point in a rehearsal, not during the event.

SRT vs RTMP bandwidth

The protocol does not change your bitrate. A 6 Mbps stream is 6 Mbps over RTMP or over SRT, because your encoder settings decide that. What changes is how each protocol uses the line when it is under pressure.

SRT resends lost packets on top of your stream, so it needs spare upload to do its job. If your uplink is already full, there is no room for retransmissions and SRT cannot save you. The rule we give customers applies to both protocols: your stable upload should be at least 1.5 times what you send. With RTMP the problem shows up another way. TCP backs off whenever it sees loss, so on a lossy long-distance path its real throughput can fall well below what the line could carry.

That is the real bandwidth difference. SRT can use the capacity you have on an imperfect line; TCP often cannot. On a clean wired connection with headroom, both deliver the same bitrate and you will not notice any difference.

And RTSP? SRT vs RTMP vs RTSP

RTSP shows up in this comparison because it is what most IP and security cameras speak. It is an IETF protocol (RFC 2326 from 1998, revised as RTSP 2.0 in RFC 7826) designed to control a stream: a player or recorder connects to the camera and pulls the video, which travels as RTP over UDP or interleaved over TCP. It was never meant to push a stream across the internet to a cloud server, and few streaming platforms ingest it.

XtreamCast, for example, only receives pushed streams over RTMP or SRT and does not pull from cameras. An RTSP camera needs something in between. Many PTZ cameras can push RTMP or SRT on their own, so check the camera's menu first. If yours cannot, OBS (with a Media Source) or FFmpeg can take the RTSP feed and push it as SRT:

ffmpeg -rtsp_transport tcp -i "rtsp://CAMERA-IP:554/stream" -c:v copy -c:a aac -b:a 128k -f mpegts "SRT-URL-FROM-YOUR-PANEL"

This copies the camera's H.264 video without re-encoding and converts its audio to AAC. If the camera sends H.265, replace -c:v copy with -c:v libx264 so the server receives H.264. And set the camera's keyframe (I-frame) interval to 2 seconds before you start: many cameras ship with much longer intervals, and since HLS segments can only start on a keyframe, playback takes longer to begin.

When RTMP is still the right choice

  • You stream straight to social platforms. YouTube, Facebook, Twitch and LinkedIn are built around RTMP or RTMPS ingest.
  • Your connection is wired and stable and the server is on the same continent. RTMP will not give you trouble.
  • Your gear only speaks RTMP. Plenty of older hardware encoders and simple apps have no SRT option.
  • You want the simplest possible setup: a URL and a key, described in every tutorial on the internet.

Our RTMP server takes the same H.264 and AAC stream any platform would, and the panel checks the ingest every 10 seconds: protocol, codecs, keyframe interval, frame rate and bitrate. When something is off in your encoder, you see it there before your viewers do.

When to switch to SRT

  • Cellular or shared Wi-Fi. On 4G or 5G, and at stadiums, hotels and trade fairs, packet loss is normal. If you bond several modems, the bonding receiver (usually SRTLA) hands a normal SRT stream to the server; we explain it in our guide to SRT bonding for mobile streaming.
  • Long distances. Telecanal, a Chilean TV channel, sends its three signals to our North America origin over SRT. Long links are where a fixed buffer pays off most.
  • Delivery to cable operators. Headends and professional receivers take SRT natively. Radio Hoy, on our Chile origin, uses XtreamTranscoder and hands its signal to cable operators through the channel's SRT output.
  • Professional encoders. Hardware from Haivision, Teradek and most broadcast brands offers SRT, often as the recommended mode.

The setup we see work best: SRT in, HLS out, RTMP to social

You do not have to pick one protocol for everything. What works best for most of our customers is SRT from the encoder to the server, for a stable first mile, and HLS from the server to viewers, because every screen plays it. If you also want YouTube or Facebook, the server relays the stream: Restream sends it to up to 30 RTMP or RTMPS destinations on paid video plans. Your encoder sends one SRT stream and the platforms still get the RTMP they expect.

It works the other way too. XtreamCast channels have an SRT output (srt://) for VLC, FFmpeg, headends and cable operators. The web player does not play SRT, since no browser does; on websites, viewers get HLS.

The SRT server, ingest and output, is included in paid video plans. If you want to try your encoder first, the free plan accepts RTMP and SRT ingest at up to 1,500 kbps.

How to set up SRT in OBS

  1. Open Settings, Stream and choose Custom as the service.
  2. In Server, paste the full srt:// URL your server gives you, with host, port and stream ID. A generic one looks like srt://your-server:port?streamid=YOUR-STREAM-ID&latency=200000.
  3. Leave Stream Key empty: with SRT, everything travels in the URL.
  4. In Output, use H.264, CBR, a 2 second keyframe interval and AAC audio at 48 kHz.
  5. Click Start Streaming and confirm that the server sees the stream.

Two details save time. First, XtreamCast's SRT ingest authenticates with a token inside the stream ID, so copy the URL exactly as the panel shows it and do not add a passphrase: the passphrase and pbkeylen options are only for servers that use SRT's optional encryption. If your security policy requires an encrypted first mile, know that our SRT ingest relies on that token rather than encryption; for an encrypted first mile, send RTMPS, which every plan accepts on port 1937 with the same stream key. Second, vMix and hardware encoders ask for the same data in separate fields (host, port, stream ID, latency in milliseconds) instead of a single URL. Our SRT ingest docs have the step by step.

Is RTMP going away?

Not any time soon. Every platform accepts it, every encoder sends it and twenty years of tutorials explain it. It has also been modernized: RTMPS adds TLS encryption, and Enhanced RTMP adds HEVC and AV1. What is changing is its role. Professional contribution is moving to SRT, real-time workflows are adopting WebRTC ingest through WHIP, and RTMP stays as the common language every device still speaks.

In broadcast circles SRT also has a rival with the same goals, RIST, which we compare in RIST vs SRT.

So, SRT or RTMP?

Use RTMP when you stream from a wired connection, straight to social platforms or with gear that only speaks RTMP. Use SRT when the network is unreliable, the server is far away, you deliver to broadcast equipment, or a dropped stream would cost you far more than ten minutes of setup.

If you are unsure, test both from the actual venue, at the actual time of day, with the bitrate you will really use. One honest rehearsal answers the question better than any comparison table, including ours.

Send SRT from your encoder, deliver HLS everywhere

Paid video plans include SRT ingest and SRT output, with ingest diagnostics in the panel every 10 seconds. The free plan accepts SRT too, so you can test your encoder first.