HeadlinesBriefing favicon HeadlinesBriefing.com

UPenn's Web-to-Video Tool Turns URLs into Scrolling MP4s

Hacker News •
×

UPenn released an open-source tool that converts any webpage into a smooth-scrolling MP4 video. The tool, called web-scroll-video, runs URLs in headless Chrome, captures screenshots at fixed scroll positions, and pipes them through ffmpeg to produce H.264 video. Default output is 1920x1080 at 30 fps, with support for custom resolutions up to 4K and frame rates up to 60 fps.

The tool works as a skill for OpenAI's Codex or as a standalone Node.js CLI. Users can specify viewport dimensions, frame rate, scroll speed, and total duration. For complex videos, cue sheets support pauses, clicks, typing, zooms, and text highlights. A sample cue sheet scrolls to specific elements, clicks navigation links, types into search fields, and adds visual highlights. Dependencies include Node.js 22+, Chrome or Chromium, and ffmpeg — no npm packages required for basic use.

One-shot mode scrolls through pages at deterministic positions for steady playback, while cue-sheet mode captures timed interactions so page animations continue during pauses. The tool writes error reports and screenshots if actions like clicks or text searches fail. This is useful for documentation, product demos, and automated visual testing of web pages.