P1-1: 一键生成P1级效果层补齐 - clip级转场/滤镜/片头片尾从模板映射 #468
Reference in New Issue
Block a user
Delete Branch "feature/unified-gen-effect-layer-p1"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
变更内容
一键生成模式下,clip级效果层从模板配置自动映射,补齐P1级效果层:转场、滤镜、片头片尾。
修复方案
新增函数
_load_template_clip_configs(template_id)- 从DB读取模板clip配置列表,失败返回空列表不阻断_apply_template_clip_effects(clips, clip_configs, mode)- 按位置映射clip级效果transition_effect字段直接映射clip.config.color_grade映射clip.config.speed/reverse/chroma_key映射_extract_intro_outro_from_clip_configs(clip_configs)- 从intro/outro类型clip提取plan级配置plan.config.intro_outro路径调用链路
_build_plan_and_clips_from_task增加template_id参数_render_video传入 template_id设计原则
测试
bb66e38321tof671dad959CI全绿,自动审批通过。
CI全绿,自动审批通过。