fix: change SRT port default from 5005 to 8890 (MediaMTX default)

This commit is contained in:
ComputerTech 2026-04-04 13:00:41 +01:00
parent effb52c5df
commit c4d9fad60f
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@
"_comment_mediamtx": "MediaMTX / SRT integration. mediamtx_webhook_secret is the shared secret sent in the X-MediaMTX-Webhook-Secret header by webhook callers (leave blank to disable auth). mediamtx_rtsp_url is the RTSP URL MediaMTX exposes for the incoming SRT path.",
"mediamtx_webhook_secret": "",
"_comment_mediamtx_srt_port": "SRT ingest port MediaMTX listens on. Flask does not bind this port — set it in mediamtx.yml. Stored here for reference.",
"mediamtx_srt_port": 5005,
"mediamtx_srt_port": 8890,
"mediamtx_rtsp_url": "rtsp://127.0.0.1:8554/live",
"mediamtx_hls_url": "http://techy.music:8888/aussie_dj/index.m3u8",
"_comment_srt_allowed_ips": "List of DJ source IPs allowed to publish an SRT stream. Empty = allow all.",

View File

@ -49,7 +49,7 @@ CONFIG_LISTENER_URL = (CONFIG.get('listener_url') or '').strip()
# secret shared with MediaMTX webhook requests (leave blank to disable auth)
_SRT_WEBHOOK_SECRET = (CONFIG.get('mediamtx_webhook_secret') or '').strip()
# SRT ingest port MediaMTX listens on (Flask does not bind this — configure in mediamtx.yml)
_MEDIAMTX_SRT_PORT = int(CONFIG.get('mediamtx_srt_port') or 5005)
_MEDIAMTX_SRT_PORT = int(CONFIG.get('mediamtx_srt_port') or 8890)
# RTSP URL MediaMTX exposes for the incoming SRT path (used by ffmpeg to pull audio)
_MEDIAMTX_RTSP_URL = (CONFIG.get('mediamtx_rtsp_url') or 'rtsp://127.0.0.1:8554/live').strip()
_MEDIAMTX_HLS_URL = (CONFIG.get('mediamtx_hls_url') or 'http://techy.music:8888/aussie_dj/index.m3u8').strip()