From 5423b77ae8be06c2b93fa1b2ff2e8041ffa18497 Mon Sep 17 00:00:00 2001 From: puke <1129090915@qq.com> Date: Thu, 27 Nov 2025 11:40:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E5=B7=A5=E4=BD=9C=E6=B5=81=E5=92=8C?= =?UTF-8?q?=E6=A8=A1=E6=9D=BF=E6=94=AF=E6=8C=81=E7=B4=A2=E5=BC=95=E5=80=BC?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E8=BE=93=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pixelle_video/services/frame_processor.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pixelle_video/services/frame_processor.py b/pixelle_video/services/frame_processor.py index f7b64ae..a5068be 100644 --- a/pixelle_video/services/frame_processor.py +++ b/pixelle_video/services/frame_processor.py @@ -153,6 +153,7 @@ class FrameProcessor: "text": frame.narration, "inference_mode": config.tts_inference_mode, "output_path": output_path, + "index": frame.index + 1, # 1-based index for workflow } if config.tts_inference_mode == "local": @@ -203,7 +204,8 @@ class FrameProcessor: "workflow": config.media_workflow, # Pass workflow from config (None = use default) "media_type": media_type, "width": config.media_width, - "height": config.media_height + "height": config.media_height, + "index": frame.index + 1, # 1-based index for workflow } # For video workflows: pass audio duration as target video duration @@ -298,6 +300,9 @@ class FrameProcessor: ext["content_subtitle"] = content_metadata.subtitle or "" ext["content_genre"] = content_metadata.genre or "" + # Add frame index (1-based) + ext["index"] = frame.index + 1 + # Add custom template parameters if config.template_params: ext.update(config.template_params)