ffmpeg.wasm icon indicating copy to clipboard operation
ffmpeg.wasm copied to clipboard

Speed?

Open Dan203 opened this issue 3 years ago • 2 comments

I tried using the sample page to convert a 4 minute 720p MPEG-2 file to x264. It ran at about 40fps and my CPU hovered around 35-40%. If I use the CLI version of ffmpeg to convert the same file I get over 500fps and the CPU is at 100%.

Is this just a limitation of WASM? Or is there a way to force it to use more CPU for faster encodes?

Dan203 avatar Feb 15 '22 23:02 Dan203

@Dan203 I have the exact same doubt... It is extremely slow. Like "not even usable" slow.

timgrossmann avatar May 03 '22 09:05 timgrossmann

Same here when running the same ffmpeg command on the CLI I have a transcoding spped=10x and when running on the browser I get speed=0.6x, and I'm using ffmpeg-core.worker.js

diegoddox avatar Dec 05 '23 15:12 diegoddox