ffmpegwasm / ffmpegwasm/ffmpeg.wasm
Electron can't load with ERR_WORKER_PATH
- Dominant language
- C
- Stars
- 17.8k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
I am using ffmpeg.wasm can't work in Electron. But the same code can work in the browser.
var ffmpeg = FFmpeg.createFFmpeg({
log: false,
corePath:
'https://cdn.jsdelivr.net/npm/@ffmpeg/core-wasm@0.7.1/ffmpeg-core.js',
})
ffmpeg.load()
Get error:
Uncaught TypeError [ERR_WORKER_PATH]: The worker script filename must be an absolute path or a relative path starting with './' or '../'. Received "blob:http://localhost:8080/75cc239b-a29d-445d-9aac-6bb8e3e76388"
at new Worker (internal/worker.js:79)
at Object.allocateUnusedWorker (ffmpeg-core.js:1)
at Object.initMainThreadBlock (ffmpeg-core.js:1)
at ffmpeg-core.js:1
Contributor guide
Assessment
This issue has not been assessed yet.