mirror of
https://github.com/bitinflow/rerun-encoder.git
synced 2026-03-13 13:46:00 +00:00
Add @ffmpeg-installer/ffmpeg
This commit is contained in:
@@ -42,6 +42,9 @@ export class Encoder {
|
|||||||
async encode(): Promise<void> {
|
async encode(): Promise<void> {
|
||||||
this.listeners.onStart(this.id)
|
this.listeners.onStart(this.id)
|
||||||
|
|
||||||
|
const ffmpegPath = require('@ffmpeg-installer/ffmpeg').path;
|
||||||
|
ffmpeg.setFfmpegPath(ffmpegPath)
|
||||||
|
|
||||||
ffmpeg(this.input)
|
ffmpeg(this.input)
|
||||||
.outputOptions(this.getOutputOptions())
|
.outputOptions(this.getOutputOptions())
|
||||||
.output(this.output)
|
.output(this.output)
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"name": "rerun-encoder",
|
"name": "rerun-encoder",
|
||||||
"private": true,
|
"private": true,
|
||||||
"productName": "Rerun Encoder",
|
"productName": "Rerun Encoder",
|
||||||
"version": "1.0.1",
|
"version": "1.0.2",
|
||||||
"description": "Official Rerun Encoder App for Rerun Manager",
|
"description": "Official Rerun Encoder App for Rerun Manager",
|
||||||
"main": "dist-electron/main/index.js",
|
"main": "dist-electron/main/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@@ -57,6 +57,7 @@
|
|||||||
"vue-tsc": "^1.1.7"
|
"vue-tsc": "^1.1.7"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@ffmpeg-installer/ffmpeg": "^1.1.0",
|
||||||
"@koa/cors": "^4.0.0",
|
"@koa/cors": "^4.0.0",
|
||||||
"axios": "^1.3.4",
|
"axios": "^1.3.4",
|
||||||
"cors": "^2.8.5",
|
"cors": "^2.8.5",
|
||||||
|
|||||||
Reference in New Issue
Block a user