ffmpegwasm / ffmpeg.wasm

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

0.12.1 - Where is ffmpeg-core.worker.js file #524

Closed iongion closed 1 year ago

iongion commented 1 year ago

Is your feature request related to a problem? Please describe.

Describe the solution you'd like Guide to obtain this file

Describe alternatives you've considered Revert to 0.11.x

JanMisker commented 1 year ago

I used this, notice esm instead of umd

      const baseURL = "https://unpkg.com/@ffmpeg/core@0.12.1/dist/esm";
      await ffmpeg.current.load({
        coreURL: await toBlobURL(
          `${baseURL}/ffmpeg-core.js`,
          "text/javascript"
        ),
        wasmURL: await toBlobURL(
          `${baseURL}/ffmpeg-core.wasm`,
          "application/wasm"
        ),
      });

where toBlobURL is imported from @ffmpeg/util.

jeromewu commented 1 year ago

ffmpeg-core.worker.js is in another package called @ffmpeg/core-mt. You can find it here: https://unpkg.com/@ffmpeg/core-mt@0.12.1/dist/umd/ffmpeg-core.worker.js