In short.
HTML-to-Video Pipeline is an assistant skill for developers building web-animation exports, but some supplied helpers can start playback too early or underestimate clip length. Its useful detail includes font preparation, recording resolution, frame stepping and joining scenes from different renderers. Static inspection identifies gaps in duration calculation, playback coordination and font-success detection. The evaluation file contains expected answers, with no execution results establishing rendering reliability or visual quality.
Researched and written by an AI model and checked by a second AI model. How it works
Covers packages/cli/src/skill/builtin/.bundle/html-to-video-pipeline at revision c34db3645db4ffdf7f2b29a788bd76d9ec3be531: SKILL.md, evals/evals.json, references/duration-probe.md, references/ffmpeg-cheatsheet.md, references/font-wait.md, references/frame-stepping.md, references/multi-composition.md and the local LICENSE, together with the repository-root LICENSE. The rest of MiMo-Code, external dependencies and third-party media assets are outside this scope. No code was executed, no video was rendered and no evaluation was run. Runtime behavior, performance and output quality remain unverified.
The overview
identity
The resource is the html-to-video-pipeline skill bundled inside XiaomiMiMo/MiMo-Code. Its SKILL.md defines when an assistant should use the guidance; five reference documents supply focused implementation snippets, and evals/evals.json supplies example requests and expected answers.
The original source folder at the supplied revision is [https://github.com/XiaomiMiMo/MiMo-Code/tree/c34db3645db4ffdf7f2b29a788bd76d9ec3be531/packages/cli/src/skill/builtin/.bundle/html-to-video-pipeline]. The selected files provide instructions and code fragments for building a renderer.
assessment
The strongest material addresses export failures that can survive a successful file write: fonts changing mid-video, missing opening animation, blurry recordings, choppy motion and incorrect concatenated duration. It explains why previewing a page or producing a playable MP4 is insufficient evidence of a correct export.
It is useful implementation guidance for someone willing to inspect and adapt the snippets. The supplied code has coordination and duration-calculation gaps described below, so claims of a reliable pipeline are not established by the documentation alone. No rendered examples or execution results are supplied.
users
The clearest audience is developers building export features for HTML design tools, animated title cards or multi-scene web compositions. It also fits developers debugging existing Playwright and FFmpeg pipelines.
Beginners receive installation commands and explanations of common symptoms, but implementation still assumes JavaScript, browser automation and command-line familiarity. Experienced developers get details about animation clocks, font readiness, presentation timestamps and GSAP callbacks. A host-specific skill installation procedure is not supplied.
capabilities
The skill describes two capture approaches. Real-time recording uses Playwright recordVideo and converts its WebM output to MP4. Frame stepping advances seekable animations to successive timestamps, saves PNG screenshots and encodes the image sequence.
Additional recipes cover stylesheet and font waits, matching viewport and recording dimensions, estimating animation length, trimming preparation time, holding the final frame for explicit scene lengths, and inlining local sub-scenes. Concatenation guidance distinguishes compatible streams suitable for copying from sources that need re-encoding. Verification recipes inspect duration, decode the output and extract opening frames.
Using it
requirements
The examples assume a Node.js environment, Playwright with installed Chromium binaries, and system-installed ffmpeg and ffprobe available on PATH. The encoding commands require an FFmpeg build supporting libx264 and the filters used. Linux containers may also need Chromium system dependencies.
GSAP is relevant only to templates using GSAP timelines. ImageMagick is optional for a rough blank-frame check. Puppeteer is discussed as an alternative, but its recording integration requires additional work through the Chrome DevTools Protocol. Minimum dependency versions, hardware requirements and a compatibility matrix are not provided.
mechanism
The central idea is to prepare the page while motion is paused. The real-time recipe injects a CSS animation pause before navigation, loads the document, waits for stylesheet requests and font faces, allows layout to settle, and then releases playback. It measures the preparation interval so FFmpeg can remove the recorded lead-in.
Frame stepping keeps animations paused and sets their time to i divided by the requested frame rate before each screenshot. This avoids depending on wall-clock playback for seekable motion. The documentation warns that increasing FFmpeg's output frame rate cannot restore motion frames missing from a real-time recording.
setup
Obtain the skill folder from the original source, retaining SKILL.md, its references, evaluation file and licence notice. The relative reference paths make the complete folder more useful than SKILL.md alone. Registration with a particular assistant host is not documented in these files.
The documented runtime setup installs Playwright, installs its Chromium browser, and installs FFmpeg through the operating system. Suggested readiness checks include launching Chromium and checking that ffmpeg and ffprobe are available. Developers must assemble the snippets into their own renderer, including configuration, file handling and capture coordination.
example
For an illustrative 10-second, 1920×1080 title card at 60fps using seekable CSS or GSAP motion, the documented frame-stepping approach would prepare fonts, pause motion, advance time in 1/60-second increments and save 600 PNGs. FFmpeg would then encode that sequence with input -framerate 60. This describes a configuration, not a completed render.
The evaluation file includes a related scenario involving choppy 60fps exports in a container. Its expected answer recommends frame stepping and checking that viewport and recording dimensions match. A page that creates scenes through timers needs additional clock handling.
Assessment & evidence
limitations
Static inspection shows that the CSS duration probe adds duration and delay without multiplying by a finite iteration count. The GSAP probe compares child totalDuration values without adding their timeline start offsets. These calculations can underestimate repeated CSS animations or delayed GSAP content; the helper does not establish a general natural-duration calculation.
The composition player schedules automatic playback after 250ms unless window.__played is set. The shown snippets do not set that flag. This creates a possible early start or later restart during export preparation, conflicting with the intended control of playback around font readiness and capture.
The font helper tolerates stylesheet errors, font-load failures and timeouts, then continues. Completion therefore does not establish that the intended fonts loaded. Its nominal eight-second cap is a fallback, not a font-success check.
Frame stepping cannot directly control embedded video, timer-created scenes or requestAnimationFrame-driven physics. The documentation also warns about animations created after capture begins and callbacks triggered by backward seeking.
The sample concat filter produces video without audio and shows no dimension-normalization step. The composition player removes external script elements from mounted scenes. Audio handling, differently sized segments and scene-specific external dependencies require additional integration.
reasoning
Separating asset preparation from animation time is a useful design principle: font and layout work can finish before the opening motion is captured. Distinguishing real-time recording from seeking individual frames also makes the smoothness tradeoff explicit.
The resource's practical value comes from explaining these failure mechanisms and pairing them with concrete code. Its limits come from incomplete coordination between helpers and assumptions about how templates express time. Suitability depends on whether the developer can control the template's animation clocks and verify the exported result.
alternatives
For projects already controlling animation through Remotion or Motion Canvas, the skill suggests using the framework's own frame-rendering API. For existing Puppeteer projects, it discusses implementing capture through the Chrome DevTools Protocol.
Interactive session capture is another distinct case: the source recommends explicit start and stop signals instead of animation-duration probing. Timer-driven pages may need real-time recording or an advanced virtual clock. The supplied material does not establish comparative performance or reliability across these approaches.
evidence
The available material comprises SKILL.md, five implementation references, one evaluation JSON file and two licence notices. The four evaluation scenarios cover font swapping, mixed-source concatenation, building a renderer and choppy or blurry capture.
Each evaluation provides a prompt and expected answer. None supplies a recorded response, score, execution log or output artifact. No exported MP4, full-decode receipt or inspected frame is supplied. The snippets support analysis of intended behavior and visible code gaps; runtime correctness, rendering speed and visual quality remain unassessed.
Access & freshness
costs
The supplied licences grant software permissions without licence fees. No assistant subscription price, model usage price, hosting rate or measured cost per export is provided.
Rendering still uses browser and encoder compute. Frame stepping also stores a PNG sequence and can take longer than real-time capture. Actual throughput, storage consumption and operating cost are unknown; the timing figures in the documentation are estimates without accompanying benchmark results.
rights
The skill folder contains an Apache License 2.0 notice. It permits use, modification and redistribution subject to its conditions, including providing the licence, identifying modified files and retaining applicable attribution notices. If a NOTICE file applies, its attribution requirements also matter. The licence includes a contributor patent grant with termination conditions and does not grant general trademark rights.
The repository root separately carries an MIT licence naming MiMo Code/Xiaomi Corporation and opencode. MIT requires retention of its copyright and permission notices in copies or substantial portions. Preserve both supplied notices with the relevant material. These software notices do not establish rights to third-party fonts, images, music or other assets used in a rendered video. Both licences disclaim warranties.
freshness
The supplied files are pinned to source revision c34db3645db4ffdf7f2b29a788bd76d9ec3be531, captured on 2026-11-17 at 06:25:06.627 UTC. These findings apply to that snapshot.
The instructions do not pin Node.js, Playwright, Chromium, GSAP or FFmpeg versions. Compatibility with particular releases and changes after this snapshot are unknown.
actions
Before adopting the snippets, choose capture mode according to how the template expresses motion. Coordinate or remove the composition player's automatic playback fallback, validate actual font availability after waiting, and extend duration handling for finite CSS repeats and delayed timelines.
For an initial export, use a template with a known duration and recognizable opening and final states. Compare its FFprobe duration with the intended length, perform a full FFmpeg decode, and inspect exported opening and ending frames. Check fonts using a fresh headless browser session. Add audio handling and segment normalization if the project needs them. These checks are recommended next steps; no results are supplied.
