Two vendors have stopped charging for the step that used to dominate a video bill. Mux encodes 1080p uploads for nothing on its basic quality level, and Cloudflare Stream does not charge for encoding at all. What is left on the invoice is the minute you keep and the minute somebody watches.
By SaaS Cost Lab · 6 December 2026
Every rate below was read on the vendor's own page on 6 December 2026. The encoding numbers come from ffmpeg n9.0.2 running on a two-vCPU container, and the transcript, raw output sizes and the model script sit in this article's evidence folder. No vendor was contacted, and there are no affiliate links on this page.
The short answer: once encoding is free at both vendors, the only meter that moves your bill is the stored minute, and a stored minute is a unit of time, not of bytes. That single design choice decides whether a self-hosted pipeline is cheaper or not.
Our measured four-rendition ladder weighs 70.9 MB per source minute, which costs $0.00106 a month to keep in R2 and $0.0030 to keep on Mux. Bytes win at 2.8 to 1. Then a two-core droplet that cuts the same minute in 51.9 seconds turns the whole question into an operations question, not a compute one.
Quick verdict. The key takeaway is that you should self-host when your stored ladder stays under about 27 Mbps and your library passes roughly 22,700 stored minutes. Stay on a minute meter when your library is small, your content sits cold, or nobody on the team wants to own a video pipeline. The 27 Mbps line moves to 10.7 Mbps the moment Mux's cold-storage discount applies, which is the part most comparisons miss.

Assumptions used for the model. Library growth is 12 months of uploads with nothing deleted. Scenario A keeps every asset hot; B and C keep half the library unwatched for 90 days, which earns Mux's cold-storage rate. Delivery assumes 5 views per asset a month at 40% completion for A and B, and a 10x library-to-delivery ratio for C. Engineering time is 2 hours a month at $95 an hour plus 40 build hours over 24 months [assumption]. A ladder minute measures 70.9 MB from the run below, and decimal GB is used throughout.
The part vendors stopped billing
Mux made a quiet structural change. Its basic quality level charges nothing for input at any resolution, so a 1080p or 4K upload costs the same to ingest as a podcast episode: zero. Only plus and premium quality carry an input rate, and those start at $0.03125 and $0.046875 per 1080p minute.
Cloudflare Stream goes further. Its pricing page says ingress and encoding are always free, and bandwidth is bundled into delivered minutes. Two meters remain: minutes stored and minutes delivered.
If you are comparing video vendors on encoding rates today, you are comparing a line item that no longer exists on the default tier. The question worth asking is what each vendor charges to keep a minute around for twelve months, and what it charges when that minute is played.
That is a meaningfully different question from the one the industry asked in 2022, when encoding was the largest line on every invoice. It also means the arithmetic has to start from what a minute actually weighs after you encode it, which is where the measurement comes in.
A stored minute is one minute of video duration held in a library for a month. It is a time unit, so a 4K minute and a 360p minute of the same length are billed identically. A byte meter charges for what the files weigh instead, which is why the two meters diverge only when bitrate changes.
What one minute weighs
I generated a 60-second 1080p30 source with film grain on top of a moving test pattern, because flat synthetic content encodes far too easily to be useful. Then I measured a standard four-rendition HLS ladder, 6-second segments, x264 veryfast, and the same audio on every rendition.
$ ffmpeg -benchmark -i src_camera.mp4 \
-filter_complex "[0:v]split=4[v1][v2][v3][v4]; ..." \
-map "[v1o]" -c:v:0 libx264 -preset veryfast -b:v:0 4500k \
-map "[v2o]" -c:v:1 libx264 -preset veryfast -b:v:1 2400k \
-map "[v3o]" -c:v:2 libx264 -preset veryfast -b:v:2 1100k \
-map "[v4o]" -c:v:3 libx264 -preset veryfast -b:v:3 600k \
-f hls -hls_time 6 -master_pl_name master.m3u8 \
-var_stream_map "v:0,a:0 v:1,a:1 v:2,a:2 v:3,a:3" \
-hls_segment_filename "hls/%v/seg_%03d.ts" "hls/%v/index.m3u8"
bench: utime=93.224s stime=2.342s rtime=51.865s
bench: maxrss=553952KiB
$ du -sb hls
70903446 hls
One camera minute produced 70,903,446 bytes across four renditions, and the master playlist reports the combined bandwidth at 9.45 Mbps. The wall clock was 51.865 seconds on two vCPUs, with 93.2 CPU-seconds behind it and 553 MB of peak RSS. The box is the $24 Basic Droplet, two vCPUs and 4 GB, the smallest plan I would trust with a queue.
| Rendition | Target bitrate | Measured bytes per minute | Share of ladder |
|---|---|---|---|
| 1080p | 4,500 kbps | 35.7 MB | 50.4% |
| 720p | 2,400 kbps | 19.7 MB | 27.7% |
| 480p | 1,100 kbps | 9.7 MB | 13.6% |
| 360p | 600 kbps | 5.8 MB | 8.2% |
| Total | 9,450 kbps | 70.9 MB | 100% |
I measured two other cases on the same container. A single 1080p rendition of the same minute took 26.0 seconds at veryfast and 56.2 seconds at medium. A screen-recording source, which is mostly static, ran at 5.71x realtime because x264 had almost nothing to move. For example, a 40-minute product walkthrough encodes in about seven minutes at that rate.
Content type changes the capacity answer by a factor of five, and preset changes it by two. Any capacity plan that quotes one number per vCPU is guessing.
Audio is not why the ladder is heavy. A 128 kbps track adds under 1 MB to a 70.9 MB minute, and segment headers add a few kilobytes per file. The bytes live in the video renditions, which is why dropping the 480p and 360p rungs saves about 22% of storage while costing you mobile viewers on weak connections.
Two honest limits on these numbers. The source is synthetic, so a real handheld camera shot with heavy motion will be slower. The run is loopback against local storage, so production throughput also pays for upload and fetch. Treat 69 minutes per hour as a ceiling for this preset, not a promise.
The 26.7 Mbps line
Now put the vendors' meters next to the bytes. Mux charges $0.0030 per stored minute per month at 1080p, tiering down to $0.0028 above 250,000 minutes. R2 charges $0.015 per GB-month with no egress fee.
Divide one by the other and you get the weight at which the two meters agree: 0.2 GB per stored minute, which is 26.7 Mbps of ladder per source minute. Below that bitrate, a bucket is cheaper. Above it, the minute meter is.
| Meter | Rate on 6 December 2026 | Per stored minute-month | Break-even bitrate |
|---|---|---|---|
| Mux basic 1080p | $0.0030 | $0.0030 | 26.7 Mbps |
| Mux cold storage, 90+ days | $0.0012 | $0.0012 | 10.7 Mbps |
| Cloudflare Stream | $0.0050 | $0.0050 | 44.4 Mbps |
| R2 standard | $0.015/GB-month | $0.00106 | reference |
Our ladder sits at 9.45 Mbps, so R2 storage costs $0.00106 a minute against Mux's $0.0030. That is the 2.8x gap the model uses, and it is a thinner margin than most self-hosting pitches imply.
The cold-storage rate is the part that flips the decision. Mux discounts an asset 40% after 30 days without a play and 60% after 90, which puts the 1080p rate at $0.0012. At that rate the break-even bitrate falls to 10.7 Mbps, and our 9.45 Mbps ladder barely clears it. The 30-day tier sits at $0.0018 per minute, which is a 16 Mbps line. Add a 1440p rendition and the minute meter wins on cold content.
There is a reason the minute meter looks generous at low bitrates and stingy at high ones. Mux stores one standardized asset and encodes renditions just in time for the viewer, so a stored minute of 1080p and a stored minute of 360p cost the same. Your bucket has no such trick: it holds four files, and every extra rung is billed by weight.
Delivery is the other half. Mux and Stream both charge $0.001 per delivered minute, with the first 100,000 minutes free at Mux. R2 charges nothing for egress; the only cost is Class B requests at $0.36 a million, and a 6-second segment means about ten GETs per minute watched.
That works out to $0.0000036 per delivered minute on R2, roughly 278 times less than either vendor's delivery meter. If your product is watched far more than it is uploaded, the delivery meter is where the money actually is.
Three libraries, four bills
Numbers on a per-minute basis hide the fixed costs, so here is the model at three sizes. Each row is month 12 of a growing library, with storage, delivery, and the $20 monthly usage credit applied.
| Monthly bill | A pilot: 3,600 min stored | B course: 24,000 min stored | C platform: 240,000 min stored |
|---|---|---|---|
| Mux basic, after credit | $0 | $30 | $984 |
| Cloudflare Stream | $23 | $180 | $1,800 |
| Self-hosted, infra only | $28 | $50 | $279 |
| Self-hosted, with 2 h/month | $376 | $398 | $628 |
Read row three against row one and the pattern is clear. Infra-only self-hosting loses at pilot size, ties at course size before Mux's usage credit, and wins by 3.5x at platform size. Then row four arrives and the pilot case becomes a $376 bill against a $0 one.
Month 12 is deliberately unkind to both sides. A library that deletes assets after 90 days cuts the storage term for everything, but it also cuts the number of minutes a vendor can charge for, so retention policy moves the break-even more than encoding quality does. Model your retention rule before you model your ladder.
The compute side is almost irrelevant. Scenario C uploads 20,000 minutes a month, and one $24 droplet can cut 50,670, so encoding runs at 39% duty on a single box. What you buy by self-hosting is not cheaper computation. It is cheaper storage and cheaper delivery, paid for with someone's attention.
Solving for the crossover gives the numbers worth remembering.
| Crossover against Mux basic | Stored minutes | Stored hours |
|---|---|---|
| Infra only, delivery roughly equals library | 22,722 | 379 |
| Infra only, delivery 10x library | 12,064 | 201 |
| With two engineer hours a month | 172,202 | 2,870 |
| With labour, delivery 10x library | 41,246 | 687 |
Two engineer hours a month move the break-even from 379 stored hours to 2,870. That is not a rounding error. Labour is the largest single term in a self-hosted video bill, and it is the term nobody puts in the spreadsheet.
What two engineer hours a month actually buys
The maintenance work is not glamorous and it is not optional. Someone has to watch failed jobs, rotate signed URL keys, set a lifecycle rule so the library does not grow forever, and notice when a player update breaks playback on one Android build.
Here is the worker that does the cut. It claims a job, encodes to a staging prefix, and only writes the master playlist after every rendition and segment has landed, so a half-finished ladder never becomes playable.
func render(ctx context.Context, job Job) error {
key := fmt.Sprintf("staging/%s/%s", job.ID, "master.m3u8")
args := ladderArgs(job.Source, filepath.Dir(key))
cmd := exec.CommandContext(ctx, "ffmpeg", args...)
if out, err := cmd.CombinedOutput(); err != nil {
return fmt.Errorf("ffmpeg %s: %w: %s", job.ID, err, tail(out, 400))
}
// publish only after the whole ladder exists
for _, name := range ladderObjects(job.ID) {
if err := upload(ctx, staging(name), final(name)); err != nil {
return err
}
}
return markReady(ctx, job.ID)
}
The infrastructure side is small enough to keep in one Terraform file. The parts that matter are the private bucket, the lifecycle rule, and the firewall that lets only the worker reach the encoder.
resource "digitalocean_droplet" "encoder" {
image = "ubuntu-24-04-x64"
size = "s-2vcpu-4gb" # $24/month, 2 vCPU, 4 GB
region = "nyc3"
ssh_keys = [var.ssh_key]
tags = ["video-encoder"]
}
resource "cloudflare_r2_bucket" "video" {
account_id = var.cf_account_id
name = "video-prod"
}
resource "cloudflare_r2_bucket_lifecycle" "video" {
account_id = var.cf_account_id
bucket_name = cloudflare_r2_bucket.video.name
rules = [{
id = "expire-staging"
enabled = true
conditions = { prefix = "staging/" }
delete_objects_older_than = 3 * 24 * 3600
}]
}
Four checkpoints carry most of the operational risk.
- Give every upload an idempotent job ID keyed on a content hash, so a retried webhook does not encode the same file twice.
- Fix the keyframe interval at 6 seconds and keep it identical across renditions, or HLS switching stutters.
- Write the master playlist last, so a half-finished ladder never becomes playable.
- Keep a poison queue for files that fail three times, because a corrupt upload will otherwise spin forever.
None of this is hard. All of it is work that a managed vendor absorbs, and the model prices that absorption at $348 a month.
When the minute meter is the right answer
Three cases in the model point back to a vendor. The first is the pilot: at 3,600 stored minutes Mux's $10.80 storage charge disappears inside the $20 credit, and the bill is zero. A $24 droplet plus bucket cannot beat zero.
The second is cold content. If most of your library is training material nobody rewatches, the 60% cold-storage discount pulls the effective rate to $0.0012, and object storage loses its advantage above 10.7 Mbps.
The third is scope. Mux's delivery includes a player, quality-of-experience analytics, signed playback and automatic captions. Cloudflare Stream throws in its own player. Self-hosting means building or buying each of those, and one engineer-week of analytics work costs more than a year of the storage difference at course size.
There is also DRM to consider. Mux sells DRM as an add-on with its own per-licence rate, and Stream leaves protected playback to signed URLs and token authentication. Neither is free, but a self-hosted pipeline that needs Widevine or FairPlay means licensing a key server, which is a specialist project rather than two hours a month.
The decision is not bytes against minutes. It is bytes plus attention against minutes plus product features. The arithmetic above tells you where the money is; only you know what your team's hours are worth and what else they could be doing.
An earlier lab put the CI-minute break-even at 83,000 minutes for self-hosted GitHub Actions runners, and the feature flag piece found a similar multiplier hiding in connection counts. Both come down to the same thing: a fixed monthly floor decides the answer long before the per-unit rate does. Analytics engines show it too, in what six queries actually cost. Video adds one twist: the storage meter is blind to bitrate, so your own encoding ladder decides which side of the 26.7 Mbps line you land on.
Frequently asked questions
Is encoding really free at Mux? On the basic quality level, yes, at every resolution for on-demand video. Live streaming requires plus or premium quality, and those input rates start at $0.03125 and $0.046875 per 1080p minute. Basic is also on-demand only.
Does Cloudflare Stream bill per rendition? No. Stream charges minutes of video stored and minutes delivered, and its documentation states that the extra quality levels it generates do not consume additional storage. Encoding and ingress are free.
How many minutes can one $24 droplet encode? In this run, 69 source minutes an hour for a four-rendition camera ladder at x264 veryfast, or about 50,670 minutes a month if the box did nothing else. Screen content ran 5.71x realtime, and the medium preset roughly halved throughput.
What bitrate makes a bucket more expensive than a stored-minute meter? 26.7 Mbps against Mux basic at $0.0030 per minute-month, 10.7 Mbps against its cold-storage rate, and 44.4 Mbps against Cloudflare Stream at $0.0050. The comparison assumes $0.015 per GB-month for object storage.
Do delivered minutes matter as much as storage? Usually more. Both vendors charge $0.001 per delivered minute after Mux's 100,000 free minutes, while R2 egress is free apart from Class B requests at about $0.0000036 per viewed minute. A heavily watched library shifts the break-even toward self-hosting quickly.
comments
Add a comment