Files
facefusion/facefusion
henryruhs 8d2d7df040 Skip temp-frame extraction; process reads and writes frames directly
With the canvas coming from the video reader, the extracted temp PNGs were
never read for pixels -- extraction only produced write targets and a frame
list. Drop the extract_frames step entirely: process_video iterates the trim
range, each worker reads its frame from the reader, swaps, and writes straight
to the temp frame path that merge consumes.

Removes the whole extracting phase (a second full-video decode + PNG encode).
Wall time drops ~25-36% (AV1 ~30 -> ~19 s, H.264 ~29 -> ~22 s for 300 frames);
processing throughput unchanged; output unchanged.

Note: this path does not resample fps (output_video_fps must equal source fps)
and derives the frame count via cv2 container metadata; a scaled output falls
back to a per-frame resize instead of the temp PNG.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-22 10:44:49 +02:00
..
2026-06-30 15:00:02 +02:00
2026-06-30 15:00:02 +02:00
2026-06-30 15:00:02 +02:00
2023-08-19 23:52:51 +02:00
2026-06-30 15:00:02 +02:00
2026-06-30 15:00:02 +02:00
2025-10-29 11:51:42 +01:00
2026-06-30 15:00:02 +02:00
2026-02-11 09:35:08 +01:00
2026-06-30 15:00:02 +02:00
2025-11-03 14:05:15 +01:00
2026-06-30 15:00:02 +02:00
2026-03-16 15:08:43 +01:00
2026-06-30 15:00:02 +02:00
2026-06-30 15:00:02 +02:00
2026-06-30 15:00:02 +02:00
2026-04-19 21:17:39 +02:00
2025-12-13 08:37:15 +01:00
2026-03-08 11:00:45 +01:00
2025-09-08 10:43:58 +02:00
2026-03-09 21:24:53 +01:00
2026-06-30 15:00:02 +02:00
2026-06-30 15:00:02 +02:00
2025-11-03 14:05:15 +01:00
2026-03-08 11:00:45 +01:00
2025-11-03 14:05:15 +01:00
2026-06-30 15:00:02 +02:00
2026-06-30 15:00:02 +02:00
2026-06-30 15:00:02 +02:00
2026-06-30 15:00:02 +02:00
2025-11-03 14:05:15 +01:00
2025-04-28 10:03:25 +02:00
2026-06-30 15:00:02 +02:00
2026-06-30 15:00:02 +02:00
2025-04-28 10:03:25 +02:00
2026-06-30 16:09:22 +02:00
2025-04-28 10:03:25 +02:00
2026-07-05 16:43:36 +02:00
2025-09-08 10:43:58 +02:00
2025-09-08 10:43:58 +02:00
2024-12-24 12:46:56 +01:00
2026-07-05 16:43:36 +02:00
2026-06-30 15:00:02 +02:00
2025-09-08 10:43:58 +02:00
2026-06-30 15:00:02 +02:00
2026-06-30 15:00:02 +02:00
2025-09-08 10:43:58 +02:00
2025-11-03 14:05:15 +01:00
2026-03-09 21:24:53 +01:00