Video to Prompt in ComfyUI: One Prompt for Every Shot

Video to Prompt in ComfyUI: One Prompt for Every Shot

In qualità di Affiliato Amazon io ricevo un guadagno dagli acquisti idonei.As an Amazon Associate I earn from qualifying purchases.En calidad de Afiliado de Amazon, obtengo ingresos por las compras adscritas que cumplen los requisitos aplicables.

Getting a prompt from a video in ComfyUI is something people ask us about a lot: you saw a commercial, a film sequence or one of your old edits, and you want to remake it with AI, shot by shot. On November 22 the developer benjiyaya released ComfyUI-ReaVideoBreakdown, an MIT-licensed node that cuts the video into its shots, measures how the camera moves and writes a prompt for each one, all locally.

Here's how we see it. Until now we had two ways to "read" a video, and neither fully convinced us. Nodes that pull the prompt from the metadata only work with videos generated by ComfyUI. Nodes that describe the video with a vision model write a single paragraph for the whole clip, and if the video has six cuts the prompt comes out muddled. This node first splits the clip into its shots and then describes each one separately. For anyone who edits video, that's the right way to think about it. We haven't tried it yet on our 12 GB RTX 3060, so here you'll find what the code and the example workflow say, and what we would use.

What it isA ComfyUI node that splits a video into shots and writes a description, camera move and text-to-video prompt for each one
Who made itbenjiyaya (YouTube channel Benji's AI Playground), inspired by the rea-video project by JuneYaooo
VRAM requirednot stated; it depends on the vision model you load (for example Qwen 2.5 VL 7B in fp8: a 9.38 GB file)
Does it run on a 12 GB RTX 3060?on paper yes, with a compressed 7-9 billion parameter vision model; we haven't tried it yet
LicenseMIT for the node; the vision model has its own license
Commercial use from the EUyes for the node; pick a vision model with an open license (Qwen 2.5 VL is Apache 2.0)
Where to get itGitHub benjiyaya/ComfyUI-ReaVideoBreakdown (via git for now, not yet in the Manager)
Free or paidfree, it runs on your PC

How do you get a prompt from a video in ComfyUI with ReaVideoBreakdown?

You connect the video to the "Video Breakdown (Rea)" node together with a vision model, and it returns a prompt for each shot with its start and end times. The work happens in three stages.

First it finds the cuts. It compares the colors and pixels of consecutive frames with OpenCV (an image analysis library) and spots hard cuts and dissolves. This part runs on the CPU, not on the graphics card. Then it measures the camera move with optical flow, which means tracking how points in the image shift from one frame to the next: it tells you whether there's a pan and how many pixels per second, whether there's a zoom, and whether the camera is static, smooth or handheld. As the last step it sends a few frames of each shot to the vision model, which writes the description, shot size, lighting, style and the final prompt.

The camera move is the part we like most. The node doesn't ask the vision model to guess it, it measures it. In the example workflow, on a 7-second vertical clip, the node finds 6 shots and writes something like "pan right at 275 px/s, zoom out 8% per second" for each one. If you have to recreate a move with a video model, that line is worth more than three adjectives.

What does the node output?

Six outputs, and two are the ones you'll use most. "prompts" is the ready-to-copy text: each block starts with a label like [Shot 02 | 00:02.40-00:04.30 | live_action] with the English prompt underneath. "video_md" is a full report in the VIDEO.md format, with a table of all the shots and the details of each one.

The other outputs are a JSON with all the data (handy if you want to pass it to other nodes), a one-line summary, the keyframes as images and the number of shots. The node also tries to say what each shot is made of: live action, AI video, 3D render, motion graphics, screen recording, 2D animation. That's the vision model's guess, not proof: don't use it to decide whether a video is fake.

Which vision model do you need, and how much VRAM?

You need a VLM (a model that understands both text and images) loaded with ComfyUI's regular CLIPLoader node. The README lists the types qwen_image, joyimage, ovis, gemma/ltxv, qwen3vl and minimax. A classic SD 1.5 or SDXL CLIP can't see images, and the node tells you so instead of crashing.

In the example workflow the author uses a 9-billion-parameter Qwen3.5 in INT8, loaded with the minimax type. We would start from a file many people already have: the Qwen-Image text encoder, which is Qwen 2.5 VL 7B. In the Comfy-Org repository it comes in fp8 at 9.38 GB, a good fit for a 12 GB card, and in NVFP4 at 6.11 GB, a 4-bit format that only RTX 50 cards accelerate. Qwen 2.5 VL is licensed under Apache 2.0, so it's fine for client work. If you use the files from the MiniMax H3 package instead, remember that the H3 license excludes the European Union, outputs included.

Two settings keep memory use down: max_side (512 by default) shrinks the frames before they go to the model, and frames_per_shot (8 by default, 3 in the example workflow) decides how many frames it looks at per shot. The author writes that 512 and 8 are "cheap"; go up to 768 or 1024 only for shots packed with detail. If your card is smaller, our guide to graphics cards for AI explains what changes between 8, 12 and 16 GB.

Which video models are the prompts good for?

The prompts are descriptive English text, so they work with almost every text-to-video model: Wan, LTX, MiniMax H3 and the paid ones. The README mentions "Wan, Kling, Veo, Sora-style" nodes for remaking the shots; ComfyUI Wiki names Wan, MiniMax H3 and LTX. If you don't know which model to choose for your card, our guide to AI video models in ComfyUI lines them up by memory and license.

An honest tip: treat the prompts as a first draft. The vision model describes the subject, light and framing well, but it often repeats the same adjectives from one shot to the next. Before you generate, cut what you don't need and add your own style. And don't expect audio: the node doesn't hear the music, doesn't read on-screen text and doesn't extract subtitles.

Try it now

  1. Update ComfyUI to the latest version: the node uses native text generation with image input, which arrived with the Text Generate V2 node in 0.44.0 on November 4.
  2. In ComfyUI/custom_nodes run git clone https://github.com/benjiyaya/ComfyUI-ReaVideoBreakdown.git, then inside the node folder run pip install -r requirements.txt with ComfyUI's Python (it only needs numpy and opencv-python-headless). Restart.
  3. Put qwen_2.5_vl_7b_fp8_scaled.safetensors in models/text_encoders, if you don't already have it from Qwen-Image.
  4. Open the example_workflows/rea_breakdown.json workflow from the repository, change the file and the type (qwen_image) in the CLIPLoader, and load a short clip, 10-15 seconds.
  5. Leave temperature at 0.4 (the author advises not going above 0.5) and raise sensitivity if the video has fast cuts, like a commercial or a trailer; lower it for a single long take.

If the node is still red after the restart, our guide to ComfyUI errors with missing nodes has the checks to run. The author also walks through the node in the video "Minimax H3 ReDiverse Bring Back H3 Turbo Model like Full Steps! And I Create REA Video for ComfyUI!" on the Benji's AI Playground channel.

Other news

  • MAI-Image-2.7-Flash: Microsoft has put the fast, cheaper version of MAI-Image-2.7 into public preview (on OpenRouter since November 17). It does text-to-image and editing up to 2048×2048 with up to 5 reference images, but only through the API (OpenRouter page).
  • Qwen3-1.7B in Generate Text: since ComfyUI 0.46.0 on November 18, the text generation node also supports this small model, useful for enriching prompts without taking up half your graphics card (changelog).

Frequently asked questions

Does the node recover the original prompt of an AI video?

No. It rebuilds a new prompt by looking at the frames. The original prompt can only be read from the metadata, and only if the video was saved by ComfyUI with the workflow embedded. For any other video, from YouTube to your own footage, rebuilding it with a vision model is the only way.

How is it different from Gemma 4 in ComfyUI?

With Gemma 4 in ComfyUI you get one prompt from several images, videos and audio files together. ReaVideoBreakdown first cuts the video into its shots and writes a prompt for each one, with measured timings and camera moves. Gemma 4 can still act as the vision model for the node.

Can I use it to remake another company's commercial?

Technically yes, but the node only gives you a description: characters, brands and creative ideas still belong to whoever made them. Use it to study pacing and camera moves, or to remake your own work. For a client, change the subject, setting and style.

Is it in the ComfyUI Manager?

Not yet. On November 24 the node wasn't listed in the Comfy Registry, so you install it with git clone. The repository already has the publisher ID for the Registry, so it will probably reach the Manager soon.

If this is your first time installing a node by hand, start with our beginner's guide to ComfyUI. Our free workflows are in the ComfyUI section, and you'll find our tests on a 12 GB card on the @tutorial3d YouTube channel.

Tutorial3d
Grafico - Videodesigner - VisualFX

Ti consigliamo anche:



#Devo averlo!

VIDEO

INSPIRATION IN YOUR INBOX

Una mail. Un tutorial. Niente rumore.

Ti scrivo un solo tutorial scelto, con file progetto e note tecniche. Senza promozioni, senza affiliate. Cancellabile in un click.

[newsletter_form]