Skip to content

📽️ 短视频分镜智能优化系统技术说明文档 (完整版)

一、 前端:生成设置选项配置表

下表列出了建议配置在 UI 下拉菜单中的选项及其对应的提示词映射,用于初始参数读取。

1. 运镜控制 (Camera Movement)

用于定义摄像机在 3D 空间中的动态轨迹。

预设名称 (中)预设名称 (英)后台自动补全关键词 (Prompt Keywords)视觉效果描述适用分镜角色
极速冲刺Fast Zoom Indynamic forward zoom, rapid push-in, rushing towards the subject, sense of urgency产生强烈的视觉冲击,常用于前2s的“钩子”镜头。Hook (Shot 01)
环绕扫描Orbit Shot360-degree orbit, cinematic circling camera, rotating around the subject, parallax effect展现主体的全方位细节,增加空间立体感。Narrative (Shot 03-05)
纵深拉远Pull Outslow pull-back, revealing the environment, zooming out from micro to macro从局部到整体,常用于结尾或展示宏大场景。Outro (Shot End)
平滑平移Dolly Pansmooth horizontal tracking, side-to-side sliding, steady cinematic pan像电影导轨一样平滑移动,适合展示横向延展的内容。Narrative (Shot 03-05)
希区柯克变焦Dolly Zoomvertigo effect, background warping while subject stays still, psychological tension背景扭曲而主体不动,产生极强的叙事张力和压迫感。Narrative (Shot 03-05)
低空掠过Drone Flybylow-angle drone flight, sweeping over the surface, dynamic aerial perspective模拟无人机视角,适合表现地貌、流体或宏观表面。Narrative (Shot 03-05)

2. 视觉色调 (Color Palette)

用于确立全片统一的审美风格,确保色彩一致性。所有色调后缀均会在 Prompt 的最后追加。

预设名称 (中)预设名称 (英)后台自动补全后缀 (Prompt Suffix)
电影青橙Teal & Orangecinematic teal and orange color grading, Hollywood style, high contrast, warm skin tones, cool shadows
赛博霓虹Cyberpunkcyberpunk aesthetic, neon pink and cyan lights, high saturation, dark urban atmosphere, futuristic glow
极简冷调Minimalist Coldminimalist aesthetic, cold blue and silver tones, clean lighting, high-end tech feel, desaturated colors
复古胶片Vintage Filmvintage 35mm film grain, warm nostalgic tones, Kodachrome style, soft lighting, slight faded edges
暗黑工业Dark Industrialmoody dark atmosphere, metallic grey and deep black tones, dramatic shadows, sharp textures, rugged feel
梦幻马卡龙Dreamy Pastelsoft pastel colors, dreamy atmosphere, bright and airy, gentle diffuse lighting, high key lighting

3. 叙事节奏 (Narrative Pace)

决定镜头的剪辑频率、动作强度及分镜骨架。

  • 震撼冲击型 (Epic): 节奏 [快 -> 快 -> 慢],强调爆炸性开场。
  • 悬疑探秘型 (Suspense): 节奏 [慢 -> 慢 -> 快],强调遮挡与窥视感。
  • 沉浸治愈型 (Immersive): 匀速节奏,强调细节纹理与呼吸感。
  • 快节奏潮流型 (Dynamic): 极快节奏,强调快速缩放与闪烁感。

二、 后端:“智能优化”自动注入逻辑 (V2.0 更新版)

当用户点击“智能优化”按钮时,系统后端将执行以下深度优化逻辑,解决视觉割裂与关键词冗余问题:

1. Token 降噪与结构重组

为避免大模型注意力分散,不再将 Topic 插入每行指令,而是采用“全局上下文 + 代词索引”的结构:

  • 全局置顶: [Core Topic]: {Topic}
  • 后续引用: 在分镜指令中统一使用 It / The subject 指代,减少 token 浪费。

2. 时间维度意象补全 (Time Imagery)

针对抽象/宏大主题(如“时间”、“黑洞”、“量子”),系统自动注入具象化视觉词库,提升画面“高级感”:

  • 触发关键词: 时间, time, 黑洞, 宇宙, mystery 等。
  • 注入内容: Visuals: Flying clocks, fragmented glass, frozen light trails, multiple exposure echoes.

3. 运动矢量一致性 (Motion Consistency)

解决“一会儿推一会儿摇”的视觉割裂感,强制锁定物理运动方向:

  • 触发条件: 用户选择 Fast Zoom In (Hook)。
  • 强制约束: 在全局 Prompt 中注入 [Motion Constraint]: Since Shot 01 is Push-in, subsequent effect.motion must contain Continuous forward movement.

4. 动量锚点与反向补偿

  • Hook 减速: 若 Shot 01 为极速冲刺,Shot 02 自动注入 Slow down... transition to stable tracking
  • 环境/主体锁定:
    • [Subject Preservation]: Consistent subject detail; Locked subject geometry;
    • [Environment Constraint]: All scenes must share the same environment.

三、 优化后的 Prompt 结构公式

系统生成的 Prompt 将严格遵循 [全局定义] + [分镜指令流] 的双层结构:

1. 全局定义层 (Context Block)

text
[Core Topic]: {用户输入的主题}
[Global Style]: {视觉色调后缀}
[Visual Imagery]: {时间/抽象概念的具象化描述 (按需注入)}
[Motion Constraint]: {运动矢量一致性约束 (按需注入)}
[Subject Preservation]: Consistent subject detail; Locked subject geometry;
[Environment Constraint]: All scenes must share the same environment.

2. 分镜指令流 (Instruction Flow)

text
[Shot Instructions]:
Shot 01 (Hook): {Hook运镜}, {动作描述}...
Shot 02 (Transition): {反向补偿}, Inherit motion direction...
Shot 03-05 (Narrative): {叙事运镜}, Continuous camera pan...
Shot End (Outro): {Outro运镜}, Atmosphere elevation...

四、 最终 JSON 结构示例 (Simulated)

json
{
  "global_settings": {
    "topic": "时间停止的瞬间",
    "tone_preset": "Minimalist Cold",
    "pace_preset": "Immersive",
    "camera_preset": "Fast Zoom In"
  },
  "storyboard_optimized": [
    {
      "shot_index": 1,
      "role": "Hook",
      "prompt": "dynamic forward zoom, rapid push-in, sense of urgency. Macro texture shot, soft natural lighting. Visuals: Flying clocks, fragmented glass. minimalist aesthetic, cold blue and silver tones",
      "logic": "Hook Camera + Imagery Injection"
    },
    {
      "shot_index": 2,
      "role": "Transition",
      "prompt": "Slow down the camera movement, transition to stable tracking. Inherit motion direction from scene 01; It flows smoothly. Side view. Continuous forward movement. minimalist aesthetic...",
      "logic": "Counter-Movement + Motion Consistency"
    },
    {
      "shot_index": "3-5",
      "role": "Narrative",
      "prompt": "Continuous camera pan; matching flow of It. Warm tones, particles. Consistent subject detail. minimalist aesthetic...",
      "logic": "Subject Preservation"
    }
  ]
}