@camstack/addon-provider-onvif 1.2.13 → 1.2.14
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/addon.js +67 -26
- package/dist/addon.mjs +67 -26
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -23774,13 +23774,24 @@ method(object({
|
|
|
23774
23774
|
/** Playback-speed multiplier for the render (1 = realtime). */
|
|
23775
23775
|
var ExportSpeedSchema = number().min(.25).max(32);
|
|
23776
23776
|
/**
|
|
23777
|
-
* One dense interval, in SECONDS FROM THE EXPORT'S OWN `fromMs`.
|
|
23777
|
+
* One dense interval, in WALL-CLOCK SECONDS FROM THE EXPORT'S OWN `fromMs`.
|
|
23778
23778
|
*
|
|
23779
|
-
*
|
|
23780
|
-
*
|
|
23781
|
-
*
|
|
23782
|
-
*
|
|
23783
|
-
*
|
|
23779
|
+
* **Wall clock, not ffmpeg's `t`** — and the recorder translates. A caller
|
|
23780
|
+
* derives these bounds from things that happened at a TIME (a track's
|
|
23781
|
+
* `firstSeen`), while `t` runs over the source playlist: the concatenation of
|
|
23782
|
+
* every segment present for the range, with each recording GAP removed. The
|
|
23783
|
+
* two agree only on a window that recorded without one interruption, and only
|
|
23784
|
+
* the render side knows the segments, so the translation lives there
|
|
23785
|
+
* (`export-dense-map.ts`, addon-pipeline).
|
|
23786
|
+
*
|
|
23787
|
+
* It was not always so. These seconds were fed to `between(t,…)` verbatim, and
|
|
23788
|
+
* on a 10 h window holding 29,393 s of footage every range landed late by the
|
|
23789
|
+
* gap accumulated before it — up to 6,607 s, well past EOF. Nothing matched,
|
|
23790
|
+
* the video was a uniform timelapse, and the log line reported the five ranges
|
|
23791
|
+
* that had been ASKED for (2026-08-13, export `57d14363`, camera 615).
|
|
23792
|
+
*
|
|
23793
|
+
* Relative and not absolute epoch, because an absolute epoch would make every
|
|
23794
|
+
* call site responsible for the same subtraction.
|
|
23784
23795
|
*/
|
|
23785
23796
|
var ExportDenseRangeSchema = object({
|
|
23786
23797
|
fromSec: number().nonnegative(),
|
|
@@ -31319,25 +31330,32 @@ object({
|
|
|
31319
31330
|
var NativeLeaseAdmissionSchema = _enum(["all", "inferred"]);
|
|
31320
31331
|
object({
|
|
31321
31332
|
/**
|
|
31322
|
-
* How
|
|
31333
|
+
* How many delivered frames the worker HOLDS at once, waiting for each one's
|
|
31334
|
+
* detection result.
|
|
31323
31335
|
*
|
|
31324
|
-
*
|
|
31325
|
-
*
|
|
31326
|
-
*
|
|
31327
|
-
*
|
|
31328
|
-
*
|
|
31336
|
+
* This replaced a TTL on 2026-08-13, and the replacement is the whole point:
|
|
31337
|
+
* a time window was never related to the event the pixels were waiting for.
|
|
31338
|
+
* A held frame now lives from delivery until the runner has its `FrameResult`
|
|
31339
|
+
* — at which moment the runner cuts the subject tiles it actually wanted and
|
|
31340
|
+
* releases the frame. The bound exists only so a runner that stops answering
|
|
31341
|
+
* cannot pin RAM: above it the OLDEST held frame is dropped and counted.
|
|
31342
|
+
*
|
|
31343
|
+
* Sizing: the steady state is `inferenceLatency × deliveredFps`, measured at
|
|
31344
|
+
* 40-160 ms × ≤25 fps = 1-4 frames. The default leaves headroom for a hiccup
|
|
31345
|
+
* without ever approaching the old resident set (43 frames × 24.9 MB at 4K).
|
|
31346
|
+
* Raising it does not buy hit rate — it buys tolerance for a slow runner, and
|
|
31347
|
+
* `holdOverflow` on the metrics line is what says you need it.
|
|
31329
31348
|
*/
|
|
31330
|
-
|
|
31349
|
+
holdFrames: number().int().min(1).max(64),
|
|
31331
31350
|
/**
|
|
31332
31351
|
* Hard per-decode-worker RAM ceiling for retained native frames, in MB.
|
|
31333
31352
|
*
|
|
31334
|
-
*
|
|
31335
|
-
*
|
|
31336
|
-
*
|
|
31337
|
-
*
|
|
31338
|
-
*
|
|
31339
|
-
*
|
|
31340
|
-
* rather than giving RAM back — lower this knob if RAM is what you wanted.
|
|
31353
|
+
* Since 2026-08-13 this is a SAFETY ceiling and nothing else: `holdFrames`
|
|
31354
|
+
* is what decides how much is held, and the ceiling is the number above which
|
|
31355
|
+
* something is wrong. Before that it was the effective cap — at 1024 MB with
|
|
31356
|
+
* a 2 800 ms TTL a 4K camera sat pinned at `leaseMb:1020, leaseFrames:43`
|
|
31357
|
+
* with the TTL expiring nothing, which is exactly the confusion the hold
|
|
31358
|
+
* removes. `leaseMb` / `leaseFrames` still say what is resident.
|
|
31341
31359
|
* `0` DISABLES the lease entirely and falls the worker back to the tiny
|
|
31342
31360
|
* leak-prone GPU surface ring (~85% crop miss; that is what the lease exists
|
|
31343
31361
|
* to replace).
|
|
@@ -31363,22 +31381,45 @@ object({
|
|
|
31363
31381
|
* there is the signal that some caller names frames outside the inference set
|
|
31364
31382
|
* and that this must go back to `all`.
|
|
31365
31383
|
*/
|
|
31366
|
-
admission: NativeLeaseAdmissionSchema
|
|
31384
|
+
admission: NativeLeaseAdmissionSchema,
|
|
31385
|
+
/**
|
|
31386
|
+
* RAM ceiling per decode worker, in MB, for the SUBJECT TILES — the
|
|
31387
|
+
* compressed native crops the worker cuts at the moment a frame's detection
|
|
31388
|
+
* result arrives, and keeps long after the frame itself is freed.
|
|
31389
|
+
*
|
|
31390
|
+
* This is the knob that replaced the old retention window, and it buys about
|
|
31391
|
+
* three orders of magnitude more of it: a tile is one subject at native
|
|
31392
|
+
* resolution, JPEG-encoded (~60-120 KB on a 4K person), against ~24.9 MB for
|
|
31393
|
+
* the frame it was cut from. A frame on which nothing was detected costs
|
|
31394
|
+
* nothing at all, which is the real change — the old lease paid per FRAME and
|
|
31395
|
+
* was interrogated per SUBJECT.
|
|
31396
|
+
*
|
|
31397
|
+
* `0` DISABLES tiles, leaving only the hold window and the ≤640 RAM
|
|
31398
|
+
* fallback — i.e. the pre-2026-08-13 miss profile. Set it there only to
|
|
31399
|
+
* reproduce that.
|
|
31400
|
+
*/
|
|
31401
|
+
tileBudgetMb: number().int().min(0).max(1024)
|
|
31367
31402
|
});
|
|
31368
31403
|
/**
|
|
31369
|
-
* The values in force when the operator has set nothing
|
|
31370
|
-
*
|
|
31371
|
-
*
|
|
31404
|
+
* The values in force when the operator has set nothing.
|
|
31405
|
+
*
|
|
31406
|
+
* `budgetMb` stays at 1024 on the day the hold landed, deliberately: it stopped
|
|
31407
|
+
* being the retention window and became the OOM ceiling, and lowering a ceiling
|
|
31408
|
+
* in the same change that redefines it would make a regression and a retune
|
|
31409
|
+
* indistinguishable. Cut it once `tileHits` / `holdOverflow` have been read on
|
|
31410
|
+
* live traffic.
|
|
31372
31411
|
*/
|
|
31373
31412
|
var DEFAULT_NATIVE_LEASE_SETTINGS = {
|
|
31374
|
-
|
|
31413
|
+
holdFrames: 8,
|
|
31375
31414
|
budgetMb: 1024,
|
|
31376
31415
|
activityMs: 15e3,
|
|
31416
|
+
tileBudgetMb: 64,
|
|
31377
31417
|
admission: "inferred"
|
|
31378
31418
|
};
|
|
31379
|
-
DEFAULT_NATIVE_LEASE_SETTINGS.
|
|
31419
|
+
DEFAULT_NATIVE_LEASE_SETTINGS.holdFrames;
|
|
31380
31420
|
DEFAULT_NATIVE_LEASE_SETTINGS.budgetMb;
|
|
31381
31421
|
DEFAULT_NATIVE_LEASE_SETTINGS.activityMs;
|
|
31422
|
+
DEFAULT_NATIVE_LEASE_SETTINGS.tileBudgetMb;
|
|
31382
31423
|
DEFAULT_NATIVE_LEASE_SETTINGS.admission;
|
|
31383
31424
|
//#endregion
|
|
31384
31425
|
//#region src/onvif-camera.ts
|
package/dist/addon.mjs
CHANGED
|
@@ -23775,13 +23775,24 @@ method(object({
|
|
|
23775
23775
|
/** Playback-speed multiplier for the render (1 = realtime). */
|
|
23776
23776
|
var ExportSpeedSchema = number().min(.25).max(32);
|
|
23777
23777
|
/**
|
|
23778
|
-
* One dense interval, in SECONDS FROM THE EXPORT'S OWN `fromMs`.
|
|
23778
|
+
* One dense interval, in WALL-CLOCK SECONDS FROM THE EXPORT'S OWN `fromMs`.
|
|
23779
23779
|
*
|
|
23780
|
-
*
|
|
23781
|
-
*
|
|
23782
|
-
*
|
|
23783
|
-
*
|
|
23784
|
-
*
|
|
23780
|
+
* **Wall clock, not ffmpeg's `t`** — and the recorder translates. A caller
|
|
23781
|
+
* derives these bounds from things that happened at a TIME (a track's
|
|
23782
|
+
* `firstSeen`), while `t` runs over the source playlist: the concatenation of
|
|
23783
|
+
* every segment present for the range, with each recording GAP removed. The
|
|
23784
|
+
* two agree only on a window that recorded without one interruption, and only
|
|
23785
|
+
* the render side knows the segments, so the translation lives there
|
|
23786
|
+
* (`export-dense-map.ts`, addon-pipeline).
|
|
23787
|
+
*
|
|
23788
|
+
* It was not always so. These seconds were fed to `between(t,…)` verbatim, and
|
|
23789
|
+
* on a 10 h window holding 29,393 s of footage every range landed late by the
|
|
23790
|
+
* gap accumulated before it — up to 6,607 s, well past EOF. Nothing matched,
|
|
23791
|
+
* the video was a uniform timelapse, and the log line reported the five ranges
|
|
23792
|
+
* that had been ASKED for (2026-08-13, export `57d14363`, camera 615).
|
|
23793
|
+
*
|
|
23794
|
+
* Relative and not absolute epoch, because an absolute epoch would make every
|
|
23795
|
+
* call site responsible for the same subtraction.
|
|
23785
23796
|
*/
|
|
23786
23797
|
var ExportDenseRangeSchema = object({
|
|
23787
23798
|
fromSec: number().nonnegative(),
|
|
@@ -31320,25 +31331,32 @@ object({
|
|
|
31320
31331
|
var NativeLeaseAdmissionSchema = _enum(["all", "inferred"]);
|
|
31321
31332
|
object({
|
|
31322
31333
|
/**
|
|
31323
|
-
* How
|
|
31334
|
+
* How many delivered frames the worker HOLDS at once, waiting for each one's
|
|
31335
|
+
* detection result.
|
|
31324
31336
|
*
|
|
31325
|
-
*
|
|
31326
|
-
*
|
|
31327
|
-
*
|
|
31328
|
-
*
|
|
31329
|
-
*
|
|
31337
|
+
* This replaced a TTL on 2026-08-13, and the replacement is the whole point:
|
|
31338
|
+
* a time window was never related to the event the pixels were waiting for.
|
|
31339
|
+
* A held frame now lives from delivery until the runner has its `FrameResult`
|
|
31340
|
+
* — at which moment the runner cuts the subject tiles it actually wanted and
|
|
31341
|
+
* releases the frame. The bound exists only so a runner that stops answering
|
|
31342
|
+
* cannot pin RAM: above it the OLDEST held frame is dropped and counted.
|
|
31343
|
+
*
|
|
31344
|
+
* Sizing: the steady state is `inferenceLatency × deliveredFps`, measured at
|
|
31345
|
+
* 40-160 ms × ≤25 fps = 1-4 frames. The default leaves headroom for a hiccup
|
|
31346
|
+
* without ever approaching the old resident set (43 frames × 24.9 MB at 4K).
|
|
31347
|
+
* Raising it does not buy hit rate — it buys tolerance for a slow runner, and
|
|
31348
|
+
* `holdOverflow` on the metrics line is what says you need it.
|
|
31330
31349
|
*/
|
|
31331
|
-
|
|
31350
|
+
holdFrames: number().int().min(1).max(64),
|
|
31332
31351
|
/**
|
|
31333
31352
|
* Hard per-decode-worker RAM ceiling for retained native frames, in MB.
|
|
31334
31353
|
*
|
|
31335
|
-
*
|
|
31336
|
-
*
|
|
31337
|
-
*
|
|
31338
|
-
*
|
|
31339
|
-
*
|
|
31340
|
-
*
|
|
31341
|
-
* rather than giving RAM back — lower this knob if RAM is what you wanted.
|
|
31354
|
+
* Since 2026-08-13 this is a SAFETY ceiling and nothing else: `holdFrames`
|
|
31355
|
+
* is what decides how much is held, and the ceiling is the number above which
|
|
31356
|
+
* something is wrong. Before that it was the effective cap — at 1024 MB with
|
|
31357
|
+
* a 2 800 ms TTL a 4K camera sat pinned at `leaseMb:1020, leaseFrames:43`
|
|
31358
|
+
* with the TTL expiring nothing, which is exactly the confusion the hold
|
|
31359
|
+
* removes. `leaseMb` / `leaseFrames` still say what is resident.
|
|
31342
31360
|
* `0` DISABLES the lease entirely and falls the worker back to the tiny
|
|
31343
31361
|
* leak-prone GPU surface ring (~85% crop miss; that is what the lease exists
|
|
31344
31362
|
* to replace).
|
|
@@ -31364,22 +31382,45 @@ object({
|
|
|
31364
31382
|
* there is the signal that some caller names frames outside the inference set
|
|
31365
31383
|
* and that this must go back to `all`.
|
|
31366
31384
|
*/
|
|
31367
|
-
admission: NativeLeaseAdmissionSchema
|
|
31385
|
+
admission: NativeLeaseAdmissionSchema,
|
|
31386
|
+
/**
|
|
31387
|
+
* RAM ceiling per decode worker, in MB, for the SUBJECT TILES — the
|
|
31388
|
+
* compressed native crops the worker cuts at the moment a frame's detection
|
|
31389
|
+
* result arrives, and keeps long after the frame itself is freed.
|
|
31390
|
+
*
|
|
31391
|
+
* This is the knob that replaced the old retention window, and it buys about
|
|
31392
|
+
* three orders of magnitude more of it: a tile is one subject at native
|
|
31393
|
+
* resolution, JPEG-encoded (~60-120 KB on a 4K person), against ~24.9 MB for
|
|
31394
|
+
* the frame it was cut from. A frame on which nothing was detected costs
|
|
31395
|
+
* nothing at all, which is the real change — the old lease paid per FRAME and
|
|
31396
|
+
* was interrogated per SUBJECT.
|
|
31397
|
+
*
|
|
31398
|
+
* `0` DISABLES tiles, leaving only the hold window and the ≤640 RAM
|
|
31399
|
+
* fallback — i.e. the pre-2026-08-13 miss profile. Set it there only to
|
|
31400
|
+
* reproduce that.
|
|
31401
|
+
*/
|
|
31402
|
+
tileBudgetMb: number().int().min(0).max(1024)
|
|
31368
31403
|
});
|
|
31369
31404
|
/**
|
|
31370
|
-
* The values in force when the operator has set nothing
|
|
31371
|
-
*
|
|
31372
|
-
*
|
|
31405
|
+
* The values in force when the operator has set nothing.
|
|
31406
|
+
*
|
|
31407
|
+
* `budgetMb` stays at 1024 on the day the hold landed, deliberately: it stopped
|
|
31408
|
+
* being the retention window and became the OOM ceiling, and lowering a ceiling
|
|
31409
|
+
* in the same change that redefines it would make a regression and a retune
|
|
31410
|
+
* indistinguishable. Cut it once `tileHits` / `holdOverflow` have been read on
|
|
31411
|
+
* live traffic.
|
|
31373
31412
|
*/
|
|
31374
31413
|
var DEFAULT_NATIVE_LEASE_SETTINGS = {
|
|
31375
|
-
|
|
31414
|
+
holdFrames: 8,
|
|
31376
31415
|
budgetMb: 1024,
|
|
31377
31416
|
activityMs: 15e3,
|
|
31417
|
+
tileBudgetMb: 64,
|
|
31378
31418
|
admission: "inferred"
|
|
31379
31419
|
};
|
|
31380
|
-
DEFAULT_NATIVE_LEASE_SETTINGS.
|
|
31420
|
+
DEFAULT_NATIVE_LEASE_SETTINGS.holdFrames;
|
|
31381
31421
|
DEFAULT_NATIVE_LEASE_SETTINGS.budgetMb;
|
|
31382
31422
|
DEFAULT_NATIVE_LEASE_SETTINGS.activityMs;
|
|
31423
|
+
DEFAULT_NATIVE_LEASE_SETTINGS.tileBudgetMb;
|
|
31383
31424
|
DEFAULT_NATIVE_LEASE_SETTINGS.admission;
|
|
31384
31425
|
//#endregion
|
|
31385
31426
|
//#region src/onvif-camera.ts
|