Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/clipisode/puppeteer-recorder
Record animations using puppeteer. Based on electron-recorder.
https://github.com/clipisode/puppeteer-recorder
chrome ffmpeg nodejs puppeteer video
Last synced: 13 days ago
JSON representation
Record animations using puppeteer. Based on electron-recorder.
- Host: GitHub
- URL: https://github.com/clipisode/puppeteer-recorder
- Owner: clipisode
- License: mit
- Created: 2017-08-17T16:08:36.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-11-24T13:53:36.000Z (almost 5 years ago)
- Last Synced: 2024-08-31T05:43:18.582Z (2 months ago)
- Topics: chrome, ffmpeg, nodejs, puppeteer, video
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/puppeteer-recorder
- Size: 34.2 KB
- Stars: 215
- Watchers: 10
- Forks: 23
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# puppeteer-recorder
Record frame-by-frame animations using puppeteer. Based on electron-recorder.# Usage
```javascript
const { record } = require('puppeteer-recorder');await record({
browser: null, // Optional: a puppeteer Browser instance,
page: null, // Optional: a puppeteer Page instance,
output: 'output.webm',
fps: 60,
frames: 60 * 5, // 5 seconds at 60 fps
prepare: function (browser, page) { /* executed before first capture */ },
render: function (browser, page, frame) { /* executed before each capture */ }
});
```