@trillboards/edge-platform-rtsp 0.2.0 → 0.2.3

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,299 @@
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
+ * ── NO CACHED CAPABILITY BOOLEAN, ON PURPOSE. The obvious addition here is a
95
+ * `cap_audio` flag set once at startup. Do not add one. On the Android DOOH
96
+ * fleet `cap_audio_classification` is `false` FLEET-WIDE — including on devices
97
+ * shipping live YAMNet classifications — because `detectCapabilities()` read a
98
+ * synchronous "still probing" value, the async probe resolved later, and
99
+ * NOTHING ever re-wrote the flag. It is published to DSPs in that state
100
+ * (docs/runbooks/audio-sensing-substrate.md). Audio capability here is
101
+ * genuinely asynchronous for the same reason — whether a stream carries audio
102
+ * is only knowable after ffmpeg has answered — so `getStats()` DERIVES every
103
+ * field live on each call (`running`, `noAudioTrack`, `buffered`,
104
+ * `lastPcmAtMs`) and there is no stored boolean that can outlive its truth. If
105
+ * a caller ever does need a flag, it must be recomputed from these, never
106
+ * latched at boot.
107
+ *
108
+ * ── LAYERING. This package is TRANSPORT. It knows nothing about onsets,
109
+ * motion or models — `AudioOnsetDetector` and the gate wiring live in
110
+ * `@trillboards/edge-sdk`, which is also the only package that may depend on
111
+ * both. `onPcm()` is the seam: this file produces a continuous mono Float32
112
+ * stream, and the SDK decides what it means.
113
+ */
114
+ /** Admission was refused: this recorder already runs its allowed audio sessions. */
115
+ export declare class RtspAudioAdmissionError extends Error {
116
+ readonly code = "RTSP_AUDIO_SESSION_LIMIT";
117
+ constructor(sourceKey: string, limit: number);
118
+ }
119
+ /** The stream carries no audio track. Permanent for this URL until re-probed. */
120
+ export declare class RtspAudioNoTrackError extends Error {
121
+ readonly code = "RTSP_AUDIO_NO_TRACK";
122
+ constructor(url: string);
123
+ }
124
+ /** Test seam: forget every recorder's audio budget. */
125
+ export declare function __resetAudioAdmissionForTests(): void;
126
+ /** Live audio-lane occupancy for a recorder, for diagnostics. */
127
+ export declare function audioSessionStatsFor(streamUrl: string): {
128
+ key: string;
129
+ active: number;
130
+ limit: number;
131
+ } | null;
132
+ export interface RTSPAudioConfig {
133
+ /** RTSP stream URL. Credentials never reach argv — see the header. */
134
+ rtspUrl: string;
135
+ /** Output sample rate (Hz). Default 16000 — what every consumer here wants. */
136
+ sampleRate?: number;
137
+ /**
138
+ * Ring buffer depth (s). Default 30, which is also litert-lm's maximum audio
139
+ * clip length, so a full buffer is exactly one maximal transcription window.
140
+ */
141
+ bufferSeconds?: number;
142
+ /**
143
+ * Concurrent LONG-LIVED audio sessions allowed per recorder host:port across
144
+ * every provider instance in this process. Default 1. Raise ONLY with a
145
+ * measurement against the real recorder — this is the bound that keeps a
146
+ * 32-channel NVR from re-running the 28-children incident with processes that
147
+ * never exit.
148
+ */
149
+ maxAudioSessionsPerSource?: number;
150
+ /** RTSP transport. Default 'tcp'. */
151
+ transport?: 'tcp' | 'udp';
152
+ /** Socket I/O timeout (µs). Default 12000000. */
153
+ timeoutUs?: number;
154
+ /** ffmpeg binary. Default 'ffmpeg'. */
155
+ ffmpegPath?: string;
156
+ /** ffmpeg major version, for the `-timeout` vs `-stimeout` split. Default 6. */
157
+ ffmpegMajorVersion?: number;
158
+ /**
159
+ * Transient failures tolerated while OPENING before the attach gives up.
160
+ * Default 4, mirroring `RTSPCameraProvider.openValidationAttempts`. Without
161
+ * this a recorder that is merely slow or rebooting at connector startup would
162
+ * cost the feed its audio for the LIFE OF THE PROCESS — the running session is
163
+ * supervised, so startup must be too, or the re-arm guarantee has a hole
164
+ * exactly where an unattended 24/7 connector is most likely to fall in it.
165
+ * `RtspAudioNoTrackError` is never retried: it is a settled fact about the
166
+ * stream, and re-asking would hammer the recorder to be told it again.
167
+ */
168
+ openValidationAttempts?: number;
169
+ /** First restart delay (ms), doubling to `maxRestartDelayMs`. Default 1000. */
170
+ restartDelayMs?: number;
171
+ /** Backoff ceiling (ms). Default 60000. */
172
+ maxRestartDelayMs?: number;
173
+ /** Injected spawn, for tests. */
174
+ spawnFn?: typeof spawn;
175
+ /** Clock injection for tests. */
176
+ now?: () => number;
177
+ /** Optional log sink; messages are already URL-scrubbed. */
178
+ onLog?: (level: 'debug' | 'info' | 'warn' | 'error', message: string) => void;
179
+ }
180
+ export interface RTSPAudioStats {
181
+ opened: boolean;
182
+ running: boolean;
183
+ /** Samples currently held in the ring. */
184
+ buffered: number;
185
+ /** Ring capacity in samples. */
186
+ capacity: number;
187
+ /** Total samples ever received from ffmpeg. */
188
+ totalSamples: number;
189
+ /** ffmpeg session starts, including restarts. */
190
+ sessionStarts: number;
191
+ restarts: number;
192
+ /** Set once the stream has been shown to carry no audio track. */
193
+ noAudioTrack: boolean;
194
+ lastErrorMessage: string | null;
195
+ /** Wall-clock ms of the most recent PCM delivery, or null. */
196
+ lastPcmAtMs: number | null;
197
+ }
198
+ type PcmListener = (pcm: Float32Array, atMs: number) => void;
199
+ /**
200
+ * One instance per audio-carrying feed. Implements the SAME `AudioProvider`
201
+ * interface as the Linux/Windows/web providers, so `AudienceSensingService`
202
+ * consumes it unchanged — but the pull (`getAudioChunk`) reads from the ring
203
+ * that the long-lived session is continuously filling, rather than spawning a
204
+ * process per call the way a microphone provider does.
205
+ */
206
+ export declare class RTSPAudioProvider implements AudioProvider {
207
+ private readonly rtspUrl;
208
+ private readonly sampleRate;
209
+ private readonly capacity;
210
+ private readonly maxAudioSessionsPerSource;
211
+ private readonly transport;
212
+ private readonly timeoutUs;
213
+ private readonly ffmpegPath;
214
+ private readonly ffmpegMajorVersion;
215
+ private readonly openValidationAttempts;
216
+ private readonly restartDelayMs;
217
+ private readonly maxRestartDelayMs;
218
+ private readonly spawnFn;
219
+ private readonly now;
220
+ private readonly onLog?;
221
+ /** Fixed-capacity circular buffer. Never reallocated, so memory is a constant. */
222
+ private readonly ring;
223
+ private ringWrite;
224
+ private ringFilled;
225
+ private opened;
226
+ private proc;
227
+ private releaseAdmission;
228
+ private restartTimer;
229
+ /** While true, `open()` owns retries and the supervisor must not schedule any. */
230
+ private startingUp;
231
+ private currentRestartDelay;
232
+ private cleanupInput;
233
+ /** Odd trailing byte carried between stdout chunks so samples are never torn. */
234
+ private pendingByte;
235
+ private listeners;
236
+ private totalSamples;
237
+ private sessionStarts;
238
+ private restarts;
239
+ private noAudioTrack;
240
+ private lastErrorMessage;
241
+ private lastPcmAtMs;
242
+ constructor(config: RTSPAudioConfig);
243
+ getSampleRate(): number;
244
+ isOpen(): boolean;
245
+ getStats(): RTSPAudioStats;
246
+ /**
247
+ * Subscribe to the continuous stream. Returns an unsubscribe function.
248
+ * This is the seam the SDK's onset detector attaches to; `getAudioChunk`
249
+ * remains the pull-based `AudioProvider` contract for everything else.
250
+ */
251
+ onPcm(listener: PcmListener): () => void;
252
+ /**
253
+ * Take a recorder audio slot and start the session. Rejects with
254
+ * `RtspAudioAdmissionError` when the recorder's audio lane is full, and with
255
+ * `RtspAudioNoTrackError` when the stream turns out to carry no audio — both
256
+ * of which a caller should treat as "this feed has no audio", never as a
257
+ * camera fault.
258
+ */
259
+ open(): Promise<void>;
260
+ /**
261
+ * Most recent `durationMs` of audio from the ring. Returns whatever is
262
+ * available when the buffer holds less — a short read is a normal startup
263
+ * condition, not an error, and throwing here would make a supplementary
264
+ * signal able to break a caller.
265
+ */
266
+ getAudioChunk(durationMs: number): Promise<Float32Array>;
267
+ /** Everything currently buffered, oldest first. */
268
+ drain(): Float32Array;
269
+ close(): Promise<void>;
270
+ private releaseSlot;
271
+ private readMostRecent;
272
+ private appendSamples;
273
+ /**
274
+ * ffmpeg args for a continuous mono PCM pull. The URL goes into a 0600
275
+ * ffconcat file exactly as the camera path does, so it never reaches argv.
276
+ */
277
+ private buildInputArgs;
278
+ private buildArgs;
279
+ /**
280
+ * Start one ffmpeg session. Resolves once the process is spawned AND has
281
+ * survived long enough to rule out the "no audio track" classification —
282
+ * ffmpeg reports that within milliseconds, before any PCM flows, so waiting
283
+ * for the FIRST of (first PCM | early exit) settles it without a timer.
284
+ */
285
+ private startSession;
286
+ /** s16le → Float32, carrying an odd trailing byte between chunks. */
287
+ private consumePcm;
288
+ private stopProcess;
289
+ /**
290
+ * A session ended. If the provider is still open and the stream is not known
291
+ * to be audio-less, schedule a restart with capped exponential backoff. This
292
+ * loop is what re-arms the feed and it is never allowed to give up — see the
293
+ * header on the Ember permanent-retirement failure.
294
+ */
295
+ private handleSessionEnd;
296
+ private log;
297
+ }
298
+ export {};
299
+ //# sourceMappingURL=RTSPAudioProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RTSPAudioProvider.d.ts","sourceRoot":"","sources":["../src/RTSPAudioProvider.ts"],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