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 Errors // StreamRelay Lab

FFmpeg 1080p60 Transcode CPU Overload & Speed <1.0x Drops

Encoding a 1080p60+720p+480p ABR ladder in software libx264 requires 4 to 8 dedicated physical cores; when FFmpeg speed falls below 0.98x, MediaMTX playlists stall.

Measured MediaMTX & FFmpeg Telemetry

Shared budget VPS plans suffer noisy-neighbor CPU steal (%st) when other tenants spike. Because live video transcoding is hard real-time (1.00x speed minimum), even a 15% CPU steal window drops FFmpeg speed to 0.85x and breaks HLS segment continuity.

Subsystem / SignalMeasured TargetOperational Impact
Passthrough (No Transcode)0 FFmpeg CoresMediaMTX copies H.264/AAC directly at 90-220 MB RSS
1080p30+720p+480p (veryfast)4 - 5 Dedicated Cores~780 MB FFmpeg RSS; keep CPU steal at 0%
1080p60+720p+480p (veryfast)6 - 8 Dedicated Cores~1,120 MB FFmpeg RSS; requires UltaHost VDS 32

Step-by-Step Triage & Config Remediation

  1. Watch FFmpeg speed= metric: Inspect FFmpeg stderr logs; speed= must stay locked at >=1.00x without dropping below 0.99x.
  2. Switch preset to veryfast/superfast: Use -preset veryfast -tune zerolatency and copy the top 1080p60 rung with -c:v copy when OBS already sends clean H.264.
  3. Pin dedicated physical cores: Move 3-rung 1080p60 ABR workloads to UltaHost Dedicated VDS (8 cores / $54.50/mo) for 0% CPU steal.
# Copy 1080p60 source rung and transcode only 720p + 480p to save 45% CPU:
ffmpeg -i rtmp://127.0.0.1:1935/live/ingest \
  -map 0:v -map 0:a -c:v copy -c:a copy -f flv rtmp://127.0.0.1:1935/live/1080p \
  -map 0:v -map 0:a -vf scale=-2:720 -c:v libx264 -preset veryfast -g 120 -b:v 3000k -c:a aac -f flv rtmp://127.0.0.1:1935/live/720p

Diagnostic FAQ

Can I skip transcoding the 1080p rung?

Yes! Passing through the publisher 1080p60 stream via -c:v copy and encoding only 720p + 480p cuts FFmpeg CPU load roughly in half.

Why does MediaMTX run fine alone but crash when ABR starts?

Go MediaMTX uses only 90-450 MB RAM and minimal CPU, whereas spawning libx264 ABR immediately claims 4-8 full CPU cores.

Related Broadcast Errors Guides

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