mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-03 17:59:37 +02:00
Add missing niceness to ffmpeg thumbnail processes
This commit is contained in:
parent
5d84d717b2
commit
a4a8cd3971
2 changed files with 4 additions and 4 deletions
|
@ -56,7 +56,7 @@ export type AvailableEncoders = {
|
|||
// ---------------------------------------------------------------------------
|
||||
|
||||
function convertWebPToJPG (path: string, destination: string): Promise<void> {
|
||||
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<void> {
|
||||
const command = ffmpeg(path)
|
||||
const command = ffmpeg(path, { niceness: FFMPEG_NICE.THUMBNAIL })
|
||||
.fps(20)
|
||||
.size(`${newSize.width}x${newSize.height}`)
|
||||
.output(destination)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue