Reputation: 633
I know there is a way to make screenshots, using many available APIs, such as Puppeteer
https://github.com/GoogleChrome/puppeteer
but what about recording videos? my goal is to capture a CSS animation into an mp4 file.
Or am i doing it all wrong, are there better tools for that on the server side?
Upvotes: 19
Views: 13102
Reputation: 827
For recording video with audio, try puppeteer-stream
:
https://github.com/Flam3rboy/puppeteer-stream
Upvotes: 2
Reputation: 1652
https://www.npmjs.com/package/puppeteer-recorder
Something like this can work, it takes lots of screenshots and stitches them together
Upvotes: 1