flat-bear-40398
11/28/2025, 9:57 AMtall-airline-16756
11/28/2025, 9:57 AMtall-airline-16756
11/28/2025, 9:57 AMvideoEncoding to the minimum acceptable bitrate/resolution. Less bits = less egress.
• Use simulcast with sensible layer settings — publish multiple layers but limit the top layer(s) bitrate/resolution so subscribers don’t get unnecessarily high‑bitrate streams.
• Enable Dynacast — pauses highres layer transmission when not consumed (e.g., offscreen participants), cutting server output bandwidth.
• Prefer efficient codecs (VP9/AV1) — they can reduce bandwidth ~30–40% vs H.264 for similar quality.
• Choose lighter egress types — use track egress instead of room composite when possible (track egress avoids running Chrome/transcoding and uses much less bandwidth/CPU).
• Avoid unnecessary transcoding — transcoding increases CPU and egress; pass tracks through when you can or use track egress for raw frames.
• Control ingress transcoding/simulcast — when ingesting streams (RTMP/WHIP), only create needed layers and bitrates instead of auto‑creating high‑bitrate streams.
• Autoscale egress workers and set resource limits — scale workers only when needed and size instances appropriately (monitor livekit_egress_available Prometheus metric).
• Monitor usage and iterate — track bandwidth per room/user to identify high consumers and apply policies (lower default resolution, limit simulcast layers, etc.).
Quick prioritized checklist to implement now
1. Reduce default publisher bitrate/resolution for non‑critical users.
2. Turn on Dynacast for rooms where many participants are offscreen.
3. Configure simulcast to include a low and medium layer only (drop unnecessary high layer).
4. Switch to VP9 or AV1 where client support allows.
5. Use track egress for recordings/exports unless you need composites from Chrome.
If you’d like, I can:
• Suggest concrete videoEncoding values and simulcast layer presets for typical use cases (meetings, large webinars, low‑bandwidth mobile).
• Point out which metrics to watch in Prometheus and thresholds to trigger autoscaling.
Which follow‑up would you like: concrete encoding presets, Prometheus metrics to monitor, or help estimating cost savings from a codec/bitrate change?
Sources: Codecs and more | LiveKit docs | Stream import | LiveKit docs | A Tale of Two Protocols: WebRTC vs. HLS for Live Streaming | Self-hosting the Egress Service | LiveKit docs | Recording and export | LiveKit docsflat-bear-40398
11/28/2025, 10:05 AMtall-airline-16756
11/28/2025, 10:05 AMflat-bear-40398
11/28/2025, 10:06 AMtall-airline-16756
11/28/2025, 10:07 AMvideoEncoding values, simulcast layer presets, and subscription rules tailored to your traffic mix.flat-bear-40398
11/28/2025, 10:08 AMtall-airline-16756
11/28/2025, 10:08 AMlivekit_egress_available, and CPU on egress workers.
• Set autoscaling rules for egress workers based on livekit_egress_available and observed bandwidth peaks.
If you want, I can:
• Provide exact OBS encoder settings (keyframe, rate control, CRF/VBR) for your target resolution and encoder.
• Suggest Prometheus alert thresholds and example autoscaling rules.
Which follow‑up would help most: OBS encoder presets or Prometheus/autoscale thresholds?flat-bear-40398
11/28/2025, 10:09 AMtall-airline-16756
11/28/2025, 10:10 AM