############################################### # MediaMTX configuration for Tuner ############################################### # Logging logLevel: info logDestinations: [stdout] # REST API (for diagnostics) api: yes apiAddress: :9997 # RTMP server (ingest from OBS / FFmpeg) rtmp: yes rtmpAddress: :1935 # HLS server (output to viewers) # Note: hlsVariant / segment / part durations are overridden at runtime by the # backend via MTX_HLS* environment variables, based on PLAYBACK_MODE # (standard = mpegts, fmp4 = fragmented MP4, llhls = lowLatency). hls: yes hlsAddress: :8888 hlsAlwaysRemux: yes hlsVariant: mpegts hlsSegmentCount: 7 hlsSegmentDuration: 2s hlsAllowOrigin: '*' # RTSP server (used internally for FFmpeg → MediaMTX push, supports HEVC) rtsp: yes rtspAddress: :8554 # Disable unused protocols webrtc: no srt: no record: no # Path configuration paths: live/stream: source: publisher