I have one big question: HOW TO RECORD A HTML5 ANIMATION TO VIDEO without human interaction? We're looking for a open/source or even proprietary solution.
The use-case:
We want to start a project where we will create Html5 animations. The animations will be a short technical presentation (2-5 Minutes) that will include all kind of animations: lines, charts, areas. It will have also an audio track.
To generate the animations we'll use different JS libraries:
We need to be able to record this animation and save it as a mp4 video or equivalent.
The big question is: HOW TO DO IT?
I see 2 options:
Based on my research the FPS is almost impossible to control. I've ran a few tests, the results are not very good. Greensock timeline could help but we need to have flexibility with the JS libraries we use.
This would be awesome if we can automate it.
Thanks in advance!
References used in my research
I have created/found a solution to this problem. As some people already mentioned xvfb is the answer and yes it is.
I've created a docker container, which is running with xvfb, google chrome and ffmpeg, nodejs pre-installed.
I use nodejs and chrome-remote-interface to communicate with the browser.
Practically I execute the following steps:
I can't publish the whole code unfortunately due to license issues, but I can paste parts of it.
If anyone has questions, let me know.