I am using FFMPEG WASM in my react project. I have multiple videos that I'm looping over and using the await ffmpeg.run() function to apply modifications to.
But in the loop, when one iteration ends, it starts the next iteration even before ffmpeg.run() has stopped working and it throws this error Unhandled
Rejection (Error): ffmpeg.wasm can only run one command at a time
How can I fix this error? I am using async await but they don't seem to fix