ffmpegwasm / ffmpeg.wasm

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

[cause]: TypeError [ERR_INVALID_URL]: Invalid URL #497

Open danielBourke opened 1 year ago

danielBourke commented 1 year ago

ffmpeg is failing to load in node 18

[cause]: TypeError [ERR_INVALID_URL]: Invalid URL

const getFFmpeg = async () => {
  const ffmpeg = createFFmpeg({
    log: true,
  });
  await ffmpeg.load();
  return ffmpeg;
};
adriaandotcom commented 8 months ago

According to their docs Node.js support has been dropped from ffmpeg.wasm since v0.12.

You can use v0.11.6 with node 16 or use something like:

These packages are mainly wrappers around ffmpeg, so they might work fine without updates.