benjiyaya/ComfyUI-ReaVideoBreakdown
Media & DesignSplits a video into shots and generates per-shot VIDEO.md reports and text-to-video remake prompts inside ComfyUI, using a local VLM.
What it does
ComfyUI-ReaVideoBreakdown is a single custom node for ComfyUI that takes a video and produces a shot-by-shot analysis in the open VIDEO.md / rea-video format. For each detected shot it reports how the shot was made (live action, AI video, 3D render, screen capture, and similar labels), what is in frame (subject, setting, lighting, colour, style), and the camera motion. It then emits one text-to-video prompt per shot, delimited with shot number, time range and production type, so the prompts can be fed back into a video-generation model.
The node relies on a vision-language text encoder already loaded in ComfyUI through CLIPLoader (for example qwen_image, joyimage, qwen3vl, minimax). Frames from each shot are passed as a video batch through the same tokenize/generate/decode path as ComfyUI's core "Generate Text" node, falling back to per-frame images if the encoder does not accept videos=. Shot boundaries are found with OpenCV on the CPU (HSV histogram distance plus pixel diff and adaptive thresholds), while camera motion is measured with Lucas–Kanade optical flow and a RANSAC similarity fit into static, smooth-move or handheld, with pan px/s and zoom %/s. Measurement values are marked with ~ to separate them from VLM descriptions.
It suits people doing video-style research and prompt remaking inside ComfyUI who already have a VLM-capable encoder; it is not a general video player, editor or audio analyser.
Install and wire it up
Requirements: ComfyUI with Python 3.10+, and a VLM text encoder you can load via CLIPLoader (a plain SD1.5/SDXL CLIP will not work; the node warns instead of crashing).
cd ComfyUI/custom_nodes
git clone https://github.com/benjiyaya/ComfyUI-ReaVideoBreakdown.git
cd ComfyUI-ReaVideoBreakdown
pip install -r requirements.txt
Restart ComfyUI afterwards. The runtime dependencies are only numpy and opencv-python-headless; torch comes with ComfyUI. The project is also listed on the Comfy Registry for installation via ComfyUI Manager.
In a graph, connect LoadVideo → GetVideoComponents for its images and frame_rate outputs to the node's images and fps, and connect the VLM encoder's clip output. The single node is Video Breakdown (Rea · native VLM) under category RE-VIDEO/breakdown. Key inputs include sensitivity (0.5 default), min_shot_seconds (0.24), frames_per_shot (8), max_length (1024), temperature (0.4), seed, language (en/zh) and max_side (512). Outputs are video_md, breakdown_json, prompts, summary, keyframes (first frame of each shot, for Preview Image) and shot_count.
Feed the prompts output, or parsed breakdown_json, into your text-to-video nodes; the time codes in the delimiters preserve the cut order. A ready-made example graph is provided in rea_breakdown.json; it optionally uses pysssss Custom-Scripts and comfyui-easy-use solely for text preview widgets, which are not required by the node. The README's gallery was produced with a Qwen3.5 9B VLM text encoder via CLIPLoader.
Constraints and known limits
Description and prompt quality is bounded by the chosen VLM; the node describes what it sees rather than inventing detail. Analysis is visual only: there is no audio/BPM analysis, OCR or subtitle export. Very slow dissolves can be under-split, so raise sensitivity for fast-cut footage and lower it for single takes. Keep temperature at or below 0.5 for stable JSON structure. VRAM use scales with max_side and frames_per_shot; the defaults of 512 and 8 are the cheap setting. Output language for the report and prompts is controlled by language.
An offline test runs on CPU without a GPU or a real model: python tests/test_offline.py mocks the VLM contract, builds a synthetic three-shot video and checks shot detection, per-shot records, JSON validity and example-workflow widget order. The project is MIT-licensed and credits the rea-video concept and VIDEO.md format.
HotRepo's take
The project has limited HotRepo history: it first appears in the daily new-project snapshots for Python on 2026-11-23, at 103 stars and 12 forks, with 3 stars gained in a roughly 1.5-hour observation window and no recorded best rank on the all-language daily list. That is too narrow a window to read as a trend. What stands out technically is the design choice to reuse ComfyUI's native VLM text-encoder path rather than add a separate vision model, plus CPU-only OpenCV shot detection and measured optical-flow camera values separated from model descriptions, which keeps the dependency footprint small and the output verifiable.
Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.
You might also like
- JuneYaooo/rea-videoShot-by-shot video reverse engineering for creators who want to understand and recreate reference videos.
- KadoBOT/ComfyUI-H3-Continuity-StudioA ComfyUI custom node pack for planning and rendering multi-shot MiniMax H3 video sequences with visual continuity across clips.
- Comfy-Org/ComfyUINode-graph engine for running open diffusion image, video and audio models locally with fine control over every step.
- shanliuling/dsh-image-genA DeepSeek Harness plugin that lets an agent generate, edit, and compare images in chat, with prompt templates and ComfyUI support.
- D3voz/openjutsuLocal ComfyUI video character-swap app that replaces, edits, or relights people and objects in existing footage.