1
1
- By default go2rtc will search config file ` go2rtc.yaml ` in current work directory
2
- - go2rtc support multiple config files
3
- - go2rtc support inline config as ` YAML ` , ` JSON ` or ` key=value ` format from command line
2
+ - go2rtc support multiple config files:
3
+ - ` go2rtc -c config1.yaml -c config2.yaml -c config3.yaml `
4
+ - go2rtc support inline config as multiple formats from command line:
5
+ - ** YAML** : ` go2rtc -c '{log: {format: text}}' `
6
+ - ** JSON** : ` go2rtc -c '{"log":{"format":"text"}}' `
7
+ - ** key=value** : ` go2rtc -c log.format=text `
4
8
- Every next config will overwrite previous (but only defined params)
5
9
6
10
```
@@ -21,15 +25,24 @@ Also go2rtc support templates for using environment variables in any part of con
21
25
streams :
22
26
camera1 : rtsp://rtsp:${CAMERA_PASSWORD}@192.168.1.123/av_stream/ch0
23
27
24
- ${LOGS:} # empty default value
25
-
26
28
rtsp :
27
29
username : ${RTSP_USER:admin} # "admin" if env "RTSP_USER" not set
28
30
password : ${RTSP_PASS:secret} # "secret" if env "RTSP_PASS" not set
29
31
` ` `
30
32
33
+ ## JSON Schema
34
+
35
+ Editors like [GoLand](https://www.jetbrains.com/go/) and [VS Code](https://code.visualstudio.com/) supports autocomplete and syntax validation.
36
+
37
+ ` ` ` yaml
38
+ # yaml-language-server: $schema=https://raw.githubusercontent.com/AlexxIT/go2rtc/master/website/schema.json
39
+ ```
40
+
31
41
## Defaults
32
42
43
+ - Default values may change in updates
44
+ - FFmpeg module has many presets, they are not listed here because they may also change in updates
45
+
33
46
``` yaml
34
47
api :
35
48
listen : " :1984"
@@ -38,7 +51,10 @@ ffmpeg:
38
51
bin : " ffmpeg"
39
52
40
53
log :
54
+ format : " color"
41
55
level : " info"
56
+ output : " stdout"
57
+ time : " UNIXMS"
42
58
43
59
rtsp :
44
60
listen : " :8554"
@@ -51,4 +67,4 @@ webrtc:
51
67
listen : " :8555/tcp"
52
68
ice_servers :
53
69
- urls : [ "stun:stun.l.google.com:19302" ]
54
- ` ` `
70
+ ` ` `
0 commit comments