ffmpegwasm / ffmpegwasm/ffmpeg.wasm

Memory leak

Đang mở
#494 8 bình luận 1 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**
After encoding a video with ffmpeg.run(), the memory allocation increases but will never be released. Even with ffmpeg.exit() nothing changes (I stored the .png files in the virtual FS and then I've removed them after the video encoding was done).

**To Reproduce**
Encode a video using images stored in virtual file system. I've used the command:

`ffmpeg.run('-framerate', '60', '-i', 'input%d.png', '-crf', '18', '-c:v', 'libx264', '-pix_fmt', 'yuv420p', 'output.mp4');`

You can watch the memory grow in the Task Manager over and over, never going back significantly. I've also tried running the garbage collector from Chrome, but it doesn't change anything.

**Expected behavior**
The memory must be released at the end of the encoding.

**Desktop (please complete the following information):**
- OS: Windows 10 Pro
- Browser: Chrome
- Version: 113

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.