@camstack/addon-decoder-ffmpeg 1.2.72 → 1.2.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +87 -1
- package/dist/index.mjs +87 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6450,6 +6450,21 @@ var CameraStreamSchema = object({
|
|
|
6450
6450
|
*/
|
|
6451
6451
|
autoEligible: boolean().optional(),
|
|
6452
6452
|
/**
|
|
6453
|
+
* The profile slot the PUBLISHER says this stream is: `low` for a stream
|
|
6454
|
+
* whose only sensible role is the low-bandwidth one, `high` for a main
|
|
6455
|
+
* stream. Consulted by the broker's automatic ranking
|
|
6456
|
+
* (`rankInitialAssignment`) BEFORE the pixel-count heuristic, and only there:
|
|
6457
|
+
* an operator's manual assignment still wins, and an absent hint is the
|
|
6458
|
+
* pixel-ranked default every camera had before this field existed.
|
|
6459
|
+
*
|
|
6460
|
+
* Why it exists: a camera with ONE stream ranked to `mid` — the slot no
|
|
6461
|
+
* storage class is written for on its own (`recordings` is high|mid,
|
|
6462
|
+
* `recordingsLow` is low) and the one profile scrub does not read. The robot
|
|
6463
|
+
* camera's single 720p relay is a `low` in every respect except the slot the
|
|
6464
|
+
* heuristic put it in.
|
|
6465
|
+
*/
|
|
6466
|
+
profileHint: CamProfileSchema.optional(),
|
|
6467
|
+
/**
|
|
6453
6468
|
* Transport-specific opaque metadata. The broker passes it through to
|
|
6454
6469
|
* the source reader without inspecting it. Currently used by
|
|
6455
6470
|
* `pull-rfc4571` streams to carry the upstream SDP (so the reader can
|
|
@@ -7895,7 +7910,22 @@ var RecordingTriggersSchema = object({
|
|
|
7895
7910
|
* il livello: un contatto trovato già aperto al riavvio del runner non fa
|
|
7896
7911
|
* registrare.
|
|
7897
7912
|
*/
|
|
7898
|
-
sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
|
|
7913
|
+
sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional(),
|
|
7914
|
+
/**
|
|
7915
|
+
* La camera registra per tutta la durata del SEGNALE che lei stessa
|
|
7916
|
+
* pubblica — la cap `recording-signal` (`active: true` mentre il device è in
|
|
7917
|
+
* funzione: un robot che pulisce). È un LIVELLO, non un fronte: la finestra
|
|
7918
|
+
* resta aperta finché il segnale è alto e si chiude `postBufferSec` dopo la
|
|
7919
|
+
* caduta, così una pulizia di quaranta minuti è UNA clip.
|
|
7920
|
+
*
|
|
7921
|
+
* Non nomina un device: il segnale è della camera stessa, tenuto fresco dal
|
|
7922
|
+
* suo provider (D224); il recorder lo ascolta su `DeviceStateChanged` e lo
|
|
7923
|
+
* riconcilia leggendo la slice via RPC, con un tetto oltre il quale un
|
|
7924
|
+
* segnale mai abbassato (un evento perso) non può tenere aperta una
|
|
7925
|
+
* registrazione (D11). Vedi `recorder/addon/band-decision.ts`
|
|
7926
|
+
* (`holdTrigger` / `releaseTrigger`).
|
|
7927
|
+
*/
|
|
7928
|
+
deviceSignal: boolean().optional()
|
|
7899
7929
|
});
|
|
7900
7930
|
/**
|
|
7901
7931
|
* Mode of a single recording band — the recorder per-band vocabulary.
|
|
@@ -11396,6 +11426,8 @@ method(object({
|
|
|
11396
11426
|
label: string().optional(),
|
|
11397
11427
|
deviceFeatures: array(string()).optional(),
|
|
11398
11428
|
autoEligible: boolean().optional(),
|
|
11429
|
+
/** The slot the publisher says this stream IS — see `CameraStreamSchema.profileHint`. */
|
|
11430
|
+
profileHint: CamProfileSchema.optional(),
|
|
11399
11431
|
metadata: record(string(), unknown()).optional(),
|
|
11400
11432
|
/** Required when kind === 'derived' — the source camStreamId the
|
|
11401
11433
|
* derived broker reads its encoded plane from.
|
|
@@ -27798,6 +27830,47 @@ method(object({
|
|
|
27798
27830
|
auth: "protected"
|
|
27799
27831
|
});
|
|
27800
27832
|
/**
|
|
27833
|
+
* A camera's own "record me NOW" LEVEL — a signal the device raises while
|
|
27834
|
+
* something it knows about is happening (a robot vacuum cleaning, a machine
|
|
27835
|
+
* running, a gate open) and lowers when it stops.
|
|
27836
|
+
*
|
|
27837
|
+
* It is a level, not an edge. The sensor triggers the recorder already listens
|
|
27838
|
+
* to (`SOURCE_CAP_ACTIVE_FIELD`) fire on a rising edge and record for a fixed
|
|
27839
|
+
* post-buffer; a cleaning lasts forty minutes, and forty minutes of "this is
|
|
27840
|
+
* still happening" cannot be expressed as an edge plus a post-buffer without
|
|
27841
|
+
* either re-triggering on a timer (polling — D224 forbids the consumer keeping
|
|
27842
|
+
* the fact fresh) or picking a post-buffer long enough to cover every job,
|
|
27843
|
+
* which records the dock for that long after every short one. So the recorder
|
|
27844
|
+
* reads the LEVEL: it records for as long as `active` is true, plus the band's
|
|
27845
|
+
* own post-buffer once it falls.
|
|
27846
|
+
*
|
|
27847
|
+
* Who owns the fact: the PROVIDER of the device, which already reads the state
|
|
27848
|
+
* the signal is derived from (the vacuum's lifecycle state, for Dreame). It
|
|
27849
|
+
* writes this slice on every change; consumers subscribe to the kernel's
|
|
27850
|
+
* `DeviceStateChanged` for it and read it back through
|
|
27851
|
+
* `deviceState.getCapSlice` to reconcile — never a second copy, never a poll
|
|
27852
|
+
* against the device (D224, D8/D11).
|
|
27853
|
+
*
|
|
27854
|
+
* Deliberately NOT a `binary` sensor on the camera: a binary sensor is exported
|
|
27855
|
+
* to Home Assistant, HomeKit and the sensor picker as a thing an operator can
|
|
27856
|
+
* bind, and "the camera wants to record" is not a room sensor. It is a fact
|
|
27857
|
+
* about the camera, on the camera.
|
|
27858
|
+
*/
|
|
27859
|
+
var RecordingSignalStatusSchema = object({
|
|
27860
|
+
/** True while the device asks to be recorded. */
|
|
27861
|
+
active: boolean(),
|
|
27862
|
+
/**
|
|
27863
|
+
* Why, in the provider's own vocabulary (a vacuum's `cleaning` / `docked`,
|
|
27864
|
+
* …). Free text for the log line and the UI badge; the recorder never
|
|
27865
|
+
* branches on it.
|
|
27866
|
+
*/
|
|
27867
|
+
reason: string(),
|
|
27868
|
+
/** Ms epoch of the last `active` transition. 0 if never observed. */
|
|
27869
|
+
lastChangedAt: number()
|
|
27870
|
+
});
|
|
27871
|
+
RecordingSignalStatusSchema.extend({ lastFetchedAt: number() });
|
|
27872
|
+
DeviceType.Camera, method(object({ deviceId: number() }), RecordingSignalStatusSchema);
|
|
27873
|
+
/**
|
|
27801
27874
|
* scene-monitor — device-scoped reference-region state cap. An operator marks
|
|
27802
27875
|
* a rect ROI on a camera frame and names one or more states; the engine
|
|
27803
27876
|
* (pipeline-analytics, designated post-processing node) reports which state is
|
|
@@ -28170,6 +28243,8 @@ var CamStreamDescriptorSchema = object({
|
|
|
28170
28243
|
deviceFeatures: array(string()).optional(),
|
|
28171
28244
|
/** Eligible for automatic profile assignment. Absent = `true`. */
|
|
28172
28245
|
autoEligible: boolean().optional(),
|
|
28246
|
+
/** The slot the publisher says this stream IS — see `CameraStreamSchema.profileHint`. */
|
|
28247
|
+
profileHint: CamProfileSchema.optional(),
|
|
28173
28248
|
/** Transport-specific opaque metadata (e.g. rfc4571 SDP). */
|
|
28174
28249
|
metadata: record(string(), unknown()).optional()
|
|
28175
28250
|
});
|
|
@@ -34115,6 +34190,12 @@ Object.freeze({
|
|
|
34115
34190
|
addonId: null,
|
|
34116
34191
|
access: "view"
|
|
34117
34192
|
},
|
|
34193
|
+
"recordingSignal.getStatus": {
|
|
34194
|
+
capName: "recording-signal",
|
|
34195
|
+
capScope: "device",
|
|
34196
|
+
addonId: null,
|
|
34197
|
+
access: "view"
|
|
34198
|
+
},
|
|
34118
34199
|
"sceneMonitor.captureReference": {
|
|
34119
34200
|
capName: "scene-monitor",
|
|
34120
34201
|
capScope: "device",
|
|
@@ -37107,6 +37188,11 @@ Object.freeze({
|
|
|
37107
37188
|
form: "single",
|
|
37108
37189
|
optional: true
|
|
37109
37190
|
}],
|
|
37191
|
+
"recordingSignal.getStatus": [{
|
|
37192
|
+
name: "deviceId",
|
|
37193
|
+
form: "single",
|
|
37194
|
+
optional: false
|
|
37195
|
+
}],
|
|
37110
37196
|
"sceneMonitor.captureReference": [{
|
|
37111
37197
|
name: "deviceId",
|
|
37112
37198
|
form: "single",
|
package/dist/index.mjs
CHANGED
|
@@ -6446,6 +6446,21 @@ var CameraStreamSchema = object({
|
|
|
6446
6446
|
*/
|
|
6447
6447
|
autoEligible: boolean().optional(),
|
|
6448
6448
|
/**
|
|
6449
|
+
* The profile slot the PUBLISHER says this stream is: `low` for a stream
|
|
6450
|
+
* whose only sensible role is the low-bandwidth one, `high` for a main
|
|
6451
|
+
* stream. Consulted by the broker's automatic ranking
|
|
6452
|
+
* (`rankInitialAssignment`) BEFORE the pixel-count heuristic, and only there:
|
|
6453
|
+
* an operator's manual assignment still wins, and an absent hint is the
|
|
6454
|
+
* pixel-ranked default every camera had before this field existed.
|
|
6455
|
+
*
|
|
6456
|
+
* Why it exists: a camera with ONE stream ranked to `mid` — the slot no
|
|
6457
|
+
* storage class is written for on its own (`recordings` is high|mid,
|
|
6458
|
+
* `recordingsLow` is low) and the one profile scrub does not read. The robot
|
|
6459
|
+
* camera's single 720p relay is a `low` in every respect except the slot the
|
|
6460
|
+
* heuristic put it in.
|
|
6461
|
+
*/
|
|
6462
|
+
profileHint: CamProfileSchema.optional(),
|
|
6463
|
+
/**
|
|
6449
6464
|
* Transport-specific opaque metadata. The broker passes it through to
|
|
6450
6465
|
* the source reader without inspecting it. Currently used by
|
|
6451
6466
|
* `pull-rfc4571` streams to carry the upstream SDP (so the reader can
|
|
@@ -7891,7 +7906,22 @@ var RecordingTriggersSchema = object({
|
|
|
7891
7906
|
* il livello: un contatto trovato già aperto al riavvio del runner non fa
|
|
7892
7907
|
* registrare.
|
|
7893
7908
|
*/
|
|
7894
|
-
sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
|
|
7909
|
+
sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional(),
|
|
7910
|
+
/**
|
|
7911
|
+
* La camera registra per tutta la durata del SEGNALE che lei stessa
|
|
7912
|
+
* pubblica — la cap `recording-signal` (`active: true` mentre il device è in
|
|
7913
|
+
* funzione: un robot che pulisce). È un LIVELLO, non un fronte: la finestra
|
|
7914
|
+
* resta aperta finché il segnale è alto e si chiude `postBufferSec` dopo la
|
|
7915
|
+
* caduta, così una pulizia di quaranta minuti è UNA clip.
|
|
7916
|
+
*
|
|
7917
|
+
* Non nomina un device: il segnale è della camera stessa, tenuto fresco dal
|
|
7918
|
+
* suo provider (D224); il recorder lo ascolta su `DeviceStateChanged` e lo
|
|
7919
|
+
* riconcilia leggendo la slice via RPC, con un tetto oltre il quale un
|
|
7920
|
+
* segnale mai abbassato (un evento perso) non può tenere aperta una
|
|
7921
|
+
* registrazione (D11). Vedi `recorder/addon/band-decision.ts`
|
|
7922
|
+
* (`holdTrigger` / `releaseTrigger`).
|
|
7923
|
+
*/
|
|
7924
|
+
deviceSignal: boolean().optional()
|
|
7895
7925
|
});
|
|
7896
7926
|
/**
|
|
7897
7927
|
* Mode of a single recording band — the recorder per-band vocabulary.
|
|
@@ -11392,6 +11422,8 @@ method(object({
|
|
|
11392
11422
|
label: string().optional(),
|
|
11393
11423
|
deviceFeatures: array(string()).optional(),
|
|
11394
11424
|
autoEligible: boolean().optional(),
|
|
11425
|
+
/** The slot the publisher says this stream IS — see `CameraStreamSchema.profileHint`. */
|
|
11426
|
+
profileHint: CamProfileSchema.optional(),
|
|
11395
11427
|
metadata: record(string(), unknown()).optional(),
|
|
11396
11428
|
/** Required when kind === 'derived' — the source camStreamId the
|
|
11397
11429
|
* derived broker reads its encoded plane from.
|
|
@@ -27794,6 +27826,47 @@ method(object({
|
|
|
27794
27826
|
auth: "protected"
|
|
27795
27827
|
});
|
|
27796
27828
|
/**
|
|
27829
|
+
* A camera's own "record me NOW" LEVEL — a signal the device raises while
|
|
27830
|
+
* something it knows about is happening (a robot vacuum cleaning, a machine
|
|
27831
|
+
* running, a gate open) and lowers when it stops.
|
|
27832
|
+
*
|
|
27833
|
+
* It is a level, not an edge. The sensor triggers the recorder already listens
|
|
27834
|
+
* to (`SOURCE_CAP_ACTIVE_FIELD`) fire on a rising edge and record for a fixed
|
|
27835
|
+
* post-buffer; a cleaning lasts forty minutes, and forty minutes of "this is
|
|
27836
|
+
* still happening" cannot be expressed as an edge plus a post-buffer without
|
|
27837
|
+
* either re-triggering on a timer (polling — D224 forbids the consumer keeping
|
|
27838
|
+
* the fact fresh) or picking a post-buffer long enough to cover every job,
|
|
27839
|
+
* which records the dock for that long after every short one. So the recorder
|
|
27840
|
+
* reads the LEVEL: it records for as long as `active` is true, plus the band's
|
|
27841
|
+
* own post-buffer once it falls.
|
|
27842
|
+
*
|
|
27843
|
+
* Who owns the fact: the PROVIDER of the device, which already reads the state
|
|
27844
|
+
* the signal is derived from (the vacuum's lifecycle state, for Dreame). It
|
|
27845
|
+
* writes this slice on every change; consumers subscribe to the kernel's
|
|
27846
|
+
* `DeviceStateChanged` for it and read it back through
|
|
27847
|
+
* `deviceState.getCapSlice` to reconcile — never a second copy, never a poll
|
|
27848
|
+
* against the device (D224, D8/D11).
|
|
27849
|
+
*
|
|
27850
|
+
* Deliberately NOT a `binary` sensor on the camera: a binary sensor is exported
|
|
27851
|
+
* to Home Assistant, HomeKit and the sensor picker as a thing an operator can
|
|
27852
|
+
* bind, and "the camera wants to record" is not a room sensor. It is a fact
|
|
27853
|
+
* about the camera, on the camera.
|
|
27854
|
+
*/
|
|
27855
|
+
var RecordingSignalStatusSchema = object({
|
|
27856
|
+
/** True while the device asks to be recorded. */
|
|
27857
|
+
active: boolean(),
|
|
27858
|
+
/**
|
|
27859
|
+
* Why, in the provider's own vocabulary (a vacuum's `cleaning` / `docked`,
|
|
27860
|
+
* …). Free text for the log line and the UI badge; the recorder never
|
|
27861
|
+
* branches on it.
|
|
27862
|
+
*/
|
|
27863
|
+
reason: string(),
|
|
27864
|
+
/** Ms epoch of the last `active` transition. 0 if never observed. */
|
|
27865
|
+
lastChangedAt: number()
|
|
27866
|
+
});
|
|
27867
|
+
RecordingSignalStatusSchema.extend({ lastFetchedAt: number() });
|
|
27868
|
+
DeviceType.Camera, method(object({ deviceId: number() }), RecordingSignalStatusSchema);
|
|
27869
|
+
/**
|
|
27797
27870
|
* scene-monitor — device-scoped reference-region state cap. An operator marks
|
|
27798
27871
|
* a rect ROI on a camera frame and names one or more states; the engine
|
|
27799
27872
|
* (pipeline-analytics, designated post-processing node) reports which state is
|
|
@@ -28166,6 +28239,8 @@ var CamStreamDescriptorSchema = object({
|
|
|
28166
28239
|
deviceFeatures: array(string()).optional(),
|
|
28167
28240
|
/** Eligible for automatic profile assignment. Absent = `true`. */
|
|
28168
28241
|
autoEligible: boolean().optional(),
|
|
28242
|
+
/** The slot the publisher says this stream IS — see `CameraStreamSchema.profileHint`. */
|
|
28243
|
+
profileHint: CamProfileSchema.optional(),
|
|
28169
28244
|
/** Transport-specific opaque metadata (e.g. rfc4571 SDP). */
|
|
28170
28245
|
metadata: record(string(), unknown()).optional()
|
|
28171
28246
|
});
|
|
@@ -34111,6 +34186,12 @@ Object.freeze({
|
|
|
34111
34186
|
addonId: null,
|
|
34112
34187
|
access: "view"
|
|
34113
34188
|
},
|
|
34189
|
+
"recordingSignal.getStatus": {
|
|
34190
|
+
capName: "recording-signal",
|
|
34191
|
+
capScope: "device",
|
|
34192
|
+
addonId: null,
|
|
34193
|
+
access: "view"
|
|
34194
|
+
},
|
|
34114
34195
|
"sceneMonitor.captureReference": {
|
|
34115
34196
|
capName: "scene-monitor",
|
|
34116
34197
|
capScope: "device",
|
|
@@ -37103,6 +37184,11 @@ Object.freeze({
|
|
|
37103
37184
|
form: "single",
|
|
37104
37185
|
optional: true
|
|
37105
37186
|
}],
|
|
37187
|
+
"recordingSignal.getStatus": [{
|
|
37188
|
+
name: "deviceId",
|
|
37189
|
+
form: "single",
|
|
37190
|
+
optional: false
|
|
37191
|
+
}],
|
|
37106
37192
|
"sceneMonitor.captureReference": [{
|
|
37107
37193
|
name: "deviceId",
|
|
37108
37194
|
form: "single",
|