Edit package: clips, takes.csv, manifest (#66) #123
No reviewers
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
needs-info
needs-triage
question
ready-for-agent
ready-for-human
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
crowmaki/ai-studio!123
Loading…
Reference in a new issue
No description provided.
Delete branch "issue-66-edit-package-clips"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #66. Part of #24.
What
The Export Section (
/export) writes an Edit package: the picked Scenes' Takes in a folder an editor can import straight into Resolve. Timelines (#67) and re-sync /_Removed/(#68) are later tickets.001 MARKS HOUSE - KITCHEN/. Inside it, each Setup gets a sub-bin of clips named like their Takes:1A/1A-1.mov, and1B/1B_1-1.movfor a Setup with several Shots. NG Takes are left out..movthat starts at01:00:00:00, with PCM audio.pcm_s24lewith the timecode.takes.csv: UTF-8 and CRLF, with the Resolve test kit's header strings.Tag=1for circled Takes, blank otherwise, and never2orGood Take.Descriptionis the Setup's framing note.Keywordsisdraftorfinal, plusstale.Commentsholds the Take notes, with@3.2sprefixes on timecoded ones.Seed,Profile,Pinned.manifest.json: each Take's full recordedTakeDetail(composed prompt, slot inputs and their Lock snapshots, Generation profile, workflow id, version and hash, seed, and reroll and frame-from chain), plus the packaged Rendition's id, kind and blake3 hash.Export follows the Bounce pattern. It is planned under the session lock, then written by ffmpeg outside it. Every file is written beside its place and then renamed into it.
Tests
crates/studio-core/tests/edit_package.rsdrivesProjectSessionagainst the fake ComfyUI and real ffmpeg. It checks:takes.csvagainst a golden fixture in the Resolve kit's shape;.mov, timecode and PCM on every clip, using ffmpeg probes;stalekeyword;cargo test --workspace --all-features(802 passed),bun test src(245 passed), andbun run check(0 errors) all pass.Screenshots
The Export Section. These were taken without ComfyUI, so the Project has no Takes and the export wrote 0 clips. Real clips are covered by the tests above.
Not done, for review
scratch/resolve-testis gitignored). Importing it into Resolve is still a manual check.TakeDetail, not copies of their content.