ffmpegwasm / ffmpegwasm/ffmpeg.wasm

How to decode a big video use ffmpeg.wasm to render use canvas?

Đang mở
#465 3 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ả

When using ffmpeg in c language for decoding, the decoder will read a few frames and decode them according to the decoding timestamp. Therefore, it will not load a lot of frame data at one time, and the memory usage is very small. But wasm cannot access local files, so it must be used Buffer transfers video resources to wasm. What if the video file is very large? What is the maximum memory that ffmpeg.wasm supports to transfer?

I see this in README
What is the maximum size of input file?
2 GB, which is a hard limit in WebAssembly. Might become 4 GB in the future.

2GB refers to the compressed data of the video, like h264 data size? which needs to be read into the memory all at once through js, and then sent to wasm?

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.