Video Canvas Expand logo

Video Canvas Expand

Organization
meitu
video-canvas-expand

使用 meitu-cli 做视频画布向外 outpainting 扩展,AI 根据 prompt 智能补全扩展区域。当用户提到扩展视频、视频扩图、画面往左右上下扩、视频 outpainting、给视频补画面、扩出更多背景、让视频画面更宽时触发。

Overview

Publishermeitu
Repositorymeitu-skills
Skill namevideo-canvas-expand
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 Canvas Expand 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-canvas-expand
  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-canvas-expand .claude/skills/video-canvas-expand
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Video Canvas Expand 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 Canvas Expand 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 Canvas Expand 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 Canvas Expand

Overview

将视频画面按方向向外 outpainting 扩展,AI 根据 prompt 智能补全扩展区域。支持左/右/上/下任意组合方向,每条边扩展 0~0.5 倍原边长。时长不变,仅画面变宽/变高。

不处理:视频内容编辑(替换画面内容)、视频时长延长、视频裁剪/缩小、图片扩展。

API Mapping

场景API nameworkflow
视频画布扩展(outpainting)video_canvas_expandaigc_vace_outpainting_flow

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-canvas-expand/;mkdir -p

Execute

触发信号与路由

用户原话路由
扩展视频 / 视频扩图 / outpainting / 往某方向扩 / 补画面video_canvas_expand

决策顺序:

  1. video_url 缺失 → 追问;prompt 缺失 → 追问"扩展区域补什么"
  2. directions 不传默认四方向全扩;expand_ratio 不传默认 0.3
  3. 唯一路由:调用 video_canvas_expand

参数定义

参数类型必填范围默认说明
video_urlSTRING是——原视频 URL
promptSTRING是——扩展区域补什么(如"补蓝天"、"扩展街景")
expand_ratioSTRING否0 ~ 0.5"0.3"每条边扩展比例
directionsSTRING否left/right/up/down 组合(逗号分隔)"left,right,up,down"扩展方向

工具调用

bash
meitu video-canvas-expand \
  --skill_name skill_video-canvas-expand \
  --video_url {url} \
  --prompt "{扩展内容描述}" \
  [--expand_ratio 0.3] \
  [--directions "left,right,up,down"] \
  --json --download-dir {output_dir}

错误降级

场景处理
video_url 缺失提示"请提供需要扩展的视频"
video_url 不可访问不重试,提示"请提供有效视频链接"
prompt 缺失提示"请描述扩展区域想补全的内容(如'补蓝天')"
expand_ratio 越界(<0 或 >0.5)截断至 [0, 0.5] 或提示调整
directions 非法值回退至默认四方向
API 调用失败 / 超时重试 1 次,仍失败返回错误
内容合规拦截直接返回合规提示,不重试
用户说"改成 16:9"但意图是裁剪本工具仅扩展不裁剪,告知差异
输入为图片拒绝,仅支持视频

Deliver

mv {file} {output_dir}/{date}_{name}_canvas-expand.mp4

Output

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

基线 Task ID

t_mt1a3i5n7b66e66f5e-5e15-40b7-bf78-412a9490540b

Frequently asked questions

What does the Video Canvas Expand AI skill do?

使用 meitu-cli 做视频画布向外 outpainting 扩展,AI 根据 prompt 智能补全扩展区域。当用户提到扩展视频、视频扩图、画面往左右上下扩、视频 outpainting、给视频补画面、扩出更多背景、让视频画面更宽时触发。

Why use Video Canvas Expand on TypingMind?

Because you install it once and use it with any model. Video Canvas Expand 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 Canvas Expand in TypingMind?

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

Which AI models can use Video Canvas Expand?

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 Canvas Expand?

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

Is the Video Canvas Expand 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 👇