Loading...
Loading...
在RunComfy上编辑现有视频——该Skill是一个智能路由工具,可将用户意图匹配到RunComfy模型库中合适的视频编辑模型。它会选择Wan 2.7 Edit-Video(通用风格重塑/背景替换/包装替换,保留人物身份与动作)、Kling 2.6 Pro Motion Control(将参考视频的精准动作迁移到目标角色)或Lucy Edit Restyle(轻量级身份稳定风格重塑/服装替换)。该Skill整合了每个模型的官方提示模板,无需在错误模型上反复尝试即可获得更精准的编辑效果。通过本地RunComfy CLI调用`runcomfy run <vendor>/<model>/<endpoint>`命令。当用户说出“video edit”“edit video”“restyle video”“swap video background”“motion control”“outfit swap video”或任何明确要求转换视频的指令时触发。
npx skill4agent add skills-collective/skills video-editnpx skills add agentspace-so/runcomfy-skills --skill video-edit -g| 用户意图 | 模型 | 选择理由 |
|---|---|---|
| 重塑对话头部视频风格——保留面部/姿态/唇部动作 | Wan 2.7 Edit-Video | 身份与动作保留能力强;支持最高1080p分辨率 |
| 替换产品背景,保留镜头运动 | Wan 2.7 Edit-Video | 可保留镜头运动;支持单向编辑需求 |
| 使用参考图替换包装设计 | Wan 2.7 Edit-Video + | 基于参考图的设计迁移能力 |
| 应用电影级调色/商业级优化 | Wan 2.7 Edit-Video | 擅长单向全局风格调整 |
| 将参考视频的精准动作迁移到目标角色 | Kling 2.6 Pro Motion Control | 专为带身份保留的动作映射设计 |
| 将目标角色的唇部动作与源视频唇部动作同步 | Kling 2.6 Pro Motion Control | 具备极强的时间连贯性 |
| 轻量级服装替换,保留身份特征 | Lucy Edit Restyle | 核心优势是本地化身份稳定编辑 |
| 身份稳定风格重塑(如“沙漠中的宇航员”“温暖的黄金时段光线”) | Lucy Edit Restyle | 专注于风格重塑的时间一致性 |
| 用户未明确指定时的默认选择 | Wan 2.7 Edit-Video | 功能最全面,支持最高分辨率 |
npm i -g @runcomfy/cliruncomfy loginRUNCOMFY_TOKEN=<token>wan-ai/wan-2-7/edit-video| 字段 | 类型 | 是否必填 | 默认值 | 说明 |
|---|---|---|---|---|
| string | 是 | — | 先说明保留需求,每次调用仅指定一种编辑方向。 |
| string | 是 | — | MP4/MOV格式URL,时长2–10秒,大小≤100MB。 |
| string | 否 | — | URL — 仅用于直接的设计/外观迁移场景。 |
| enum | 否 | (输入视频分辨率) | |
| enum | 否 | (输入视频比例) | 宽:高,默认与输入视频一致。 |
| int | 否 | 0 | |
| enum | 否 | | |
| int | 否 | — | 用于结果复现。 |
runcomfy run wan-ai/wan-2-7/edit-video \
--input '{
"prompt": "Preserve the speaker'\''s face, pose, and lip movement; change the background to a modern office with neutral lighting.",
"video": "https://.../speaker.mp4",
"audio_setting": "origin"
}' \
--output-dir <absolute/path>runcomfy run wan-ai/wan-2-7/edit-video \
--input '{
"prompt": "Maintain the original framing and hand movement; replace the packaging design using the reference image.",
"video": "https://.../hand-holding-package.mp4",
"reference_image": "https://.../new-packaging.png",
"audio_setting": "origin"
}' \
--output-dir <absolute/path>"Preserve [面部 / 姿态 / 动作 / 构图 / 唇部动作]; [再说明修改需求]"reference_imageaudio_setting: "origin"kling/kling-2-6/motion-control-pro| 字段 | 类型 | 是否必填 | 说明 |
|---|---|---|---|
| string | 是 | 描述目标动作/风格。 |
| string | 是(图片模式) | 用于保持角色/背景一致性的参考图。 |
| string | 是 | 动作参考视频。时长限制取决于模式,10–30秒不等。 |
| bool | 否 | 保留参考视频的音频。 |
| enum | 是 | |
runcomfy run kling/kling-2-6/motion-control-pro \
--input '{
"prompt": "A young american woman dancing",
"image": "https://.../target-character.jpg",
"video": "https://.../motion-reference-dance.mp4",
"character_orientation": "image",
"keep_original_sound": true
}' \
--output-dir <absolute/path>"角色在左侧,背景动效在右侧"character_orientation: "image""video"decart/lucy-edit/restyle| 字段 | 类型 | 是否必填 | 默认值 | 说明 |
|---|---|---|---|---|
| string | 是 | — | 自然语言编辑指令。 |
| string | 是 | — | MP4/MOV/WEBM/GIF格式。 |
| enum | 否 | | 此模型仅支持 |
runcomfy run decart/lucy-edit/restyle \
--input '{
"prompt": "Change outfit to professional business attire; preserve face and motion.",
"video_url": "https://.../subject-walking.mp4"
}' \
--output-dir <absolute/path>runcomfy run decart/lucy-edit/restyle \
--input '{
"prompt": "Make lighting warm and golden hour; preserve face, pose, and motion.",
"video_url": "https://.../subject-portrait.mp4"
}' \
--output-dir <absolute/path>"preserve face and motion"wan-2-7| 代码 | 含义 |
|---|---|
| 0 | 成功 |
| 64 | CLI参数错误 |
| 65 | 输入JSON错误/数据结构不匹配 |
| 69 | 上游服务5xx错误 |
| 75 | 可重试:超时/429请求过多 |
| 77 | 未登录或令牌被拒绝 |
runcomfy run <model_id>.runcomfy.net.runcomfy.com--output-dirCtrl-Cruncomfy login~/.config/runcomfy/token.jsonRUNCOMFY_TOKEN--inputmodel-api.runcomfy.net*.runcomfy.net*.runcomfy.com