Fix RIFE frame filename pattern mismatch in video assembly step

This commit is contained in:
2026-06-30 09:14:33 -04:00
parent 30201c9bc7
commit 1c8c95d618
62 changed files with 3656 additions and 1 deletions
+4 -1
View File
@@ -717,11 +717,14 @@ def run_upscale_pipeline(job: UpscaleJob, on_progress_update: Callable[[str, Dic
assemble_frames_dir = rife_frames_dir if use_rife else output_frames_dir
assemble_fps = fps * 2 if (use_rife or getattr(job, "double_fps", False) or getattr(job, "interpolation", False)) else fps
# RIFE outputs files as %08d.jpg, upscaler outputs as frame_%08d.jpg
frame_pattern = "%08d.jpg" if use_rife else "frame_%08d.jpg"
# Construct ffmpeg reassembly command
assemble_cmd = [
"ffmpeg", "-y",
"-framerate", str(assemble_fps),
"-i", os.path.join(assemble_frames_dir, "frame_%08d.jpg")
"-i", os.path.join(assemble_frames_dir, frame_pattern)
]
# We need the original video as the second input (index 1) if we preserve audio or subtitles