Repository navigation
feat: video capture of viewer URLs - #64
Merged
Merged
Conversation
bun run capture <shot.json> records a viewer URL to MP4: a turntable or a keyframed camera path with every frame settled, or the progressive load at wall-clock speed. The viewers expose the hook on ?capture=1. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Aid4AjT5GkDpAp852BubMF
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Aid4AjT5GkDpAp852BubMF
Shots can change the camera and viewer settings at given times (jump or ease), show captions and a stats line, and record with "streaming" timing: smooth motion with bricks refining. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Aid4AjT5GkDpAp852BubMF
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
Short videos for posts without recording them by hand. A shot is a Share link plus what happens over time; the script turns it into an MP4, a poster PNG and a JSON with the dataset numbers (bytes, requests, load milestones).
Changes & Tests
?capture=1in both viewers (examples/shared/capture.ts, likebench.ts): full render scale and a smallwindow.__kilnCaptureAPI. No library changes.bun run capture <shot.json>(scripts/capture.ts) drives it with Playwright (headed, same Chrome flags as the visual tests) and pipes PNG frames into ffmpeg.converged(every frame fully loaded),streaming(smooth motion, bricks refining),realtime(cold load at wall-clock speed).turntable,static, or keyframes ascam=values from Share links.scripts/shots/with a README of what each one shows.Generated by Claude Code