Broadcast Errors // StreamRelay Lab
SRT Caller/Listener Packet Loss & ARQ Latency Jitter
When field encoders push SRT over LTE or trans-continental links with latency=20ms, ARQ retransmits expire before arrival, producing macroblocking and audio clicks.
Measured MediaMTX & FFmpeg Telemetry
SRT relies on UDP Automatic Repeat reQuest (ARQ) within a configured latency window. If network RTT is 80 ms, the SRT latency buffer must be at least 3x to 4x RTT (240-320 ms) for lost packets to recover cleanly.
| Subsystem / Signal | Measured Target | Operational Impact |
|---|---|---|
| LAN / Same-Region RTT <15ms | latency=120000 (120 ms) | Smooth recovery under 1% loss |
| Cross-Continent RTT 70ms | latency=250000 (250 ms) | Handles 3x RTT ARQ retransmits |
| Cellular / Unstable Uplink | latency=500000 (500 ms) | Eliminates macroblocking bursts |
Step-by-Step Triage & Config Remediation
- Check RTT before setting latency: Measure ping RTT to the MediaMTX node and set SRT latency >= 3.5x average RTT.
- Verify MediaMTX streamid format: Use publish:live/ingest in OBS SRT URL query string (?streamid=publish:live/ingest).
- Open UDP 8890 and increase rmem_max: Raise net.core.rmem_max=26214400 so kernel UDP buffers do not drop SRT bursts.
# OBS SRT Server URL example for MediaMTX: srt://your-node.example:8890?streamid=publish:live/ingest&latency=250000
Diagnostic FAQ
Why does MediaMTX reject my OBS SRT connection immediately?
Most rejections happen because streamid lacks the publish: prefix (publish:live/ingest) or passphrase length violates SRT 10-79 char limits.
Is SRT better than RTMP for 10-12 Mbps ingest?
Yes. SRT recovers single lost UDP packets without stalling the entire TCP window.