[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-107628":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":15,"forks30d":15,"starsTrendScore":19,"compositeScore":20,"rankGlobal":9,"rankLanguage":9,"license":9,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":21,"hasPages":21,"topics":23,"createdAt":9,"pushedAt":43,"updatedAt":44,"readmeContent":45,"aiSummary":46,"trendingCount":15,"starSnapshotCount":15,"syncStatus":47,"lastSyncTime":48,"discoverSource":49},107628,"rea-video","JuneYaooo\u002Frea-video","JuneYaooo","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 格式输出。",null,"Python",12846,1886,25,7,0,471,2987,12476,2178,116.8,false,"main",[24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42],"agent-skills","ai-video","aigc-detection","claude-code","codex","douyin","ffmpeg","prompt-engineering","remotion","reverse-engineering","short-video","shot-detection","subtitles","tiktok","video-analysis","video-breakdown","video-editing","video-generation","vlm","2026-11-23 16:39:34","2026-11-23 20:28:21","\u003Cdiv align=\"center\">\n\n# rea-video\n\nReverse-engineer any video.\n\nTalking-head, tabletop, AI video, 3D, motion graphics, mixed edits: give it any of them,\u003Cbr>\nand 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.\n\n[中文](i18n\u002FREADME_zh.md) | English | [Русский](i18n\u002FREADME_ru.md) | [日本語](i18n\u002FREADME_ja.md) | [한국어](i18n\u002FREADME_ko.md) | [Español](i18n\u002FREADME_es.md) | [Português](i18n\u002FREADME_pt.md) | [Français](i18n\u002FREADME_fr.md) | [Deutsch](i18n\u002FREADME_de.md)\n\n[![Stars](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fstars\u002FJuneYaooo\u002Frea-video?style=flat)](https:\u002F\u002Fgithub.com\u002FJuneYaooo\u002Frea-video\u002Fstargazers)\n![Python](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fpython-%E2%89%A53.10-blue)\n![Agent](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fruns%20in-Claude%20Code%20%7C%20Codex-8A2BE2)\n\n\u003Cimg src=\"docs\u002Fcases\u002Fdemo.gif\" width=\"440\" alt=\"Left: TikTok original shot on a phone; right: someone's AI remake with a different product\">\n\nLeft: a TikTok ad shot on a phone. Right: someone's AI remake with a different product swapped in.\u003Cbr>\nrea-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.\n\n\u003C\u002Fdiv>\n\n> 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.\n\n## What it can break down\n\n| Video type | Examples | What you get |\n|---|---|---|\n| 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 |\n| AI video | Text\u002Fimage-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 |\n| Avatar | A portrait driven by audio, lip-sync | Which shots are avatar shots, what portrait and audio you need |\n| 3D \u002F animation | Blender \u002F C4D explainers, product animation, 2D animation, stop-motion | Whether to generate with a video model or render from 3D code |\n| Code \u002F template | Kinetic type, UI demos, charts, slide-style cards | Text, layout and motion timing, ready to rebuild as a Remotion project |\n| Screen recording | Software tutorials, web demos | Which parts are real material you'll need to record yourself |\n| Mixed \u002F edits | AI characters + code UI + real screen capture; live footage with AI edits | Each shot judged separately, then reassembled on the original timeline |\n\nBesides how the picture was made, every video also gets:\n\n- Captions and styled text: start and end of each line (exports to SRT \u002F ASS), plus color, outline and how the text comes in\n- Stickers, emoji, picture-in-picture: where they sit and how long they stay\n- Editing: where the cuts are, how fast, whether they hit the beat\n- Audio: human or AI voice, AI or library music and its BPM, where each sound effect lands\n- Material you'll supply yourself: screen recordings, screenshots, product photos\n\n## Quick start\n\nrea-video is built for AI agents. In Claude Code, Codex or any agent that can run commands, say:\n\n```text\nInstall https:\u002F\u002Fgithub.com\u002FJuneYaooo\u002Frea-video, then break down this video: \u002Fpath\u002Fto\u002Fvideo.mp4\n```\n\nThe agent installs the CLI, learns the workflow and runs the whole thing. You need ffmpeg and Python 3.10+.\n\nYou get:\n\n- a one-line summary, e.g. \"41% AI video + 59% code UI, 8 s of real screen recording, library music at 122 BPM\"\n- a remake plan, split into what to film, what to generate and what to code\n- a full `report.html` with per-shot frames, evidence, prompts, camera and lighting notes, and the audio breakdown\n\nAdd a video-capable model — Gemini or Doubao both work: give the agent the endpoint and key. It makes live\u002FAI\u002F3D 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.\n\n## Examples\n\n\u003Ctable>\n\u003Ctr>\n\u003Ctd width=\"50%\" valign=\"top\">\n\u003Ca href=\"docs\u002Fcases.md#2-混合片ai-人物对话--代码界面--真实录屏\">\u003Cimg src=\"docs\u002Fcases\u002Fdual_role\u002Fthumb.jpg\">\u003C\u002Fa>\u003Cbr>\n\u003Cb>Mixed-media clip\u003C\u002Fb> · 19 s · 10 shots\u003Cbr>\nAI 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.\u003Cbr>\n\u003Ca href=\"docs\u002Fcases\u002Fvideos\u002Fdual_role.mp4\">Video\u003C\u002Fa> · \u003Ca href=\"docs\u002Fcases\u002Fdual_role\u002Freport_en.md\">Report\u003C\u002Fa>\n\u003C\u002Ftd>\n\u003Ctd width=\"50%\" valign=\"top\">\n\u003Ca href=\"docs\u002Fcases.md#3-3d-科普片咸鸭蛋为什么会流油\">\u003Cimg src=\"docs\u002Fcases\u002Fsalted_egg\u002Fthumb.jpg\">\u003C\u002Fa>\u003Cbr>\n\u003Cb>3D explainer\u003C\u002Fb> · 67 s · 21 shots\u003Cbr>\nAll 3D, AI narration. Doable as 10 video generations, or have an LLM write Blender \u002F Three.js code.\u003Cbr>\n\u003Ca href=\"docs\u002Fcases\u002Fvideos\u002Fsalted_egg.mp4\">Video\u003C\u002Fa> · \u003Ca href=\"docs\u002Fcases\u002Fsalted_egg\u002Freport_en.md\">Report\u003C\u002Fa>\n\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd width=\"50%\" valign=\"top\">\n\u003Ca href=\"docs\u002Fcases.md#4-代码-ui-动效产品宣传片\">\u003Cimg src=\"docs\u002Fcases\u002Fv10\u002Fthumb.jpg\">\u003C\u002Fa>\u003Cbr>\n\u003Cb>Product promo\u003C\u002Fb> · 70 s · 12 shots\u003Cbr>\n83% code-driven motion graphics, 12% screen recording. No video model needed; one Remotion project does it.\u003Cbr>\n\u003Ca href=\"docs\u002Fcases\u002Fvideos\u002Fv10_oiioii_gen_coding_first.mp4\">Video\u003C\u002Fa> · \u003Ca href=\"docs\u002Fcases\u002Fv10\u002Freport_en.md\">Report\u003C\u002Fa>\n\u003C\u002Ftd>\n\u003Ctd width=\"50%\" valign=\"top\">\n\u003Ca href=\"docs\u002Fcases.md#5-ai-音乐-mv歌是-ai-写的还是曲库的\">\u003Cimg src=\"docs\u002Fcases\u002Fqing_mv\u002Fthumb.jpg\">\u003C\u002Fa>\u003Cbr>\n\u003Cb>AI music video\u003C\u002Fb> · 165 s · 86 shots\u003Cbr>\nCorrectly 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.\u003Cbr>\n\u003Ca href=\"docs\u002Fcases\u002Fvideos\u002Fqing_mv.mp4\">Video\u003C\u002Fa> · \u003Ca href=\"docs\u002Fcases\u002Fqing_mv\u002Freport_en.md\">Report\u003C\u002Fa>\n\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd width=\"50%\" valign=\"top\">\n\u003Ca href=\"docs\u002Fcases.md#6-实拍带货沉浸式开箱\">\u003Cimg src=\"docs\u002Fcases\u002Funboxing\u002Fthumb.jpg\">\u003C\u002Fa>\u003Cbr>\n\u003Cb>Live-action unboxing\u003C\u002Fb> · 72 s · 29 shots\u003Cbr>\nAll 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.\u003Cbr>\n\u003Ca href=\"docs\u002Fcases\u002Fvideos\u002Funboxing.mp4\">Video\u003C\u002Fa> · \u003Ca href=\"docs\u002Fcases\u002Funboxing\u002Freport_en.md\">Report\u003C\u002Fa>\n\u003C\u002Ftd>\n\u003Ctd width=\"50%\" valign=\"top\">\n\u003Ca href=\"docs\u002Fcases.md#7-ai-与真人混合用自己的出镜视频生成带货片\">\u003Cimg src=\"docs\u002Fcases\u002Fai_daihuo\u002Fthumb.jpg\">\u003C\u002Fa>\u003Cbr>\n\u003Cb>AI + real person hybrid\u003C\u002Fb> · 58 s · 21 shots\u003Cbr>\n75% 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.\u003Cbr>\n\u003Ca href=\"docs\u002Fcases\u002Fvideos\u002Fai_daihuo.mp4\">Video\u003C\u002Fa> · \u003Ca href=\"docs\u002Fcases\u002Fai_daihuo\u002Freport_en.md\">Report\u003C\u002Fa>\n\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftable>\n\n## Remakes\n\nAfter rea-video breaks a video down, the remake recipe in [cheap-claude-video](https:\u002F\u002Fgithub.com\u002FJuneYaooo\u002Fcheap-claude-video) generates a new version: camera, motion, pacing and transitions follow the original, only the elements you choose are swapped.\nThese 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.\nBelow 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.\nEach GIF plays four versions in sync: original, OiiOii remake, our remake, element-swap version.\n\n\u003Ctable>\n\u003Ctr>\u003Ctd>\n\u003Cb>Overhead outfit change\u003C\u002Fb> · 12 s\u003Cbr>\nSame 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.\u003Cbr>\n\u003Cimg src=\"docs\u002Fcases\u002Fremake\u002Foutfit.gif\">\u003Cbr>\n\u003Ca href=\"docs\u002Fcases\u002Fremake\u002Foutfit_compare.mp4\">HD comparison video (with audio)\u003C\u002Fa> · \u003Ca href=\"docs\u002Fcases\u002Fremake\u002Foutfit_sheet.jpg\">same-moment stills\u003C\u002Fa>\n\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>\n\u003Cb>Paper-craft \u002F watercolor animation\u003C\u002Fb> · 30 s\u003Cbr>\nSame swap: new clay girl as the lead. Element swap: a fox; forest → coral reef, clouds → starry sky, sunset → aurora.\u003Cbr>\n\u003Cimg src=\"docs\u002Fcases\u002Fremake\u002Fpaper.gif\">\u003Cbr>\n\u003Ca href=\"docs\u002Fcases\u002Fremake\u002Fpaper_compare.mp4\">HD comparison video (with audio)\u003C\u002Fa> · \u003Ca href=\"docs\u002Fcases\u002Fremake\u002Fpaper_sheet.jpg\">same-moment stills\u003C\u002Fa>\n\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>\n\u003Cb>Handheld product video\u003C\u002Fb> · 21 s · 11 shots\u003Cbr>\nSame swap: an original new product, English sticker → Chinese caption. Element swap: pink product, kitchen → camping table, new ingredients.\u003Cbr>\n\u003Cimg src=\"docs\u002Fcases\u002Fremake\u002Fjuicer.gif\">\u003Cbr>\n\u003Ca href=\"docs\u002Fcases\u002Fremake\u002Fjuicer_compare.mp4\">HD comparison video (with audio)\u003C\u002Fa> · \u003Ca href=\"docs\u002Fcases\u002Fremake\u002Fjuicer_sheet.jpg\">same-moment stills\u003C\u002Fa>\n\u003C\u002Ftd>\u003C\u002Ftr>\n\u003C\u002Ftable>\n\nThe HD comparison videos use the original audio. The originals and OiiOii versions come from the articles and are shown for comparison only.\n\n## Accuracy\n\nHow-it-was-made accuracy, weighted by shot duration:\n\n| | Tuning set (15) | Holdout (16) | Re-encoded WeChat videos (10) |\n|---|---|---|---|\n| Tools only (offline, free) | 98.3% | 99.6% \u002F 98.9% | 88.6% |\n| + vision model (Gemini) | — | 99.6% \u002F 99.8% | 99.6% |\n| + agent visual review | — | 99.6% \u002F 99.8% | 100% |\n\nThe two holdout numbers are holdout (9 videos) and holdout2 (7 videos).\n\nOn 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%.\n\nReal-asset detection is 97–99%, and shot boundaries are all correct. Numbers and how to reproduce them: [eval\u002FRESULTS.md](eval\u002FRESULTS.md).\n\n## How it works\n\n![rea-video pipeline](docs\u002Frea-flow_en.svg)\n\n1. Split: cut the video into shots and separate audio into voice, music and effects.\n2. 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).\n3. Decide: hard evidence like AIGC tags and frame cadence outranks \"looks like\". Conflicts are flagged for the agent to review visually.\n4. 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.\n\n## FAQ\n\n\u003Cdetails>\n\u003Csummary>How is this different from one-click remake tools like Hypit?\u003C\u002Fsummary>\n\n[Hypit](https:\u002F\u002Fgithub.com\u002Fhypit-ai\u002Fhypit) 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.\n\nIt 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.\n\nrea-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.\n\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>Do I need a video-capable model? What does it cost?\u003C\u002Fsummary>\n\nNo. 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.\n\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>Can it remake the whole video automatically?\u003C\u002Fsummary>\n\nPartly. With [capsule-cinema](https:\u002F\u002Fgithub.com\u002FJuneYaooo\u002Fcheap-claude-video) 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\u002Freplicate.md](docs\u002Freplicate.md).\n\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>Can I just repost someone else's video?\u003C\u002Fsummary>\n\nNo. 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.\n\n\u003C\u002Fdetails>\n\n## Docs\n\n- [docs\u002Fwhat-it-detects.md](docs\u002Fwhat-it-detects.md): everything it detects (10 visual types, camera, lighting, grade, audio)\n- [docs\u002Freplicate.md](docs\u002Freplicate.md): remaking from the report\n- [docs\u002Fcases.md](docs\u002Fcases.md): case details\n- [docs\u002Fdecompose.md](docs\u002Fdecompose.md): detection rules\n- [docs\u002Fcli.md](docs\u002Fcli.md): CLI usage and capsule-cinema integration\n- [rea_video\u002Fcapabilities\u002F](rea_video\u002Fcapabilities\u002FREADME.md): capability tables for video \u002F image \u002F audio models, used to pick models for the remake plan\n- [eval\u002FRESULTS.md](eval\u002FRESULTS.md): eval results\n\nThe docs are in Chinese for now.\n\n## Community\n\nQuestions, breakdowns and remake ideas: [GitHub Discussions](https:\u002F\u002Fgithub.com\u002FJuneYaooo\u002Frea-video\u002Fdiscussions). Chat with us on [Discord](https:\u002F\u002Fdiscord.gg\u002FdZj8D3GqWT). Chinese speakers can also find us on [linux.do](https:\u002F\u002Flinux.do\u002F).\n\nWant a video broken down? Open a [request issue](https:\u002F\u002Fgithub.com\u002FJuneYaooo\u002Frea-video\u002Fissues\u002Fnew?template=request_breakdown.yml) with the link and we'll publish the result as a case.\n\n## Credits\n\nInspired by [REA (Reverse Engineer Anything)](https:\u002F\u002Fgithub.com\u002Fmorluto\u002Frea): trace from what you see back to how it was made, back every claim with evidence, and verify by measurement.\n","rea-video 是一个视频逆向分析工具，可逐镜头识别视频的制作方式（实拍、AI生成或代码渲染），并提供复刻方案。核心功能包括镜头检测、制作工艺分类（如AI视频、3D动画、屏幕录制、混合编辑）、字幕与特效时空定位、剪辑节奏分析，以及面向不同生成路径（如Claude Code、Remotion、FFmpeg）的可执行复刻建议。技术上融合多模态推理、提示工程与视频信号分析，支持中英文报告输出。适用于短视频运营、AIGC内容溯源、视频教学拆解、广告创意复盘及AI视频生产流程优化等场景。",2,"2026-11-24 04:32:26","CREATED_QUERY"]