@camstack/addon-decoder-ffmpeg 1.2.38 → 1.2.41
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 +94 -6
- package/dist/index.mjs +94 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -13749,6 +13749,50 @@ var NodeProcessSchema = object({
|
|
|
13749
13749
|
/** Wall-clock uptime (seconds). Parsed from `ps etime`. */
|
|
13750
13750
|
uptimeSec: number()
|
|
13751
13751
|
});
|
|
13752
|
+
/**
|
|
13753
|
+
* One retained container-memory reading.
|
|
13754
|
+
*
|
|
13755
|
+
* `atMs` is the timestamp of the PROCESS snapshot taken in the same tick, not
|
|
13756
|
+
* a second clock: that is what makes "processes sum to X, container says Y"
|
|
13757
|
+
* subtractable per point rather than an eyeballed comparison of two series
|
|
13758
|
+
* sampled at different instants.
|
|
13759
|
+
*
|
|
13760
|
+
* A reduced window keeps the sample with the LARGEST `currentBytes` in each
|
|
13761
|
+
* bucket, WHOLE. Taking a per-field maximum would synthesise a row whose parts
|
|
13762
|
+
* never coexisted, and a mean would smear away the peak this exists to find.
|
|
13763
|
+
*/
|
|
13764
|
+
var ContainerMemoryPointSchema = object({
|
|
13765
|
+
/** Which hierarchy answered, so a reading is never ambiguous. */
|
|
13766
|
+
source: _enum(["cgroup-v2", "cgroup-v1"]),
|
|
13767
|
+
/** `memory.current` (v2) / `memory.usage_in_bytes` (v1). Always known. */
|
|
13768
|
+
currentBytes: number(),
|
|
13769
|
+
/** The cgroup's ceiling. `null` = NO LIMIT — never a sentinel, never zero. */
|
|
13770
|
+
limitBytes: number().nullable(),
|
|
13771
|
+
/** Anonymous pages: the closest thing to "what the processes allocated". */
|
|
13772
|
+
anonBytes: number().nullable(),
|
|
13773
|
+
/** Page cache. Charged to the cgroup, owned by no process. */
|
|
13774
|
+
fileBytes: number().nullable(),
|
|
13775
|
+
/**
|
|
13776
|
+
* Shared memory — and the field that explained the largest single surprise.
|
|
13777
|
+
* The i915 driver backs GPU buffers with shmem, so an inference pool or a
|
|
13778
|
+
* hardware-decode session holding DRM objects is charged HERE and appears
|
|
13779
|
+
* nowhere in a `ps` scan.
|
|
13780
|
+
*/
|
|
13781
|
+
shmemBytes: number().nullable(),
|
|
13782
|
+
/** Kernel slab charged to this cgroup. `null` on v1, which never publishes it. */
|
|
13783
|
+
slabBytes: number().nullable(),
|
|
13784
|
+
/**
|
|
13785
|
+
* Shrinkable i915 GEM object bytes, from debugfs.
|
|
13786
|
+
*
|
|
13787
|
+
* **Host-wide across every DRM client, NOT cgroup-scoped.** It is not a
|
|
13788
|
+
* component of `currentBytes` and must not be subtracted from it; it says
|
|
13789
|
+
* what put the shmem there, where `shmemBytes` only says how much.
|
|
13790
|
+
*
|
|
13791
|
+
* `null` wherever debugfs is not mounted — which is inside every camstack
|
|
13792
|
+
* container today — and on any node with no Intel GPU.
|
|
13793
|
+
*/
|
|
13794
|
+
gpuShmemBytes: number().nullable()
|
|
13795
|
+
}).extend({ atMs: number() });
|
|
13752
13796
|
var DumpHeapSnapshotInputSchema = object({
|
|
13753
13797
|
/** The addon whose runner should dump a heap snapshot. */
|
|
13754
13798
|
addonId: string() });
|
|
@@ -13812,6 +13856,21 @@ var NodeLoadSeriesSchema = object({
|
|
|
13812
13856
|
/** One entry per function seen in the window, heaviest-first. */
|
|
13813
13857
|
series: array(LoadFunctionSeriesSchema).readonly(),
|
|
13814
13858
|
/**
|
|
13859
|
+
* The CONTAINER's memory over the same window, oldest-first.
|
|
13860
|
+
*
|
|
13861
|
+
* Sits next to `series` rather than in a method of its own because the whole
|
|
13862
|
+
* question is a subtraction: the per-process rows in `series` sum to one
|
|
13863
|
+
* number and this one is another, and an operator who has to issue two calls
|
|
13864
|
+
* to compare them will compare two different instants. Same reader, same
|
|
13865
|
+
* `sinceMs`, same `bucketMs`, same timestamps.
|
|
13866
|
+
*
|
|
13867
|
+
* **EMPTY means ABSENT, never zero.** A node with no cgroup — a developer
|
|
13868
|
+
* Mac, a bare-metal host, a container with the hierarchy hidden — reports no
|
|
13869
|
+
* points at all. A zero here would be indistinguishable from a healthy
|
|
13870
|
+
* container and is precisely the lie this field exists to avoid.
|
|
13871
|
+
*/
|
|
13872
|
+
containerMemory: array(ContainerMemoryPointSchema).readonly(),
|
|
13873
|
+
/**
|
|
13815
13874
|
* Width of one returned bucket, in ms. Equals the sampling cadence when no
|
|
13816
13875
|
* reduction was needed — so a caller can always say what one point covers
|
|
13817
13876
|
* without having to know whether it was reduced.
|
|
@@ -25741,10 +25800,10 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
|
|
|
25741
25800
|
* recording config. NOTE on events (source of truth, R5/C3): this cap carries
|
|
25742
25801
|
* NO event surface — `getPlaybackManifest` returns playlist URLs only. Timeline
|
|
25743
25802
|
* events (motion/object/audio) come from `pipelineAnalytics` (durable SQLite
|
|
25744
|
-
* rows)
|
|
25745
|
-
*
|
|
25746
|
-
*
|
|
25747
|
-
* (`interfaces/recording-config.ts`).
|
|
25803
|
+
* rows) and are the ONLY event surface — the recorder has none. The in-RAM
|
|
25804
|
+
* playback markers it used to build were deleted on 2026-08-29 because nothing
|
|
25805
|
+
* ever read them. Event<->footage joins are by time, padded with the shared
|
|
25806
|
+
* `EVENT_PAD_MS` (`interfaces/recording-config.ts`).
|
|
25748
25807
|
*/
|
|
25749
25808
|
var RecordingStatusSchema = object({
|
|
25750
25809
|
deviceId: number(),
|
|
@@ -37197,8 +37256,9 @@ function resolveAudioCodecAlias(codec) {
|
|
|
37197
37256
|
* | ----------------------------- | ------ | ---- | ----------------------------- |
|
|
37198
37257
|
* | pcm_mulaw | mulaw | yes | G.711 µ-law |
|
|
37199
37258
|
* | pcm_alaw | alaw | yes | G.711 A-law |
|
|
37200
|
-
* | pcm_s16be (l16) | s16be | yes | RTP L16
|
|
37201
|
-
* | pcm_s16le | s16le | yes |
|
|
37259
|
+
* | pcm_s16be (l16) | s16be | yes | RTP L16 — NOT in the catalogue|
|
|
37260
|
+
* | pcm_s16le | s16le | yes | linear PCM rate conversion |
|
|
37261
|
+
* | pcm_f32le | f32le | yes | linear PCM rate conversion |
|
|
37202
37262
|
* | g722 | g722 | yes | 16 kHz wideband |
|
|
37203
37263
|
* | aac / aac_latm / mpeg4-generic| aac | no | ADTS demuxer |
|
|
37204
37264
|
* | opus | ogg | no | ⚠ needs Ogg framing (see NOTE)|
|
|
@@ -37226,6 +37286,10 @@ var DECODE_FORMAT_BY_CODEC = {
|
|
|
37226
37286
|
inputFormat: "s16le",
|
|
37227
37287
|
rawInput: true
|
|
37228
37288
|
},
|
|
37289
|
+
pcm_f32le: {
|
|
37290
|
+
inputFormat: "f32le",
|
|
37291
|
+
rawInput: true
|
|
37292
|
+
},
|
|
37229
37293
|
g722: {
|
|
37230
37294
|
inputFormat: "g722",
|
|
37231
37295
|
rawInput: true
|
|
@@ -37250,6 +37314,8 @@ var DECODE_FORMAT_BY_CODEC = {
|
|
|
37250
37314
|
* | --------- | ---------- | ----- | -------- |
|
|
37251
37315
|
* | pcm_mulaw | pcm_mulaw | mulaw | no |
|
|
37252
37316
|
* | pcm_alaw | pcm_alaw | alaw | no |
|
|
37317
|
+
* | pcm_s16le | pcm_s16le | s16le | no |
|
|
37318
|
+
* | pcm_f32le | pcm_f32le | f32le | no |
|
|
37253
37319
|
* | g722 | g722 | g722 | no |
|
|
37254
37320
|
* | aac | aac | adts | yes |
|
|
37255
37321
|
* | opus | libopus | ogg | yes |
|
|
@@ -37265,6 +37331,16 @@ var ENCODE_FORMAT_BY_CODEC = {
|
|
|
37265
37331
|
outputFormat: "alaw",
|
|
37266
37332
|
acceptsBitrate: false
|
|
37267
37333
|
},
|
|
37334
|
+
pcm_s16le: {
|
|
37335
|
+
encoder: "pcm_s16le",
|
|
37336
|
+
outputFormat: "s16le",
|
|
37337
|
+
acceptsBitrate: false
|
|
37338
|
+
},
|
|
37339
|
+
pcm_f32le: {
|
|
37340
|
+
encoder: "pcm_f32le",
|
|
37341
|
+
outputFormat: "f32le",
|
|
37342
|
+
acceptsBitrate: false
|
|
37343
|
+
},
|
|
37268
37344
|
g722: {
|
|
37269
37345
|
encoder: "g722",
|
|
37270
37346
|
outputFormat: "g722",
|
|
@@ -37923,6 +37999,18 @@ var CODEC_CATALOG = [
|
|
|
37923
37999
|
canEncode: true,
|
|
37924
38000
|
label: "PCM A-law (G.711)"
|
|
37925
38001
|
},
|
|
38002
|
+
{
|
|
38003
|
+
codec: "pcm_s16le",
|
|
38004
|
+
canDecode: true,
|
|
38005
|
+
canEncode: true,
|
|
38006
|
+
label: "PCM signed 16-bit LE"
|
|
38007
|
+
},
|
|
38008
|
+
{
|
|
38009
|
+
codec: "pcm_f32le",
|
|
38010
|
+
canDecode: true,
|
|
38011
|
+
canEncode: true,
|
|
38012
|
+
label: "PCM float 32-bit LE"
|
|
38013
|
+
},
|
|
37926
38014
|
{
|
|
37927
38015
|
codec: "g722",
|
|
37928
38016
|
canDecode: true,
|
package/dist/index.mjs
CHANGED
|
@@ -13745,6 +13745,50 @@ var NodeProcessSchema = object({
|
|
|
13745
13745
|
/** Wall-clock uptime (seconds). Parsed from `ps etime`. */
|
|
13746
13746
|
uptimeSec: number()
|
|
13747
13747
|
});
|
|
13748
|
+
/**
|
|
13749
|
+
* One retained container-memory reading.
|
|
13750
|
+
*
|
|
13751
|
+
* `atMs` is the timestamp of the PROCESS snapshot taken in the same tick, not
|
|
13752
|
+
* a second clock: that is what makes "processes sum to X, container says Y"
|
|
13753
|
+
* subtractable per point rather than an eyeballed comparison of two series
|
|
13754
|
+
* sampled at different instants.
|
|
13755
|
+
*
|
|
13756
|
+
* A reduced window keeps the sample with the LARGEST `currentBytes` in each
|
|
13757
|
+
* bucket, WHOLE. Taking a per-field maximum would synthesise a row whose parts
|
|
13758
|
+
* never coexisted, and a mean would smear away the peak this exists to find.
|
|
13759
|
+
*/
|
|
13760
|
+
var ContainerMemoryPointSchema = object({
|
|
13761
|
+
/** Which hierarchy answered, so a reading is never ambiguous. */
|
|
13762
|
+
source: _enum(["cgroup-v2", "cgroup-v1"]),
|
|
13763
|
+
/** `memory.current` (v2) / `memory.usage_in_bytes` (v1). Always known. */
|
|
13764
|
+
currentBytes: number(),
|
|
13765
|
+
/** The cgroup's ceiling. `null` = NO LIMIT — never a sentinel, never zero. */
|
|
13766
|
+
limitBytes: number().nullable(),
|
|
13767
|
+
/** Anonymous pages: the closest thing to "what the processes allocated". */
|
|
13768
|
+
anonBytes: number().nullable(),
|
|
13769
|
+
/** Page cache. Charged to the cgroup, owned by no process. */
|
|
13770
|
+
fileBytes: number().nullable(),
|
|
13771
|
+
/**
|
|
13772
|
+
* Shared memory — and the field that explained the largest single surprise.
|
|
13773
|
+
* The i915 driver backs GPU buffers with shmem, so an inference pool or a
|
|
13774
|
+
* hardware-decode session holding DRM objects is charged HERE and appears
|
|
13775
|
+
* nowhere in a `ps` scan.
|
|
13776
|
+
*/
|
|
13777
|
+
shmemBytes: number().nullable(),
|
|
13778
|
+
/** Kernel slab charged to this cgroup. `null` on v1, which never publishes it. */
|
|
13779
|
+
slabBytes: number().nullable(),
|
|
13780
|
+
/**
|
|
13781
|
+
* Shrinkable i915 GEM object bytes, from debugfs.
|
|
13782
|
+
*
|
|
13783
|
+
* **Host-wide across every DRM client, NOT cgroup-scoped.** It is not a
|
|
13784
|
+
* component of `currentBytes` and must not be subtracted from it; it says
|
|
13785
|
+
* what put the shmem there, where `shmemBytes` only says how much.
|
|
13786
|
+
*
|
|
13787
|
+
* `null` wherever debugfs is not mounted — which is inside every camstack
|
|
13788
|
+
* container today — and on any node with no Intel GPU.
|
|
13789
|
+
*/
|
|
13790
|
+
gpuShmemBytes: number().nullable()
|
|
13791
|
+
}).extend({ atMs: number() });
|
|
13748
13792
|
var DumpHeapSnapshotInputSchema = object({
|
|
13749
13793
|
/** The addon whose runner should dump a heap snapshot. */
|
|
13750
13794
|
addonId: string() });
|
|
@@ -13808,6 +13852,21 @@ var NodeLoadSeriesSchema = object({
|
|
|
13808
13852
|
/** One entry per function seen in the window, heaviest-first. */
|
|
13809
13853
|
series: array(LoadFunctionSeriesSchema).readonly(),
|
|
13810
13854
|
/**
|
|
13855
|
+
* The CONTAINER's memory over the same window, oldest-first.
|
|
13856
|
+
*
|
|
13857
|
+
* Sits next to `series` rather than in a method of its own because the whole
|
|
13858
|
+
* question is a subtraction: the per-process rows in `series` sum to one
|
|
13859
|
+
* number and this one is another, and an operator who has to issue two calls
|
|
13860
|
+
* to compare them will compare two different instants. Same reader, same
|
|
13861
|
+
* `sinceMs`, same `bucketMs`, same timestamps.
|
|
13862
|
+
*
|
|
13863
|
+
* **EMPTY means ABSENT, never zero.** A node with no cgroup — a developer
|
|
13864
|
+
* Mac, a bare-metal host, a container with the hierarchy hidden — reports no
|
|
13865
|
+
* points at all. A zero here would be indistinguishable from a healthy
|
|
13866
|
+
* container and is precisely the lie this field exists to avoid.
|
|
13867
|
+
*/
|
|
13868
|
+
containerMemory: array(ContainerMemoryPointSchema).readonly(),
|
|
13869
|
+
/**
|
|
13811
13870
|
* Width of one returned bucket, in ms. Equals the sampling cadence when no
|
|
13812
13871
|
* reduction was needed — so a caller can always say what one point covers
|
|
13813
13872
|
* without having to know whether it was reduced.
|
|
@@ -25737,10 +25796,10 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
|
|
|
25737
25796
|
* recording config. NOTE on events (source of truth, R5/C3): this cap carries
|
|
25738
25797
|
* NO event surface — `getPlaybackManifest` returns playlist URLs only. Timeline
|
|
25739
25798
|
* events (motion/object/audio) come from `pipelineAnalytics` (durable SQLite
|
|
25740
|
-
* rows)
|
|
25741
|
-
*
|
|
25742
|
-
*
|
|
25743
|
-
* (`interfaces/recording-config.ts`).
|
|
25799
|
+
* rows) and are the ONLY event surface — the recorder has none. The in-RAM
|
|
25800
|
+
* playback markers it used to build were deleted on 2026-08-29 because nothing
|
|
25801
|
+
* ever read them. Event<->footage joins are by time, padded with the shared
|
|
25802
|
+
* `EVENT_PAD_MS` (`interfaces/recording-config.ts`).
|
|
25744
25803
|
*/
|
|
25745
25804
|
var RecordingStatusSchema = object({
|
|
25746
25805
|
deviceId: number(),
|
|
@@ -37193,8 +37252,9 @@ function resolveAudioCodecAlias(codec) {
|
|
|
37193
37252
|
* | ----------------------------- | ------ | ---- | ----------------------------- |
|
|
37194
37253
|
* | pcm_mulaw | mulaw | yes | G.711 µ-law |
|
|
37195
37254
|
* | pcm_alaw | alaw | yes | G.711 A-law |
|
|
37196
|
-
* | pcm_s16be (l16) | s16be | yes | RTP L16
|
|
37197
|
-
* | pcm_s16le | s16le | yes |
|
|
37255
|
+
* | pcm_s16be (l16) | s16be | yes | RTP L16 — NOT in the catalogue|
|
|
37256
|
+
* | pcm_s16le | s16le | yes | linear PCM rate conversion |
|
|
37257
|
+
* | pcm_f32le | f32le | yes | linear PCM rate conversion |
|
|
37198
37258
|
* | g722 | g722 | yes | 16 kHz wideband |
|
|
37199
37259
|
* | aac / aac_latm / mpeg4-generic| aac | no | ADTS demuxer |
|
|
37200
37260
|
* | opus | ogg | no | ⚠ needs Ogg framing (see NOTE)|
|
|
@@ -37222,6 +37282,10 @@ var DECODE_FORMAT_BY_CODEC = {
|
|
|
37222
37282
|
inputFormat: "s16le",
|
|
37223
37283
|
rawInput: true
|
|
37224
37284
|
},
|
|
37285
|
+
pcm_f32le: {
|
|
37286
|
+
inputFormat: "f32le",
|
|
37287
|
+
rawInput: true
|
|
37288
|
+
},
|
|
37225
37289
|
g722: {
|
|
37226
37290
|
inputFormat: "g722",
|
|
37227
37291
|
rawInput: true
|
|
@@ -37246,6 +37310,8 @@ var DECODE_FORMAT_BY_CODEC = {
|
|
|
37246
37310
|
* | --------- | ---------- | ----- | -------- |
|
|
37247
37311
|
* | pcm_mulaw | pcm_mulaw | mulaw | no |
|
|
37248
37312
|
* | pcm_alaw | pcm_alaw | alaw | no |
|
|
37313
|
+
* | pcm_s16le | pcm_s16le | s16le | no |
|
|
37314
|
+
* | pcm_f32le | pcm_f32le | f32le | no |
|
|
37249
37315
|
* | g722 | g722 | g722 | no |
|
|
37250
37316
|
* | aac | aac | adts | yes |
|
|
37251
37317
|
* | opus | libopus | ogg | yes |
|
|
@@ -37261,6 +37327,16 @@ var ENCODE_FORMAT_BY_CODEC = {
|
|
|
37261
37327
|
outputFormat: "alaw",
|
|
37262
37328
|
acceptsBitrate: false
|
|
37263
37329
|
},
|
|
37330
|
+
pcm_s16le: {
|
|
37331
|
+
encoder: "pcm_s16le",
|
|
37332
|
+
outputFormat: "s16le",
|
|
37333
|
+
acceptsBitrate: false
|
|
37334
|
+
},
|
|
37335
|
+
pcm_f32le: {
|
|
37336
|
+
encoder: "pcm_f32le",
|
|
37337
|
+
outputFormat: "f32le",
|
|
37338
|
+
acceptsBitrate: false
|
|
37339
|
+
},
|
|
37264
37340
|
g722: {
|
|
37265
37341
|
encoder: "g722",
|
|
37266
37342
|
outputFormat: "g722",
|
|
@@ -37919,6 +37995,18 @@ var CODEC_CATALOG = [
|
|
|
37919
37995
|
canEncode: true,
|
|
37920
37996
|
label: "PCM A-law (G.711)"
|
|
37921
37997
|
},
|
|
37998
|
+
{
|
|
37999
|
+
codec: "pcm_s16le",
|
|
38000
|
+
canDecode: true,
|
|
38001
|
+
canEncode: true,
|
|
38002
|
+
label: "PCM signed 16-bit LE"
|
|
38003
|
+
},
|
|
38004
|
+
{
|
|
38005
|
+
codec: "pcm_f32le",
|
|
38006
|
+
canDecode: true,
|
|
38007
|
+
canEncode: true,
|
|
38008
|
+
label: "PCM float 32-bit LE"
|
|
38009
|
+
},
|
|
37922
38010
|
{
|
|
37923
38011
|
codec: "g722",
|
|
37924
38012
|
canDecode: true,
|