Skip to content

Safari on ios crashes when trying to operate with big files #851

@MartinCepulionis

Description

@MartinCepulionis

I'm trying to extract audio from video file to minimize the size of sent file over network. Everything works fine on laptop (chrome, safari) but it's either stuck or crashes on mobile safari. AFAIK it crashes not while executing the command, but while trying to load the initial bigger (500MB+) file await ffmpeg.writeFile(inputFileName, await fetchFile(file));

This is how I load ffmpeg:

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

How can I work around this limitation?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions