native-subtitle-quote-image

1个月前发布 59 0 0

native-subtitle-quote-image 是一个开源 Agent Skill,主要用于将真实视频帧制作成 3:4 比例的字幕拼图。它能够辅助完成选题、定位时间点、提取画面、拼接图片和质量检查,适合希望将视频内容转化为图文素材的创作者。

收录时间:
2026-10-11

做短视频二创或观点传播时,最难的往往是「截图」。普通截图要么字幕被裁掉,要么重新打字后看起来像后期假字幕,失去原视频的真实感。

GitHub 上开源的 native-subtitle-quote-image 正是为了解决这个问题。它是一个 Agent Skill,核心能力是:从视频精确取帧,保留画面里本来就有的字幕(或绘制你审核过的台词),拼成紧凑的 3:4 社交长图。

native-subtitle-quote-image

native-subtitle-quote-image 网站截图

核心特色

两种字幕模式,从不混用

  • 原生字幕:直接裁切视频像素里已经烧录的字幕,不 OCR、不重绘、不翻译,保持最真实的画面与水印。
  • 脚本字幕:把你核对过的台词画到真实画面上,并明确标注是后期字幕,适合整理观点或翻译内容。

版式紧凑、质检严格
原生字幕先拼源像素再统一缩放,字幕条之间无空隙;脚本模式主图约占 70%。每张图都会逐张质检,支持本地视频或 YouTube 链接,最终输出高清 JPG 和总览图。

Agent 友好,也能单独跑脚本
在 Codex、Claude Code 等 Agent 里一句话调用即可;也可以直接用 Python 脚本完成挑帧、渲染。

如何部署

  1. 克隆仓库并安装 Skill:
Bash
git clone https://github.com/chengyi-ai/native-subtitle-quote-image.git
cd native-subtitle-quote-image
mkdir -p ~/.codex/skills && cp -R skills/native-subtitle-quote-image ~/.codex/skills/

(Claude Code 把路径换成 ~/.claude/skills 即可)

  1. 安装依赖并自检:
Bash
python3 -m pip install -r skills/native-subtitle-quote-image/requirements.txt
python3 skills/native-subtitle-quote-image/scripts/check_environment.py

处理 YouTube 再加装 yt-dlp。

native-subtitle-quote-image

如何使用

对 Agent 说一句话即可:

使用 $native-subtitle-quote-image,把这个带内嵌中文字幕的视频做成原生字幕拼图。

或直接跑命令:

Bash

# 原生字幕渲染
python3 .../native_subtitle_stitch.py render VIDEO --manifest manifest.json --out-dir output

# 脚本字幕渲染
python3 .../native_subtitle_stitch.py render-script VIDEO --script script.json --out output.jpg --aspect 3:4

项目已获 2.6k+ Stars,MIT 协议开源。

相关导航

暂无评论

none
暂无评论...