跳到正文
cccskills
免费在 GitHub 公开

green-screen

Replace a green, blue, or specified color backdrop in recorded video with an image, video, solid color, or blurred version of the footage. Preserve the original audio while automatically fitting and looping the replacement background as needed.

中文简介正在准备中。当前显示英语简介。

原文查看原文说明

绿幕抠像 / 换背景 / 合成:把绿幕(或蓝幕/指定色)拍摄的前景人物抠出来,合成到新背景——图片、视频、纯色或前景自身模糊。当用户说 绿幕、抠像、抠图换背景、去绿幕、chromakey、绿幕合成、换背景、蓝幕、把绿幕背景换掉、人物抠出来、绿布 时使用。

基于 shared/scripts/chromakey.py(ffmpeg chromakey + despill)。与 video-reframe 区别:reframe 只改画幅不换背景;与 ai-image-gen 区别:那个生成新图,本 SKILL 处理已拍的绿幕素材。

查看安装方法

适用场景

  • Replacing a green backdrop with an image
  • Compositing a presenter over a video background
  • Processing footage shot against a blue screen
  • Using a solid color or blurred footage as the background

包含的文件(1)

  • SKILL.md3.2 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

绿幕抠像 / 换背景合成

把绿幕前景抠出来合成到新背景。全部走 skills/shared/scripts/chromakey.py, 不要手拼 chromakey/overlay 滤镜——脚本已处理抠像、溢色抑制(despill)、边缘融合、 背景缩放、音轨保留。

只改画幅见 video-reframe;从零 AI 生成画面见 ai-video-gen;通用剪辑见 video-editing。

输入

字段必填说明
前景视频是绿幕/蓝幕拍摄的素材(没给就问)
背景是四选一:图片 / 视频 / 纯色 / 前景自身模糊
幕布色否默认绿 0x00ff00;蓝幕用 0x0000ff

输出(outputs/主题名/)

  • 合成后视频(*-composited.mp4)
  • 报告:分辨率、抠掉的颜色、所用背景

执行步骤

脚本路径(相对项目根):skills/shared/scripts/chromakey.py(key -h 看参数)。

# 合成到图片背景
python skills/shared/scripts/chromakey.py key -i <绿幕视频> \
  --bg <背景图> -o outputs/主题名/<名>-composited.mp4

# 合成到视频背景(背景自动循环补足)
python skills/shared/scripts/chromakey.py key -i <绿幕视频> \
  --bg <背景视频> -o outputs/主题名/<名>.mp4

# 合成到纯色背景
python skills/shared/scripts/chromakey.py key -i <绿幕视频> \
  --bg-color white -o outputs/主题名/<名>.mp4

# 背景=前景自身放大模糊(虚化景深感)
python skills/shared/scripts/chromakey.py key -i <绿幕视频> \
  --bg-blur -o outputs/主题名/<名>.mp4

调参(抠不干净时)

  • 绿边残留 / 抠不净:调大 --similarity(默认 0.30,可到 0.4)。
  • 主体边缘被吃 / 镂空:调小 --similarity,或加大 --blend(默认 0.10)柔化边缘。
  • 主体泛绿(溢色):脚本已自动 despill;仍明显时说明幕布打光不匀,属素材问题。
  • 蓝幕:--color 0x0000ff。

规则

  1. 幕布色默认绿;蓝幕/其它色用 --color 指定。
  2. 背景四选一(--bg / --bg-color / --bg-blur),互斥。
  3. 背景自动缩放裁切到前景画幅、视频背景自动循环补足到前景时长。
  4. 前景音轨自动保留。
  5. 抠像质量取决于素材(幕布纯净度、打光均匀度);脚本尽力,但拍摄差无法救回。
  6. 产物统一进 outputs/主题名/。

参考来源

绿幕抠像用 ffmpeg chromakey(按颜色距离生成 alpha)+ despill(抑制主体边缘溢色)+ overlay 合成,是标准无 GPU 抠像方案。把颜色阈值、边缘融合、背景适配封装成确定性脚本。

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Generate images from written descriptions, transform existing images with editing instructions, or create several variations. Choose image dimensions and quantity, then save the results using an OpenAI-compatible service or apimart with your own API key.

中文简介正在准备中。当前显示英语简介。

  • Generating an illustration from a written description
  • Changing an image's background using instructions
  • Creating several variations of an existing image
ZJU-REAL/Easel39772026年10月21日 更新

ai-music

免费

Generate background music for short videos, vlogs, and social posts from descriptions of mood, style, and instruments. Download MP3 audio, optionally include sung lyrics, and use shared scripts to trim tracks, adjust loudness, or add music to videos.

中文简介正在准备中。当前显示英语简介。

  • Generating background music for a vlog intro
  • Creating instrumental music to match a social post
  • Generating a sung track from supplied lyrics
ZJU-REAL/Easel39772026年10月21日 更新

Create new videos from written scene descriptions or still images using external AI services. Set the aspect ratio and duration, animate a character image, and request generated audio when the selected model supports it.

中文简介正在准备中。当前显示英语简介。

  • Generate a short video from a scene description
  • Animate a still image
  • Create character motion from a starting image
ZJU-REAL/Easel39772026年10月21日 更新

Organize generated images, videos, and text in outputs/ by date, platform, and type. Add tags, search filenames and content, produce asset lists and reports, and preview archive moves before applying them to make past work easier to reuse.

中文简介正在准备中。当前显示英语简介。

  • Organizing generated assets by date, platform, and type
  • Finding past content through keywords and tags
  • Listing assets for a specific account or platform
ZJU-REAL/Easel39772026年10月21日 更新

Reduce background noise in audio recordings or video soundtracks with three processing levels. Keep the original file, create a cleaned version, and receive a report of the settings used and file details before and after processing.

中文简介正在准备中。当前显示英语简介。

  • Reducing fan or air conditioner noise in recordings
  • Cleaning speech in podcasts and interviews
  • Reducing noise in a video's audio track
ZJU-REAL/Easel39772026年10月21日 更新

Edit audio files by trimming sections, converting formats, matching loudness, or extracting sound from videos. You can also join recordings, add fades, and change playback speed while keeping the original pitch.

中文简介正在准备中。当前显示英语简介。

  • Trim a recording to the section you need
  • Convert audio formats and match loudness
  • Extract audio from a video
ZJU-REAL/Easel39772026年10月21日 更新

查看 ZJU-REAL 的全部技能

报告此技能的问题