Communitygithub.com

agentshift-shorts 短片合成器

在已有静态帧和语音文件的基础上,渲染叠加层并合成最终 MP4 视频,专为短内容创作优化。

agentshift-shorts 短片合成器 是什么?

这是一个面向 AI 代理的短片合成技能,专注于将 TTS 语音与视觉叠加层合成为最终 MP4 视频。它适用于支持 Python 脚本执行的开发环境(如 Claude Code、Cursor、Codex),特别适合内容创作者和自动化工作流。该技能首先通过 TTS 生成带词时间戳的 JSON 文件和混合音频,然后构建具有透明背景的 HUD 页面(使用暂停的 GSAP 动画),并在最后一词播放 2.2 秒后添加订阅卡片。接着使用 `app.overlay` 将 HTML 页面渲染为逐帧 PNG,并通过 `app.cinematic` 先预览过渡和峰值帧,确认无误后执行最终渲染(含 loudnorm −14 响度标准化)。整个过程从音频混音到最终输出高度自动化,大幅减少手动编辑时间。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/bsaisuryacharan/agentshift-shorts/tree/HEAD/skills/shorts-render

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

  1. TTS 生成(带词时间戳)→ timing.json;混合背景音(侧链压缩 −12 dB)与 whoosh/impact/ding 音效 → mix.wav。
  2. 构建 HUD 界面(透明背景,window.__timelines.main 暂停的 GSAP 时间轴)。字幕位置:bottom:540px; left:60px; right:150px。在最后一个词结束后 2.2 秒添加订阅卡片。
  3. python -m app.overlay page.html <total> work/ovl → 逐帧输出 PNG。
  4. python -m app.cinematic test shotlist.json 60,150,… → 预览每个转场和峰值处的静态帧;确认无误后再进行完整渲染。
  5. python -m app.cinematic render shotlist.json out.mp4(内置 loudnorm −14 响度标准化)。

Individual skills in this repo

This repo contains 4 individual skills — each has its own dedicated page.

相关技能