Browse workflows
ComfyUI and workflows

ComfyUI-ReaVideoBreakdown reverse-engineers footage into shot-by-shot prompts with native VLMs

Two ComfyUI nodes detect cuts, measure camera motion with OpenCV, and write per-shot prompts or MiniMax H3 reference scripts.

From the makerFreeOpen sourceLocalComfyUI
ComfyUI graph showing a drifting car video split into two shots with VIDEO.md text, JSON, prompts, and keyframe previews.
Image: benjiyaya

Developer benjiyaya released MIT-licensed ComfyUI-ReaVideoBreakdown on GitHub. It splits reference clips into individual shots and uses ComfyUI's native vision-language text encoder to generate structured VIDEO.md breakdowns covering visual style, subjects, settings, camera movement and ready-to-reuse video prompts.

Why it mattersTurns reference reels into editable shot lists and prompt templates locally inside ComfyUI.

What is new

ComfyUI-ReaVideoBreakdown implements the open rea-video breakdown format inside two nodes under the RE-VIDEO/breakdown menu. Instead of calling an external API or separate vision model, it reads any vision-language text encoder loaded through ComfyUI's core CLIPLoader, including Qwen3.5, Qwen3-VL, Ovis, JoyImage, Gemma, or MiniMax encoders.

For each detected shot, the main Video Breakdown node samples a batch of frames (8 by default, downscaled to 512 pixels by default to save VRAM) and runs them through ComfyUI's native text-generation path.

How it works

Shot splitting and motion measurements run locally on CPU before the vision-language encoder writes descriptions.

  • OpenCV HSV-histogram and pixel difference checks locate cuts, fades, dissolves, and flashes without GPU usage.
  • Lucas-Kanade optical flow with RANSAC fitting labels camera work as static, smooth move, or handheld and measures pan speed in pixels per second and zoom rate in percent per second.
  • Outputs include a full VIDEO.md report in English or Chinese, structured breakdown_json, delimited per-shot prompts, keyframes, and production-type percentages such as live action, 3D render, or AI video.
  • A second ComfyUI V3 node, VideoPrompt Mod With References, accepts up to nine reference images and an edit instruction to rewrite the breakdown into a six-section MiniMaxH3ReferenceToVideo prompt.

Limits and availability

The pack is free under the MIT licence and needs only numpy and opencv-python-headless beyond ComfyUI. Version 1 handles visual analysis only, with no audio or BPM tracking, OCR, or subtitle export.

More from this issue

All 81 stories
Make videos with these toolsOur workflows turn Blender, Unreal, ComfyUI and AI video into finished Shorts, explainers and reels. Claude sets them up for you.
Browse workflows