Broadcast Fixes // StreamRelay Lab
SRT Encryption, streamid ACLs & RTT-Matched Latency Buffers
Replace plaintext RTMP ingest over public Wi-Fi or cellular uplinks with AES-encrypted SRT on UDP :8890 that survives 2-5% packet loss.
Measured MediaMTX & FFmpeg Telemetry
MediaMTX natively speaks SRT caller and listener modes without FFmpeg wrappers, enforcing path-level passphrases and publishing credentials directly in YAML.
| Subsystem / Signal | Measured Target | Operational Impact |
|---|---|---|
| AES Encryption | pbkeylen=16 or 32 | Zero-noticeable CPU overhead in Go/libsrt |
| Recommended Buffer | 3.5x link RTT (min 120ms) | Clean ARQ retransmission window |
| SRT Port Footprint | Single UDP :8890 | Supports multiple concurrent encoders |
Step-by-Step Triage & Config Remediation
- Enable srt: yes in mediamtx.yml: Bind srtAddress: :8890 and define per-path srtPublishPassphrase.
- Match encoder passphrase: Use a 16-32 character passphrase and ?streamid=publish:live/ingest in OBS.
- Verify live recovery: Monitor MediaMTX logs for SRT packet retransmit counts under mobile network testing.
srt: yes
srtAddress: :8890
paths:
live/ingest:
source: publisher
srtPublishPassphrase: "ReplaceWithStrong32CharSrtSecret"
Diagnostic FAQ
Can viewers also watch via SRT from MediaMTX?
Yes, MediaMTX supports SRT readers using streamid=read:live/ingest on the same UDP :8890 port.
Does OBS Studio support SRT natively?
Yes, OBS Studio 28+ supports SRT URLs directly under Settings -> Stream -> Custom.