Video Content Replace logo

Video Content Replace

Organization
meitu
video-content-replace

使用 meitu-cli 替换视频中的内容元素(人物/场景/服装/衣物),保留原始运镜和动作,支持文本指令和参考图驱动。当用户提到视频替换、改视频内容、把视频里的 xx 改成、把视频背景换成、用这张图替换视频里的人、参考图替换时触发。

Overview

Publishermeitu
Repositorymeitu-skills
Skill namevideo-content-replace
Stars
36
Forks
3
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by meitu on GitHub. Read the source before you install it.

Installation

Install the Video Content Replace AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/meitu/meitu-skills/tree/main/skills/video-content-replace
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/meitu/meitu-skills.git /tmp/meitu-skills
mkdir -p .claude/skills
cp -r /tmp/meitu-skills/skills/video-content-replace .claude/skills/video-content-replace
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Video Content Replace in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Video Content Replace on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Video Content Replace is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Video Content Replace

Overview

对已有视频做内容元素替换(人物/场景/服装/衣物/穿着),保留原始运镜和动作,覆盖 2 类场景:

  1. 文本指令替换:文本指令驱动视频内容修改,无需额外参考图。
  2. 参考图驱动替换:用户提供参考图 + 视频,按参考图替换视频中对应元素。

不处理:视频生成、去水印/去字幕、整体风格变换、音频修改、视频拼接。

API Mapping

场景API namemodel
文本指令替换video_molasses_editmolasses
参考图驱动替换video_molasses_vidimgs2vidmolasses

model 可选:auto(默认,按是否有参考图自动路由)/ molasses(显式指定)。

Dependencies

  • meitu-cli: >=2.0.6
  • 凭证:CONFIG AKSK → meitu tools update;EXEC AKSK → 跑命令
  • 环境变量:MEITU_OPENAPI_TOOL_TASK_MODE=command

路径别名: $VISUAL = {OPENCLAW_HOME}/workspace/visual/

Core Workflow

Preflight → Execute → Deliver

Preflight

  1. meitu --version 与 meitu auth verify --json
  2. 检测 MEITU_OPENAPI_TOOL_TASK_MODE=command
  3. output_dir:项目 → ./output/;一次性 → $VISUAL/output/video-content-replace/;mkdir -p

Execute

触发信号与路由

核心判断维度:是否提供参考图。

场景判定路由
有参考图 + 替换元素有 image_urlvideo_molasses_vidimgs2vid
无参考图 + 文本指令无 image_urlvideo_molasses_edit(默认)

路由原则:image_url 存在时优先走参考图模式,即使用户说"用文字描述修改"也走 vidimgs2vid。

参数定义

参数类型必填范围默认说明
video_urlSTRING是见下方约束—原视频地址
promptSTRING是——修改描述
image_urlSTRING否——参考图 URL;存在时路由至 vidimgs2vid
modelSTRING否auto/molassesauto模型选择

其余参数(duration/ratio/character_orientation 等)由 combo-tool 内部管理,不对外暴露。

video_url 约束(参考图驱动模式专用):

  • 格式:.mp4 / .mov;大小:≤ 100MB
  • 边长:340px ~ 3850px;时长:3 ~ 30 秒
  • 画面:漏出清晰的上半身/全身,1 人动作,一镜到底,动作平稳

video_molasses_edit(文本指令模式)对 video_url 限制较宽松,主要是格式和大小。

工具调用

bash
# 文本指令
meitu video-content-replace --video_url {url} --prompt "{修改描述}" --json --download-dir {output_dir} --skill_name skill_video-content-replace
bash
# 参考图驱动
meitu video-content-replace --video_url {url} --prompt "{修改描述}" --image_url {ref} --json --download-dir {output_dir} --skill_name skill_video-content-replace

错误降级

场景处理
video_url 缺失提示"请提供视频链接",不调用
video_url 不可访问直接返回错误,不重试
prompt 缺失提示"请描述你想修改的内容"
image_url 不可访问降级至 video_molasses_edit(仅用 prompt)
video_url 非 mp4/mov提示格式要求,不调用
video_url >100MB 或边长越界提示具体超限项
video_url 时长 <3s / >30s(vidimgs2vid)提示时长要求
返回 "Video duration can not longer than"识别为参考视频时长超限(非生成时长),提示用户裁剪视频而非重试
API 调用失败 / 超时重试 1 次,仍失败返回错误
内容合规拦截直接返回合规提示,不重试

Deliver

mv {file} {output_dir}/{date}_{name}_content-replace.mp4

Output

  • 格式:MP4
  • 命名:{YYYY-MM-DD}_{descriptive-name}_content-replace.mp4
  • 位置:项目 → ./output/;一次性 → $VISUAL/output/video-content-replace/

基线 Task ID

t_mt1a3i5n7b82954cc9-d2cb-44cd-a786-cb9fd37244f9

Frequently asked questions

What does the Video Content Replace AI skill do?

使用 meitu-cli 替换视频中的内容元素(人物/场景/服装/衣物),保留原始运镜和动作,支持文本指令和参考图驱动。当用户提到视频替换、改视频内容、把视频里的 xx 改成、把视频背景换成、用这张图替换视频里的人、参考图替换时触发。

Why use Video Content Replace on TypingMind?

Because you install it once and use it with any model. Video Content Replace is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Video Content Replace in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/meitu/meitu-skills/tree/main/skills/video-content-replace. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Video Content Replace?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Video Content Replace?

As many as you like. As long as a model supports skills, you can use Video Content Replace with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Video Content Replace AI skill free?

Yes. It is published on GitHub by meitu under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇