Skip to content
Skills Library
Marketing & content · Conversion & formats

html2mp4

/html2mp4

Render an HTML/Canvas/SVG animation to MP4, GIF or stills frame by frame, using the installed Chrome or Edge and ffmpeg. Use when the user wants a video, GIF, launch film, title card or motion graphic made in code.

Repository
html2mp4 ↗
Licence
MIT
Last repository change
29.10.2026

Assessment and security

90/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 29.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Render an HTML/Canvas/SVG animation to MP4, GIF or stills frame by frame, using the installed Chrome or Edge and ffmpeg. Use when the user wants a video, GIF, launch film, title card or motion graphic made in code.

Original author description

Render an HTML/Canvas/SVG animation to MP4, GIF or stills frame by frame, using the installed Chrome or Edge and ffmpeg. Use when the user wants a video, GIF, launch film, title card or motion graphic made in code.

How it works

  1. When to use
  2. How
Original SKILL.md headings · 20 lines, 196 words
SKILL.md preview
---
name: html2mp4
description: Render an HTML/Canvas/SVG animation to MP4, GIF or stills frame by frame, using the installed Chrome or Edge and ffmpeg. Use when the user wants a video, GIF, launch film, title card or motion graphic made in code.
---

# html2mp4

Turns a page that draws its frames from a time `t` into a video. No npm install.

## When to use
- The user asks for a video, GIF, animated title, motion graphic or "make it move".
- You wrote an HTML animation and need an MP4/GIF file or a few stills to show the user.

## How
1. Write the page so it draws the whole frame from `t` alone (no `Date.now()`, no `Math.random()` in the draw). Use ONE contract:
   - `window.DURATION = <s>; window.renderFrame = t => {...}; window.__ready = true;`
   - or `<div data-composition-id="main" data-duration="4" data-width="1280" data-height="720">` plus `window.__timelines = { main: <anything with seek(t)> }`.
2. Check stills first (cheap): `node html2mp4.mjs page.html --still 0.2,1,2.5 -o stills/x`, then look at the JPEGs.
3. Render: `node html2mp4.mjs page.html -o out.mp4` (or `-o out.gif`). Options: `--fps 30`, `--duration 6`, `--width 1080 --height 1920`.
4. Report the output path, frame count and size printed by the command.

Requirements: Node 22+, ffmpeg on PATH (or `FFMPEG_EXE`), Chrome/Edge/Chromium (or `CHROME_EXE`).
If the command says "page never became ready", the page did not set `__ready` or `__timelines`; if it prints "page errors", fix the page script.

Versions

The database has no other skills named html2mp4.

Database snapshot: 13.11.2026 · package version 062bed4f86b0 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 95html-to-video
    Render deterministic HTML/SVG/Canvas animations to video by capturing headless Chrome frame-by-frame over CDP and encoding with ffmpeg. Use when building motion graphics, explainer videos, kinetic typography, slide-style animations, or any timeline-driven web animation that must…
  • 90html-video
    Turn a text brief into a rendered MP4 video by writing one deterministic HTML animation and capturing it frame by frame on the user's own machine with Playwright and FFmpeg. Use when the user asks for an explainer video, kinetic typography, an animated announcement, a data…
  • 100og-image-animated
    Turn a project's Open Graph share card into a few-second web animation — the brand mark and title drop in from the top, then the real app rises from the bottom and settles into the final card. Builds a playable web route in the project's stack and records it frame by frame into…
  • 100animation-capture
    把会动的东西按固定时间一帧一帧录下来,做成左右对比的 GIF 或逐帧对照图,给人验收、对比改动前后、放进说明或 PR:网页的 CSS 过渡和动画、element.animate()、requestAnimationFrame 写的 JS 动画、canvas 游戏、three.js / VRM 角色、PixiJS / Live2D 角色都适用。附脚本:record.mjs(无头 Chrome +…
  • 100launch-video
    Make a short, premium brand intro or launch video (10-60 s) entirely in code, in the style of current AI product launch films (Claude, Raycast, Lovable, ElevenLabs, Linear). HTML/canvas scenes driven by a deterministic render(t), captured frame by frame with headless Chrome, cut…
  • 95launch-video
    Plan and build a product launch video in code. Define the project, pick the right kind of video for it, write the story and beat map, build the animation as an HTML page driven by seek(t), render it to MP4 with Playwright and ffmpeg, cut it to music and sound effects, and check…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.