ffmpegwasm / ffmpegwasm/ffmpeg.wasm

Module.instantiateWasm callback failed with error: out of memory

Đang mở
#111 6 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
C
Star
17.8k
Fork
1.1k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

**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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.