33 lines
815 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# mediamtx 配置 - 用于 DroneScrewServer RTSP 推流中转
# DroneScrewServer 推到 rtmp://127.0.0.1:1935/live/dronescrew
# 客户端从 rtsp://<板子IP>:8554/live/dronescrew 拉流
logLevel: info
logDestinations: [stdout]
# RTSP 服务端口(默认 8554
rtspAddress: :8554
rtspTransports: [tcp]
# RTMP 服务端口(用于 OBS 推流测试)
rtmpAddress: :1935
# 超时配置(相机启动慢,第一帧可能延迟较久)
readTimeout: 30s
# 认证:允许任何人推流和拉流(局域网内部使用,无需密码)
authMethod: internal
authInternalUsers:
- user: any
pass:
ips: []
permissions:
- action: publish
- action: read
# 路径配置(动态路径,不需要预先配置每个流名)
paths:
all_others:
source: publisher
record: false