scenejs-render
scenejs-render copied to clipboard
FFMPEG.WASM is not capable for handling high/moderate-memory workloads
When you try to render videos, with high bitrate/framerate etc, than you might get an error that starts with "Pthread aborting at Error". Like this: https://github.com/ffmpegwasm/ffmpeg.wasm/issues/78
This error did not occur with the previous ffmpeg implementation that this library used.
I get it for example, when I try to render the videos in 4k, 1440p, 1080p, etc, usually within seconds of it entering the rendering phase.
At the moment I am having to use the old implementation of this library, as it can handle this without issues.
It might be nice to have an option to configure whether or not you want to use ffmpeg.wasm or ffmpeg for your rendering pipeline.
thanks. After using ffmpeg/wasm, I figured out that the rendering speed is dropping. I will add it in the next version so that you can use the ffmpeg binary as before.
@scenejs/render 0.15.0 is released.
Added the ffmpegPath option again.
Just enter the binary file path.
root
- index.html
- ffmpeg
$ render -i index.html --ffmpegPath ./ffmpeg