From cd6fde790a97956569c6ed8df6e37e0cfe567ed6 Mon Sep 17 00:00:00 2001 From: xiaoxia Date: Thu, 13 Aug 2026 00:36:00 +0800 Subject: [PATCH] =?UTF-8?q?perf(#1341):=20=E5=B0=81=E9=9D=A2=E7=94=9F?= =?UTF-8?q?=E6=88=90=E6=94=B9=E7=94=A8=20TimeInterval=20=E7=AD=96=E7=95=A5?= =?UTF-8?q?=EF=BC=88=E9=81=BF=E5=85=8D=20OOM=EF=BC=8C=E6=8F=90=E9=AB=98?= =?UTF-8?q?=E7=A8=B3=E5=AE=9A=E6=80=A7=EF=BC=89=20(#1351)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: xiaoxia Co-committed-by: xiaoxia --- packages/shared/ai_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/shared/ai_service.py b/packages/shared/ai_service.py index 637053eb7..f54860a2c 100755 --- a/packages/shared/ai_service.py +++ b/packages/shared/ai_service.py @@ -402,7 +402,7 @@ def _call_ai_cover_service( logger.info("调用 MediaKit 抽帧: plan_id=%s video=%s", plan_id, primary_video_url[:80]) frames = client.extract_frames( video_url=primary_video_url, - strategy="SceneChange", # 自动识别画面变化,选最佳帧 + strategy="TimeInterval", # 按固定时间间隔,稳定性好,不易 OOM max_frames=3, # 减少到 3 帧,平衡速度和质量 poll_interval=2.0, # 缩短轮询间隔 max_poll_attempts=60, # 120秒超时