javascript – How to cleanup data to reuse ffmpeg.wasm instance
I have multiple files that I am trying to process back to back using ffmpeg.wasm. I have noticed that after around ~150 runs, a memory issue comes up: RuntimeError: memory access out of bounds. I tried doing cleanup using ffmpeg.deleteFile() on both the input and output files after every run, but that didn’t make a difference. Is there something I am missing that will allow me to reuse the ffmpeg instance as many times as I want?
If I can avoid it, I do not want to have to call ffmpeg.terminate() after each use since loading ffmpeg for the next use takes a long time (~.5 secs on my test machine).
Note: I am using the updated ffmpeg.wasm v0.12+ in a browser setting
Read more here: Source link
