Files
usda-vision/mediamtx.yml
salirezav b7adc3788a Implement RTSP streaming functionality for cameras
- Added endpoints to start and stop RTSP streaming for cameras in the API.
- Enhanced CameraManager and CameraStreamer classes to manage RTSP streaming state and processes.
- Updated API documentation to include new RTSP streaming commands.
- Modified Docker configurations to include FFmpeg for RTSP streaming support.
- Adjusted MediaMTX settings for improved stream handling and timeout configurations.
2025-11-01 12:35:25 -04:00

28 lines
714 B
YAML

logLevel: info
rtsp: yes
rtmp: no
hls: yes
webrtc: yes
paths:
all:
# allow any path to be read; publishers can be added on-demand
readUser: any
sourceOnDemand: no
sourceOnDemandStartTimeout: 10s
sourceOnDemandCloseAfter: 10s
# Keep source alive even without readers (remove timeout)
# sourceCloseAfter: never # Keep stream alive indefinitely
sourceCloseAfter: 30s # Keep stream alive for 30 seconds after last reader disconnects
# Example on-demand publisher for a demo VOD (adjust file path):
# vod:
# readUser: any
# runOnDemand: |
# ffmpeg -re -stream_loop -1 -i /mnt/videos/sample.mp4 -c copy -f rtsp rtsp://localhost:8554/vod
# runOnDemandRestart: yes