-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmediamtx.yml
More file actions
38 lines (32 loc) · 853 Bytes
/
Copy pathmediamtx.yml
File metadata and controls
38 lines (32 loc) · 853 Bytes
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
# MediaMTX configuration for simple RTMP/SRT server
logLevel: info
logDestinations: [stdout]
api: yes
apiAddress: :9997
metrics: yes
metricsAddress: :9998
pprof: yes
pprofAddress: :9999
rtspAddress: :8554
rtspsAddress: :8322
rtpAddress: :8000
rtcpAddress: :8001
rtmpAddress: :1935
hlsAddress: :8888
webrtcAddress: :8889
srtAddress: :8890
# Path configuration
paths:
# Default path for live streaming
live:
source: publisher
# Record streams to disk (disabled by default)
record: no
# recordPath: ./recordings/%path/%Y-%m-%d_%H-%M-%S-%f
# Command to run when the stream is ready to be read
runOnReady: |
#!/bin/sh
# Notify the main application about the new stream
echo "STREAM_READY:$MTX_PATH:$MTX_SOURCE_TYPE:$MTX_SOURCE_ID" > /tmp/mediamtx_notify
# Catch-all for all other paths
all_others: