aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/ffmpeg-utils.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/helpers/ffmpeg-utils.ts')
-rw-r--r--server/helpers/ffmpeg-utils.ts4
1 files changed, 2 insertions, 2 deletions
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 = {
56// --------------------------------------------------------------------------- 56// ---------------------------------------------------------------------------
57 57
58function convertWebPToJPG (path: string, destination: string): Promise<void> { 58function convertWebPToJPG (path: string, destination: string): Promise<void> {
59 const command = ffmpeg(path) 59 const command = ffmpeg(path, { niceness: FFMPEG_NICE.THUMBNAIL })
60 .output(destination) 60 .output(destination)
61 61
62 return runCommand(command) 62 return runCommand(command)
@@ -67,7 +67,7 @@ function processGIF (
67 destination: string, 67 destination: string,
68 newSize: { width: number, height: number } 68 newSize: { width: number, height: number }
69): Promise<void> { 69): Promise<void> {
70 const command = ffmpeg(path) 70 const command = ffmpeg(path, { niceness: FFMPEG_NICE.THUMBNAIL })
71 .fps(20) 71 .fps(20)
72 .size(`${newSize.width}x${newSize.height}`) 72 .size(`${newSize.width}x${newSize.height}`)
73 .output(destination) 73 .output(destination)