18

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?

Mikhail Novikov
  • 623
  • 2
  • 9
  • 23
  • Why aren't you just using a regular screen recording software? – Tim Gerhard Jan 15 '18 at 10:59
  • 1
    It has to work on a backend, as part of a backend application (video editor, as part of 'render' function). The generated video will then be consumed by ffmpeg and become part of a rendered output video. – Mikhail Novikov Jan 15 '18 at 11:00

2 Answers2

1

https://www.npmjs.com/package/puppeteer-recorder

Something like this can work, it takes lots of screenshots and stitches them together

Luke Robertson
  • 1,592
  • 16
  • 21
1

For recording video with audio, try puppeteer-stream:

https://github.com/Flam3rboy/puppeteer-stream

Mike Sallese
  • 827
  • 1
  • 10
  • 24