From d8a80446da8b8b00938b4928ed0ef874822d2553 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 28 Aug 2023 17:50:47 +0200 Subject: [PATCH] Reduce ffmpeg thumbnail generation load Can also lead to memory issues with big values (default is 100) --- packages/ffmpeg/src/ffmpeg-images.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ffmpeg/src/ffmpeg-images.ts b/packages/ffmpeg/src/ffmpeg-images.ts index 4cd37aa80..5f7b10345 100644 --- a/packages/ffmpeg/src/ffmpeg-images.ts +++ b/packages/ffmpeg/src/ffmpeg-images.ts @@ -46,7 +46,7 @@ export class FFmpegImage { this.commandWrapper.buildCommand(fromPath) .seekInput(duration / 2) - .videoFilter('thumbnail=500') + .videoFilter('thumbnail=50') .outputOption('-frames:v 1') .output(output)