html2mp4
/html2mp4
Renderuje animację HTML, Canvas lub SVG do MP4, GIF lub klatek, klatka po klatce, przy użyciu Chrome i ffmpeg.
- Autor
- Dodai0419 ↗
- Repozytorium
- html2mp4 ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 29.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 29.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Renderuje animację HTML, Canvas lub SVG do MP4, GIF lub klatek, klatka po klatce, przy użyciu Chrome i ffmpeg.
Oryginalny opis (EN)
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.
Jak działa
- When to use
- How
Podgląd SKILL.md
---
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.
Wersje
W bazie nie ma innych skilli o nazwie html2mp4.
Migawka bazy z 13.11.2026 · wersja paczki 062bed4f86b0 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 95html-to-video
Renderuje animacje HTML, SVG i Canvas do wideo: przechwytuje klatki z headless Chrome przez CDP i koduje je ffmpegiem do MP4 lub GIF. - 90html-video
Zamienia krótki opis w film MP4, pisząc animację w HTML i nagrywając ją klatka po klatce przez Playwright i FFmpeg. - 100og-image-animated
Zamienia kartę Open Graph w krótką animację webową, która jest nagrywana klatka po klatce do MP4 i GIF oraz do PNG. - 100animation-capture
Nagrywa animację strony lub gry klatka po klatce przy stałym czasie i składa porównawczy GIF przed i po zmianie. - 100launch-video
Tworzy krótki film intro lub premierowy o długości 10 do 60 sekund w kodzie, renderowany klatka po klatce w headless Chrome. - 95launch-video
Planuje i buduje film o premierze produktu w kodzie: scenariusz, mapę ujęć, animację w HTML, render do MP4 przez Playwright i ffmpeg oraz kontrolę klatek.