From a4a8cd39712c59119ad0be5cd584b158f06c5852 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 27 Jan 2021 09:09:59 +0100 Subject: Add missing niceness to ffmpeg thumbnail processes --- server/helpers/ffmpeg-utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/helpers') diff --git a/server/helpers/ffmpeg-utils.ts b/server/helpers/ffmpeg-utils.ts index a4d02908d..f85b9f316 100644 --- a/server/helpers/ffmpeg-utils.ts +++ b/server/helpers/ffmpeg-utils.ts @@ -56,7 +56,7 @@ export type AvailableEncoders = { // --------------------------------------------------------------------------- function convertWebPToJPG (path: string, destination: string): Promise { - const command = ffmpeg(path) + const command = ffmpeg(path, { niceness: FFMPEG_NICE.THUMBNAIL }) .output(destination) return runCommand(command) @@ -67,7 +67,7 @@ function processGIF ( destination: string, newSize: { width: number, height: number } ): Promise { - const command = ffmpeg(path) + const command = ffmpeg(path, { niceness: FFMPEG_NICE.THUMBNAIL }) .fps(20) .size(`${newSize.width}x${newSize.height}`) .output(destination) -- cgit v1.2.3