diff options
author | Chocobozzz <me@florianbigard.com> | 2023-08-28 17:50:47 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-08-28 17:50:47 +0200 |
commit | d8a80446da8b8b00938b4928ed0ef874822d2553 (patch) | |
tree | eb7ca080134bb2a6b2fd9841c668910c22932505 /packages | |
parent | 6b44f0b03c359373062b0ade2607e2d7bae27fbb (diff) | |
download | PeerTube-d8a80446da8b8b00938b4928ed0ef874822d2553.tar.gz PeerTube-d8a80446da8b8b00938b4928ed0ef874822d2553.tar.zst PeerTube-d8a80446da8b8b00938b4928ed0ef874822d2553.zip |
Reduce ffmpeg thumbnail generation load
Can also lead to memory issues with big values (default is 100)
Diffstat (limited to 'packages')
-rw-r--r-- | packages/ffmpeg/src/ffmpeg-images.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/ffmpeg/src/ffmpeg-images.ts b/packages/ffmpeg/src/ffmpeg-images.ts index 4cd37aa80..5f7b10345 100644 --- a/packages/ffmpeg/src/ffmpeg-images.ts +++ b/packages/ffmpeg/src/ffmpeg-images.ts | |||
@@ -46,7 +46,7 @@ export class FFmpegImage { | |||
46 | 46 | ||
47 | this.commandWrapper.buildCommand(fromPath) | 47 | this.commandWrapper.buildCommand(fromPath) |
48 | .seekInput(duration / 2) | 48 | .seekInput(duration / 2) |
49 | .videoFilter('thumbnail=500') | 49 | .videoFilter('thumbnail=50') |
50 | .outputOption('-frames:v 1') | 50 | .outputOption('-frames:v 1') |
51 | .output(output) | 51 | .output(output) |
52 | 52 | ||