ffmpegwasm / ffmpeg.wasm

FFmpeg for browser, powered by WebAssembly
https://ffmpegwasm.netlify.app
MIT License
14.23k stars 834 forks source link

Speed? #326

Open Dan203 opened 2 years ago

Dan203 commented 2 years ago

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?

timgrossmann commented 2 years ago

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

diegoddox commented 10 months ago

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