2026-07-25 01:11:42 +00:00
|
|
|
# MediaMTX configuration for podsteadr.
|
2026-07-10 19:01:38 +00:00
|
|
|
# Ingest: RTMP (OBS) + WebRTC/WHIP (browser). Output: HLS. Publish auth is
|
2026-07-25 01:11:42 +00:00
|
|
|
# delegated to podsteadr via HTTP; stream status is polled from the API.
|
2026-07-10 19:01:38 +00:00
|
|
|
|
|
|
|
|
logLevel: info
|
|
|
|
|
|
|
|
|
|
api: yes
|
|
|
|
|
apiAddress: :9997
|
|
|
|
|
|
|
|
|
|
# ---- authentication ------------------------------------------------------
|
|
|
|
|
authMethod: http
|
2026-07-30 23:18:36 +00:00
|
|
|
authHTTPAddress: http://podsteadr-app:8095/api/mediamtx/auth
|
2026-07-10 19:01:38 +00:00
|
|
|
authHTTPExclude:
|
|
|
|
|
- action: api
|
|
|
|
|
- action: metrics
|
|
|
|
|
- action: pprof
|
|
|
|
|
|
|
|
|
|
# ---- protocols -----------------------------------------------------------
|
|
|
|
|
rtsp: no
|
|
|
|
|
srt: no
|
2026-07-10 19:21:03 +00:00
|
|
|
moq: no
|
2026-07-10 19:01:38 +00:00
|
|
|
|
|
|
|
|
rtmp: yes
|
|
|
|
|
rtmpAddress: :1935
|
|
|
|
|
|
|
|
|
|
hls: yes
|
|
|
|
|
hlsAddress: :8888
|
2026-07-31 11:08:20 +00:00
|
|
|
# Standard HLS, not lowLatency: LL-HLS's small per-part buffering window has very little
|
|
|
|
|
# tolerance for B-frame reordering (common in most OBS encoder presets), and a real test
|
|
|
|
|
# stream crashed the muxer twice in ~2 minutes with "too many reordered frames" / "unable to
|
|
|
|
|
# extract DTS" once frame timing got even slightly irregular. Standard HLS buffers a full
|
|
|
|
|
# segment before finalizing, which absorbs that jitter — a few extra seconds of latency
|
|
|
|
|
# instead of intermittent muxer crashes / viewer buffering.
|
|
|
|
|
hlsVariant: mpegts
|
2026-07-10 19:01:38 +00:00
|
|
|
hlsAlwaysRemux: yes
|
2026-07-10 19:21:03 +00:00
|
|
|
hlsAllowOrigins: ["*"]
|
2026-07-10 19:01:38 +00:00
|
|
|
|
|
|
|
|
webrtc: yes
|
|
|
|
|
webrtcAddress: :8889
|
|
|
|
|
webrtcLocalUDPAddress: :8189
|
2026-07-10 19:21:03 +00:00
|
|
|
webrtcAllowOrigins: ["*"]
|
2026-07-10 19:01:38 +00:00
|
|
|
|
|
|
|
|
# ---- recording -----------------------------------------------------------
|
|
|
|
|
pathDefaults:
|
|
|
|
|
record: yes
|
|
|
|
|
recordPath: /recordings/%path/%Y-%m-%d_%H-%M-%S-%f
|
|
|
|
|
recordFormat: fmp4
|
|
|
|
|
recordPartDuration: 1s
|
|
|
|
|
recordSegmentDuration: 1h
|
|
|
|
|
recordDeleteAfter: 168h
|
|
|
|
|
|
|
|
|
|
paths:
|
|
|
|
|
# Streams live at live/<streamId>; publish requires the stream secret,
|
2026-07-25 01:11:42 +00:00
|
|
|
# which podsteadr checks in the auth webhook.
|
2026-07-10 19:01:38 +00:00
|
|
|
"~^live/[A-Za-z0-9]+$": {}
|