ffmpeg.wasm icon indicating copy to clipboard operation
ffmpeg.wasm copied to clipboard

Oops, something went wrong in FS operation.

Open touchsky2018 opened this issue 4 years ago • 6 comments

@ffmpeg/ffmpeg 0.9.8 @ffmpeg/core 0.8.5

the following error happened when run in chrome browser. can anyone give some help.

-------source------ let ffmpeg = FFmpeg.createFFmpeg({ corePath: './ffmpeg-core.js', log: true }); await ffmpeg.load(); var videobr = [0,1,1,1,0]; ffmpeg.FS('writeFile', 'test.v', new Uint8Array(videobr, 0, videobr.byteLength));

--------log----------

log.js:15 [info] use ffmpeg.wasm v0.9.8 log.js:15 [info] load ffmpeg-core log.js:15 [info] loading ffmpeg-core log.js:15 [info] fetch http://localhost:8090/pubutils/ffmpeg-core.js log.js:15 [info] http://localhost:8090/pubutils/ffmpeg-core.js file size = 105830 bytes log.js:15 [info] http://localhost:8090/pubutils/ffmpeg-core.js blob URL = blob:http://localhost:8090/b971590d-29e1-4894-80db-505abe1a5bd1 log.js:15 [info] fetch http://localhost:8090/pubutils/ffmpeg-core.wasm log.js:15 [info] http://localhost:8090/pubutils/ffmpeg-core.wasm file size = 23557464 bytes log.js:15 [info] http://localhost:8090/pubutils/ffmpeg-core.wasm blob URL = blob:http://localhost:8090/69a76927-b3bd-40c6-bf87-cd46a9d26c36 log.js:15 [info] fetch http://localhost:8090/pubutils/ffmpeg-core.worker.js log.js:15 [info] http://localhost:8090/pubutils/ffmpeg-core.worker.js file size = 3609 bytes log.js:15 [info] http://localhost:8090/pubutils/ffmpeg-core.worker.js blob URL = blob:http://localhost:8090/546436fc-98c6-440d-8213-9c7d2e634788 log.js:15 [info] ffmpeg-core.js script loaded log.js:15 [info] ffmpeg-core loaded log.js:15 [info] run FS.writeFile test.v <5 bytes binary file> createFFmpeg.js:167 Uncaught (in promise) Error: Oops, something went wrong in FS operation. at Object._ [as FS] (createFFmpeg.js:167) at ....

touchsky2018 avatar Nov 19 '21 00:11 touchsky2018

@jeromewu can you give some help?

touchsky2018 avatar Nov 24 '21 06:11 touchsky2018

@touchsky2018 were you able to solve this? I have encountered the same issue.

kanekv avatar Oct 23 '22 23:10 kanekv

I am also facing this issue right now.

ibakurov avatar Jan 20 '23 00:01 ibakurov

I also faced same problem. Anyone have solution for this?

sharmaayush12 avatar Jun 01 '23 12:06 sharmaayush12

Having same issue. Is there any solution????

dalpat49 avatar Jun 28 '23 10:06 dalpat49

I didn't properly wait for the file to be fetched.

        //did not work
        ffmpeg.FS('writeFile','input.mp3', audio_file);
        //did work
        ffmpeg.FS('writeFile','input.mp3', await fetchFile(audio_file));
        

niljub avatar Sep 13 '23 20:09 niljub