Skip to content

Lesson 9 of 9 · 25m

Cost Control: Egress, Encoding, Storage, and the Shape of Demand

Model where video money actually goes, use demand and concurrency data to guide architecture, and apply cost controls that do not sabotage playback quality.

Video cost control fails when teams optimize the visible line item instead of the system. Encoding minutes are easy to count, so teams obsess over them while egress quietly consumes ten times the budget. Or they cut bitrate globally and discover support tickets cost more than the savings. Cost work begins with a truthful demand model.

Build the cost model from viewer behavior

The core variables are simple; the distribution is not:

viewer-hours x average delivered bitrate / 8 / 1024^3 = GiB delivered
cache miss fraction x delivered volume = origin egress pressure
concurrency x bitrate = capacity; titles x renditions x duration = inventory

Average bitrate is not average ladder bitrate. It is what players actually delivered across devices, networks, codec support, and abandonment. Measure it. A catalog full of 8 Mbps rungs does not mean viewers consume 8 Mbps if half your audience is on constrained mobile connections.

Egress dominates at scale

CDN egress is often priced by geography and volume tier. Live events concentrate cost in time; back-catalog VOD spreads it out. Measure workloads separately before choosing levers:

live              cache efficiency, ladder fit, concurrency shaping, regional pricing
VOD               hit ratio, object layout, codec efficiency, storage/JIT packaging
interactive       capacity reservations, SFU bandwidth, session duration

Transcoding cost is shaped by policy

Per-title or content-adaptive encoding can improve quality per bit, but it adds compute and complexity. Not every uploaded clip deserves a premium pipeline. Encoding everything maximally "just in case" is uncertainty expressed as a bill; keep enough metadata to reprocess a title that becomes popular. Classify by expected value:

routine creator uploads             small H.264 ladder
flagship/pay-per-view events        full adaptive or redundant optimized ladders

Storage lifecycle is a product decision

Mezzanine files, delivery renditions, packaged segments, logs, thumbnails, waveform data, and DRM artifacts all age differently. Worker scratch must never become accidental archive storage. Write lifecycle policy explicitly:

delivery media      keep while published; scratch expires immediately
mezzanine           retain or archive by business tier and reuse value
logs/diagnostics    hot briefly, then aggregate, archive, or expire

Measure cost per successful viewing hour

A cheaper stream that fails to start is not cheaper. Spending heavily without quality improvement and cutting spend in ways that shift cost into churn are the twin failure modes. For major live events, forecast concurrency and rehearse synchronized demand; flat load tests do not reproduce player behavior. Track cost alongside QoE:

cost per viewing hour / successful playback start
encoding minutes per published hour; cache hit ratio by object class
origin egress and support contacts per thousand viewing hours

Field notes

  • Egress unit price means little without cache-hit and regional distribution context.
  • Codec savings are real only when devices can decode the codec and the encoder cost is amortized.
  • Deleting storage is not cost control if it destroys the ability to remonetize or repackage valuable content later.
  • Put finance-facing metrics in the same dashboard as playback health so cost discussions start from shared facts.

Was this lesson helpful?

Sign in to rate