Here is a short overview of the process that Videobrew uses to render your video:
-
Videobrew opens the video app you provide in a headless (invisible) browser. (using Playwright)
-
It will ask the video app for setup specifications (
width
,height
,framerate
, totalframeCount
). -
After setup Videobrew starts rendering frames by calling a
tick
method on your video app with the current frame number. -
Your video app should draw that frame and return.
-
Videobrew will take a screenshot (
width
xheight
) of the page and save it as a frame. -
It checks
frameCount
to see if all frames have been rendered. Then it will stitch all frames together into a video at the providedframerate
. (using FFmpeg)