From 612efddfc4736dedd7af97f191bbf3686a28f2ce Mon Sep 17 00:00:00 2001
From: Xinfan Chen <2024111082@stu.hit.edu.cn>
Date: Tue, 12 May 2026 22:00:51 +0800
Subject: [PATCH] fix: 修改demo视频封面
---
aigc-director/aigc-claw/backend/docs/session_format.md | 83 +++++++++++++++++++++++------------------
1 files changed, 46 insertions(+), 37 deletions(-)
diff --git a/aigc-director/aigc-claw/backend/docs/session_format.md b/aigc-director/aigc-claw/backend/docs/session_format.md
index d2bd186..6bdc863 100644
--- a/aigc-director/aigc-claw/backend/docs/session_format.md
+++ b/aigc-director/aigc-claw/backend/docs/session_format.md
@@ -121,25 +121,35 @@
```json
{
"session_id": "...",
- "shots": [
+ "episodes": [
{
- "shot_number": 1,
- "duration": 5,
- "characters": ["角色名"],
- "location": "场景位置",
- "plot": "镜头剧情描述",
- "visual_prompt": "视觉生成提示词",
- "shot_id": "shot_001_01",
- "scene_number": 1,
- "act": 1
+ "episode_number": 1,
+ "episode_title": "第一集标题",
+ "segments": [
+ {
+ "segment_id": "seg_01_01",
+ "segment_number": 1,
+ "total_duration": 10,
+ "characters": ["角色名"],
+ "setting": "场景位置",
+ "visual_prompt": "该视频片段的参考图提示词",
+ "video_prompt": "该视频片段的视频生成提示词",
+ "shots": [
+ {
+ "shot_number": 1,
+ "duration": 5,
+ "content": "镜头内容",
+ "camera": "镜头语言"
+ }
+ ]
+ }
+ ]
}
- ],
- "user_modified": true,
- "new_shot_ids": []
+ ]
}
```
-> **注意**:storyboard 结构是 `{shots: [...]}`,**没有** `payload` 包装层。
+> **注意**:当前完整链路是 `episode → segment → shot`。一个 `segment` 对应一次视频模型调用,`segment.shots[]` 描述同一个视频片段内部的镜头变化。
### 4. reference_generation
@@ -148,27 +158,21 @@
"session_id": "...",
"scenes": [
{
- "id": "shot_001_01",
- "name": "场景1-镜头1",
+ "id": "seg_01_01",
+ "name": "第1集-片段1",
"index": 1,
- "description": "视觉生成提示词(由 storyboard.visual_prompt 同步过来)",
+ "description": "视频片段参考图描述",
"selected": "用户选中的参考图路径",
"versions": ["所有版本路径"],
"status": "done/pending/failed"
- }
- ],
- "shots": [
- {
- "shot_id": "shot_001_01",
- "video_prompt": "视频生成提示词"
}
]
}
```
> **注意**:
-> - `scenes[].id` = `storyboard.shots[].shot_id`,用于跨阶段关联
-> - `shots[]` 是给视频生成用的提示词,格式为 `{shot_id, video_prompt}`
+> - `scenes[].id` = `storyboard.episodes[].segments[].segment_id`,用于跨阶段关联
+> - 参考图按视频片段生成,不按单个 shot 生成
### 5. video_generation
@@ -177,8 +181,8 @@
"session_id": "...",
"clips": [
{
- "id": "shot_001_01",
- "name": "场景1-镜头1",
+ "id": "seg_01_01",
+ "name": "第1集-片段1",
"index": 1,
"description": "视频片段描述(由 storyboard.plot 同步)",
"duration": 5,
@@ -190,7 +194,7 @@
}
```
-> **注意**:`clips[].id` = `storyboard.shots[].shot_id`
+> **注意**:`clips[].id` = `storyboard.episodes[].segments[].segment_id`
### 6. post_production
@@ -215,18 +219,18 @@
## 跨阶段数据同步关系
```
-storyboard (修改 plot/visual_prompt/duration)
+storyboard (修改 segment.visual_prompt / segment.video_prompt / total_duration / shots)
↓
video_generation.clips (description/duration)
↑ (修改 description/duration)
↑
video_generation (修改 clips.description/clips.duration)
↓ (修改后同步回 storyboard)
-storyboard (修改后同步回 storyboard.shots.plot)
+storyboard (修改后同步回 storyboard.episodes[].segments[])
reference_generation (修改 scenes.description)
↓
-storyboard.shots.visual_prompt (由 reference_generation 同步)
+storyboard.episodes[].segments[].visual_prompt (由 reference_generation 同步)
↑ (修改后同步)
↑
reference_generation (修改 scenes.description)
@@ -239,8 +243,13 @@
### storyboard
```json
{
- "shots": [
- {"shot_id": "shot_001_01", "duration": 5, "plot": "新描述", "visual_prompt": "新提示词"}
+ "episodes": [
+ {
+ "episode_number": 1,
+ "segments": [
+ {"segment_id": "seg_01_01", "total_duration": 10, "visual_prompt": "新提示词", "shots": []}
+ ]
+ }
]
}
```
@@ -248,8 +257,8 @@
### reference_generation(修改视觉提示词)
```json
{
- "shots": [
- {"shot_id": "shot_001_01", "visual_prompt": "新提示词"}
+ "segments": [
+ {"segment_id": "seg_01_01", "visual_prompt": "新提示词"}
]
}
```
@@ -257,14 +266,14 @@
### reference_generation(选择图片版本)
```json
{
- "shot_001_01": "code/result/image/xxx/shot_001_01_v2.jpg"
+ "seg_01_01": "code/result/image/xxx/seg_01_01_v2.jpg"
}
```
### video_generation(修改片段描述/时长)
```json
{
- "shot_001_01": {"description": "新描述", "duration": 5}
+ "seg_01_01": {"description": "新描述", "duration": 5}
}
```
--
Gitblit v1.8.0