I am getting this: RuntimeError: abort(TypeError: Failed to parse URL from /Users/name/git/ffmpegtestproject/node_modules/@ffmpeg/core/dist/ffmpeg-core.wasm
.
My package.json looks like this:
"dependencies": {
"@ffmpeg/core": "^0.11.0",
"@ffmpeg/ffmpeg": "^0.11.6",
"express": "^4.18.2",
"multer": "^1.4.5-lts.1"
},
My node-file looks like this:
const express = require("express");
const path = require('path')
const { dirname } = path;
const multer = require("multer");
const { createFFmpeg } = require("@ffmpeg/ffmpeg");
const app = express();
const upload = multer({ storage: multer.memoryStorage() })
const ffmpegInstance = createFFmpeg({ log: true })
let ffmpegLoading = ffmpegInstance.load()
async function getFfmpeg() {
if (ffmpegLoading) {
await ffmpegLoading;
ffmpegLoading = undefined
}
return ffmpegInstance
}
Crashes immediately when running node index.js
, with the error provided above.
I can see the wasm-binary in that directory, so not sure what the issue could be. This is in Nodejs, running version v18.12.0