Repository navigation
[feat] canvas: structure reference, a 2.5D video tool for regenerating a clip with the same motion and camera #612
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
princepride
merged 7 commits into
ThinkFlowLab:main
from
princepride:feat/video-blockout
Dec 4, 2026
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
e45385e
[feat] canvas: video blockout tool that keeps a clip's motion, timing…
princepride 1a2c4e8
[feat] canvas: keep video blockout on the source's timeline, bound it…
princepride af491b3
Merge branch 'main' into feat/video-blockout
princepride c0a4f36
[bugfix] canvas: keep video blockout frame-aligned on FFmpeg 4
princepride 186b7c7
[refactor] canvas: rename the 2.5D video blockout tool to structure r…
princepride 3fda505
Merge remote-tracking branch 'origin/main' into feat/video-structure-…
princepride 5779b98
[feat] canvas: run structure reference from the agent and CLI, and bo…
princepride File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里用容器时长 × 标称帧率卡 2048,但下游吃的是
conform之后的帧。你贴的 VFR 样例正好说明这两个口径会分开:4.792 s × 24 约 115 帧,实际转出 121 帧。靠近上限时,估算过关不等于送模帧数过关。能否保留这里的快速预检,再在任何模型调用(含主体翻译)前按归一化后的实际帧数做硬校验,并补 2048/2049 的 VFR 边界用例?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 5779b98. The estimate from duration and nominal rate stays as the cheap first check; after conforming, the recipe counts the clip's actual frames and refuses more than 2048 before any model call, the subject translation included.
test_structure_reference_bounds_the_frames_it_sends_when_the_container_understates_its_lengthcovers a variable-rate clip at 2048 frames (sent to tracking) and at 2049 (refused with no request, a chat model configured and a subject that would need translation). On real services, a 72 fps variable-rate pattern whose container states 27.79 s (2001 frames by the estimate) succeeds when it conforms to 2048 frames and is refused withtool_structure_reference_framesand no model call when it conforms to 2049 (receipts, file 13 in this comment).