ffmpegwasm / ffmpegwasm/ffmpeg.wasm

Electron can't load with ERR_WORKER_PATH

未关闭
#85 13 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
C
星标
17.8k
派生
1.1k
PR 合并指标
30 天内没有已合并 PR

描述

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

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。