diff --git a/server/utils/library.ts b/server/utils/library.ts index c5675ee..399e968 100644 --- a/server/utils/library.ts +++ b/server/utils/library.ts @@ -415,7 +415,7 @@ export function clipThumbPath(owner: string, id: string) { function extractVideoThumb(videoPath: string, destPath: string) { return new Promise((resolve) => { - const proc = spawn('ffmpeg', ['-y', '-ss', '0.2', '-i', videoPath, '-frames:v', '1', '-q:v', '4', destPath], { stdio: 'ignore' }) + const proc = spawn('ffmpeg', ['-y', '-ss', '0.2', '-i', videoPath, '-frames:v', '1', '-update', '1', '-q:v', '4', destPath], { stdio: 'ignore' }) const timer = setTimeout(() => { try { proc.kill('SIGKILL') } catch { /* ignore */ } resolve(false)