<!-- PkgPulse AI-readable guide source -->
<!-- Canonical: https://www.pkgpulse.com/guides/hyperframes-vs-remotion -->
<!-- Raw Markdown: https://www.pkgpulse.com/guides/hyperframes-vs-remotion/raw.md -->
<!-- Source path: content/guides/hyperframes-vs-remotion.mdx -->

---
title: "HyperFrames vs Remotion for Template-Driven Video"
description: "Compare HyperFrames and Remotion for template-driven video. See how the same captioned short handles JSON inputs, MP4 export, and self-hosted CI setup."
date: "2026-12-04"
author: "PkgPulse Team"
tags: ["programmatic video", "video templates"]
tileSubjects:
  - slug: hyperframes
    name: HyperFrames
  - slug: remotion-video
    name: Remotion
---

<!-- content-block--verdict -->

Choose HyperFrames when the template belongs in HTML and CSS and each render swaps values in a fixed design. Choose Remotion when the layout already lives in React or when components need the current frame to decide what to draw. Both exported the same captioned dispatch card from two JSON inputs. If you already ship with either tool, keep it unless your next template exposes a gap in input validation, component reuse, or runner setup.

## Quick decision

| Check | HyperFrames | Remotion |
| --- | --- | --- |
| Where the template lives | An HTML composition declares dimensions, timed media, and the animation timeline. | A React composition registers dimensions, frame rate, and duration. Components draw from props and the current frame. |
| What changes per export | `--variables-file` supplies values for declared variables. `--strict-variables` rejects mismatched types and undeclared keys. | `--props` supplies a JSON object that overrides default props. Validate the data before queuing the render. |
| How captions were timed | A paused GSAP timeline toggled the caption elements at specific times. | The component drew the active caption when the frame fell inside its cue interval. |
| What the runner needs | A supported Node.js version, Chrome Headless Shell, FFmpeg, and FFprobe. | A compatible Node.js and Linux environment, Chrome Headless Shell and its shared libraries, and Remotion's packaged compositor. |
| What the fixture exported | MP4 with H.264 video, AAC narration, and captions drawn into the picture. | MP4 with H.264 video, AAC narration, and captions drawn into the picture. |

## The same captioned short in both tools

The fixture is a weekly dispatch card for a fictional warehouse. It draws a title, an order count, and a bar that grows to the count's share of a fixed target. Both versions use the same locally generated grid image, CSS, font family, and synthetic narration. The narration was prepared ahead of time and the captions use hand-authored cues. Changing the warehouse updates the title, count, and bar color while the narration and caption timings stay fixed.

The test used HyperFrames `0.10.15` and Remotion `4.0.548` on Linux x64 with Node.js `26.13.0`, with the Remotion CLI and media package pinned to the same version. Each video track ran for four seconds at 30 fps on a 540 × 960 canvas. [HyperFrames release](https://github.com/heygen-com/hyperframes/releases/tag/v0.10.15), [Remotion release](https://github.com/remotion-dev/remotion/releases/tag/v4.0.548).

This is the second input file, `inputs/south.json`. The north input sets the title to “North warehouse,” the count to 72, and the accent to mint.

```json
{
  "title": "South warehouse",
  "value": 41,
  "accent": "#FFC46B"
}
```

### HyperFrames reads declared HTML variables

The `html` element declares the name, type, and default of each field with `data-composition-variables`. The script reads the resolved object from `window.__hyperframes.getVariables()`. It writes the title and count with `textContent`, sets the fill color, and animates the bar on a paused timeline registered under the composition ID. An HTML audio element carries the WAV on its own track. [HyperFrames variables](https://hyperframes.heygen.com/concepts/variables), [HyperFrames CLI reference](https://hyperframes.heygen.com/packages/cli).

These are the render arguments from the test. Run them from the fixture root after installing the pinned dependencies and setting the renderer paths. The project directory contains `index.html`, the local GSAP script, and the media.

```bash
./node_modules/.bin/hyperframes render hyperframes --variables-file=inputs/south.json \
  --strict-variables --strict --workers=1 --no-browser-gpu --fps=30 \
  --output=outputs/hyperframes-south.mp4
```

A negative control supplied the count as a JSON string. With `--strict-variables`, the command rejected the value and produced no MP4. Add job-level validation for business rules such as the permitted count range and the longest title that fits your design.

### Remotion draws from props and the current frame

The registered `Dispatch` composition has default props with the same fields as the JSON file. In the component, `useCurrentFrame()` gives the frame index. The component interpolates the bar's scale and renders the caption only while the index falls inside its cue. `staticFile()` locates the bundled image and WAV, and `Audio` from `@remotion/media` adds the narration. [Passing props](https://www.remotion.dev/docs/passing-props), [Current frame](https://www.remotion.dev/docs/use-current-frame), [Audio component](https://www.remotion.dev/docs/media/audio).

The CLI command selects the composition by ID. The fixture passed the same Headless Shell executable to both tools to keep the browser constant.

```bash
./node_modules/.bin/remotion render remotion.tsx Dispatch outputs/remotion-south.mp4 \
  --props=inputs/south.json --codec=h264 --audio-codec=aac --concurrency=1 \
  --browser-executable="$CHROME_BIN"
```

### What the MP4s contained

FFprobe counted 120 decoded video frames in each export and found an AAC audio stream. In both tools, switching the JSON changed the warehouse name, count, bar width, and accent. Decoded frames showed “Orders shipped.” on frames 6 through 55 and “Review the weekly total.” on frames 66 through 115, with a blank caption region between cues. The decoded audio matched the source narration in both cue windows. These captions are part of the picture. Deliver a separate subtitle file if viewers need to toggle or translate them.

The test covers a fixed portrait layout and MP4 export on a local Linux runner. It leaves transcription, alternate codecs, alpha export, containers, managed rendering, and throughput unmeasured.

## Set up the self-hosted runner

For HyperFrames, install Node.js 22.19 or later for this release and provide FFmpeg and FFprobe. Prime the browser in the runner image with `hyperframes browser ensure`, or set `PRODUCER_HEADLESS_SHELL_PATH` to the approved executable. The test pointed `HYPERFRAMES_FFMPEG_PATH` and `HYPERFRAMES_FFPROBE_PATH` at a separately provisioned pair of binaries. [Pinned HyperFrames producer requirements](https://github.com/heygen-com/hyperframes/tree/v0.10.15/packages/producer#readme).

For Remotion, install matching package versions and provision Chrome Headless Shell and its Linux shared libraries. The official container guide uses Debian and installs the browser while building the image. Remotion supplies its own encoding components for this path. A separate FFprobe binary is useful for checking the output from either tool. [Remotion browser setup](https://www.remotion.dev/docs/cli/browser), [Remotion Docker guide](https://www.remotion.dev/docs/docker).

The HyperFrames CLI uses the Apache License 2.0. Remotion's Free License covers individuals, qualifying nonprofits, for-profit organizations with up to three people in total, and anyone evaluating Remotion before commercial use. If you qualify, you can automate renders locally or in the cloud. Organizations outside those categories need a Company License. An automated render in self-hosted CI falls under the usage-based Automators option. Manual video production falls under the seat-based Creators option. [HyperFrames license](https://github.com/heygen-com/hyperframes/blob/v0.10.15/LICENSE), [pinned Remotion license](https://github.com/remotion-dev/remotion/blob/v4.0.548/LICENSE.md), [Remotion license FAQ](https://www.remotion.dev/docs/license/faq).

Pin the runner image, browser, dependencies, fonts, and local media. Stage each job's input and artifacts separately. Start with one worker or one rendering tab, then size concurrency with your own templates and resource limits. Gate publishing on a decode check for dimensions, frame count, and audio, plus frames around caption boundaries. Include the longest expected title and a missing asset in CI so you can catch a clipped or incomplete render before upload.

## Related guides

- [Remotion vs Motion Canvas vs Revideo](/guides/remotion-vs-motion-canvas-vs-revideo-programmatic-video-2026) compares React and canvas-based composition models.
- [Fluent FFmpeg vs ffmpeg-wasm vs node-video-lib](/guides/fluent-ffmpeg-vs-ffmpeg-wasm-vs-node-video-lib-video-2026) covers processing the rendered file.
- [Mux vs Cloudflare Stream vs Bunny Stream](/guides/mux-vs-cloudflare-stream-vs-bunny-stream-video-cdn-2026) covers hosting and playback after export.

<!-- pipeline:claim choose-template-model -->
<!-- pipeline:claim release-pins -->
<!-- pipeline:claim fixture-settings -->
<!-- pipeline:claim hf-input-contract -->
<!-- pipeline:claim rm-input-contract -->
<!-- pipeline:claim decoded-results -->
<!-- pipeline:claim hf-ci -->
<!-- pipeline:claim rm-ci -->
<!-- pipeline:claim self-hosted-license -->
<!-- pipeline:claim ci-smoke-check -->
<!-- pipeline:source local-export -->
<!-- pipeline:source hf-registry -->
<!-- pipeline:source hf-release -->
<!-- pipeline:source hf-variables -->
<!-- pipeline:source hf-cli -->
<!-- pipeline:source hf-runner -->
<!-- pipeline:source hf-license -->
<!-- pipeline:source rm-registry -->
<!-- pipeline:source rm-release -->
<!-- pipeline:source rm-props -->
<!-- pipeline:source rm-render -->
<!-- pipeline:source rm-frame -->
<!-- pipeline:source rm-audio -->
<!-- pipeline:source rm-browser -->
<!-- pipeline:source rm-docker -->
<!-- pipeline:source rm-license-pinned -->
<!-- pipeline:source rm-license -->
