I tried including both @ffmpeg/ffmpeg and @ffmpeg/ffmpeg in the external modules, removing both of them and still no dice for whatever reason - I tried to use the include option in the toml file but I am not sure if I am doing that right.
We looked into your netlify.toml file and didn’t see @ffmpeg/core defined in external_node_modules. Could you try adding core to external_node_modules and let us know if that works?
Interesting. I’m not seeing this error. I just cloned your repo, deployed it and checked the URL of the function. I got this error:
6:02:29 PM: 2021-10-21T12:32:29.832Z undefined INFO [info] use ffmpeg.wasm v0.10.1
6:02:29 PM: 8571d6dc INFO [info] load ffmpeg-core
6:02:29 PM: 8571d6dc INFO [info] loading ffmpeg-core
6:02:29 PM: 8571d6dc INFO [info] fetch ffmpeg.wasm-core script from @ffmpeg/core
6:02:29 PM: 8571d6dc INFO [fferr] requested a shared WebAssembly.Memory but the returned buffer is not a SharedArrayBuffer, indicating that while the browser has SharedArrayBuffer it does not have WebAssembly threads support - you may need to set a flag
6:02:29 PM: 8571d6dc INFO (on node you may need: --experimental-wasm-threads --experimental-wasm-bulk-memory and also use a recent version)
6:02:29 PM: 8571d6dc INFO Error: bad memory
at /var/task/node_modules/@ffmpeg/core/dist/ffmpeg-core.js:23:1
at Object.load (/var/task/node_modules/@ffmpeg/ffmpeg/src/createFFmpeg.js:64:20)
at async load (/var/task/functions/ffmpeg-background.js:49:3)
at async Runtime.handler (/var/task/functions/ffmpeg-background.js:34:5)
6:02:29 PM: 8571d6dc Duration: 50.00 ms Memory Usage: 64 MB Init Duration: 205.20 ms