alfg/ffprobe-wasm

Main thread blocking while fetching the frames

Closed this issue · 2 comments

When trying to fetch the frames, the main thread locks up, this happens for any file format and can be blocking for a few seconds depending on the frames.

alfg commented

Yeah, fetching the frames can be expensive in the browser. I can check into emscripten's asyncify or pthread proxy. I'll look into this soon.

alfg commented

I moved the Wasm module calls to a Web Worker so it doesn't block the browser main thread. File loading is much faster now too using Emscripten's workerfs.

https://alfg.github.io/ffprobe-wasm/ is updated with latest build.

#7