Files
MatchLiveTv/infra/mediamtx.yml
Emiliano Frascaro 854738b46d Stabilizza live YouTube/RTMP e fix crash rotazione mobile.
Pipeline YouTube con relay, overlay e publisher sync lato backend; fix GL pauseGlDuringRotation su Android per evitare crash in rotazione durante lo streaming Flutter.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-06 15:30:55 +02:00

48 lines
1.2 KiB
YAML

# MediaMTX configuration for Match Live TV
# Docs: https://mediamtx.org/docs/references/configuration-file
logLevel: info
# Allow API from Docker network (Rails container)
authInternalUsers:
- user: any
pass:
ips: []
permissions:
- action: api
- action: metrics
- action: pprof
- action: publish
- action: read
api: yes
apiAddress: :9997
rtmp: yes
rtmpAddress: :1935
hls: yes
hlsAddress: :8888
hlsVariant: mpegts
rtsp: yes
rtspAddress: :8554
# Allineato a slate (1s) e camera; evita salti 1s→6s che glitchano HLS.js
hlsSegmentDuration: 1s
hlsSegmentMaxSize: 50M
pathDefaults:
source: publisher
overridePublisher: yes
# Recording solo via job dedicato: il recorder inline crasha il muxer HLS al switch slate→live
record: false
recordPath: /recordings/%path/%Y-%m-%d_%H-%M-%S
recordSegmentDuration: 60s
recordDeleteAfter: 48h
paths:
# Dynamic session paths are created via MediaMTX HTTP API from Rails.
# Template for reference (Rails sets alwaysAvailable per path):
# match_{uuid}:
# alwaysAvailable: true
# alwaysAvailableFile: /slates/offline.mp4
# (non usare alwaysAvailableTracks insieme al file — MediaMTX >= 2026.02)
all_others: