Skip to content

Add --record flag to capture live stream frames to video file - #16

Merged
Konstantysz merged 1 commit into
devfrom
feature/live-stream-recording
Mar 9, 2026
Merged

Add --record flag to capture live stream frames to video file#16
Konstantysz merged 1 commit into
devfrom
feature/live-stream-recording

Conversation

@Konstantysz

Copy link
Copy Markdown
Owner

Summary

  • New --record <path.avi> CLI flag records raw frames from live stream to a MJPEG video file
  • Recording is lazy-init on first frame (frame size unknown before first Grab)
  • Recorded file can be replayed via --replay for offline FSM analysis and tuning
  • No-op in replay mode and when flag is omitted

Usage

# Record live session
./sh3ds --hardware config/hardware.yaml --hunt-config config/hunts/xy_starter_sr_fennekin.yaml --record debug_session.avi

# Replay the recording for analysis
./sh3ds --hardware config/hardware.yaml --hunt-config config/hunts/xy_starter_sr_fennekin.yaml --replay debug_session.avi

Test plan

  • All 173 tests pass (no regressions)

@Konstantysz
Konstantysz merged commit 7a84ebb into dev Mar 9, 2026
1 check failed
@Konstantysz
Konstantysz deleted the feature/live-stream-recording branch March 9, 2026 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant