Get your API key

Lesson 1 of 5

Videos from code: how it works and what it costs

How an agent turns web pages into an MP4, when code beats a video editor, and HyperFrames vs Remotion (including licences).

7 min Free
One step at a time, like flipping pages.

By the end of this lesson you will know how an AI agent turns code into a real MP4, when that beats a normal video editor, and which tool (HyperFrames or Remotion) fits you, licence included.

You need: nothing installed yet, only curiosity and 7 minutes · Time: 7 minutes

  1. Tools like HyperFrames (made by HeyGen) and Remotion make videos out of web pages. You don't write that code. An AI coding agent (Claude Code, Codex, OpenCode…) writes it from your brief, and you watch, judge and ask for changes.

    Here is what happens behind the scenes:

    1. The agent writes the video as ordinary web files: text, colours, images and animation.
    2. A preview opens in your browser, so you can watch it like a video.
    3. When you approve it, the tool renders it: a hidden Chrome browser takes a picture of every frame (30 pictures per second), and FFmpeg (a free program that builds video files) joins those pictures and the sound into one MP4.
    Six boxes in a loop: you write a brief, the AI agent writes the video as web files, you watch the preview, Chrome photographs every frame, FFmpeg joins frames and sound, and the result is final.mp4
    You write the brief and judge the preview. The agent and the render do the rest.
    Why?

    Because the video is code, the same files always give the same video. You can change one word, re-render, and nothing else moves. That is very hard in a normal editor.