Add @ffmpeg-installer/ffmpeg

This commit is contained in:
René Preuß
2023-03-03 15:06:41 +01:00
parent 036f20ac63
commit 2644c30bf2
2 changed files with 5 additions and 1 deletions

View File

@@ -42,6 +42,9 @@ export class Encoder {
async encode(): Promise<void> {
this.listeners.onStart(this.id)
const ffmpegPath = require('@ffmpeg-installer/ffmpeg').path;
ffmpeg.setFfmpegPath(ffmpegPath)
ffmpeg(this.input)
.outputOptions(this.getOutputOptions())
.output(this.output)