From 4bf992210d8190fafe83f00885fc6273007fbf8b Mon Sep 17 00:00:00 2001 From: Towsty Date: Tue, 8 Sep 2026 21:11:42 -0500 Subject: [PATCH] Increase extractLastFrame timeout to 15s and backoff start to 200ms to reduce HostBuffer.read_file_slice errors --- server/utils/ffmpeg.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/utils/ffmpeg.ts b/server/utils/ffmpeg.ts index f18320b..5ab0220 100644 --- a/server/utils/ffmpeg.ts +++ b/server/utils/ffmpeg.ts @@ -70,9 +70,9 @@ export async function extractLastFrame(inputPath: string, outputPath: string) { throw new Error('Source video is missing') } - const maxTotalTimeMs = 5000 + const maxTotalTimeMs = 15000 const start = Date.now() - let delayMs = 100 + let delayMs = 200 while (Date.now() - start < maxTotalTimeMs) { const attempts: string[][] = []