33 lines
815 B
YAML
33 lines
815 B
YAML
# mediamtx 配置 - 用于 DroneScrewServer RTSP 推流中转
|
||
# DroneScrewServer 推到 rtsp://127.0.0.1:8554/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
|