mirror of
https://github.com/bitinflow/rerun-encoder.git
synced 2026-11-01 05:09:23 +00:00
Add @ffmpeg-installer/ffmpeg
This commit is contained in:
1 parent
036f20ac63
commit
2644c30bf2
2 files changed
+5
-1
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user