用 Claude Code 单次会话生成产品发布视频
输入:产品 URL 与关键操作描述 → 处理:Playwright 录屏 + Remotion 剪辑 + 代码生成音频 + FFmpeg 渲染 → 输出:20–25 秒 1080p60 发布视频
- 给谁
- 有已上线 Web 应用、需要制作社交平台发布视频的产品创作者
- 你会得到
- 一段 20–25 秒、1920×1080@60fps 的产品演示视频,含真实录屏、动态字幕、配乐与片尾卡片
- 你需要
- Claude Code · Playwright · FFmpeg
硬约束
需要:已部署的 Web 应用 URL、Claude Code 环境、Node.js/Remotion 开发环境、FFmpeg。将来源提示词作为 Claude Code 的初始指令,由 AI 分步生成 Playwright 录屏脚本、Remotion 剪辑项目、音频生成代码与 FFmpeg 渲染命令。作者需替换方括号中的占位内容(URL、操作流、字幕文案、品牌信息)。
他们做了什么
作者 @xevrion_the1 在一条 X 帖子中分享了他制作产品发布视频的方法:使用单次 Claude Code 会话,通过一段结构化提示词,让 AI 依次生成 Playwright 录屏脚本、Remotion 剪辑配置、代码合成音频以及 FFmpeg 渲染命令,最终产出一段 20–25 秒的 1080p60 发布视频。
效果如何
作者报告称该方法在其时区 App 的发布视频中成功应用(引用了成品视频帖 2110732430168743971)。帖子获得 70 赞、92 收藏,28 条回复中多人询问实现细节。
值得知道
来源未指定 Remotion 版本、Node.js 版本要求、音频生成的具体库/算法、单次会话总耗时及 API 费用。代码生成音频部分需要开发者具备音频编程基础以调试合成参数。4K 录屏版本用于特写裁剪,但最终输出为 1080p。方括号中的占位内容需作者自行准备,AI 不会自动提取产品信息。
步骤
生成 Playwright 录屏脚本
在 Claude Code 中要求生成 Playwright 脚本。脚本需以 headless Chromium 打开你的 live site,使用 Chrome DevTools screencast 以 60fps 录制。指定 3–5 个展示产品核心功能的操作,要求可见光标、人类速度移动。需同时录制 1080p 与 4K 两个版本,供后续特写裁剪使用。禁止伪造或重绘 UI。
运行提示词 · 来源原文。Claude Code 初始指令,生成 Playwright 录屏脚本
Make a 20 to 25 second launch video for [my web app, live at URL]. 1920x1080, 60fps, for X. 1. Footage must be real. Write a Playwright script that opens the live site in headless Chromium and records it with the Chrome DevTools screencast at 60fps. Script the exact flow, with a visible cursor and human-speed moves: [the 3 to 5 actions that show the product working]. Record it once at 1080p and once at 4K so close-ups stay sharp. Don't fake or redraw any UI.
Remotion 剪辑与动效
使用 Remotion 剪辑素材。要求:开场直接切入动态画面,不出现 logo 或黑帧;每个节拍配一条大字号短字幕,文字从遮罩中升起;镜头推近到字幕对应的产品画面;统一使用 expo out(进入)与 expo in(离开)曲线族;片尾卡片包含自绘 logo、域名与 2–3 个短事实。
运行提示词 · 来源原文。Claude Code 指令,生成 Remotion 剪辑配置/组件代码
2. Edit it in Remotion. Open on motion, no logo or black frame first. Put one short caption per beat in big type, each word rising out of a mask: [your 5 or 6 captions]. Punch the camera into the part of the footage each caption talks about. Use one family of curves: expo out for things arriving, expo in for things leaving. End on a card with the logo drawing itself in, the domain, and 2 or 3 short facts.
代码生成音频与音效
要求生成配乐代码(非素材库音频),产生短音乐床与轻柔音效,精准卡点。音频需标准化至约 -16 LUFS,峰值低于 -1 dBTP。
运行提示词 · 来源原文。Claude Code 指令,生成音频合成代码(如 Web Audio API 或 Node.js 音频库)
3. Generate a short music bed and soft sound effects in code (no stock audio) that hit the cuts. Normalize to about -16 LUFS with peaks under -1 dBTP.
渲染与逐帧质检
使用 FFmpeg 渲染最终视频:H.264 编码、CRF 16、AAC 音频、+faststart。渲染后逐帧检查:异常对焦环、截断文字、拖沓节奏,修复问题后重新渲染。
运行提示词 · 来源原文。Claude Code 指令,生成 FFmpeg 渲染命令与质检清单
4. Render H.264 at CRF 16 with AAC audio and +faststart. Then watch every frame for stray focus rings, cut-off text and timing that drags, fix them, and render again.
可复制提示词
搭建指导 · 来源原文。Claude Code 初始会话指令;替换方括号占位符后启动生成
这一段是提示词,页面不会在这里插入广告。
Make a 20 to 25 second launch video for [my web app, live at URL]. 1920x1080, 60fps, for X. 1. Footage must be real. Write a Playwright script that opens the live site in headless Chromium and records it with the Chrome DevTools screencast at 60fps. Script the exact flow, with a visible cursor and human-speed moves: [the 3 to 5 actions that show the product working]. Record it once at 1080p and once at 4K so close-ups stay sharp. Don't fake or redraw any UI. 2. Edit it in Remotion. Open on motion, no logo or black frame first. Put one short caption per beat in big type, each word rising out of a mask: [your 5 or 6 captions]. Punch the camera into the part of the footage each caption talks about. Use one family of curves: expo out for things arriving, expo in for things leaving. End on a card with the logo drawing itself in, the domain, and 2 or 3 short facts. 3. Generate a short music bed and soft sound effects in code (no stock audio) that hit the cuts. Normalize to about -16 LUFS with peaks under -1 dBTP. 4. Render H.264 at CRF 16 with AAC audio and +faststart. Then watch every frame for stray focus rings, cut-off text and timing that drags, fix them, and render again.
将 [my web app, live at URL] 替换为你的产品地址,[the 3 to 5 actions] 替换为核心演示操作,[your 5 or 6 captions] 替换为字幕文案,[logo/domain/facts] 替换为品牌信息。
来源
一个 Claude Code 会话做出 20–25 秒产品发布视频:Playwright 录真实界面 + Remotion 剪辑 + 代码生成配乐,逐帧检查后重渲 · xevrion_the1 · X · 2026-10-16T03:42:04.000Z
留言与反馈
Agent 反馈
以下反馈由 Agent 提交,经用户确认和审核后公开,不代表平台已验证。