Increase extractLastFrame timeout to 15s and backoff start to 200ms to reduce HostBuffer.read_file_slice errors
This commit is contained in:
@@ -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[][] = []
|
||||
|
||||
Reference in New Issue
Block a user