Cost - Live Streaming on AWS with MediaStore

Cost

You are responsible for the cost of the AWS services used while running this solution. As of November 2021, the cost for running this solution in the US East (N. Virginia) with:

  • Approximately 1,000 viewers for a one-hour live event using a standard definition (SD)-540p encoding profile is approximately $1.98 for live encoding and packaging + $67.24 for 791 GB distribution = $69.22 for the one-hour event.

  • Approximately 10,000 viewers for a one-hour live event using a high definition (HD)-1080p encoding profile is approximately $7.51 for live encoding and packaging + $1531.49 for 18,017 GB distribution = $1,539.00 for the one-hour event.

These cost estimates depend on many factors, which are detailed in the following cost examples.

Note

The examples provided are likely higher than the actual costs of running this solution. The intent was to provide a guide to the pricing that is easily understood. Where assumptions were needed, we used factors that were straightforward to calculate and also likely be more expensive than the actual cost.

For an additional cost example for streaming a live event, refer to the FAQs about live streaming on AWS blog in the AWS Media Blog.

Cost Example 1

Cost example 1 covers a use case of approximately 1,000 viewers viewing a live event for about one hour with a SD-540p encoding profile selected in the CloudFormation template. This cost example is based on the following factors:

  • Pricing Region: US-East-1, assuming standard pricing (no free-tier or discounts).

  • Viewers consume the highest bitrate: Note that bitrate consumption is a mix of all the streams, but the highest bitrate is used in the calculation to show the upper cost range. Additionally, the Quality-Defined Variable Bitrate (QVBR) and variable video complexity can result in an output bandwidth that is 10-50% lower in price than the estimate provided in Table 1.

  • 99% cache/hit ratio between the content delivery network (CDN) and AWS Elemental MediaStore.

Note

Storage of the test player is not included in this cost estimate.

Table 1 summarizes the total pricing for the live streaming event. Tables 2 through 4 break down the cost for each AWS service.

Table 1: Cost breakdown for 1,000 viewers for a one-hour live event

AWS service Function Cost per hour
AWS Elemental MediaLive Input and outputs for channel $1.71
AWS Elemental MediaStore Ingest of channel $0.09
Packaging and origination $0.18
Amazon CloudFront Distribution $67.24
Total: $69.22/hour

AWS Elemental MediaLive pricing

Table 2 breaks down the AWS Elemental MediaLive pricing which assumes HD AVC input and SD AVC outputs with less than 10 Mbps bitrate and less than 30 frames per second (fps) frame rate.

Table 2: MediaLive pricing

Input / Output Cost per hour

HD Input (AVC 10-20Mbps)

$0.294

Output 1 SD (512x288, 400k)

$0.354

Output 2 SD (640x360, 800k)

$0.354

Output 3 SD (768x432, 1200k)

$0.354

Output 4 SD (960x540, 1800k)

$0.354

Total:

$1.71/hour

AWS Elemental MediaStore pricing

MediaStore charges $0.02 per Gigabyte (GB) per hour for standard live ingest, based on the aggregate bitrate of all live input streams. This example has four input streams, so the rate of GB streaming per hour is determined by:

  1. Adding the bitrate of all streams in either kbps or Mbps:

    • 400k + 800k + 1200k + 1800k = 4200 kbps

    • .4 + .8 + 1.2 + 1.8 = 4.2 Mbps

  2. Convert kbps or Mbps to Gigabits (Gbit) per second (ps). 1024 Mb = 1 Gbit:

    • 4.2 Mbps / 1024 = 0.0041015625 Gbits ps

  3. Convert Gbits to GB. 1 Gbit = 0.125 (or 1/8) GB.

    • 0.0041015625 Gbits ps * 0.125 = 0.0005126953125 GBps

  4. Convert GB per second to GB per hour:

    • 0.0005126953125 GBps * 60s * 60mins = 1.845703125 or 1.8 GB/hour

      ((sum of stream bitrates in Kbps) / 1024 (Mbps conversion)) / 1024 (Gbit conversion) * .125 (bits to Bytes conversion) * 60 seconds * 60 minutes = GB / hour

Table 3: MediaPackage ingest pricing

Input / Output kbps

Output 1 SD (512x288, 400k)

400

Output 2 SD (640x360, 800k)

800

Output 3 SD (768x432, 1200k)

1200

Output 4 SD (960x540, 1800k)

1800

Total kbps:

4200

Convert kpbs to GB/hour

4,200 kbps / 8 (bits to bytes) / 1024 (kpbs to Mbps) / 1024 (Mbps to Gbps) x 60 (seconds) x 60 (minutes)

1.80 GB/hour

GB/hour with redundancy

3.60 GB/hour

Cost (GB/hour * $0.02)

$0.072/hour

Table 4: MediaStore packaging and origin pricing

AWS service Cost per hour

Total MediaStore with 1% of egress

(7.91 GB x $0.023)

$0.18

Note

We assume that MediaStore serves 1% of the traffic to CloudFront and viewers, and the rest is served by CloudFront. Table 5 provides the 1% of egress for the MediaStore estimate in Table 4.

Viewer traffic pricing

The cost estimate for viewer traffic assumes that all viewers get the highest bitrate for the one-hour live streaming event.

Table 5: Viewer traffic pricing

AWS service Function Cost per hour
Amazon CloudFront Average Mbps per viewer 1.8
Total MB per sec (1000 x 1.8 / 8) 225
Total Egress per hour ( 225 / 1024 x 60 x 60 ) 791 GB/hour
Total (791 GB * $0.085): $67.24/hour

Cost example 2

Cost example 1 covers a use case of approximately 10,000 viewers viewing a live event for about one hour with an HD-1080p encoding profile selected in the CloudFormation template. This cost example is based on the following factors:

  • Pricing Region: US-East-1, assuming standard pricing (no free-tier or discounts).

  • Viewers consume the highest bitrate: Note that bitrate consumption is a mix of all the streams, but the highest bitrate is used in the calculation to show the upper cost range. Additionally, the QVBR and variable video complexity can result in an output bandwidth that is 10-50% lower in price than the estimate provided in Table 6.

  • 99% cache/hit ratio between the CDN and AWS Elemental MediaStore.

Note

Storage of the test player is not included in this cost estimate.

Table 6 summarizes the total pricing for the live streaming event. Tables 7 through 10 breaks down the cost for each AWS service.

Table 6: Cost breakdown for 10,000 viewers for a one-hour live event

AWS service Function Cost per hour
AWS Elemental MediaLive Input and outputs for channel $3.11
AWS Elemental MediaStore Ingest of channel $0.25
Packaging and origination $4.15
Amazon CloudFront Distribution $1,531.49
Total: $1,539.00/hour

AWS Elemental MediaLive pricing

Table 7 breaks down the AWS Elemental MediaLive pricing which assumes HD AVC input and both SD and HD AVC outputs with less than 10 Mbps bit rate and less than 30 fps frame rate.

Table 7: MediaLive pricing

Input / Output Cost per hour

HD Input (AVC 10-20Mbps)

$0.294

Output 1 SD (512x288, 400k)

$0.354

Output 2 SD (640x360, 800k)

$0.354

Output 3 SD (768x432, 1200k)

$0.354

Output 4 SD (960x540, 1800k)

$0.354

Output 5 HD (1280x720p, 2700k)

$0.702

Output 6 HD (1920x1080p, 4100k)

$0.702

Total:

$3.11/hour

MediaStore ingest pricing

As detailed in Cost Example 1, MediaStore pricing is based on GB ingested per second across all streams of live output. Table 8 shows the conversion from kbps to Mbps to Gbits/second to GB/hour.

Table 8: MediaStore ingest pricing

Input / output kbps

Output 1 SD (512x288_400k)

400

Output 2 SD (640x360_800k)

800

Output 3 SD (768x432_1200k)

1200

Output 4 SD (960x540_1800k)

1800

Output 5 (1280x720p_2700k)

2700

Output 6 (1920x1080p_4100k)

4100

Total kbps:

11000

Convert kpbs to GB/hour

11000 kbps / 8 (bits to bytes) / 1024 (kpbs to Mbps) / 1024 (Mbps to Gbps) x 60 (seconds) x 60 (minutes)

4.72

GB/hour with redundancy

9.44

Total (GB/hour * $0.02)

$0.19/hour

Table 9: MediaStore packaging and origin pricing

AWS service Cost per hour

Total MediaStore with 1% of egress

(180 GB x $0.023)

$4.14

Note

We assume that MediaStore serves 1% of the traffic to CloudFront and viewers, and the rest is served by CloudFront. Table 10 provides the 1% of egress for the MediaStore estimate in Table 9.

Estimating the viewer traffic

The cost estimate for viewer traffic assumes that all viewers get the highest bitrate for the one-hour live streaming event.

Table 10: Viewer traffic pricing

AWS service Function Cost per hour
Amazon CloudFront Average Mbps per viewer 4.1
Total MB per sec (10,000 x 4.1 / 8) 5125
Total Egress per hour ( 5125 / 1024 x 60 x 60 ) 18017 GB/hour
Total (18017 GB * $0.085): $1,531.49/hour
Note

Pricing is per minute, with a minimum of 10 minutes. Prices are subject to change.

We recommend creating a budget through AWS Cost Explorer to help manage costs. Prices are subject to change. For full details, refer to the pricing webpages for MediaLive and MediaStore, as well as the AWS services you will use in this solution.