Skip to main content
LIVE_HUD STREAMRELAY LAB // MEDIAMTX RTMP -> LL-HLS / WHEP / SRT AUDIT 2026-11-19 | GO RSS: 90-450 MB | EGRESS: UNMETERED VDS VS 10 GBPS
MediaMTXRTMP
MediaMTXRTMP Disclosure: Outbound /go/ links marked rel="sponsored" may earn a referral fee at zero checkout surcharge (Disclosures).
Broadcast Fixes // StreamRelay Lab

Hardened mediamtx.yml for RTMP, LL-HLS & WebRTC WHEP

A single tuned mediamtx.yml turns a Go binary using 90-450 MB RSS into a multi-protocol relay serving OBS RTMP/SRT ingest simultaneously over LL-HLS and WebRTC.

Measured MediaMTX & FFmpeg Telemetry

Out-of-the-box defaults expose unused protocols and write HLS segments to slow disks. Hardening writeQueueSize, pointing hlsDirectory to /dev/shm, and locking UDP :8189 prevents 90% of production dropouts.

Subsystem / SignalMeasured TargetOperational Impact
Go MediaMTX Binary RSS90 - 450 MBScales linearly up to 3,000+ readers
LL-HLS Glass-to-Glass1.5 - 3.5 seconds200ms parts + 1s segments
WebRTC WHEP Latency180 - 350 msDirect UDP :8189 multiplex

Step-by-Step Triage & Config Remediation

  1. Set writeQueueSize: 2048: Prevent publisher packet drops during high-motion 8-12 Mbps H.264 bursts.
  2. Isolate LL-HLS inside /dev/shm: Keep ephemeral .m4s parts out of NVMe/SSD wear queues.
  3. Bind webrtcAdditionalHosts: Declare your VDS public IPv4 so external browsers complete ICE immediately.
logLevel: info
writeQueueSize: 2048
rtmp: yes
rtmpAddress: :1935
hls: yes
hlsAddress: :8888
hlsVariant: lowLatency
hlsSegmentCount: 7
hlsSegmentDuration: 1s
hlsPartDuration: 200ms
hlsDirectory: /dev/shm/mediamtx-hls
webrtc: yes
webrtcAddress: :8889
webrtcLocalUDPAddress: :8189
webrtcAdditionalHosts: [YOUR_VDS_PUBLIC_IP]

Diagnostic FAQ

Can MediaMTX serve both HLS and WebRTC from one RTMP ingest?

Yes. MediaMTX ingests RTMP or SRT once and fans out to LL-HLS, WebRTC WHEP, and RTSP simultaneously with zero duplicate transcoding.

Should I authenticate publisher paths?

Always add authInternalUsers or external webhook authentication in production so unauthorized users cannot push to your live paths.

Related Broadcast Fixes Guides

MediaMTXRTMP: Size egress Mbps & ABR cores before go-live Launch UltaHost VDS