Free tools / SRT latency calculator

SRT latency calculator

Haivision’s SRT guide sets latency as round-trip time × a multiplier that grows with packet loss, and uses 20 ms as the lowest RTT. Enter your RTT and packet loss below to get the suggested minimum SRT latency.

Everything runs in your browser. Nothing you type is sent anywhere or saved.

SRT latency calculator

Ping your relay, or read RTT in your app’s SRT stats.

From your app’s stats: resent ÷ sent × 100.

Suggested SRT latency

240 ms

4 × 60 ms = 240 ms

RTT used
60 ms
RTT multiplier
4
Bandwidth overhead
4%

Latency can be set on the sender and the receiver. SRT uses the higher of the two.

Haivision’s RTT multiplier table

Packet lossRTT multiplierBandwidth overheadLatency at RTT ≤ 20 ms
≤ 1%31%60 ms
≤ 3%44%80 ms
≤ 7%69%120 ms
≤ 10%815%160 ms
≤ 12%820%160 ms
≤ 21%1038%200 ms
≤ 25%1346%260 ms
≤ 27%1450%280 ms
≤ 30%1461%280 ms
≤ 40%3097%600 ms

The table assumes steady loss. Haivision notes that loss in bursts needs more bandwidth overhead, and calls these numbers conservative guidance based on an earlier SRT version.

Source: Haivision SRT Deployment Guide: Configuring an SRT Stream, RTT Multiplier

Worked example

Your phone pings the relay at 60 ms and the app reports 2% packet loss. 2% falls in the ≤3% row, so the multiplier is 4 and the suggested latency is 4 × 60 = 240 ms.

On a wired line with 12 ms RTT and 0.5% loss, RTT is counted as 20 ms and the multiplier is 3, so the result is 60 ms.

Questions

What SRT latency should I use for IRL streaming?

The calculator gives Haivision’s minimum for your RTT and loss. On mobile networks, RTT and loss change as you move, so measure on a weak part of your route and leave room above the result.

Where do I find RTT and packet loss?

Ping your relay’s host to get RTT. Many SRT apps and relays also show RTT and resent packets in their stats. Haivision works out the loss rate as resent bytes ÷ sent bytes × 100 over 60 seconds.

Why is an RTT under 20 ms counted as 20 ms?

Haivision’s guide says SRT does not respond to events on timescales shorter than 20 ms, so 20 ms is the lowest RTT it uses.

Do I set latency on the sender or the receiver?

Both can set it. According to Haivision, SRT uses the higher of the two values for the stream.

What does the bandwidth overhead column mean?

It is the extra bandwidth Haivision suggests keeping free for resent packets at that loss rate. Your connection needs room for the stream’s bitrate plus that percentage.