Update mediamtx config file

This commit is contained in:
qjyu 2026-05-28 12:55:09 +08:00
parent 6ea3301e27
commit 2bbe28f3bb
1 changed files with 51 additions and 51 deletions

View File

@ -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