Fix: Replace RAM-heavy minterpolate filter with framerate filter for fallback interpolation
This commit is contained in:
+2
-1
@@ -770,7 +770,8 @@ def run_upscale_pipeline(job: UpscaleJob, on_progress_update: Callable[[str, Dic
|
|||||||
target_fps = fps * 2 if getattr(job, "double_fps", False) else 60
|
target_fps = fps * 2 if getattr(job, "double_fps", False) else 60
|
||||||
if target_fps < fps:
|
if target_fps < fps:
|
||||||
target_fps = fps
|
target_fps = fps
|
||||||
vf_filters.append(f"minterpolate=fps={target_fps}")
|
# Use 'framerate' filter instead of 'minterpolate' to avoid memory exhaustion on high resolutions
|
||||||
|
vf_filters.append(f"framerate=fps={target_fps}")
|
||||||
|
|
||||||
if vf_filters:
|
if vf_filters:
|
||||||
assemble_cmd.extend(["-vf", ",".join(vf_filters)])
|
assemble_cmd.extend(["-vf", ",".join(vf_filters)])
|
||||||
|
|||||||
Reference in New Issue
Block a user