How much does it cost to render a video? Measuring in CPU seconds
Article by Pedro Henrique Lahr
The cost of rendering a video is best measured in processor (CPU) seconds spent per second of video. On a 75 second production video with a presenter and graphics, Konecz took that figure from 6.16 to 1.50 by moving the image work to the graphics card. In its own engine, Kodecz, a 74.7 s video used 30.8 s of CPU, against 473.5 s in Remotion.
Why measure CPU instead of waiting time?
Because waiting time is misleading. A render can finish fast by using every processor core and stalling the rest of the machine. On the Konecz server, the processor is shared with production websites. Every CPU second the video uses is a second a website does not get.
The measure we use adds up the processor time of every program in the render (browser, encoder, everything), counted by the operating system itself. A simpler tool we used before missed Chrome's child processes and counted less than half.
What did it cost then and now?
On the production video (called R in the paper, 75 s, 1080 × 1920), measured step by step:
| Step | CPU per second of video |
|---|---|
| Starting point, 15 s stretch | 23.07 |
| Remotion's own GPU option, same stretch | 8.07 |
| Whole video, Remotion on the GPU | 6.16 |
| Whole video, layered render | 1.72 |
| Whole video, layers + repeated frames reused | 1.50 |
The first two rows come from a 15 s stretch; the others from the whole video. Numbers from different windows are not divided by each other, but the direction is clear. On the whole video, it was 460 s of CPU before and 112 s after: 4.1 times less.
And in Konecz's own engine?
Kodecz does not take a picture of each frame: the frame the browser draws goes straight to the card's encoder. On a real 74.7 s video:
| Format | CPU in Remotion | CPU in Kodecz |
|---|---|---|
| Landscape (16:9) | 473.5 s | 30.8 s |
| Vertical (9:16) | 481.1 s | 28.6 s |
Divided by the length, the vertical one comes in under 0.4 CPU seconds per second of video.
Is the render the expensive part of a video?
No. After these changes, rendering is the cheap part. What weighs in an AI video is what is paid per second to generation services: the presenter, generated scenes, the voice. That is why the Konecz rule is to rehearse for free and pay once:
- the animation is tested with boxes standing in for the presenter, at no cost;
- single frames are checked before the full render;
- only what changed is redone;
- paid generation comes in once the script and timing are approved.
A render that costs little lets you redo the video several times until it is right, without fear.
How do you measure your own cost?
- Pick a real video with what you use day to day (presenter, captions, graphics).
- Measure the CPU of the whole process, children included, not just clock time.
- Run it more than once and alternate the variants: machine load changes.
- Divide by the video's length.
- Compare the picture (for example with SSIM) to make sure the cheaper one is not worse.
All the numbers above come from a single machine, busy with other services. On another machine, the ratios will differ.
Frequently asked questions
Is a fast render a cheap render? Not always. A render can be fast and use the whole processor. CPU spent is the measure that matters on a shared server.
How much CPU goes to the scene code? In the measured stretch, only 4%. The rest was opening the filmed footage (54%) and taking a picture of each frame (42%).
Do I need a graphics card to lower the cost? It helps a lot. Without one, Kodecz has a CPU-only path that also skips the per-frame picture.
Does the video look worse? On the measured video, similarity to the original render (SSIM) was 0.978 for the layered render and between 0.991 and 0.992 for Kodecz, on a scale where 1 is identical.
The details are in /en/blog/remotion-gpu and /en/blog/kodecz-render. This low cost is what lets Konecz post a video every day, from R$ 300 a month: see the plans at /en/.