@camstack/addon-decoder-nodeav 1.2.88 → 1.2.89
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 +42 -1
- package/dist/index.mjs +42 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -20474,6 +20474,22 @@ var occupancyRecheckFramesField = {
|
|
|
20474
20474
|
step: 1
|
|
20475
20475
|
};
|
|
20476
20476
|
/**
|
|
20477
|
+
* Frames one PRE-ROLL catch-up burst may send to inference at session open.
|
|
20478
|
+
*
|
|
20479
|
+
* The default of 12 over a ~4 s retained window is one frame per ~333 ms of
|
|
20480
|
+
* footage, and costs ~480 ms of ONE inference permit at the 40 ms/frame this
|
|
20481
|
+
* fleet measures — one-shot, and only ever taken while a permit would still be
|
|
20482
|
+
* spare for live. `0` turns the burst off entirely (the history is still
|
|
20483
|
+
* decoded, because that is how the dial reaches a decodable GOP, and is then
|
|
20484
|
+
* discarded — the pre-D411 behaviour).
|
|
20485
|
+
*/
|
|
20486
|
+
var preRollInferenceFramesField = {
|
|
20487
|
+
min: 0,
|
|
20488
|
+
max: 30,
|
|
20489
|
+
default: 12,
|
|
20490
|
+
step: 1
|
|
20491
|
+
};
|
|
20492
|
+
/**
|
|
20477
20493
|
* Source enum for motion signals fed to the runner. Extensible — add
|
|
20478
20494
|
* new variants here when new motion-trigger paths are wired in
|
|
20479
20495
|
* (`wasm-cross-camera`, `event-bus-relay`, etc.). The runner uses
|
|
@@ -20714,6 +20730,31 @@ var RunnerCameraConfigSchema = object({
|
|
|
20714
20730
|
* to every occupancy rule until something moved in front of it. The churn is
|
|
20715
20731
|
* now paid on the interval instead — see `occupancyRecheckSecField`.
|
|
20716
20732
|
*/
|
|
20733
|
+
/**
|
|
20734
|
+
* Infer the session's PRE-ROLL — the retained history the restreamer replays
|
|
20735
|
+
* at session open — instead of decoding it and throwing it away.
|
|
20736
|
+
*
|
|
20737
|
+
* DEFAULT `true`, and the default is the argument. This is not a new
|
|
20738
|
+
* capability being offered cautiously: the pre-roll is ALREADY requested,
|
|
20739
|
+
* already served, already decoded and already paid for on every on-motion
|
|
20740
|
+
* detection session that asks for history. What shipped was a last-moment
|
|
20741
|
+
* discard — `FrameSlot`'s throttle compares wall clocks, and ~4 s of media
|
|
20742
|
+
* arriving inside a few hundred ms of wall clock looks to it like one frame's
|
|
20743
|
+
* worth. Device 617, 2026-09-08: a re-run of the SAME model over the stored
|
|
20744
|
+
* recording scored the subject `vehicle 0.5669` — above the 0.50 floor —
|
|
20745
|
+
* 1.68 s BEFORE the live track was born, on a frame that was in the pre-roll,
|
|
20746
|
+
* was decoded, and was freed.
|
|
20747
|
+
*
|
|
20748
|
+
* Shipping that as opt-in would ship the bug: an operator cannot discover a
|
|
20749
|
+
* setting whose absence looks exactly like a camera that noticed the cyclist
|
|
20750
|
+
* late. What makes ON safe is not a switch but the BOUND —
|
|
20751
|
+
* `preRollInferenceFrames`, a wall-clock ceiling, and a lane that never takes
|
|
20752
|
+
* the last inference permit — so the switch exists for the camera where the
|
|
20753
|
+
* history is worthless (a doorbell whose subject is always already at the
|
|
20754
|
+
* door), not as a hedge against the feature.
|
|
20755
|
+
*/
|
|
20756
|
+
preRollInferenceEnabled: boolean().default(true),
|
|
20757
|
+
preRollInferenceFrames: number().min(preRollInferenceFramesField.min).max(preRollInferenceFramesField.max).default(preRollInferenceFramesField.default),
|
|
20717
20758
|
occupancyRecheckEnabled: boolean().default(true),
|
|
20718
20759
|
occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
|
|
20719
20760
|
occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
|
|
@@ -20742,7 +20783,7 @@ var RunnerCameraConfigSchema = object({
|
|
|
20742
20783
|
*/
|
|
20743
20784
|
inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
|
|
20744
20785
|
});
|
|
20745
|
-
motionFpsField.min, motionFpsField.max, motionFpsField.step, motionFpsField.default, detectionFpsField.min, detectionFpsField.max, detectionFpsField.step, detectionFpsField.default, motionCooldownMsField.min, motionCooldownMsField.max, motionCooldownMsField.step, motionCooldownMsField.default, maxSessionHoldMsField.min, maxSessionHoldMsField.max, maxSessionHoldMsField.step, maxSessionHoldMsField.default, audioMotionWindowMsField.min, audioMotionWindowMsField.max, audioMotionWindowMsField.step, audioMotionWindowMsField.default, occupancyRecheckSecField.min, occupancyRecheckSecField.max, occupancyRecheckSecField.step, occupancyRecheckSecField.default, occupancyRecheckFramesField.min, occupancyRecheckFramesField.max, occupancyRecheckFramesField.step, occupancyRecheckFramesField.default;
|
|
20786
|
+
motionFpsField.min, motionFpsField.max, motionFpsField.step, motionFpsField.default, detectionFpsField.min, detectionFpsField.max, detectionFpsField.step, detectionFpsField.default, motionCooldownMsField.min, motionCooldownMsField.max, motionCooldownMsField.step, motionCooldownMsField.default, maxSessionHoldMsField.min, maxSessionHoldMsField.max, maxSessionHoldMsField.step, maxSessionHoldMsField.default, audioMotionWindowMsField.min, audioMotionWindowMsField.max, audioMotionWindowMsField.step, audioMotionWindowMsField.default, preRollInferenceFramesField.min, preRollInferenceFramesField.max, preRollInferenceFramesField.step, preRollInferenceFramesField.default, occupancyRecheckSecField.min, occupancyRecheckSecField.max, occupancyRecheckSecField.step, occupancyRecheckSecField.default, occupancyRecheckFramesField.min, occupancyRecheckFramesField.max, occupancyRecheckFramesField.step, occupancyRecheckFramesField.default;
|
|
20746
20787
|
/**
|
|
20747
20788
|
* Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
|
|
20748
20789
|
* load-balancing levels (L2 capacity-based, L3 hardware-aware) to decide
|
package/dist/index.mjs
CHANGED
|
@@ -20470,6 +20470,22 @@ var occupancyRecheckFramesField = {
|
|
|
20470
20470
|
step: 1
|
|
20471
20471
|
};
|
|
20472
20472
|
/**
|
|
20473
|
+
* Frames one PRE-ROLL catch-up burst may send to inference at session open.
|
|
20474
|
+
*
|
|
20475
|
+
* The default of 12 over a ~4 s retained window is one frame per ~333 ms of
|
|
20476
|
+
* footage, and costs ~480 ms of ONE inference permit at the 40 ms/frame this
|
|
20477
|
+
* fleet measures — one-shot, and only ever taken while a permit would still be
|
|
20478
|
+
* spare for live. `0` turns the burst off entirely (the history is still
|
|
20479
|
+
* decoded, because that is how the dial reaches a decodable GOP, and is then
|
|
20480
|
+
* discarded — the pre-D411 behaviour).
|
|
20481
|
+
*/
|
|
20482
|
+
var preRollInferenceFramesField = {
|
|
20483
|
+
min: 0,
|
|
20484
|
+
max: 30,
|
|
20485
|
+
default: 12,
|
|
20486
|
+
step: 1
|
|
20487
|
+
};
|
|
20488
|
+
/**
|
|
20473
20489
|
* Source enum for motion signals fed to the runner. Extensible — add
|
|
20474
20490
|
* new variants here when new motion-trigger paths are wired in
|
|
20475
20491
|
* (`wasm-cross-camera`, `event-bus-relay`, etc.). The runner uses
|
|
@@ -20710,6 +20726,31 @@ var RunnerCameraConfigSchema = object({
|
|
|
20710
20726
|
* to every occupancy rule until something moved in front of it. The churn is
|
|
20711
20727
|
* now paid on the interval instead — see `occupancyRecheckSecField`.
|
|
20712
20728
|
*/
|
|
20729
|
+
/**
|
|
20730
|
+
* Infer the session's PRE-ROLL — the retained history the restreamer replays
|
|
20731
|
+
* at session open — instead of decoding it and throwing it away.
|
|
20732
|
+
*
|
|
20733
|
+
* DEFAULT `true`, and the default is the argument. This is not a new
|
|
20734
|
+
* capability being offered cautiously: the pre-roll is ALREADY requested,
|
|
20735
|
+
* already served, already decoded and already paid for on every on-motion
|
|
20736
|
+
* detection session that asks for history. What shipped was a last-moment
|
|
20737
|
+
* discard — `FrameSlot`'s throttle compares wall clocks, and ~4 s of media
|
|
20738
|
+
* arriving inside a few hundred ms of wall clock looks to it like one frame's
|
|
20739
|
+
* worth. Device 617, 2026-09-08: a re-run of the SAME model over the stored
|
|
20740
|
+
* recording scored the subject `vehicle 0.5669` — above the 0.50 floor —
|
|
20741
|
+
* 1.68 s BEFORE the live track was born, on a frame that was in the pre-roll,
|
|
20742
|
+
* was decoded, and was freed.
|
|
20743
|
+
*
|
|
20744
|
+
* Shipping that as opt-in would ship the bug: an operator cannot discover a
|
|
20745
|
+
* setting whose absence looks exactly like a camera that noticed the cyclist
|
|
20746
|
+
* late. What makes ON safe is not a switch but the BOUND —
|
|
20747
|
+
* `preRollInferenceFrames`, a wall-clock ceiling, and a lane that never takes
|
|
20748
|
+
* the last inference permit — so the switch exists for the camera where the
|
|
20749
|
+
* history is worthless (a doorbell whose subject is always already at the
|
|
20750
|
+
* door), not as a hedge against the feature.
|
|
20751
|
+
*/
|
|
20752
|
+
preRollInferenceEnabled: boolean().default(true),
|
|
20753
|
+
preRollInferenceFrames: number().min(preRollInferenceFramesField.min).max(preRollInferenceFramesField.max).default(preRollInferenceFramesField.default),
|
|
20713
20754
|
occupancyRecheckEnabled: boolean().default(true),
|
|
20714
20755
|
occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
|
|
20715
20756
|
occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
|
|
@@ -20738,7 +20779,7 @@ var RunnerCameraConfigSchema = object({
|
|
|
20738
20779
|
*/
|
|
20739
20780
|
inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
|
|
20740
20781
|
});
|
|
20741
|
-
motionFpsField.min, motionFpsField.max, motionFpsField.step, motionFpsField.default, detectionFpsField.min, detectionFpsField.max, detectionFpsField.step, detectionFpsField.default, motionCooldownMsField.min, motionCooldownMsField.max, motionCooldownMsField.step, motionCooldownMsField.default, maxSessionHoldMsField.min, maxSessionHoldMsField.max, maxSessionHoldMsField.step, maxSessionHoldMsField.default, audioMotionWindowMsField.min, audioMotionWindowMsField.max, audioMotionWindowMsField.step, audioMotionWindowMsField.default, occupancyRecheckSecField.min, occupancyRecheckSecField.max, occupancyRecheckSecField.step, occupancyRecheckSecField.default, occupancyRecheckFramesField.min, occupancyRecheckFramesField.max, occupancyRecheckFramesField.step, occupancyRecheckFramesField.default;
|
|
20782
|
+
motionFpsField.min, motionFpsField.max, motionFpsField.step, motionFpsField.default, detectionFpsField.min, detectionFpsField.max, detectionFpsField.step, detectionFpsField.default, motionCooldownMsField.min, motionCooldownMsField.max, motionCooldownMsField.step, motionCooldownMsField.default, maxSessionHoldMsField.min, maxSessionHoldMsField.max, maxSessionHoldMsField.step, maxSessionHoldMsField.default, audioMotionWindowMsField.min, audioMotionWindowMsField.max, audioMotionWindowMsField.step, audioMotionWindowMsField.default, preRollInferenceFramesField.min, preRollInferenceFramesField.max, preRollInferenceFramesField.step, preRollInferenceFramesField.default, occupancyRecheckSecField.min, occupancyRecheckSecField.max, occupancyRecheckSecField.step, occupancyRecheckSecField.default, occupancyRecheckFramesField.min, occupancyRecheckFramesField.max, occupancyRecheckFramesField.step, occupancyRecheckFramesField.default;
|
|
20742
20783
|
/**
|
|
20743
20784
|
* Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
|
|
20744
20785
|
* load-balancing levels (L2 capacity-based, L3 hardware-aware) to decide
|