diff --git a/video-gen-api/app/config.py b/video-gen-api/app/config.py index 52d9779b..cf044acf 100644 --- a/video-gen-api/app/config.py +++ b/video-gen-api/app/config.py @@ -228,7 +228,7 @@ class Settings(BaseSettings): # 拆镜复刻配置。 # 原始上传视频和拆镜片段都属于 uploads 素材域;只有 generate 生成结果走 token 验签。 - SHOT_ANALYSIS_TIMEOUT_SECONDS: int = 600 + SHOT_ANALYSIS_TIMEOUT_SECONDS: int = 3600 SHOT_ANALYSIS_TEMPERATURE: float = 0.1 SHOT_ANALYSIS_MAX_TOKENS: int = 5000 SHOT_ANALYSIS_VIDEO_FPS: float = 1.0 diff --git a/video-gen-api/app/services/module_async_recovery_service.py b/video-gen-api/app/services/module_async_recovery_service.py index 2eda39cb..a78dae49 100644 --- a/video-gen-api/app/services/module_async_recovery_service.py +++ b/video-gen-api/app/services/module_async_recovery_service.py @@ -99,7 +99,7 @@ def _lease_seconds() -> int: def _shot_analysis_lease_seconds() -> int: - timeout = max(1, int(getattr(settings, "SHOT_ANALYSIS_TIMEOUT_SECONDS", 600) or 600)) + timeout = max(1, int(getattr(settings, "SHOT_ANALYSIS_TIMEOUT_SECONDS", 3600) or 3600)) return max(_lease_seconds(), timeout + 120) diff --git a/video-gen-api/app/services/shot_video_analysis_service.py b/video-gen-api/app/services/shot_video_analysis_service.py index 10500e55..10d14a6f 100644 --- a/video-gen-api/app/services/shot_video_analysis_service.py +++ b/video-gen-api/app/services/shot_video_analysis_service.py @@ -34,7 +34,7 @@ class ShotVideoAnalysisResult: def _timeout_seconds() -> int: - return int(getattr(settings, "SHOT_ANALYSIS_TIMEOUT_SECONDS", 180) or 180) + return int(getattr(settings, "SHOT_ANALYSIS_TIMEOUT_SECONDS", 3600) or 3600) def _video_fps() -> float: