Im noticing framerate hitches in the resulting video when recording to .webm via the VideoRecorder API. Is there a way to make the video recorder frame-rate independent (eg: recording one frame at a time ) so the video is smooth and does not rely on the framerate?
I realize rendering frame by frame is one option then using ffmpeg but this seems to require lots lots of space and additional plumbing via FFMPEG… wondering if there is a more straight forward way to control the VideoRecorder frame-by-frame?
if you want the best quality and smooth framerate I would export as a png sequence and convert to mp4 using something like ffmpeg . For me, i ended up creating a babylon native backend service that does this. IMO probably best to do this on your backend.
you can add one png at a time via ffmpeg. So on each render step you feed it one image at a time and then finally output a movie when all frames are processed.