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

load error

Open LeoMsky opened this issue 1 year ago • 2 comments

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';

LeoMsky avatar Apr 25 '24 12:04 LeoMsky

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

dabarrell avatar Oct 05 '24 09:10 dabarrell

@LeoMsky you can follow the example from my repo : https://github.com/pavloshargan/quicksplit/blob/main/static/js/ffmpeg.js

pavloshargan avatar Feb 03 '25 01:02 pavloshargan