-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmediamtx.yml
More file actions
65 lines (57 loc) · 1.46 KB
/
Copy pathmediamtx.yml
File metadata and controls
65 lines (57 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# MediaMTX configuration for SWARM-GUARD RTSP→WebRTC bridge
# Docs: https://github.com/bluenviron/mediamtx
# --- API ---
api: yes
apiAddress: :9997
# --- RTSP Server ---
rtsp: yes
rtspAddress: :8554
protocols: [tcp, udp]
rtspRangeType: clock
rtspRangeStart: 2006-01-02T15:04:05Z
# --- WebRTC (WHEP) ---
webrtc: yes
webrtcAddress: :8889
webrtcLocalUDPAddress: :8189
webrtcIPsFromInterfaces: yes
webrtcIPsFromInterfacesList: []
webrtcAdditionalHosts: []
# --- HLS (Low-Latency fallback) ---
hls: yes
hlsAddress: :8888
hlsVariant: lowLatency
hlsSegmentCount: 7
hlsSegmentDuration: 1s
hlsPartDuration: 200ms
# --- Recording (Section 65B evidence) ---
record: no
# Enable per-path if needed:
# paths:
# cam-rtsp-0:
# record: yes
# recordPath: ./recordings/%path/%Y-%m-%d_%H-%M-%S-%f
# --- Logging ---
logLevel: info
logDestinations: [stdout]
# --- Paths ---
# Dynamic paths are auto-created on publish.
# RTSP sources can also be added as pull-mode paths:
pathDefaults:
# Allow any source to publish
publishUser: ""
publishPass: ""
# Allow anyone to read
readUser: ""
readPass: ""
# Timeout for idle paths
readTimeout: 10s
writeTimeout: 10s
paths:
# Dynamic: any RTSP publisher can create a path.
# Example: ffmpeg -re -i video.mp4 -c copy -f rtsp rtsp://localhost:8554/cam-rtsp-0
#
# Pre-configured pull sources can be added here:
# safe-kerala-001:
# source: rtsp://user:pass@192.168.1.100:554/stream1
# sourceOnDemand: yes
all_others: