@trillboards/edge-platform-rtsp 0.2.1 → 0.2.4

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.
@@ -0,0 +1,330 @@
1
+ /// <reference types="node" />
2
+ import { spawn } from 'child_process';
3
+ import type { AudioProvider } from '@trillboards/edge-core';
4
+ /**
5
+ * RTSPAudioProvider — continuous audio off an RTSP camera/NVR channel, as a
6
+ * LONG-LIVED ffmpeg session feeding a bounded ring buffer.
7
+ *
8
+ * ── THE DESIGN PROBLEM, AND IT IS THE WHOLE FILE. Video capture in this
9
+ * package is ONE-SHOT-PER-FRAME behind a recorder-scoped admission gate
10
+ * (`CaptureAdmission`, default 2 concurrent pulls per host:port). That gate is
11
+ * incident-derived: a 32-channel NVR accumulated 28 simultaneous ffmpeg
12
+ * children when pulls started outliving the cadence, and the recorder answered
13
+ * with rotating timeouts, CSeq mismatches and cameras flapping into "needs
14
+ * attention" (.claude/lessons/2026-08-17-rtsp-session-admission-and-frame-integrity.md).
15
+ * The rule that came out of it is that admission must be shared by PHYSICAL
16
+ * RECORDER (host:port), never scoped to a provider instance.
17
+ *
18
+ * Audio cannot be one-shot. Sampling three seconds out of every thirty misses
19
+ * ~90% of the events audio exists to catch, and the point of the acoustic
20
+ * channel is precisely to hear what happens BETWEEN frame pulls. So it needs a
21
+ * session that stays open — which is the one shape the existing gate is least
22
+ * able to absorb, because a permanent holder of a 2-slot pool is a 50%
23
+ * permanent tax on frame capture for that recorder, and two of them deadlock
24
+ * video entirely.
25
+ *
26
+ * ── THE RESOLUTION: A SECOND, SEPARATE LANE ON THE SAME RECORDER KEY.
27
+ * Long-lived audio sessions are admitted from `audioAdmissionBySource`, keyed
28
+ * by the SAME `captureSourceKey(url)` — host:port, credentials and channel path
29
+ * deliberately excluded so 32 channels of one NVR share one budget — but
30
+ * counted in their OWN pool with its own cap (`maxAudioSessionsPerSource`,
31
+ * DEFAULT 1). Three properties fall out, and all three are the point:
32
+ *
33
+ * 1. Audio can NEVER consume a video pull slot, so the incident's failure
34
+ * mode is untouched: frame capture's concurrency against a recorder is
35
+ * exactly what it was before this file existed.
36
+ * 2. Audio is bounded per PHYSICAL RECORDER, which is the lesson's actual
37
+ * rule. A 32-channel NVR gets ONE continuous audio session, not 32 — the
38
+ * naive per-camera design would recreate the incident with processes that
39
+ * never exit, which is strictly worse than the one we already had.
40
+ * 3. The bound is on ADMISSION, so it cannot be exceeded and then reconciled.
41
+ *
42
+ * ── THE SESSION IS ALSO WHY AUDIO IS CHEAP, AND THAT WAS MEASURED ELSEWHERE.
43
+ * `buildCaptureArgs` spawns ONE ffmpeg per grab, so every video look pays a full
44
+ * RTSP handshake plus a keyframe wait: p50 ~2,000 ms against a real stream
45
+ * versus 20–30 ms against a local file, i.e. ~99% of a look is session SETUP,
46
+ * not imaging. That per-look tax is what caps the video cadence. This provider
47
+ * pays it ONCE per recorder and then streams, so the acoustic channel gets
48
+ * CONTINUOUS coverage for a single handshake while video gets one instant per
49
+ * ~2 s of setup. Audio is therefore structurally cheaper per unit of coverage
50
+ * than video is, and it is cheapest exactly where video is dearest — between
51
+ * looks, which is the interval the whole acoustic channel exists to cover. The
52
+ * one-shot/long-lived split is not an awkward asymmetry to be tidied away
53
+ * later; it is the reason this design earns its keep.
54
+ *
55
+ * ── DROP, NEVER QUEUE. A camera that cannot get the slot runs WITHOUT audio
56
+ * and says so (`RtspAudioAdmissionError`); it does not wait. This mirrors
57
+ * `VlmAdmissionGate` for the same reason — a queued audio session would be
58
+ * admitted minutes later against a scene nobody is asking about any more — and
59
+ * it keeps audio strictly supplementary: no failure in this file may ever be
60
+ * able to stop a camera from producing frames.
61
+ *
62
+ * ── A CAMERA WITH NO AUDIO TRACK MUST NOT HOLD THE SLOT. Most CCTV channels
63
+ * carry no audio at all. If such a feed took the recorder's single audio slot
64
+ * and then sat there failing, it would silently deny audio to the one camera on
65
+ * that NVR that actually has a microphone — a defect that looks exactly like
66
+ * "audio doesn't work" and is invisible to every health check. So a missing
67
+ * audio stream is classified as its own PERMANENT outcome: the session stops,
68
+ * the slot is RELEASED immediately, and `open()` rejects with
69
+ * `RtspAudioNoTrackError`. Re-probing is the caller's explicit decision, never
70
+ * a silent retry loop against a recorder.
71
+ *
72
+ * ── RESTARTS RE-ARM, AT STARTUP AS WELL AS AT RUNTIME. Any other failure
73
+ * (dropped TCP, recorder reboot, network blip) is transient. A RUNNING session
74
+ * is retried with exponential backoff capped at `maxRestartDelayMs` and NEVER
75
+ * permanently retires the feed while the provider is open. An OPENING session
76
+ * gets `openValidationAttempts` tries (default 4, mirroring
77
+ * `RTSPCameraProvider`) — because a supervisor that only covers the running
78
+ * case leaves the hole exactly where an unattended 24/7 connector is most
79
+ * likely to fall in it: a recorder that is merely slow or rebooting at boot
80
+ * would otherwise cost that feed its audio for the LIFE OF THE PROCESS. That is deliberate and incident-derived from the other direction:
81
+ * on the Ember fleet `shouldGiveUp` retired a camera permanently after a fixed
82
+ * 411 s and NOTHING re-armed it — `onCameraStartFailed` was telemetry-only, no
83
+ * config push restarted the analyzer, and `setMaxRetries` had zero call sites,
84
+ * so 7,359 escalations became permanent silence
85
+ * (docs/runbooks/ember-camera-health-taxonomy.md). A capped-backoff retry that
86
+ * never gives up IS the re-arm; the cap is what keeps it from being a hammer.
87
+ *
88
+ * ── SECRET HYGIENE, INHERITED. RTSP URLs carry passwords. Exactly as
89
+ * `RTSPCameraProvider` does, the URL is written to a 0600 ffconcat file and
90
+ * only the temp path reaches argv, so a password never appears in `ps` output;
91
+ * stderr is scrubbed through `sanitizeStreamUrlForLog` before it can reach a
92
+ * log line.
93
+ *
94
+ * ── A NON-MONOTONIC AUDIO DTS CANNOT CORRUPT THIS RING, AND THAT IS MEASURED.
95
+ * The 2026-08-18 camera validation logged ffmpeg's non-monotonic DTS warning on
96
+ * Happytime's PCMU track over RTSP/UDP. It does not follow that this provider
97
+ * is affected, and it is not — for two independent reasons, both checked rather
98
+ * than reasoned:
99
+ * 1. The OUTPUT stage is `-f s16le`, a headerless raw-PCM muxer that performs
100
+ * no timestamp monotonicity check. Fed an input with a deliberate backwards
101
+ * audio DTS jump (581040 -> 126000, built with the concat protocol over two
102
+ * identical MPEG-TS segments), this exact arg vector emitted ZERO
103
+ * non-monotonic complaints and dropped no audio.
104
+ * 2. `consumePcm` never reads a media timestamp. Samples are appended to the
105
+ * ring in arrival order and stamped with `this.now()` — WALL CLOCK — so a
106
+ * demuxer-side timestamp cannot reorder, duplicate or gap the buffer that
107
+ * `AudioOnsetDetector` consumes.
108
+ * Belt and braces: the live wiring in `attachAudioOnset` defaults to
109
+ * `transport: 'tcp'`, and TCP was clean in that run; UDP is reachable only by a
110
+ * caller explicitly asking for it. What the warning DOES cost is diagnostic —
111
+ * it is per-packet, so it fills the stderr budget fast. See `STDERR_HEAD_LIMIT`.
112
+ *
113
+ * ── NO CACHED CAPABILITY BOOLEAN, ON PURPOSE. The obvious addition here is a
114
+ * `cap_audio` flag set once at startup. Do not add one. On the Android DOOH
115
+ * fleet `cap_audio_classification` is `false` FLEET-WIDE — including on devices
116
+ * shipping live YAMNet classifications — because `detectCapabilities()` read a
117
+ * synchronous "still probing" value, the async probe resolved later, and
118
+ * NOTHING ever re-wrote the flag. It is published to DSPs in that state
119
+ * (docs/runbooks/audio-sensing-substrate.md). Audio capability here is
120
+ * genuinely asynchronous for the same reason — whether a stream carries audio
121
+ * is only knowable after ffmpeg has answered — so `getStats()` DERIVES every
122
+ * field live on each call (`running`, `noAudioTrack`, `buffered`,
123
+ * `lastPcmAtMs`) and there is no stored boolean that can outlive its truth. If
124
+ * a caller ever does need a flag, it must be recomputed from these, never
125
+ * latched at boot.
126
+ *
127
+ * ── LAYERING. This package is TRANSPORT. It knows nothing about onsets,
128
+ * motion or models — `AudioOnsetDetector` and the gate wiring live in
129
+ * `@trillboards/edge-sdk`, which is also the only package that may depend on
130
+ * both. `onPcm()` is the seam: this file produces a continuous mono Float32
131
+ * stream, and the SDK decides what it means.
132
+ */
133
+ /** Admission was refused: this recorder already runs its allowed audio sessions. */
134
+ export declare class RtspAudioAdmissionError extends Error {
135
+ readonly code = "RTSP_AUDIO_SESSION_LIMIT";
136
+ constructor(sourceKey: string, limit: number);
137
+ }
138
+ /** The stream carries no audio track. Permanent for this URL until re-probed. */
139
+ export declare class RtspAudioNoTrackError extends Error {
140
+ readonly code = "RTSP_AUDIO_NO_TRACK";
141
+ constructor(url: string);
142
+ }
143
+ /**
144
+ * Bounded head+tail accumulator. Append-only, allocation-bounded, and it says
145
+ * out loud how much it dropped — a truncation that hides its own existence is
146
+ * how a summary becomes a lie.
147
+ */
148
+ export declare class BoundedSessionStderr {
149
+ private head;
150
+ private tail;
151
+ private droppedBytes;
152
+ append(text: string): void;
153
+ text(): string;
154
+ }
155
+ /** Test seam: forget every recorder's audio budget. */
156
+ export declare function __resetAudioAdmissionForTests(): void;
157
+ /** Live audio-lane occupancy for a recorder, for diagnostics. */
158
+ export declare function audioSessionStatsFor(streamUrl: string): {
159
+ key: string;
160
+ active: number;
161
+ limit: number;
162
+ } | null;
163
+ export interface RTSPAudioConfig {
164
+ /** RTSP stream URL. Credentials never reach argv — see the header. */
165
+ rtspUrl: string;
166
+ /** Output sample rate (Hz). Default 16000 — what every consumer here wants. */
167
+ sampleRate?: number;
168
+ /**
169
+ * Ring buffer depth (s). Default 30, which is also litert-lm's maximum audio
170
+ * clip length, so a full buffer is exactly one maximal transcription window.
171
+ */
172
+ bufferSeconds?: number;
173
+ /**
174
+ * Concurrent LONG-LIVED audio sessions allowed per recorder host:port across
175
+ * every provider instance in this process. Default 1. Raise ONLY with a
176
+ * measurement against the real recorder — this is the bound that keeps a
177
+ * 32-channel NVR from re-running the 28-children incident with processes that
178
+ * never exit.
179
+ */
180
+ maxAudioSessionsPerSource?: number;
181
+ /** RTSP transport. Default 'tcp'. */
182
+ transport?: 'tcp' | 'udp';
183
+ /** Socket I/O timeout (µs). Default 12000000. */
184
+ timeoutUs?: number;
185
+ /** ffmpeg binary. Default 'ffmpeg'. */
186
+ ffmpegPath?: string;
187
+ /** ffmpeg major version, for the `-timeout` vs `-stimeout` split. Default 6. */
188
+ ffmpegMajorVersion?: number;
189
+ /**
190
+ * Transient failures tolerated while OPENING before the attach gives up.
191
+ * Default 4, mirroring `RTSPCameraProvider.openValidationAttempts`. Without
192
+ * this a recorder that is merely slow or rebooting at connector startup would
193
+ * cost the feed its audio for the LIFE OF THE PROCESS — the running session is
194
+ * supervised, so startup must be too, or the re-arm guarantee has a hole
195
+ * exactly where an unattended 24/7 connector is most likely to fall in it.
196
+ * `RtspAudioNoTrackError` is never retried: it is a settled fact about the
197
+ * stream, and re-asking would hammer the recorder to be told it again.
198
+ */
199
+ openValidationAttempts?: number;
200
+ /** First restart delay (ms), doubling to `maxRestartDelayMs`. Default 1000. */
201
+ restartDelayMs?: number;
202
+ /** Backoff ceiling (ms). Default 60000. */
203
+ maxRestartDelayMs?: number;
204
+ /** Injected spawn, for tests. */
205
+ spawnFn?: typeof spawn;
206
+ /** Clock injection for tests. */
207
+ now?: () => number;
208
+ /** Optional log sink; messages are already URL-scrubbed. */
209
+ onLog?: (level: 'debug' | 'info' | 'warn' | 'error', message: string) => void;
210
+ }
211
+ export interface RTSPAudioStats {
212
+ opened: boolean;
213
+ running: boolean;
214
+ /** Samples currently held in the ring. */
215
+ buffered: number;
216
+ /** Ring capacity in samples. */
217
+ capacity: number;
218
+ /** Total samples ever received from ffmpeg. */
219
+ totalSamples: number;
220
+ /** ffmpeg session starts, including restarts. */
221
+ sessionStarts: number;
222
+ restarts: number;
223
+ /** Set once the stream has been shown to carry no audio track. */
224
+ noAudioTrack: boolean;
225
+ lastErrorMessage: string | null;
226
+ /** Wall-clock ms of the most recent PCM delivery, or null. */
227
+ lastPcmAtMs: number | null;
228
+ }
229
+ type PcmListener = (pcm: Float32Array, atMs: number) => void;
230
+ /**
231
+ * One instance per audio-carrying feed. Implements the SAME `AudioProvider`
232
+ * interface as the Linux/Windows/web providers, so `AudienceSensingService`
233
+ * consumes it unchanged — but the pull (`getAudioChunk`) reads from the ring
234
+ * that the long-lived session is continuously filling, rather than spawning a
235
+ * process per call the way a microphone provider does.
236
+ */
237
+ export declare class RTSPAudioProvider implements AudioProvider {
238
+ private readonly rtspUrl;
239
+ private readonly sampleRate;
240
+ private readonly capacity;
241
+ private readonly maxAudioSessionsPerSource;
242
+ private readonly transport;
243
+ private readonly timeoutUs;
244
+ private readonly ffmpegPath;
245
+ private readonly ffmpegMajorVersion;
246
+ private readonly openValidationAttempts;
247
+ private readonly restartDelayMs;
248
+ private readonly maxRestartDelayMs;
249
+ private readonly spawnFn;
250
+ private readonly now;
251
+ private readonly onLog?;
252
+ /** Fixed-capacity circular buffer. Never reallocated, so memory is a constant. */
253
+ private readonly ring;
254
+ private ringWrite;
255
+ private ringFilled;
256
+ private opened;
257
+ private proc;
258
+ private releaseAdmission;
259
+ private restartTimer;
260
+ /** While true, `open()` owns retries and the supervisor must not schedule any. */
261
+ private startingUp;
262
+ private currentRestartDelay;
263
+ private cleanupInput;
264
+ /** Odd trailing byte carried between stdout chunks so samples are never torn. */
265
+ private pendingByte;
266
+ private listeners;
267
+ private totalSamples;
268
+ private sessionStarts;
269
+ private restarts;
270
+ private noAudioTrack;
271
+ private lastErrorMessage;
272
+ private lastPcmAtMs;
273
+ constructor(config: RTSPAudioConfig);
274
+ getSampleRate(): number;
275
+ isOpen(): boolean;
276
+ getStats(): RTSPAudioStats;
277
+ /**
278
+ * Subscribe to the continuous stream. Returns an unsubscribe function.
279
+ * This is the seam the SDK's onset detector attaches to; `getAudioChunk`
280
+ * remains the pull-based `AudioProvider` contract for everything else.
281
+ */
282
+ onPcm(listener: PcmListener): () => void;
283
+ /**
284
+ * Take a recorder audio slot and start the session. Rejects with
285
+ * `RtspAudioAdmissionError` when the recorder's audio lane is full, and with
286
+ * `RtspAudioNoTrackError` when the stream turns out to carry no audio — both
287
+ * of which a caller should treat as "this feed has no audio", never as a
288
+ * camera fault.
289
+ */
290
+ open(): Promise<void>;
291
+ /**
292
+ * Most recent `durationMs` of audio from the ring. Returns whatever is
293
+ * available when the buffer holds less — a short read is a normal startup
294
+ * condition, not an error, and throwing here would make a supplementary
295
+ * signal able to break a caller.
296
+ */
297
+ getAudioChunk(durationMs: number): Promise<Float32Array>;
298
+ /** Everything currently buffered, oldest first. */
299
+ drain(): Float32Array;
300
+ close(): Promise<void>;
301
+ private releaseSlot;
302
+ private readMostRecent;
303
+ private appendSamples;
304
+ /**
305
+ * ffmpeg args for a continuous mono PCM pull. The URL goes into a 0600
306
+ * ffconcat file exactly as the camera path does, so it never reaches argv.
307
+ */
308
+ private buildInputArgs;
309
+ private buildArgs;
310
+ /**
311
+ * Start one ffmpeg session. Resolves once the process is spawned AND has
312
+ * survived long enough to rule out the "no audio track" classification —
313
+ * ffmpeg reports that within milliseconds, before any PCM flows, so waiting
314
+ * for the FIRST of (first PCM | early exit) settles it without a timer.
315
+ */
316
+ private startSession;
317
+ /** s16le → Float32, carrying an odd trailing byte between chunks. */
318
+ private consumePcm;
319
+ private stopProcess;
320
+ /**
321
+ * A session ended. If the provider is still open and the stream is not known
322
+ * to be audio-less, schedule a restart with capped exponential backoff. This
323
+ * loop is what re-arms the feed and it is never allowed to give up — see the
324
+ * header on the Ember permanent-retirement failure.
325
+ */
326
+ private handleSessionEnd;
327
+ private log;
328
+ }
329
+ export {};
330
+ //# sourceMappingURL=RTSPAudioProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RTSPAudioProvider.d.ts","sourceRoot":"","sources":["../src/RTSPAudioProvider.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAgB,MAAM,eAAe,CAAC;AAIpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAQ5D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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