Reduce ffmpeg thumbnail generation load

Can also lead to memory issues with big values (default is 100)
This commit is contained in:
Chocobozzz 2023-08-28 17:50:47 +02:00
parent 6b44f0b03c
commit d8a80446da
No known key found for this signature in database
GPG Key ID: 583A612D890159BE

View File

@ -46,7 +46,7 @@ export class FFmpegImage {
this.commandWrapper.buildCommand(fromPath) this.commandWrapper.buildCommand(fromPath)
.seekInput(duration / 2) .seekInput(duration / 2)
.videoFilter('thumbnail=500') .videoFilter('thumbnail=50')
.outputOption('-frames:v 1') .outputOption('-frames:v 1')
.output(output) .output(output)