frames ≈ 49 KB; first frame 120–190 ms; RFC 2435 header still type 1, Q 63 / 48. Over a
135 s stream: main-stream stills `.6` 0/169 → 0/251 HTTP 503 (avg 0.16 → 0.23 s per still —
slower, not failing); `.7` 3/159 → 4/330 (the known transient `deviceBusy`); sub-stream stills
638/638 and 757/757 HTTP 200. Server end to end: three viewers `connecting → live` in
95–148 ms, 7–9 fps each, zero malformed JPEGs. Per viewer at the 10 fps cap that is ≈ 0.5–0.8 MB/s.
- **Main stream in the large view: not possible on this transport.** RTP/JPEG carries width and
height as one byte × 8 (ceiling 2040×2040), and 101 is the 4MP/8MP H.264 ANPR/evidence stream.
A true main-stream view would be a separate H.264 pipeline (depacketizer, in-browser decode,
keyframe wait, unverified in the desktop shell).
- **End to end** (server + scratch DB + both cameras, 2026-11-17): a simulated vehicle push →
- **End to end** (server + scratch DB + both cameras, 2026-11-17): a simulated vehicle push →
`camera-activity` on `/api/ws`; two viewers on the entry camera and one on the exit camera went
`camera-activity` on `/api/ws`; two viewers on the entry camera and one on the exit camera went
`connecting → live` in 151 / 181 ms, 8–10 fps each, zero malformed JPEGs.
`connecting → live` in 151 / 181 ms, 8–10 fps each, zero malformed JPEGs.
@@ -93,8 +104,8 @@ Set the camera's **sub-stream (102) video encoding to MJPEG** (web UI: Configura
H.264 the tile says *"camera stream is H264, not MJPEG"* and stays on the snapshot. Added to
H.264 the tile says *"camera stream is H264, not MJPEG"* and stays on the snapshot. Added to
[[site-device-installation]] §3. On a camera whose snapshot stream is set to **Sub** (the G3H
[[site-device-installation]] §3. On a camera whose snapshot stream is set to **Sub** (the G3H
workaround), the sub-stream resolution is both the ANPR/evidence still and the live view — MJPEG on
workaround), the sub-stream resolution is both the ANPR/evidence still and the live view — MJPEG on
the G2 offers 640×360, 640×480 or 1280×720 on channel 102; raising it costs bandwidth (~300 KB/s
the G2 offers 640×360, 640×480 or 1280×720 on channel 102; park-lab runs 1280×720 (~1 MB/s per camera
at 640×360). Dahua cameras have no live view yet (tile shows the reason).
while live, ~300 KB/s at 640×360). Dahua cameras have no live view yet (tile shows the reason).
## Consequences elsewhere
## Consequences elsewhere
@@ -123,7 +134,7 @@ reconnect); the close rules held.
## Not yet verified
## Not yet verified
- The Tauri/WebKitGTK shell (binary WS frames through `@tauri-apps/plugin-websocket` arrive as a
- The Tauri/WebKitGTK shell (binary WS frames through `@tauri-apps/plugin-websocket` arrive as a
number array over IPC — fine at 10 fps ×25 KB, to be measured). Its CSP already allows `blob:`
number array over IPC — at 1280×720 that is up to 10 fps ×83 KB, to be measured). Its CSP already allows `blob:`
images.
images.
- Through Caddy (`reverse_proxy` upgrades WebSockets; not exercised).
- Through Caddy (`reverse_proxy` upgrades WebSockets; not exercised).
- The live → snapshot return 30 s after the last push in the browser (covered by unit tests only).
- The live → snapshot return 30 s after the last push in the browser (covered by unit tests only).
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.