diff options
| author | Luke Hoersten <[email protected]> | 2026-07-01 14:33:44 -0500 |
|---|---|---|
| committer | Luke Hoersten <[email protected]> | 2026-07-01 14:33:44 -0500 |
| commit | 01a588e8658160504a9e861e1f8b133e0251f630 (patch) | |
| tree | 79ed1cc766ffcb30f53dba606a5fbf67a20415f5 | |
| parent | bdf497172a62c4ac318fa087bc59ef95813af61a (diff) | |
scrypted: fix stale Streaming header comment (TCP socket, q:v default 1, skip-oldest)
| -rw-r--r-- | scrypted/scrypted-viewport.ts | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/scrypted/scrypted-viewport.ts b/scrypted/scrypted-viewport.ts index 65234bc..a8e56bf 100644 --- a/scrypted/scrypted-viewport.ts +++ b/scrypted/scrypted-viewport.ts @@ -37,11 +37,13 @@ const SCRIPT_VERSION = "0be8f18"; // Streaming // --------- // On wake we subscribe to the camera's video stream, spawn one ffmpeg -// child that scales + re-encodes to MJPEG (q:v 2, lanczos) at the -// viewport's configured fps, demux JPEG frames out of stdout (FFD8…FFD9) -// and POST each one to the firmware's existing /frame endpoint. Single- -// flight semantics gate against the firmware's in-flight mutex; surplus -// frames are dropped silently and counted for a periodic skip-rate log. +// child that scales + rotates to panel-native 800x480 and re-encodes to +// MJPEG (lanczos; q:v = jpeg_quality, default 1) at the source rate +// (~24fps), demux JPEG frames out of stdout (FFD8…FFD9), and write each +// one — framed with a 16-byte header — to the firmware over a raw TCP +// data socket (port 81), not per-frame HTTP. Backpressure is skip-oldest: +// when the socket can't accept a write, the newest frame replaces any +// held one so we only ever fall behind by ~1 frame. // // Limits // ------ |
