GitRead 中文社区
首页趋势排行榜原创文章严选周刊
更多资源
新手训练营
精选专题热门话题GitHub 文档资源精选实战指南

rea-video

逆向分析任何视频,逐个镜头说明每个镜头是实拍、AI 生成还是代码生成,字幕、剪辑和音频是如何制作的,以及如何复刻。逆向一切视频,逐镜拆出制作方式并给出复刻方案。

  • 语言Python
  • 默认分支main
  • 大小110.7 MB
  • 更新1 天前
  • Issues5
在 GitHub 打开
avatarJuneYaooo

项目介绍

JuneYaooo/rea-video 是一个托管在 GitHub 上的开源项目,主要使用 Python 编写,采用 Apache License 2.0 许可证,目前获得 5.2k 个 Star、749 次 Fork。

仓库全名
JuneYaooo/rea-video

README 摘要

Reverse-engineer any video. Shot by shot: was it filmed, AI-generated or coded, and how to remake it. Website | 中文 | English | Русский | 日本語 | 한국어 | Español | Português | Français | Deutsch ⭐ Help more people find rea-video. Star this repo! Left: a TikTok ad shot on a phone. Right: an AI remake with another product. rea-video's verdict: the left is all live footage, one set and two camera positions; the right is all…

完整内容见 GitHub 原始 README 或本页 。

常见问题

rea-video 用什么语言开发?

主要使用 Python 编写,采用 Apache License 2.0 许可证,目前有 5.2k 个 Star。

rea-video 可以免费商用吗?

仓库采用 Apache License 2.0 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 rea-video 的源码?

可以直接克隆仓库:git clone https://github.com/JuneYaooo/rea-video.git,默认分支为 main;安装与运行步骤见仓库 README。

rea-video 最近还在维护吗?

仓库最近一次更新为 1 天前,当前有 5 个未关闭 Issue;Star 数为 5.2k,可作为社区活跃度的参考。

本页面展示项目元数据与原始 README,GitRead 中文社区 编辑团队负责选题收录。

相关仓库

public-apis/public-apis avatar
public-apispublic-apis
1 天前
497.5k
54.2k
66

免费 API 汇总列表

apipublic-apisfree+7
Python
15.5 MB
7
详情
EbookFoundation/free-programming-books avatar
free-programming-booksEbookFoundation
1 天前
401.4k
67.5k
95

免费可获取的编程书籍

bookseducationhacktoberfest+2
Python
21.8 MB
3
详情
donnemartin/system-design-primer avatar
system-design-primerdonnemartin
9月15日
377.4k
59.2k
644

学习如何设计大规模系统。为系统设计面试做准备。包含 Anki 闪卡。

designdesign-patternsdesign-system+10
Python
11.0 MB
0
详情
vinta/awesome-python avatar
awesome-pythonvinta
1 天前
333.6k
28.0k
0

回答“我想用 Python 做 X,该用哪个工具?”的权威清单

awesomeawesome-listpython+3
Python
6.9 MB
2
详情
practical-tutorials/project-based-learning avatar
project-based-learningpractical-tutorials
10 小时前
289.4k
36.8k
238

精选的项目实战教程列表

tutorialprojectbeginner-project+5
Python
472 KB
1
详情
NousResearch/hermes-agent avatar
hermes-agentNousResearch
2 小时前
262.0k
58.3k
53.8k

与你共同成长的智能体

aiai-agentai-agents+10
Python
1.4 GB
3
详情
TheAlgorithms/Python avatar
PythonTheAlgorithms
6 天前
226.0k
51.3k
90

所有算法均用 Python 实现

algorithmalgorithm-competitionsalgorithms-implemented+11
Python
17.9 MB
2
详情
yt-dlp/yt-dlp avatar
yt-dlpyt-dlp
5 天前
206.4k
18.1k
2.8k

功能丰富的命令行音视频下载器

youtube-dlpythonsponsorblock+4
Python
63.5 MB
0
详情

关于

agent-skillsai-videoaigc-detectionclaude-codecodexffmpegprompt-engineeringremotionreverse-engineeringshort-videoshot-detectionsubtitlesvideo-analysisvideo-breakdownvideo-editingvideo-generationvlm
  • Apache License 2.0
  • 5.2k Stars
  • 749 Forks
  • 16 Watching

简要分析

热度分
6714
价值分
3346
活跃状态
活跃
GitHub

语言占比

Python
Shell

贡献者

JuneYaoooJuneYaooowusanjaywusanjayTobinZuoTobinZuoeltocieareltociearanana1111anana1111Light-CityLight-City
rea-video

Reverse-engineer any video.

Shot by shot: was it filmed, AI-generated or coded, and how to remake it.

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

Stars Python Agent

JuneYaooo/rea-video | Trendshift

Visit our website Join our Discord Follow on X

⭐ Help more people find rea-video. Star this repo!

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: an AI remake with another product. rea-video’s verdict: the left is all live footage, one set and two camera positions; the right is all AI, 8 shots across 3 generations.

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

You can also hook up a video-capable model (Gemini or Doubao both work) by giving the agent its endpoint and key. That makes the live/AI/3D calls more accurate and adds a reverse-engineered prompt for every shot. It works fine without one; if your agent can see images, it checks the uncertain shots itself.

Reports are written in whichever language you ask in (Chinese or English). The example reports below are in English.

What it can break down

Video type Examples What you get
Live footage Talking-head, tabletop, handheld product demo, vlog, store visit Setups and camera positions, framing, camera moves, lighting (12 setups with gear lists), color grade
AI video Text/image-to-video, AI short drama, AI music video Evidence, a reverse-engineered prompt per shot, how to batch into generations and which model to use
Avatar A portrait driven by audio, lip-sync Which shots are avatar shots, what portrait and audio you need
3D / animation Blender / C4D explainers, product animation, 2D animation, stop-motion Whether to generate with a video model or render from 3D code
Code / template Kinetic type, UI demos, charts, slide-style cards Text, layout and motion timing, ready to rebuild as a Remotion project
Screen recording Software tutorials, web demos Which parts are real material you’ll need to record yourself
Mixed / edits AI characters + code UI + real screen capture; live footage with AI edits Each shot judged separately, then reassembled on the original timeline

Besides how the visuals were made, every breakdown also covers:

  • 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 need to supply yourself: screen recordings, screenshots, product photos

Examples

The sample videos in docs/cases/videos/ are re-compressed to keep the repo small, which strips the TikTok / Douyin platform tags. So if you run them yourself, you’ll get different results from the reports below, especially without a vision model. To reproduce them, use the original downloads from the platform.


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

3D explainer · 67 s · 21 shots
All 3D, AI narration. You can do it in 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 tools called 35% of it AI; after agent review it came out 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 gave itself away with 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 that keeps the original’s camera, motion, pacing and transitions and swaps only the elements you pick. These were made with a self-hosted MiniMax H3, using the original shot as the motion reference and keyframes with the swapped elements (gpt-image-2) for the look. Below are three remakes OiiOii showed in its WeChat articles. We made two versions of each: one with the same swap as OiiOii, and one that also swaps the subject, setting and props. Each GIF plays four versions in sync: the original, OiiOii’s remake, our remake and the 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

Accuracy of the how-it-was-made call, 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 Holdout column shows two numbers: holdout (9 videos) and holdout2 (7 videos).

On original files, the tools alone are usually enough. Videos downloaded from platforms have been recompressed, which wipes out the noise evidence, so you need a visual 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 split the audio into voice, music and effects.
  2. Gather evidence: measure (frame cadence, sensor noise, whether the whole image moves as one flat plane, AIGC tags in the metadata), look (hands, text, physics) and listen (BPM, key, singing vs speech).
  3. Decide: hard evidence like AIGC tags and frame cadence beats “looks like”. Conflicts get flagged for the agent to check 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.

Star History

Star History Chart

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 supports: no Kling or Veo, no dedicated avatar or 3D path, and no AI music (you bring your own). It’s 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. You film the live shots from the shooting plan, and the agent writes the code shots 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

  • docs/what-it-detects.md: everything it detects (10 visual types, camera, lighting, grade, audio)
  • docs/replicate.md: how to remake from the report
  • docs/cases.md: details on each example
  • docs/decompose.md: detection rules
  • docs/cli.md: CLI usage and capsule-cinema integration
  • rea_video/capabilities/: capability tables for video / image / audio models, used to pick models for the remake plan
  • eval/RESULTS.md: eval results

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): work back from what you see to how it was made, back every claim with evidence, and verify by measuring.

评论

登录 后发表评论
暂无评论
GitRead 中文社区
深度解读 · 趋势洞察 · 价值精选

关于

关于我们联系我们编辑准则收录标准赞赏人员

发现

技术趋势新手训练营资源精选实战指南精选专题热门话题GitHub 文档

条款

隐私政策服务条款网站地图
26.9万收录项目
5.2万中文话题
155精选专题
发现技术价值,连接开源智慧
© 2026 GitRead · GitHub 中文社区 本站与 GitHub, Inc. 无隶属关系;GitHub 是 GitHub, Inc. 的商标。