rea-video: the setup and the one-line prompt
The short version
rea-video (github.com/JuneYaooo/rea-video, Apache-2.0, free) is a tool your coding agent runs. Give it any video and it cuts it into shots, tells you for each one whether it was filmed, AI-generated or built in code, and how to remake it: a shooting plan, a prompt per shot, or a code approach. It runs in Claude Code, Codex or any agent that can run commands.
The reel's opening case is the README's own product promo: 70 seconds, 12 shots, 83% code-driven motion graphics and 12% screen recording. No video model needed; one Remotion project builds it.
| If the shot is | You get |
|---|---|
| Filmed | A shooting plan (for the phone-ad case: one set, 2 camera positions) |
| AI video | A prompt per shot (for the remake case: 8 shots across 3 generations) |
| Code | A code approach (for the promo: one Remotion project) |
Copy these prompts
1. Install it and break down a video (the one-line prompt)
Install https://github.com/JuneYaooo/rea-video, then break down this video: ./clip.mp4
2. Break it down, then plan the remake
Use rea-video on ./clip.mp4. For every shot tell me whether it was filmed, AI-generated or built with code, and the evidence you measured. Then write the remake plan: what I can film myself, what a video model can generate, and what I can build in code.
3. Check the uncertain shots (downloaded files)
This video was downloaded from an app, so the noise evidence is gone. For every shot rea-video marked low confidence, look at the frames yourself, say what you see (hands, text, lighting, motion), and give your final call per shot with a one-line reason.
Setup checklist
- ffmpeg installed and Python 3.10 or newer (the README's requirements).
- Claude Code, Codex or another agent that can run commands.
- A video file, ideally the original.
- Optional: a video-capable model (Gemini or Doubao both work); give your agent its endpoint and key. Tools-only mode is offline and free.
How it decides
It does not go by looks. It measures frame cadence, sensor noise, whether the whole image moves as one flat plane, and AI tags in the file's metadata. Hard evidence like those tags and frame cadence beats "looks like".
The one catch: recompression
Platforms recompress uploads, and that wipes out the sensor noise. On the README's live-action unboxing case, after platform transcoding the offline tools called 35% of it AI; after the agent reviewed the shots, it came out 97% live-action. Use the original file when you can; otherwise run prompt 3.
If you are building
- The detection rules are in the repo's
docs/decompose.md; frame cadence and the flat-plane check are cheap to reproduce with ffmpeg. - The output is a report (
report.html/ PDF) for you and a VIDEO.md for your agent.
Run this on your codebase
Read https://github.com/JuneYaooo/rea-video/blob/main/docs/decompose.md. Then look at how my project handles video or images today. Where could a cheap check (frame cadence, background change, noise) tell me how a file was made, and what would I do with that answer?
Use it fairly
rea-video is for learning a video's structure, pacing and techniques, then remaking it with material you have the rights to. Do not reuse other people's footage, music, characters or likeness.
Source: the rea-video README and repo docs, read 2026-11-19.