ffmpegwasm / ffmpeg.wasm

FFmpeg for browser, powered by WebAssembly
https://ffmpegwasm.netlify.app
MIT License
13.45k stars 772 forks source link

load error #740

Open LeoMsky opened 2 months ago

LeoMsky commented 2 months ago

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/core@0.12.6/dist/esm';