Skip to content
Back to skills

Html Video

ASecurity

Renders an HTML/CSS/JS template to MP4 via Playwright. NOT for mk:preview.

  • 17 stars
  • 0 votes
  • 1 copy
  • 52 views
  • Added September 6, 2026
ai-agentsjavascriptgojavabashnode

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned November 24, 2026

npx -y skills add ngocsangyem/MeowKit --skill html-video --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Html Video?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Html Video
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ngocsangyem-html-video/badge)](https://www.skillsdirectory.com/skills/ngocsangyem-html-video)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: mk:html-video
description: "Renders an HTML/CSS/JS template to MP4 via Playwright. NOT for mk:preview."
keywords:
  - html-to-video
  - mp4-export
  - animation-render
  - css-animation
  - playwright-capture
  - ffmpeg-encode
  - frame-capture
  - html-canvas
when_to_use: "Export a web animation to MP4."
user-invocable: true
owner: utility
criticality: low
status: active
runtime: claude-code
requires_external_service: ["playwright", "ffmpeg"]
default_enabled: false
allowed-tools:
  - Bash
  - Read
  - Write
---

# HTML → MP4 Render Pipeline

Render a local HTML/CSS/JS animation to MP4 with Playwright frame capture and ffmpeg encoding.

## Route by Intent

- **Check dependencies or choose dimensions/fps:** load [render workflow](references/render-workflow.md).
- **Implement deterministic JavaScript, canvas, WebGL, or GSAP animation stepping:** load [template contract](references/html-template-contract.md).
- **Capture frames directly:** execute `node ${CLAUDE_SKILL_DIR}/scripts/capture-frames.mjs <html-file> <frame-dir> <fps> <duration-seconds> <width> <height> [background-color]`.
- **Render a complete MP4:** execute `bash ${CLAUDE_SKILL_DIR}/scripts/render-html-to-mp4.sh <html-file> <output.mp4> [fps] [duration-seconds] [width] [height] [background-color]`.
- **Resolve module, `file://`, codec, cleanup, or dimension failures:** load [troubleshooting](references/troubleshooting.md).

## Quick Start

```bash
bash ${CLAUDE_SKILL_DIR}/scripts/render-html-to-mp4.sh template.html output.mp4 30 5 1920 1080
```

The final optional argument supplies a background colour. The script captures `fps × duration` PNG frames, encodes H.264 MP4 with `yuv420p`, cleans its temporary frame directory, and prints the output path.

## Delivery

1. Verify `ffmpeg` and Playwright before rendering; install Chromium only when missing and only with user approval.
2. Use an even viewport width and height.
3. Prefer a `window.onFrame` hook for fast deterministic animation; otherwise capture runs at real time.
4. Verify the MP4 with the `ffprobe` command in [render workflow](references/render-workflow.md).

## Gotchas

- This is a skill, not an npm package: execute its bundled scripts directly.
- Do not use it for live browser recording or screen recording. For AI video generation use `mk:multimodal`.
- After two failed renders, stop and report the error text and the troubleshooting entry you tried; do not loop.
- See [troubleshooting](references/troubleshooting.md) for cleanup and file-origin limitations.

Files in this skill

  • SKILL.md2.9 KB
  • references/html-template-contract.md791 B
  • references/render-workflow.md1.3 KB
  • references/troubleshooting.md1 KB
  • scripts/capture-frames.mjs1.7 KB
  • scripts/render-html-to-mp4.sh622 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.