
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 41s
50 lines
995 B
YAML
50 lines
995 B
YAML
# MediaMTX Configuration for SquashKiwi Streaming
|
|
|
|
# General Settings
|
|
logLevel: info
|
|
logDestinations: [stdout]
|
|
|
|
# API Configuration
|
|
api: yes
|
|
apiAddress: :9997
|
|
|
|
# Metrics
|
|
metrics: yes
|
|
metricsAddress: :9998
|
|
|
|
# RTSP Server
|
|
rtsp: yes
|
|
rtspAddress: :8554
|
|
rtspTransports: [tcp, udp]
|
|
|
|
# HLS Server
|
|
hls: yes
|
|
hlsAddress: :8888
|
|
hlsAllowOrigin: '*'
|
|
hlsSegmentCount: 10
|
|
hlsSegmentDuration: 2s
|
|
hlsPartDuration: 200ms
|
|
|
|
# WebRTC Server
|
|
webrtc: yes
|
|
webrtcAddress: :8889
|
|
webrtcAllowOrigin: '*'
|
|
|
|
# Path Configuration
|
|
paths:
|
|
# Main court camera stream
|
|
court_main:
|
|
# Source URL is provided via environment variable MTX_PATHS_COURT_MAIN_SOURCE
|
|
# from docker-compose.yml
|
|
|
|
# Recording
|
|
record: yes
|
|
recordPath: /recordings/%path/%Y-%m-%d_%H-%M-%S-%f.mp4
|
|
recordFormat: fmp4
|
|
recordSegmentDuration: 1h
|
|
recordDeleteAfter: 24h
|
|
|
|
# Sub-stream for lower bandwidth
|
|
court_sub:
|
|
# Source URL is provided via environment variable MTX_PATHS_COURT_SUB_SOURCE
|
|
# from docker-compose.yml |