Skip to content

Commit

Permalink
Add @ffmpeg-installer/ffmpeg
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostzero committed Mar 3, 2023
1 parent 036f20a commit 2644c30
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions electron/rerun-manager/encoder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "rerun-encoder",
"private": true,
"productName": "Rerun Encoder",
"version": "1.0.1",
"version": "1.0.2",
"description": "Official Rerun Encoder App for Rerun Manager",
"main": "dist-electron/main/index.js",
"scripts": {
Expand Down Expand Up @@ -57,6 +57,7 @@
"vue-tsc": "^1.1.7"
},
"dependencies": {
"@ffmpeg-installer/ffmpeg": "^1.1.0",
"@koa/cors": "^4.0.0",
"axios": "^1.3.4",
"cors": "^2.8.5",
Expand Down

0 comments on commit 2644c30

Please sign in to comment.