html-to-video-pipeline

html-to-video-pipeline is a skill for Claude Code, Codex from evoelsewhere/evoflux. It costs 100 tokens per session (4,173 once invoked), scanned B, original, Apache-2.0.

A guide for building or debugging a pipeline that turns an HTML page into a video file using a headless browser and ffmpeg, a tool for encoding and processing video. It addresses frame timing, loading, animation capture, scene joining, trimming, and encoding.

In plain words
What is it for?
Use it to render animated HTML scenes into MP4 files, record in real time, combine scenes, and debug timing or asset-loading problems.
Why use it?
It helps prevent exported videos with flashing fallback fonts, frozen opening frames, missing animation time, incorrect duration, or blurry scaling. The workflow makes capture start only after the page is ready.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to render animated HTML scenes into MP4 files, record in real time, combine scenes, and debug timing or asset-loading problems.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/evoelsewhere/evoflux/html-to-video-pipeline
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add evoelsewhere/evoflux --skill html-to-video-pipeline
Clone the repo
git clone --depth 1 https://github.com/evoelsewhere/evoflux

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for html-to-video-pipeline

README.md
[![agentmods](https://agentmods.dev/badge/skills/evoelsewhere/evoflux/html-to-video-pipeline/github.svg)](https://agentmods.dev/skills/evoelsewhere/evoflux/html-to-video-pipeline)
Your own site
<a href="https://agentmods.dev/skills/evoelsewhere/evoflux/html-to-video-pipeline"><img src="https://agentmods.dev/badge/skills/evoelsewhere/evoflux/html-to-video-pipeline/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for html-to-video-pipeline

Your own site · 80×15
<a href="https://agentmods.dev/skills/evoelsewhere/evoflux/html-to-video-pipeline"><img src="https://agentmods.dev/badge/skills/evoelsewhere/evoflux/html-to-video-pipeline.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 100 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,173 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00100 $0.04173
Opus 5 $0.00050 $0.02086
Sonnet 5 $0.00020 $0.00835
Haiku 4.5 $0.00010 $0.00417

Measured 4d ago against content hash b5eaf0daeed6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade B, and why

html-to-video-pipeline scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

sudo apt-get update && sudo apt-get install -y ffmpeg
app/agent/builtin_skills/html-to-video-pipeline/SKILL.md · 237 lines

How it starts

The opening of the file, as written. The whole thing — 237 lines — stays where its author put it; the contents beside it link to each section on GitHub.

HTML → Video: the pipeline that actually works

Turning a live HTML page into an MP4 sounds like a one-liner ("Playwright records, ffmpeg encodes") and the first draft always looks fine — until you play back the export and notice text flashing in a fallback font, three dead seconds at the start, or a "10-second" clip that clocks in at 35s. This skill captures the specific ordering, waits, and encoder flags that make the output trustworthy.

Think of the pipeline as five phases with a single invariant between them:

launch  →  hold @ frame 0  →  align capture start with animation start  →  record  →  trim & encode

The invariant: no pixel of the animation should render before capture is ready, AND capture must not start before every asset that affects layout has loaded. Every gotcha below is a violation of that invariant.

Quick checklist (each item is expanded below):

  1. viewport must exactly equal recordVideo.size — mismatch silently rescales the output soft/blurry.
  2. Freeze CSS animations via addInitScript before goto().
  3. goto with domcontentloaded, never load.
  4. Pre-inline data-composition-src sub-scenes — file:// blocks client-side fetch.
  5. Font wait = stylesheet <link> load → face.load() per face → fonts.ready → 2 rAFs.
  6. Probe duration with infinite-iteration / repeat: -1 guards.
  7. Unfreeze = t=0; trim leadInMs − 120ms with -ss before -i.
  8. Concat: same engine → demuxer -c copy; mixed engines → concat filter + re-encode.
  9. Verify with ffprobe duration + full decode + sampled frames. Always.

There are two capture modes, and picking the wrong one wastes a day:

  • Mode A — real-time recordVideo (the phases below). Simple, wall-clock = clip length. But the screencast is best-effort variable frame rate (~25fps) and competes with the animation for CPU. Good enough for previews and ≤30fps deliverables on an idle machine.
  • Mode B — deterministic frame stepping (pause everything, seek to i / fps, screenshot, encode the PNG sequence). Exact fps, every frame rendered, no lead-in trim, immune to machine load. Required when the output must be genuinely smooth ≥30fps or renders run on loaded CI. See "Deterministic frame stepping" below.

Read the full file on GitHub · 237 lines

Files

What ships with it

9 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 237 lines · 100 tokens per session scan B b5eaf0daeed6

Subscribe to this mod's changes

html-to-video-pipeline is a skill published in the GitHub repository evoelsewhere/evoflux (7 stars, last pushed yesterday), licensed Apache-2.0. It adds 100 tokens to every session and 4,173 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-06.

Related

Other skills, from other repositories

feature-demo-recording

Record a demo video of a web feature from a real browser. Two modes -- a NARRATED film where measured voiceover drives the timeline (designed slides, subtitles, punch-in camera, rendered from an HTML timeline), and a SILENT evidence clip for a PR or a QA pass. Use when the user asks to record a video, demo, or screen…

kirodotdev/KiroCrew · 90 tokens

playwright-recording

Record browser interactions as video using Playwright. Use for capturing demo videos, app walkthroughs, and UI flows for Remotion videos. Triggers include recording a demo, capturing browser video, screen recording a website, or creating walkthrough footage.

calesthio/OpenMontage · 53 tokens

website-to-video

Capture a general website/URL and turn it into a HyperFrames video (site tour, showcase, or social clip from the site's own visuals). Uses headless Chrome screenshots + brand assets. Use when intent is general — portfolio/blog/landing-page showcase or social clip from the site. NOT for: product/SaaS launch or promo (→…

calesthio/OpenMontage · 154 tokens

michel-ui-demo-recorder

Record polished UI demo videos and screenshots of a running web app using Playwright MCP — for client deliverables, release notes, feature walkthroughs, or bug repros. Produces an HD WebM video with chapter markers, a mandatory animated cursor overlay, and a mandatory subtitle bar that narrates each step (positioned…

PackmindHub/packmind · 192 tokens

control-chrome

Control the user's Chrome browser for tasks that depend on existing Chrome state: tabs, logged-in sessions, or extensions. Prefer purpose-built connectors, APIs, or CLIs when available.

rojim666/SztuCode · 40 tokens

cue

Writing and producing product videos: scripts, storyboards, narration, and reproducible Playwright demo recordings. Use for explainers, onboarding, feature walkthroughs, multi-aspect exports, captions, and video quality checks.

simota/agent-skills · 46 tokens