ffmpeg.wasm
ffmpeg.wasm copied to clipboard
load error
When the code runs to:
await ffmpeg.load({
coreURL: await toBlobURL(`${baseURL}/ffmpeg-core.js`, 'text/javascript'),
wasmURL: await toBlobURL(`${baseURL}/ffmpeg-core.wasm`, 'application/wasm'),
});
an error occurs:
814.ffmpeg.js:1 Uncaught SyntaxError: Unexpected token '<' (at 814.ffmpeg.js:1:1)
config: tsdx+react+typescript "@ffmpeg/ffmpeg": "^0.12.10", "@ffmpeg/util": "^0.12.1", const baseURL = 'https://unpkg.com/@ffmpeg/[email protected]/dist/esm';
I'm getting this same issue - it's expecting 814.ffmpeg.js to be available in the build, but it's not. I'm using Parcel, and can work around it by manually coping 814.ffmpeg.js into my build, but that's not a solution
@LeoMsky you can follow the example from my repo : https://github.com/pavloshargan/quicksplit/blob/main/static/js/ffmpeg.js