From 2bbe28f3bb5d7bdc572e16c1568b815cc185e645 Mon Sep 17 00:00:00 2001 From: qjyu Date: Thu, 28 May 2026 12:55:09 +0800 Subject: [PATCH] Update mediamtx config file --- mediamtx.yml | 102 +++++++++++++++++++++++++-------------------------- 1 file changed, 51 insertions(+), 51 deletions(-) diff --git a/mediamtx.yml b/mediamtx.yml index a3a37e3..47d2f59 100644 --- a/mediamtx.yml +++ b/mediamtx.yml @@ -1,51 +1,51 @@ -# MediaMTX configuration for SC235HAI RTSP streaming -# https://github.com/bluenviron/mediamtx - -logLevel: info - -# RTSP server settings -rtspAddress: :8554 -rtspReadTimeout: 10s -rtspWriteTimeout: 10s - -# UDP/RTP settings -rtpAddress: :8000 -rtcpAddress: :8001 - -# HLS (HTTP Live Streaming) - for web browsers -hlsAddress: :8888 -hlsVariant: main -hlsSegmentCount: 3 -hlsSegmentDuration: 1s - -# WebRTC settings -webRTCAddress: :8889 -webRTCICEUDPMuxAddress: :8189 - -# SRT (Secure Reliable Transport) -srtAddress: :8890 - -# Paths configuration -paths: - # Main camera stream: rtsp://[host]:8554/cam - cam: - source: rpiCamera - - # Camera settings (must match SC235HAI resolution) - rpiCameraWidth: 1920 - rpiCameraHeight: 1080 - rpiCameraFPS: 30 - - # Video codec and encoding - rpiCameraCodec: hardwareH264 # Use hardware H.264 encoder - rpiCameraIDRPeriod: 60 # IDR frame interval (keyframe every 60 frames) - - # Camera tuning and processing - rpiCameraTuningFile: "/usr/share/libcamera/ipa/rpi/vc4/ov5647.json" - rpiCameraExposure: normal - rpiCameraAWB: auto - rpiCameraDenoise: "off" - rpiCameraMetering: centre - - # Output bitrate (0 = auto) - # rpiCameraBitrate: 2500000 # Uncomment to limit bitrate to 2.5 Mbps +# MediaMTX configuration for SC235HAI RTSP streaming +# https://github.com/bluenviron/mediamtx + +logLevel: info +readTimeout: 10s +writeTimeout: 10s + +# RTSP server settings +rtspAddress: :8554 + +# UDP/RTP settings +rtpAddress: :8000 +rtcpAddress: :8001 + +# HLS (HTTP Live Streaming) - for web browsers +hlsAddress: :8888 +hlsVariant: mpegts +hlsSegmentCount: 3 +hlsSegmentDuration: 1s + +# WebRTC settings +webRTCAddress: :8889 +webRTCICEUDPMuxAddress: :8189 + +# SRT (Secure Reliable Transport) +srtAddress: :8890 + +# Paths configuration +paths: + # Main camera stream: rtsp://[host]:8554/cam + cam: + source: rpiCamera + + # Camera settings (must match SC235HAI resolution) + rpiCameraWidth: 1920 + rpiCameraHeight: 1080 + rpiCameraFPS: 30 + + # Video codec and encoding + rpiCameraCodec: hardwareH264 # Use hardware H.264 encoder + rpiCameraIDRPeriod: 60 # IDR frame interval (keyframe every 60 frames) + + # Camera tuning and processing + rpiCameraTuningFile: "/usr/share/libcamera/ipa/rpi/vc4/ov5647.json" + rpiCameraExposure: normal + rpiCameraAWB: auto + rpiCameraDenoise: "off" + rpiCameraMetering: centre + + # Output bitrate (0 = auto) + # rpiCameraBitrate: 2500000 # Uncomment to limit bitrate to 2.5 Mbps