Repository navigation
feat: scene-change sampling and dedupe for sample_frames (#114) - #141
Merged
Merged
Conversation
mode: "scenes" scans a low-res copy for scene changes, keeps the opening frame plus the strongest changes up to maxFrames, and grabs those at full resolution, reporting frameTimes. sceneThreshold tunes sensitivity (default 0.1 for UI content). dedupe: true adds mpdecimate to fps mode. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Closes #114.
What
sample_frames { mode: "scenes" }: returns only frames where the screen changed, plus the opening frame.scale=320:-2,select='gt(scene\,T)',metadata=print:file=-→(pts_time, scene_score)pairs (parseSceneScan).pickSceneFrameskeeps t=0 plus the strongest changes up tomaxFrames, in time order.The result reports
frameTimes,sceneChangesFound, and acapNotewhen changes were dropped.sceneThreshold(default 0.1; screen content changes in small regions, so lower than the usual 0.3-0.4 for film).dedupe: true(fps mode):fps=N,mpdecimate+-fps_mode vfr.modeenum; omitted, it's inferred fromfps/timestamps, so existing calls are unchanged.I didn't do the "keep top-N by score when over the cap" via
showinfoas sketched in the issue. Scoring every frame in a low-res pass and seeking to the winners gives exact timestamps and full-res frames more simply.Tests
[0, 2, 4]with 3 inline images;maxFrames: 2keeps the stronger cut and says so;mode: scenes+fpsis rejected; dedupe 12 → 6 frames.Version 0.15.0; README, Pages,
mcp-tools.json, CHANGELOG updated.🤖 Generated with Claude Code