RepositoryPython
JuneYaooo

JuneYaooo/rea-video

Reverse-engineer any video, shot by shot: filmed, AI-generated or coded, and how to remake it. Breakdowns in the open VIDEO.md format. 逆向一切视频,逐个镜头看是拍的、AI 生成的还是代码做的,再告诉你怎么复刻;拆解结果按 VIDEO.md 格式输出。

15.6ksao
2.3kfork
8issue
48lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: reverse-engineering

#1 Repository của tuần

1
TINIX TRENDING·Chủ đề: short-video

#1 Repository của tuần

1
TINIX TRENDING·Chủ đề: short-video

#1 Repository của ngày

rea-video

Reverse-engineer any video.

Talking-head, tabletop, AI video, 3D, motion graphics, mixed edits: give it any of them,
and it tells you shot by shot how the visuals, styled text, editing and audio were made, then gives you a plan to make one yourself.

中文 | English | Русский | 日本語 | 한국어 | Español | Português | Français | Deutsch

Stars Python Agent

Left: TikTok original shot on a phone; right: someone's AI remake with a different product

Left: a TikTok ad shot on a phone. Right: someone's AI remake with a different product swapped in.
rea-video's verdict: the left is all live footage, one set and two camera positions; the right is all AI-generated, and its 8 shots can be produced in 3 generations.

Reports come out in the language you ask in (Chinese or English; your agent passes --lang). The detailed docs are in Chinese for now; your agent reads them and answers in your language. The six example reports below are in English, so you can see what a report looks like without installing anything.

What it can break down

Video typeExamplesWhat you get
Live footageTalking-head, tabletop, handheld product demo, vlog, store visitSetups and camera positions, framing, camera moves, lighting (12 setups with gear lists), color grade
AI videoText/image-to-video, AI short drama, AI music videoEvidence, a reverse-engineered prompt per shot, how to batch into generations and which model to use
AvatarA portrait driven by audio, lip-syncWhich shots are avatar shots, what portrait and audio you need
3D / animationBlender / C4D explainers, product animation, 2D animation, stop-motionWhether to generate with a video model or render from 3D code
Code / templateKinetic type, UI demos, charts, slide-style cardsText, layout and motion timing, ready to rebuild as a Remotion project
Screen recordingSoftware tutorials, web demosWhich parts are real material you'll need to record yourself
Mixed / editsAI characters + code UI + real screen capture; live footage with AI editsEach shot judged separately, then reassembled on the original timeline

Besides how the picture was made, every video also gets:

  • Captions and styled text: start and end of each line (exports to SRT / ASS), plus color, outline and how the text comes in
  • Stickers, emoji, picture-in-picture: where they sit and how long they stay
  • Editing: where the cuts are, how fast, whether they hit the beat
  • Audio: human or AI voice, AI or library music and its BPM, where each sound effect lands
  • Material you'll supply yourself: screen recordings, screenshots, product photos

Quick start

rea-video is built for AI agents. In Claude Code, Codex or any agent that can run commands, say:

Install https://github.com/JuneYaooo/rea-video, then break down this video: /path/to/video.mp4

The agent installs the CLI, learns the workflow and runs the whole thing. You need ffmpeg and Python 3.10+.

Install by hand
brew install ffmpeg            # or: sudo apt install ffmpeg
git clone https://github.com/JuneYaooo/rea-video && cd rea-video
bash scripts/install_skill.sh  # installs the CLI (pip, or pipx / a local .venv if pip is blocked) and links the skill into ~/.claude, ~/.codex, ~/.agents
rea-video --help

You get:

  • a one-line summary, e.g. "41% AI video + 59% code UI, 8 s of real screen recording, library music at 122 BPM"
  • a remake plan, split into what to film, what to generate and what to code
  • a full report.html with per-shot frames, evidence, prompts, camera and lighting notes, and the audio breakdown

Add a video-capable model — Gemini or Doubao both work: give the agent the endpoint and key. It makes live/AI/3D calls more accurate and writes a reverse-engineered prompt for every shot. Without one it still works; if your agent can see images, it will check the uncertain shots itself.

Examples

The sample videos in docs/cases/videos/ are re-compressed to keep the repo small, which strips the TikTok / Douyin platform tags. Running them yourself gives different results from the reports below, especially without a vision model. Use the original platform download to reproduce.


Mixed-media clip · 19 s · 10 shots
AI characters talking + code-built UI + 8 s of real screen recording. The 5 dialogue shots are split up by UI segments but share one set, so one generation covers them.
Video · Report

3D explainer · 67 s · 21 shots
All 3D, AI narration. Doable as 10 video generations, or have an LLM write Blender / Three.js code.
Video · Report

Product promo · 70 s · 12 shots
83% code-driven motion graphics, 12% screen recording. No video model needed; one Remotion project does it.
Video · Report

AI music video · 165 s · 86 shots
Correctly flags the song as AI-generated (it was made with Suno). The vision model called some shots "live-action drama"; the agent spotted fake Chinese characters on a scroll and ruled them AI.
Video · Report

Live-action unboxing · 72 s · 29 shots
All real footage: an overhead phone rig, one rug, one camera position, no voice-over, room sound plus library BGM. After platform transcoding the offline tool called 35% of it AI; agent review brought it to 97% live-action.
Video · Report

AI + real person hybrid · 58 s · 21 shots
75% real (talking head + filming a phone screen) and 25% AI: the creator fed her own on-camera clip and two product photos to Jimeng to generate a "real-person" product segment. The AI part was caught by the Jimeng watermark and garbled text on the gift box.
Video · Report

Remakes

After rea-video breaks a video down, the remake recipe in capsule-cinema generates a new version: camera, motion, pacing and transitions follow the original, only the elements you choose are swapped. These results were generated with a self-hosted MiniMax H3: the original shot is the motion reference, and keyframes with the swapped elements (gpt-image-2) set the look. Below are three remakes that OiiOii showed in its WeChat articles. For each we made two versions: the same swap as OiiOii, and one that also swaps the subject, setting and props. Each GIF plays four versions in sync: original, OiiOii remake, our remake, element-swap version.

Overhead outfit change · 12 s
Same swap: woman → man, three outfits → matching menswear. Element swap: a girl in three historical Hanfu outfits in a Chinese study; the remote becomes a round fan.

HD comparison video (with audio) · same-moment stills
Paper-craft / watercolor animation · 30 s
Same swap: new clay girl as the lead. Element swap: a fox; forest → coral reef, clouds → starry sky, sunset → aurora.

HD comparison video (with audio) · same-moment stills
Handheld product video · 21 s · 11 shots
Same swap: an original new product, English sticker → Chinese caption. Element swap: pink product, kitchen → camping table, new ingredients.

HD comparison video (with audio) · same-moment stills

The HD comparison videos use the original audio. The originals and OiiOii versions come from the articles and are shown for comparison only.

Accuracy

How-it-was-made accuracy, weighted by shot duration:

Tuning set (15)Holdout (16)Re-encoded WeChat videos (10)
Tools only (offline, free)98.3%99.6% / 98.9%88.6%
+ vision model (Gemini)—99.6% / 99.8%99.6%
+ agent visual review—99.6% / 99.8%100%

The two holdout numbers are holdout (9 videos) and holdout2 (7 videos).

On original files the tools alone are mostly enough. Videos downloaded from platforms have been recompressed, which wipes out the noise evidence, so it takes a vision check to get back above 99%.

Real-asset detection is 97–99%, and shot boundaries are all correct. Numbers and how to reproduce them: eval/RESULTS.md.

How it works

rea-video pipeline

  1. Split: cut the video into shots and separate audio into voice, music and effects.
  2. Gather evidence: measure the frames (frame cadence, sensor noise, whether the whole image is panning as one plane, AIGC tags in metadata); look at the images (hands, text, physics); listen (BPM, key, singing vs speech).
  3. Decide: hard evidence like AIGC tags and frame cadence outranks "looks like". Conflicts are flagged for the agent to review visually.
  4. Plan the remake: batch shots according to what the target video model can actually do, such as max clip length, multi-shot support and how many reference images it takes.

FAQ

How is this different from one-click remake tools like Hypit?

Hypit takes a reference video and makes a new one: the agent reads frame grids to understand the original, generates footage with the models it supports (Seedance, PixVerse, MiniMax, Wan and others), and renders captions and motion graphics in HTML.

It doesn't ask how the original was made. A live-action source goes through the same pipeline; it won't tell you how many cameras were used or how it was lit. What AI video it can match depends on the models it has: no Kling or Veo, and no dedicated avatar or 3D path, and no AI music: you bring your own. It is strongest on talking-head, podcast and interview videos that follow a script, and weaker on music-driven edits, product motion graphics and cinematic shorts.

rea-video doesn't render a video. It works out shot by shot whether something was filmed, AI-generated or built in code, then gives a shooting plan, prompts or a code approach for each. For a quick lookalike, Hypit is faster. To understand how the original was made and remake it cheaply, use rea-video. They work fine together.

Do I need a video-capable model? What does it cost?

No. Tools-only mode is offline and free, and already accurate on original files. For recompressed platform downloads, add a video-capable model (Gemini or Doubao both work) or use an agent that can see images; you pay whatever that service charges. Automatic video generation (capsule-cinema) does a free dry run first and only calls paid models after you confirm.

Can it remake the whole video automatically?

Partly. With capsule-cinema installed, AI shots are generated and placed back on the original timeline automatically. Live shots you film from the shooting plan; code shots the agent writes as a Remotion project. See docs/replicate.md.

Can I just repost someone else's video?

No. rea-video is for learning a video's structure, pacing and techniques, then remaking it with material you have the rights to. Don't reuse other people's footage, music, characters or likeness. Follow platform rules and local AI-content labeling requirements when you publish.

Docs

The docs are in Chinese for now.

Community

Questions, breakdowns and remake ideas: GitHub Discussions. Chat with us on Discord. Chinese speakers can also find us on linux.do.

Want a video broken down? Open a request issue with the link and we'll publish the result as a case.

Credits

Inspired by REA (Reverse Engineer Anything): trace from what you see back to how it was made, back every claim with evidence, and verify by measurement.

Star History

Star History Chart

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryJavaScript
DietrichGebert/ponytail

Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.

203.5k
Nov 22, 2026
RepositoryPython
Graphify-Labs/graphify

Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store.

156.2k
Dec 2, 2026
RepositoryPython
harry0703/MoneyPrinterTurbo

利用 AI 大模型和自动化工作流,根据主题或关键词一键生成高清短视频。Generate HD short videos from a topic or keyword with an automated AI workflow.

147.3k
Dec 1, 2026
RepositoryJavaScript
Leonxlnx/taste-skill

Agent skills that give coding agents taste: art direction, reference images and a browser check instead of generic AI pages

124.6k
Nov 26, 2026
RepositoryJavaScript
addyosmani/agent-skills

Production-grade engineering skills for AI coding agents.

122.0k
Nov 24, 2026
RepositoryPython
blader/humanizer

Agent skill that removes signs of AI-generated writing from text

76.2k
Nov 19, 2026
RepositoryTypeScript
garrytan/gstack

Ship agent-written code you can trust: review, QA, a destructive-command guard and PRs that carry their own evidence, for Claude Code and other coding agents.

143.2k
Dec 1, 2026
RepositoryTypeScript
morluto/rea

Reverse engineer anything with agents, from app behavior down to native binaries.

487.0k
Dec 2, 2026
RepositoryPython
ComposioHQ/awesome-claude-skills

A curated list of awesome Claude Skills, resources, and tools for customizing Claude AI workflows

80.9k
Sep 18, 2026