This video is one HTML file: making video with Claude Fable 5.2
How a 29-second vertical video went from an HTML file to an MP4 with Claude Fable 5.2 and HyperFrames, and the review step I never skip.
I made a 29-second vertical video this week without a camera or a video editor. The source is one HTML file. Claude Fable 5.2 wrote it, and HyperFrames rendered it to MP4.
This post covers how that works, where it fits, and the one step I do not skip.
The tool
HyperFrames is an open-source project from HeyGen that turns HTML, CSS and seekable animation into a deterministic MP4. When I checked the repository on 10 November 2026 it was licensed Apache-2.0 and the latest release was v0.9.28.
A composition is a normal web page. The root element declares the video:
<div id="stage" data-duration="29" data-fps="30"
data-width="1080" data-height="1920">
<!-- scenes, type, motion -->
</div>
Motion is a paused GSAP timeline. The renderer seeks that timeline frame by frame, so the same file gives the same video every time.
What the model does
I describe the video: six scenes, the text of each one, the brand colours, the safe zones for Instagram. Fable 5.2 writes the HTML, the CSS and the timeline.
Then the checks run. hyperframes check reports layout, contrast and motion problems. On the first pass it told me that frame 0 showed only the background. Frame 0 is the thumbnail on social players, so the title now sits on screen from the first frame.
The draft render took about 25 seconds on my laptop.
The step I never skip
A render can pass every automated check and still look wrong. So every render goes on a contact sheet:
ffmpeg -i out.mp4 -vf "fps=1/2,tile=4x4" sheet.png
That puts one frame every two seconds on a single image. I read every tile. On this video the sheet showed the type was too small for a phone, which no check had flagged. I enlarged it and rendered again.
The model writes the frames. I still own what ships.
Where code-made video fits
Code is good at type, interface mock-ups, numbers and diagrams. It is exact, it is cheap to change, and one source can produce a 16:9 and a 9:16 cut.
It is the wrong tool for people and real places. Generated or filmed footage does that better, and the two can be combined in the same composition.
One failure mode is worth knowing. A post on X this week pointed out that some “pure code” videos hide a pre-made MP4 inside the HTML. If a demo matters to you, open the source.
A note on licences
Remotion, the React-based alternative, uses a custom licence. It is free for individuals and for companies with up to three employees, and larger companies need a paid licence. HyperFrames is Apache-2.0. Read the licence before you build a pipeline on either.
Sources
- HyperFrames repository, read 10 November 2026: https://github.com/heygen-com/hyperframes
- Remotion licence, read 10 November 2026: https://raw.githubusercontent.com/remotion-dev/remotion/main/LICENSE.md
- Post on hidden MP4s in “pure code” videos (opinion): https://x.com/evals_ag/status/2117899071562367058
Written by Brandon Ta
I'm a builder and writer in Ho Chi Minh City and the founder of Brandon Ta Labs. What I make, what I write and how I work.
Comments
Join the conversation: share your thoughts, ask questions, or talk with other readers below.