9 Commits
Author SHA1 Message Date
proitlab 9ea6820a37 Preserve STATE_FILE after file-input recount; delete on start
File sources now keep STATE_FILE on graceful shutdown (EOF or SIGTERM):
the final batch snapshot is written instead of deleted, so the dashboard's
/api/current-batch still shows the recount result after the process exits.
On startup, STATE_FILE is cleared unless a live instance is detected via a
/proc cmdline scan (rtsp/http source in argv or config). Live sources keep
the old resume-at-start / delete-on-finish behavior.

SPEC: V19, T21, B2. AGENTS: STATE_FILE lifecycle section.
2026-08-12 15:05:48 +07:00
proitlab 90038da298 Force file sources to decode from frame 0; add first-frame diagnostics
OpenCV FFMPEG build buffer (CAP_PROP_BUFFERSIZE=1) on file sources was
landing mid-file, so the first decoded frame could show an ~11s-later
camera clock than the source's true frame 0. Gate BUFFERSIZE to live
sources only and seek file sources to CAP_PROP_POS_FRAMES=0. Log
pos_frames/pos_msec/frame_count/fps once on first successful read.

SPEC: B1, V18, T20. AGENTS: capture setup notes.
2026-08-10 12:00:18 +07:00
proitlab ea370b0ffd File sources record from frame 0; feed every frame (fix 10s offset + detection gaps) 2026-08-10 10:56:33 +07:00
proitlab 1d1199fa04 Add pause-on-first-frame for file sources (.continue resume) 2026-08-10 10:16:07 +07:00
proitlab 139cff7474 Update Session 2026-08-07 23:21:25 +07:00
proitlab aca5683487 Update spec recording filename to batch_num_YYYYMMDD_HHMMSS 2026-08-05 00:59:30 +07:00
proitlab 37f98f243c Save video under batch counting date; fix retention timezone 2026-08-04 23:58:35 +07:00
proitlab eefff48953 Update Today 2026-08-03 16:26:01 +07:00
proitlab a30643ddc7 Add recording to Shared Memory 2026-07-29 01:00:40 +07:00