ffmpegwasm / ffmpegwasm/ffmpeg.wasm

Module.instantiateWasm callback failed with error: out of memory

未关闭
#111 6 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
C
星标
17.8k
派生
1.1k
PR 合并指标
30 天内没有已合并 PR

描述

**Describe the bug**
Getting out of memory issue with small files (893 Kb).

**To Reproduce**

`data` below is a video-only `Blob` from a webcam.

```javascript
async convert(data) {
const { createFFmpeg, fetchFile } = FFmpeg;
const ffmpeg = createFFmpeg({
corePath: this.convertWorkerURL,
log: this.debug
});
const name = "foo";

// load and convert blob
await ffmpeg.load();
ffmpeg.FS('writeFile', name, await fetchFile(data));
await ffmpeg.run('-i', name, 'output.mp4');
const output = ffmpeg.FS('readFile', 'output.mp4');

// create new blob
let result = new Blob([output.buffer], { type: 'video/mp4' })
}
```

**Screenshots**

Process and error in screenshot below:

![Screenshot from 2020-11-14 23-17-28](https://user-images.githubusercontent.com/305679/99158105-9a13b280-26cf-11eb-8789-c60dd4af2386.png)

**Desktop (please complete the following information):**
- OS: Ubuntu 20
- Browser: Firefox
- Version 82

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。