The render
The bundle, the browser, the storage and the resource caps — what the render needs to not die halfway.
What you do here: give the server what the render needs, and size the machine so it does not die in the middle of an export.
What it needs
| Piece | Why | Where it comes from |
|---|---|---|
| The bundle | The composition of the video, built ahead of time | pnpm render:bundle → RENDER_BUNDLE_DIR |
| A browser | The frame is drawn by a real Chromium — that is what makes the file identical to the screen | Downloaded at image build (Chrome Headless Shell) |
| The native compositor | The binary that turns frames into video and audio | Copied into the image by hand (the bundler does not carry it) |
| A configured bucket | Where the files go | Per organization, on the screen — see Storage |
The bundle is built ahead of time on purpose: assembling it inside the server would drag the bundler into the step bundle, for something that never changes between renders.
Without the bundle pointing somewhere real, the export refuses with the message
Render bundle not configured — see When an export fails.
The caps
| Variable | Default | What it prevents |
|---|---|---|
RENDER_CONCURRENCY | 2 | More Chromium tabs than the machine can feed (Remotion's own default is half the CPUs) |
RENDER_TIMEOUT_MS | 120000 | The whole render giving up too early (Remotion's default is 28s) |
RENDER_MEDIA_TIMEOUT_MS | 120000 | A single media file timing out |
RENDER_VIDEO_CACHE_MB | 256 | The frame cache (Remotion's default is half the RAM) |
RENDER_MEDIA_CACHE_MB | 256 | The compositor's media cache (same) |
The reason all five exist is the same: on a host that also runs the API, Remotion's defaults ask for half the RAM as cache and half the CPUs in tabs, the frame takes longer than the 28s timeout, the run dies — and the retry redoes the whole render. Conservative caps are cheaper than a render that restarts.
Sizing the machine
- RAM: about 4 GB is the comfortable floor. The caches above are memory, not disk.
- CPU: the render is the heaviest thing kino does. On a small host,
RENDER_CONCURRENCY=1— one render at a time, slower but alive. - The image is big: it carries a browser and an encoder. That is a build-time cost, not a runtime one.
- More than one API instance means more than one render at a time, with no coordination between them — if you scale out, keep the caps in mind per instance.
What is worth knowing
- The render runs on the server by decision: drawing in the browser would mean a second implementation of the drawing, and a second chance of diverging from the screen. See Exporting.
- A render job is durable: it is a workflow, and it survives a server restart. That is why the workflow tables in Database matter even if you never look at them.
- Cancelling stops the run but never "un-runs" a frame already written: what exists stays in the bucket, and the job stays out of the list.
- The fonts are the same on both sides, so a font missing from the image would change the video. The images ship the same font packages the app uses.
Related
- When an export fails — the exact messages, including the bundle one.
- Environment — the caps next to the rest of the variables.
- The editor screen — where the Render button lives.