Files
long 3cd3553af2 feat: 新增 training-videos 素材流水线
AI 跟练的素材生产工具,产物写入 TUICallKit-Vue3/training:
- 教练动作帧:AI 设定稿 → 切帧对齐、锁脸、插帧 → 导出小程序帧与 COS 高清帧
- 示范视频:Remotion 渲染四个动作的示范视频
- 背景音乐:程序合成的原创循环音乐(npm run bgm)
2026-10-31 10:33:25 +08:00

10 lines
396 B
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// 渲染全部示范视频到 out/*.mp4(可指定单个动作:node scripts/render-all.mjs squat)
import { execSync } from 'node:child_process'
const MOVES = ['squat', 'march', 'jack', 'raise']
const only = process.argv[2]
for (const move of MOVES.filter((m) => !only || m === only)) {
execSync(`npx remotion render src/index.ts demo-${move} out/${move}.mp4`, { stdio: 'inherit' })
}