Increase extractLastFrame timeout to 15s and backoff start to 200ms to reduce HostBuffer.read_file_slice errors

This commit is contained in:
Towsty
2026-09-08 21:11:42 -05:00
parent da8d0e4c38
commit 4bf992210d
+2 -2
View File
@@ -70,9 +70,9 @@ export async function extractLastFrame(inputPath: string, outputPath: string) {
throw new Error('Source video is missing') throw new Error('Source video is missing')
} }
const maxTotalTimeMs = 5000 const maxTotalTimeMs = 15000
const start = Date.now() const start = Date.now()
let delayMs = 100 let delayMs = 200
while (Date.now() - start < maxTotalTimeMs) { while (Date.now() - start < maxTotalTimeMs) {
const attempts: string[][] = [] const attempts: string[][] = []