Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MartinBarker opened this issue May 9, 2022 · 2 comments

Comments

@MartinBarker
Copy link

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

@Rits1272
Copy link

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

@MartinBarker
Copy link
Author

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 <script> tag src on the page.

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 MartinBarker changed the title RR_BLOCKED_BY_RESPONSE Error: ffmpeg.wasm is not ready, make sure you have completed load(). May 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants