Generating Composite And Video

Reads shots.json and processes each shot in two fully-parallel phases: (1) generates composite scene images by blending character and background images (imgbb image_url fields) via the kie.ai flux-2/pro-image-to-image API, saving to ./composites/; (2) generates video clips from each composite using the kie.ai sora-2-image-to-video API, saving to ./clips/. Both phases use the taskId-based /jobs/recordInfo polling so all shots run concurrently — total time is the slowest single job, not the sum. After clips are approved, runs scripts/merge_clips.py (FFmpeg) to concatenate all clips in narrative order into ./final_animation.mp4. API keys loaded from config.json. Part of the Story-to-Animation pipeline (Step 5 of 5, final step). Use when shots.json exists and characters.json/backgrounds.json have image_url fields (populated by generate_images.py in Step 3). After generating and merging, ALWAYS present output and wait for explicit user approval.

divakarwl12 d00a288 3 files · 30.9 KB Updated

File contents

divakarwl12/story-to-animation-skills/tree/main/generating-composite-and-video commit d00a288df8

Frequently asked questions

npx skillmds@latest add divakarwl12/generating-composite-and-video