forked from homebridge-plugins/homebridge-camera-ffmpeg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.schema.json
149 lines (149 loc) · 5.29 KB
/
config.schema.json
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
{
"pluginAlias": "Camera-Swann",
"pluginType": "platform",
"singular": true,
"headerDisplay": "Cameras are exposed to HomeKit as separate accessories and each needs to be manually paired.\n\n1. Open the Home <img src='https://user-images.githubusercontent.com/3979615/78010622-4ea1d380-738e-11ea-8a17-e6a465eeec35.png' height='16.42px'> app on your device.\n2. Tap the Home tab, then tap <img src='https://user-images.githubusercontent.com/3979615/78010869-9aed1380-738e-11ea-9644-9f46b3633026.png' height='16.42px'>.\n3. Tap *Add Accessory*, and select *I Don't Have a Code or Cannot Scan*.\n4. Enter the Homebridge PIN, this can be found under the QR code in Homebridge UI or your Homebridge logs, alternatively you can select *Use Camera* and scan the QR code again.\n\nFor help and examples of common configurations please read the [wiki](https://github.com/KhaosT/homebridge-camera-ffmpeg/wiki).",
"footerDisplay": "The **ffmpeg** binary must be installed on your system for this plugin to work.",
"schema": {
"videoProcessor": {
"title": "Video Processor",
"type": "string"
},
"interfaceName": {
"title": "Interface Name",
"type": "string"
},
"cameras": {
"type": "array",
"items": {
"title": "Cameras",
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string",
"placeholder": "Enter camera name...",
"required": true
},
"manufacturer": {
"title": "Manufacturer",
"type": "string"
},
"model": {
"title": "Model",
"type": "string"
},
"serialNumber": {
"title": "Serial Number",
"type": "string"
},
"firmwareRevision": {
"title": "Firmware Version",
"type": "string"
},
"motion": {
"title": "Enable IOS 13 Motion Notifications",
"type": "boolean"
},
"videoConfig": {
"title": "Video Configuration",
"type": "object",
"properties": {
"mainStream": {
"title": "Main Stream Source",
"type": "string",
"placeholder": "-re -i rtsp://myfancy_rtsp_stream",
"required": true
},
"subStream": {
"title": "Sub Stream Source",
"type": "string",
"placeholder": "-re -i rtsp://myfancy_rtsp_stream",
"required": true
},
"maxStreams": {
"title": "Maximum Number of Streams",
"type": "integer",
"placeholder": 2,
"minimum": 1,
"description": "The maximum number of streams that will be generated for this camera"
},
"bitrateThreshold": {
"title": "Bitrate Threshold",
"type": "integer",
"placeholder": 299,
"minimum": 1,
"description": "Select the sub stream if iOS requests < bitrateThreshold, otherwise select the main stream"
},
"videoPacketSize": {
"title": "Video SRTP Packet Size",
"type": "number",
"placeholder": 1378
},
"audioPacketSize": {
"title": "Audio SRTP Packet Size",
"type": "number",
"placeholder": 188
},
"mapvideo": {
"type": "string",
"title": "Map Video",
"placeholder": "0:0",
"description": "Select the stream used for video"
},
"mapaudio": {
"type": "string",
"title": "Map Audio",
"placeholder": "0:1",
"description": "Select the stream used for audio"
},
"audio": {
"title": "Enable Audio (requires ffmpeg with libfdk-aac)",
"type": "boolean"
},
"debug": {
"title": "Enable Debug Mode",
"type": "boolean"
}
}
}
}
}
}
},
"layout": [
{
"key": "cameras",
"type": "array",
"orderable": false,
"buttonText": "Add Camera",
"items": [
"cameras[].name",
"cameras[].manufacturer",
"cameras[].model",
"cameras[].serialNumber",
"cameras[].firmwareRevision",
"cameras[].videoConfig.mainStream",
"cameras[].videoConfig.subStream",
"cameras[].videoConfig.audio",
"cameras[].videoConfig.debug",
{
"key": "cameras[].videoConfig",
"type": "section",
"title": "Advanced Settings",
"expandable": true,
"expanded": false,
"items": [
"cameras[].videoConfig.maxStreams",
"cameras[].videoConfig.bitrateThreshold",
"cameras[].videoConfig.videoPacketSize",
"cameras[].videoConfig.audioPacketSize",
"cameras[].videoConfig.mapvideo",
"cameras[].videoConfig.mapaudio",
"cameras[].motion"
]
}
]
}
]
}