How to record videos with Puppeteer

This page summarizes the projects mentioned and recommended in the original post on dev.to

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • Tailwind CSS

    A utility-first CSS framework for rapid UI development.

  • 'use strict'; const puppeteer = require('puppeteer'); const { PuppeteerScreenRecorder } = require('puppeteer-screen-recorder'); const util = require('util'); const exec = util.promisify(require('child_process').exec); (async () => { const browser = await puppeteer.launch(); try { const page = await browser.newPage(); await page.setViewport({ width: 1920, height: 1080, deviceScaleFactor: 2 }); const recorder = new PuppeteerScreenRecorder(page); await page.goto('https://tailwindcss.com/'); await recorder.start('video.mp4'); await page.evaluate(() => { window.scrollBy({ top: 500, left: 0, behavior: 'smooth' }); }); await recorder.stop(); await exec("ffmpeg -i video.mp4 -qscale 0 animated.gif"); } catch (e) { console.log(e) } finally { await browser.close(); } })();

  • FFmpeg

    Mirror of https://git.ffmpeg.org/ffmpeg.git

  • If you need to generate GIF (an image format, not video) for animated screenshots, you can use the FFmpeg library to convert MP4 to GIF. Make sure it is installed locally. And then you can upgrade your script to generate GIFs on demand:

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Show HN: CompressX, my FFmpeg wrapper for macOS, made $9k in the last 4 months

    3 projects | news.ycombinator.com | 10 Apr 2024
  • FFmpeg 7.0 Released

    11 projects | news.ycombinator.com | 4 Apr 2024
  • Microsoft offered FFmpeg one-time payment instead of support contract

    1 project | news.ycombinator.com | 2 Apr 2024
  • Looking for a good file converter for upload testing

    1 project | /r/softwaretesting | 7 Dec 2023
  • Trying to get 3 Momentum cams I got from Walmart several years ago to work with the Homebridge Camera Ffmpeg plugin. Any help?

    1 project | /r/homebridge | 4 Dec 2023