react-app icon indicating copy to clipboard operation
react-app copied to clipboard

Error: ffmpeg.wasm is not ready, make sure you have completed load().

Open MartinBarker opened this issue 3 years ago • 2 comments

hello, I am trying to use this repo on my windows 10 machine, run yarn start with no error, but when I begin to access the website and click the button to begin, I get this error in the console:

[info] download ffmpeg-core script (~25 MB) from https://unpkg.com/@ffmpeg/[email protected]/dist/ffmpeg-core.js
getCreateFFmpegCore.js:22          GET https://unpkg.com/@ffmpeg/[email protected]/dist/ffmpeg-core.js net::ERR_BLOCKED_BY_RESPONSE.NotSameOriginAfterDefaultedToSameOriginByCoep 200

image

MartinBarker avatar May 09 '22 20:05 MartinBarker

I guess downloading the ffmpeg-core file locally and using it on port 3000 would solve your problem

Rits1272 avatar May 13 '22 11:05 Rits1272

I guess downloading the ffmpeg-core file locally and using it on port 3000 would solve your problem

I was able to solve the issue by manually downloading http and setting it to be the

But now it leads to a new error:

[info] run FS.writeFile test.avi <289280 bytes binary file>
createFFmpeg.js:7 Uncaught (in promise) Error: ffmpeg.wasm is not ready, make sure you have completed load().
    at Object../node_modules/@ffmpeg/ffmpeg/src/createFFmpeg.js (createFFmpeg.js:7:1)
    at __webpack_require__ (bootstrap:784:1)
    at fn (bootstrap:150:1)
    at Object../node_modules/@ffmpeg/ffmpeg/src/index.js (index.js:2:1)
    at __webpack_require__ (bootstrap:784:1)
    at fn (bootstrap:150:1)
    at Module../src/App.js (App.css?4433:45:1)
    at __webpack_require__ (bootstrap:784:1)
    at fn (bootstrap:150:1)
    at Module../src/index.js (index.css?f3f6:45:1)
    at __webpack_require__ (bootstrap:784:1)
    at fn (bootstrap:150:1)
    at Object.1 (serviceWorker.js:141:1)
    at __webpack_require__ (bootstrap:784:1)
    at checkDeferredModules (bootstrap:45:1)
    at Array.webpackJsonpCallback [as push] (bootstrap:32:1)
    at main.chunk.js:1:71

MartinBarker avatar May 14 '22 08:05 MartinBarker