Open source · MIT开源 · MIT 协议

Clip any video
with agents.
交给 Agent,
剪辑任何视频。

Give your coding agent a video and a character. It cuts the video into shots, draws the character sheets, plans every shot and recasts the whole clip, while the motion, camera and scene stay exactly as filmed. 把一段视频和一个角色交给你的编程 Agent。它会自己切分镜头、画角色设定图、规划每个镜头,再把整段视频里的人物换成你的角色,动作、运镜和场景都和原片保持一致。

  • 4full clips recast段完整视频
  • 43shots, one agent个镜头,一个 Agent
  • 1human confirmation次人工确认
Original原片 ClipAnyVideo

Drag to compare拖动对比

Showcase案例

Same shot. New cast.同样的镜头,换一批演员。

Every frame below was produced by an agent following one written procedure. Drag the divider, or switch views. Turn the sound on to hear the original track it was cut to.下面每一帧都是 Agent 按同一份流程文档自己完成的。拖动分隔线,或者切换视图;打开声音可以听到原片的音轨。

Original原片 ClipAnyVideo

How it works工作原理

One shot, end to end.一个镜头的完整过程。

The middle shot of Fated Duel, with the real files the agent produced at each step.以「宿命对决」的中间镜头为例,每一步都是 Agent 实际产出的文件。

  1. 01

    Cut into shots切分镜头

    Find every cut and decide which shots need a new character and which stay untouched. This clip has three shots; we follow the middle one.找出每个切镜点,判断哪些镜头需要替换、哪些保留原片。这段视频有三个镜头,下面以中间这个为例。

    #1 · 0–5 s
    #2 · 5–10 s
    #3 · 10–15 s
  2. 02

    Character sheets角色设定图

    From a single picture, draw a head sheet for the face and a four-view turnaround for hair, outfit and body. These are the only source of the character's look.从一张角色图画出头部设定图(负责脸)和四视图(负责发型、服装和体型),它们是人物外观的唯一依据。

    Head sheet
    Head sheet · face头部设定图 · 脸
    Four-view turnaround
    Turnaround · hair, outfit, body四视图 · 发型、服装、身材
    Head sheet
    Head sheet · face头部设定图 · 脸
    Four-view turnaround
    Turnaround · hair, outfit, body四视图 · 发型、服装、身材
  3. 03

    Reference frames参考单帧

    Pick three key moments, repaint each with the new characters, then review them at full size against the sheets before anything is sent to video.选出三个关键时刻,用新角色重画,再和设定图并排按原尺寸自查,通过后才进入视频生成。

    0.0 s
    2.3 s
    4.7 s
  4. 04

    Depth深度图

    A frame-aligned depth video of the shot carries the motion, blocking, camera move and who stands in front of whom, without the original actor's look.与原镜头逐帧对齐的深度视频,带着动作、走位、运镜和前后遮挡,但不带原角色的长相。

    Shot原镜头
    Depth深度图
  5. 05

    Generate生成视频

    Each input does one job in a short prompt. The shot is sent to a video model through the provider you choose.每项素材在简短的提示词里只做一件事,再通过你选择的渠道提交给视频模型。

    • Original shot原视频background, expression & lip timing背景、表情和口型
    • Depth深度图motion, camera, occlusion动作、运镜、遮挡
    • Character sheets设定图face, hair, outfit, body脸、发型、服装、身材
    • Reference frames参考单帧the picture at key moments关键时刻的画面
    →
    Result生成结果
  6. 06

    Check, redo, assemble质检、重做、拼接

    The agent reviews face crops and motion timing on its own. A failed segment is re-cut, re-referenced and regenerated; the finished shots go back on the original timeline with the original sound.Agent 自己检查脸部裁图和动作时间。不合格的片段会被重新截取、重新生成参考图再重做,合格的镜头按原时间线拼回去,并配上原声。

    ✓ Identity matches sheets身份与设定图一致
    ✓ No trace of the original actor没有原角色残留
    ✓ Motion on the original beat动作踩在原片节奏上
    ✓ Occlusion & head count遮挡与人数正确
    ↻ Failed segment → re-cut & regenerate不合格片段 → 重新截取并生成

Agent-first为 Agent 设计

You approve once. The agent does the rest.你只确认一次,其余交给 Agent。

🧾

One confirmation只确认一次

Before spending anything, the agent shows the shot list, sheets, reference frames and a cost estimate. After that it only stops for real blockers.花钱之前,Agent 会一次性给你看镜头清单、设定图、参考单帧和费用估算。之后只有真正卡住时才会找你。

🔍

Self-review自己质检

Full-size face crops, motion timelines and residue checks are written down per shot, not eyeballed from thumbnails.每个镜头都按原尺寸裁脸、看动作时间轴、查原角色残留,并写成记录,不靠缩略图凭感觉判断。

♻️

Targeted redo只重做坏的部分

When a segment fails, only that segment is re-cut and regenerated, within a reserved budget, and every version is kept.某一段不合格时,只重新截取、重新生成这一段,费用从预留额度里出,所有版本都会保留。

🔌

Bring your provider渠道可选

Works with Wan 3.0 through DashScope or any OpenAI-compatible /v1/videos relay. Jobs are recorded and resumed, never blindly resubmitted.支持通过 DashScope 或任何 OpenAI 兼容的 /v1/videos 中转调用 Wan 3.0。任务会被记录并可恢复,不会盲目重复提交。

🤖

Any coding agent任意编程 Agent

Built and tested with Codex; the procedure is plain Markdown, so Claude Code or any agent that runs shell commands can follow it.用 Codex 开发和测试。流程是纯 Markdown,Claude Code 或任何能执行命令的 Agent 都能照着做。

🎬

Keeps the film保留原片

Original timing, cuts and sound are kept. Only the people change.保留原片的节奏、切镜和声音,只换人。

The workflow and agent skill are coming to this repo.流程文档和 Agent Skill 即将在本仓库开源。

Star or watch the repository to get notified when they land.给仓库加星或关注,发布时第一时间收到通知。

Watch on GitHub在 GitHub 上关注