From 3e1870581b9f7276b4402f7450e0ce8618c3affd Mon Sep 17 00:00:00 2001 From: strict235 <3407812373@qq.com> Date: Thu, 4 Dec 2025 23:54:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=A7=86=E9=A2=91=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD=E7=9A=84=E6=96=87=E4=BB=B6=E5=91=BD=E5=90=8D=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pixelle_video/pipelines/asset_based.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pixelle_video/pipelines/asset_based.py b/pixelle_video/pipelines/asset_based.py index fd89ab9..25957b0 100644 --- a/pixelle_video/pipelines/asset_based.py +++ b/pixelle_video/pipelines/asset_based.py @@ -719,7 +719,13 @@ class AssetBasedPipeline(LinearVideoPipeline): # Collect video segments from storyboard frames scene_videos = [frame.video_segment_path for frame in context.storyboard.frames] - final_video_path = Path(context.task_dir) / f"{context.title}.mp4" + # Generate filename: use title if provided, otherwise use task_id or default name + if context.title: + filename = f"{context.title}.mp4" + else: + filename = f"{context.task_id}.mp4" # Use task_id as filename when title is empty + + final_video_path = Path(context.task_dir) / filename # Get BGM parameters bgm_path = context.request.get("bgm_path")