/
topology.json
116 lines (116 loc) · 3.08 KB
/
topology.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
{
"@apiVersion": "1.1",
"name": "EVRToFilesOnMotionDetection",
"properties": {
"description": "Event-based video recording to local files based on motion events",
"parameters": [
{
"name": "rtspUserName",
"type": "String",
"description": "rtsp source user name.",
"default": "dummyUserName"
},
{
"name": "rtspPassword",
"type": "String",
"description": "rtsp source password.",
"default": "dummyPassword"
},
{
"name": "rtspUrl",
"type": "String",
"description": "rtsp Url"
},
{
"name": "motionSensitivity",
"type": "String",
"description": "motion detection sensitivity",
"default": "medium"
},
{
"name": "fileSinkOutputName",
"type": "String",
"description": "file sink output name",
"default": "filesinkOutput"
}
],
"sources": [
{
"@type": "#Microsoft.VideoAnalyzer.RtspSource",
"name": "rtspSource",
"endpoint": {
"@type": "#Microsoft.VideoAnalyzer.UnsecuredEndpoint",
"url": "${rtspUrl}",
"credentials": {
"@type": "#Microsoft.VideoAnalyzer.UsernamePasswordCredentials",
"username": "${rtspUserName}",
"password": "${rtspPassword}"
}
}
}
],
"processors": [
{
"@type": "#Microsoft.VideoAnalyzer.MotionDetectionProcessor",
"name": "motionDetection",
"sensitivity": "${motionSensitivity}",
"inputs": [
{
"nodeName": "rtspSource",
"outputSelectors": [
{
"property": "mediaType",
"operator": "is",
"value": "video"
}
]
}
]
},
{
"@type": "#Microsoft.VideoAnalyzer.SignalGateProcessor",
"name": "signalGateProcessor",
"inputs": [
{
"nodeName": "motionDetection"
},
{
"nodeName": "rtspSource",
"outputSelectors": [
{
"property": "mediaType",
"operator": "is",
"value": "video"
}
]
}
],
"activationEvaluationWindow": "PT1S",
"activationSignalOffset": "PT0S",
"minimumActivationTime": "PT10S",
"maximumActivationTime": "PT30S"
}
],
"sinks": [
{
"@type": "#Microsoft.VideoAnalyzer.FileSink",
"name": "fileSink",
"inputs": [
{
"nodeName": "signalGateProcessor",
"outputSelectors": [
{
"property": "mediaType",
"operator": "is",
"value": "video"
}
]
}
],
"fileNamePattern": "sampleFilesFromEVR-motion-${System.TopologyName}-${System.PipelineName}-${fileSinkOutputName}-${System.Runtime.DateTime}",
"maximumSizeMiB": "512",
"baseDirectoryPath": "/var/media"
}
]
}
}