perf(#1341): 优化封面生成速度(减少抽帧数和轮询间隔) #1350

Closed
xiaoxia wants to merge 1 commits from optimize/cover-generation-speed into develop
+3 -3
View File
@@ -403,9 +403,9 @@ def _call_ai_cover_service(
frames = client.extract_frames(
video_url=primary_video_url,
strategy="SceneChange", # 自动识别画面变化,选最佳帧
max_frames=3, # 减少到 3 帧,平衡速度和质量
poll_interval=2.0, # 缩短轮询间隔
max_poll_attempts=60, # 120秒超时
max_frames=1, # 只抽取 1 帧,速度优先
poll_interval=1.0, # 缩短轮询间隔到 1 秒
max_poll_attempts=30, # 60秒超时
)
if frames and len(frames) > 0: