Skip to content

Shot reel: rendered clip+chart video with audio-calibrated sync#38

Merged
AlexNly merged 2 commits into
mainfrom
feat/shot-reel
Jul 16, 2026
Merged

Shot reel: rendered clip+chart video with audio-calibrated sync#38
AlexNly merged 2 commits into
mainfrom
feat/shot-reel

Conversation

@AlexNly

@AlexNly AlexNly commented Jul 16, 2026

Copy link
Copy Markdown
Owner

After each camera shot MATEbot now:

  1. Auto-calibrates the sync offset (calibrate.py): the pump's audio onset in the clip is aligned with the pump command (tp) in the shot data, giving the exact per-shot offset - no manual /vsync. Falls back to MATEBOT_CAMERA_OFFSET when audio is unusable.
  2. Renders a shot reel (render.py): portrait mp4, clip on top, chart below animated by a wipe + playhead that track the x axis pixel-exactly (geometry from matplotlib via plot.render_shot_chart). Pure ffmpeg animation, single pass. Sent to the chat via new Messenger.send_video (telegram + discord + text fallback). MATEBOT_REEL=0 disables.

Verified on a real shot: audio calibration measured +0.6s where the default guess was -1.0s; playhead crosses each axis tick exactly on time.

@AlexNly
AlexNly merged commit dc6f2c4 into main Jul 16, 2026
3 checks passed
@AlexNly
AlexNly deleted the feat/shot-reel branch July 16, 2026 22:27
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