Repository navigation
viewer: RGB video with raw thermal from one live stream - #100
Conversation
Previous review (2026-12-01)Automated review note — AI-generated (Claude+Codex), validated against the live diff. Please sanity-check before acting. Reviewed at head This adds a combined RGB plus raw thermal live view with a thermal inset, and one inset bug blocks it, with a few timing and pairing issues worth fixing. Blocking
Should fix
Minor (2)
|
e825965 to
5a0cd39
Compare
|
Automated review note — AI-generated (Claude+Codex), validated against the live diff. Please sanity-check before acting. Reviewed at head All findings from the previous review are fixed or narrowed at the new head, and nothing blocks merging. Since 8d173b7: the inset no longer dies when View changes during a decode, and seeking back no longer leaves a later thermal frame in the inset. Each track now keeps its own timeline origin and findings, and a View change during End live waits until the recording is indexed. Minor (1)
|
SupportProxy can serve a camera's RGB video and its raw thermal stream as one two-track Matroska stream. The live recorder indexes both tracks, reads the RGB frames' telemetry from their SEI, and uses the stream's SegmentUID to tell a rejoin of the same stream from a new one. A View control chooses RGB with the thermal picture inset, RGB alone or thermal alone. Changing it shows the other track of the same recording at the time on screen; the stream is not reopened.
5a0cd39 to
f11a815
Compare
Summary
The live viewer can play SupportProxy's combined stream: a camera's RGB video and its raw thermal stream as two tracks of one live Matroska stream (
?live=wss://HOST:PORT/mux/1,3). A new View control chooses:Changing the view shows the other track of the same recording at the same time. The stream is not reopened, and following the live edge carries on.
This needs the SupportProxy change that adds
/mux/A,B(ArduPilot/SupportProxy#57). Single-track live streams and files behave as before.Changes
LiveRecorderaccepts a head with an FFV1 track and an H.264/HEVC track, numbers each track's frames from zero, reads the video frames' telemetry from their SEI, and marks video frames before a keyframe after a gap as not decodable.LiveSourcekeeps a frame list per track.framesand its batches are the selected track's, so the rest of the viewer sees one track as before.openVideo()can be given the source it already has, to show its other track at the time on screen.InsetViewdecodes the thermal track with its own decoder and never delays the video. It shows the newest thermal frame at or before the video frame and fades when that is over a second old.Testing
npm test: 219 passed, 1 skipped. New tests cover the two-track recorder (indexing, both rejoin rules, a new mux run), the live source's track selection and re-attachment, and the inset's frame lookup.tests/browser/thermal-analysis.spec.js:375, a playback-timing assertion that also failed on an earlier branch; it was not re-run on master.Limitations