Video Streaming Bandwidth & CDN Cost Calculator: Free Video Streaming Bandwidth & CDN Cost Calculator tool: calculate monthly video streaming bandwidth (TB/PB), peak egress in Gbps, and CDN delivery.
Architecture of Modern HTTP Video Streaming (HLS & MPEG-DASH)
Modern internet video delivery has universally converged on chunked HTTP streaming protocols, predominantly HTTP Live Streaming (HLS) and Dynamic Adaptive Streaming over HTTP (MPEG-DASH). Rather than delivering a single monolithic video file over an open TCP socket, HLS and DASH slice video and audio tracks into small, standardized chunks (typically 2 to 6 seconds in duration, encapsulated as MPEG-TS or Common Media Application Format / CMAF fMP4 segments).
A text playlist or manifest (.m3u8 in HLS, .mpd in DASH) provides the client player with an index of available segment URLs and an Adaptive Bitrate (ABR) ladder. Because each chunk is fetched as an ordinary HTTP GET request, existing worldwide Content Delivery Network (CDN) edge caching infrastructure handles distribution, scaling to millions of simultaneous viewers without crashing origin media servers.
The Mathematical Equations for Streaming Bandwidth & Billing
Forecasting data transfer and peak network capacity requires synthesizing viewer concurrency, session length, and the weighted bitrate of active video renditions:
Weighted Average Bitrate ($R_{text{avg}}$) = $sum_{i=1}^n (P_i times R_i)$
Peak Egress Bandwidth (Gbps) = $frac{text{Peak Concurrent Viewers} times R_{text{avg}} text{ (kbps)}}{1,000,000}$
Total Monthly Data Transfer (GB) = $frac{text{Total Hours} times 3,600 text{ s} times R_{text{avg}} text{ (kbps)}}{8 times 1,000,000}$
Origin Data Transfer (GB) = $text{Total Data Transfer (GB)} times (1 - text{Cache Hit Ratio})$
Step-by-Step Worked Numerical Example
Consider a growing B2B video SaaS platform streaming product tutorials and customer training:
- Monthly Consumption: 50,000 viewing hours
- Peak Concurrency: 1,500 simultaneous viewers
- Audience ABR Split: 60% watch 1080p (4,500 kbps), 25% watch 720p (2,400 kbps), 10% watch 480p (1,200 kbps), 5% watch 360p (600 kbps)
- CDN Cache Hit Ratio: 95% (0.95)
Step 1: Compute the weighted average bitrate:
$R_{text{avg}} = (0.60 times 4,500) + (0.25 times 2,400) + (0.10 times 1,200) + (0.05 times 600)$
$R_{text{avg}} = 2,700 + 600 + 120 + 30 = mathbf{3,450text{ kbps}}; (3.45text{ Mbps})$
Step 2: Calculate peak network pipeline requirement:
$text{Peak Bandwidth} = frac{1,500 text{ CCU} times 3,450 text{ kbps}}{1,000,000} = mathbf{5.175text{ Gbps}}$
Step 3: Calculate monthly data egress in Terabytes:
$text{Total GB} = frac{50,000 text{ hrs} times 3,600 text{ s} times 3,450 text{ kbps}}{8,000,000} = mathbf{77,625text{ GB}}; (mathbf{77.63text{ TB}})$
Step 4: AWS CloudFront tiered cost calculation:
First 10,000 GB @ $0.085/GB = $850.00
Next 40,000 GB @ $0.080/GB = $3,200.00
Remaining 27,625 GB @ $0.060/GB = $1,657.50
Total CloudFront Egress Cost = $850 + $3,200 + $1,657.50 = $5,707.50 / month
Step 5: Origin egress cost (5% origin miss rate @ $0.05/GB):
Origin Egress = $77,625 text{ GB} times (1 - 0.95) times $0.05 = mathbf{$194.06 / text{month}}$
Key Optimization Strategies for Video Infrastructure
- Origin Shielding: Placing an intermediary caching layer (such as CloudFront Origin Shield or Fastly Media Shield) between regional edge PoPs and your origin bucket prevents multiple worldwide edge servers from simultaneously requesting the same missing chunk, pushing cache hit ratios from 92% to over 98%.
- CMAF & Chunk Sizing: While traditional HLS used 6-to-10-second segments, modern low-latency deployments use 2-second segments with chunked transfer encoding (CMAF). Shorter chunks reduce end-to-end broadcast latency from 30 seconds down to 3 seconds while maintaining high caching efficiency.
- Zero-Egress Origin Storage: Combining Cloudflare Stream or BunnyCDN with S3-compatible zero-egress cloud storage (such as Cloudflare R2 or Wasabi) completely eliminates the $0.05 to $0.09/GB egress fee charged by traditional hyperscalers when CDNs pull media chunks.