ffmpegwasm / ffmpeg.wasm

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

CompileError: WebAssembly.Module doesn't parse at byte 3: can't get Function local's type in group 0, in function at index 9 #633

Closed EbanShen closed 7 months ago

EbanShen commented 7 months ago

Describe the bug safari15 cannot load ffmpeg-core.wasm,but safari17 can.

To Reproduce

  1. Compile ffmpeg-wasm-0.12.7 to generate ffmpeg-core.js and ffmpeg-core.wasm
  2. Open safari and access the test web page. When ffmpeg.load is run, this exception is raised

Expected behavior safari15 will load the latest version of ffmpeg-core.wasm, or let me know the minimum version of safari supported (if any).

Screenshots

Desktop (please complete the following information):

EbanShen commented 7 months ago

Resolved, remove the simd option. Simd is supported by safari since 16.4, before this version only need to remove the simd compilation option, you can normal load.

ogapradana commented 6 months ago

i got same eror like this, can you please explain how to remove this simd option ?

tini2n commented 5 months ago

@EbanShen same question)

xna00 commented 1 month ago
  1. git checkout v0.12.7
  2. Remove the flag -msimd128 in Makefile
  3. make prd