52 lines
1.2 KiB
YAML
52 lines
1.2 KiB
YAML
# 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
|