feat(video-pipeline): 增强账号配置和分镜关键词支持
- 在 account.json 中新增 styles、ttsVoice、ttsInstruction、keywordStyle、transitions 等配置字段 - 分镜表 items 添加 keyword 字段,用于渲染关键词花字动画 - 重构 capcut_assemble.js 转场策略:前两段不加转场,rhythm 模式优化为只在关键位置添加 - 动画系统区分循环动画和入场动画,支持更丰富的动画组合(缩放、回弹伸缩等) - 更新 SKILL.md 和 manifest-schema.md 文档以反映新增字段和流程变更
This commit is contained in:
@@ -37,25 +37,62 @@ accounts/ # 项目根目录下
|
||||
"id": "tech-talk",
|
||||
"name": "科技解说",
|
||||
"description": "科技类短视频账号,深色背景,赛博朋克风格",
|
||||
"pipeline": "image-video",
|
||||
"defaultFormat": "9:16",
|
||||
"imageModel": "gemini",
|
||||
"videoModel": "kling",
|
||||
"videoModel": "veo3-fast",
|
||||
"batchSize": 30,
|
||||
"styles": {
|
||||
"赛博风格": {
|
||||
"references": [
|
||||
{ "file": "cyber_ref.png", "url": "https://oss.../cyber_ref.png" }
|
||||
]
|
||||
}
|
||||
},
|
||||
"ttsVoice": "cosyvoice-v3.5-plus-bailian-xxx",
|
||||
"ttsInstruction": "用冷静理性的男性声音朗读,语速适中",
|
||||
"storyboardPrompt": "prompts/分镜.md",
|
||||
"imageStylePrompt": "prompts/图片提示词.md",
|
||||
"videoStylePrompt": "prompts/视频提示词.md",
|
||||
"references": [
|
||||
{ "file": "ref_001.png", "url": "https://oss.../ref_001.png" }
|
||||
],
|
||||
"references": [],
|
||||
"capcut": {
|
||||
"effects": ["录制边框 III"],
|
||||
"filter": "电影感:40",
|
||||
"filter": "质感暗调:30",
|
||||
"subtitleStyle": {
|
||||
"fontSize": 36,
|
||||
"fontSize": 24,
|
||||
"color": "#FFFFFF",
|
||||
"highlightColor": "#FF6B35",
|
||||
"bold": true
|
||||
"bold": true,
|
||||
"hasShadow": true,
|
||||
"shadowColor": "#000000",
|
||||
"shadowAlpha": 0.8,
|
||||
"transformY": -380,
|
||||
"alignment": 1,
|
||||
"inAnimation": "淡入",
|
||||
"outAnimation": "淡出"
|
||||
},
|
||||
"defaultBGM": "https://example.com/bgm_tech.mp3"
|
||||
"keywordStyle": {
|
||||
"textEffect": "简约白色黑边花字",
|
||||
"fontSize": 60,
|
||||
"color": "#FFFFFF",
|
||||
"bold": true,
|
||||
"transformY": 0,
|
||||
"inAnimation": "打字机效果",
|
||||
"outAnimation": "模糊淡出",
|
||||
"inAnimDuration": 300000,
|
||||
"outAnimDuration": 300000
|
||||
},
|
||||
"transitions": {
|
||||
"strategy": "rhythm",
|
||||
"default": { "name": "闪白", "duration": 150000 },
|
||||
"byPosition": {
|
||||
"hook": { "name": "闪白", "duration": 100000 },
|
||||
"keypoint": { "name": "闪白", "duration": 120000 },
|
||||
"body": { "name": "溶解", "duration": 300000 },
|
||||
"closing": { "name": "闪黑", "duration": 200000 }
|
||||
}
|
||||
},
|
||||
"defaultBGM": ""
|
||||
}
|
||||
}
|
||||
```
|
||||
@@ -65,17 +102,23 @@ accounts/ # 项目根目录下
|
||||
| `id` | string | 账号唯一标识(与目录名一致) |
|
||||
| `name` | string | 账号显示名 |
|
||||
| `description` | string | 一句话描述 |
|
||||
| `defaultFormat` | string | 默认画幅(9:16 / 16:9 / 1:1 / 4:3) |
|
||||
| `imageModel` | string | 默认图片模型 |
|
||||
| `videoModel` | string | 默认视频模型 |
|
||||
| `pipeline` | string | 流水线类型:`image-video`(默认) |
|
||||
| `defaultFormat` | string | 默认画幅(`9:16` / `16:9` / `1:1` / `4:3`) |
|
||||
| `imageModel` | string | 默认图片模型(`gemini` / `mj`) |
|
||||
| `videoModel` | string | 默认视频模型(`veo3-fast` / `grok-video-3` / `kling`) |
|
||||
| `batchSize` | number | 默认批量生成数量 |
|
||||
| `styles` | object | 命名风格预设,每项含 `references` 数组 |
|
||||
| `ttsVoice` | string | TTS 音色 ID,留空用 config.json 全局默认 |
|
||||
| `ttsInstruction` | string | TTS 语气指令(描述期望的语气、语速、情感) |
|
||||
| `storyboardPrompt` | string | 分镜提示词模板路径(相对于账号目录) |
|
||||
| `imageStylePrompt` | string | 图片提示词模板路径(相对于账号目录) |
|
||||
| `videoStylePrompt` | string | 视频提示词模板路径(相对于账号目录) |
|
||||
| `references` | array | 参考图列表,每项含 file(本地文件名)和 url(OSS 公网地址) |
|
||||
| `references` | array | 默认参考图列表(每项含 `file` 和 `url`),已被 `styles` 取代 |
|
||||
| `capcut.effects` | string[] | CapCut 特效名称列表 |
|
||||
| `capcut.filter` | string | CapCut 滤镜,格式 "名称:强度" |
|
||||
| `capcut.subtitleStyle` | object | 字幕样式(字号、颜色、高亮色、加粗) |
|
||||
| `capcut.filter` | string | CapCut 滤镜,格式 `"名称:强度"`(如 `"质感电影:40"`) |
|
||||
| `capcut.subtitleStyle` | object | 字幕样式(font/字体、fontSize、color、highlightColor、bold、transformY、inAnimation/outAnimation) |
|
||||
| `capcut.keywordStyle` | object | 关键字氛围词样式(textEffect 花字、fontSize、color、动画),留空或删除则关闭 |
|
||||
| `capcut.transitions` | object | 转场配置(strategy + default + byPosition + byDirector) |
|
||||
| `capcut.defaultBGM` | string | 默认背景音乐 URL |
|
||||
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user