aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-01-27 09:09:59 +0100
committerChocobozzz <me@florianbigard.com>2021-01-27 09:09:59 +0100
commita4a8cd39712c59119ad0be5cd584b158f06c5852 (patch)
tree9633e393153e1b5d0bde6d5b56f3410acea969f9 /server/helpers
parent5d84d717b246e7f6bed998481c817dc29e5c4948 (diff)
downloadPeerTube-a4a8cd39712c59119ad0be5cd584b158f06c5852.tar.gz
PeerTube-a4a8cd39712c59119ad0be5cd584b158f06c5852.tar.zst
PeerTube-a4a8cd39712c59119ad0be5cd584b158f06c5852.zip
Add missing niceness to ffmpeg thumbnail processes
Diffstat (limited to 'server/helpers')
-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)