Billing examples

Updated at:

Learn how to calculate usage and choose a billing method to reduce your ApsaraVideo Live costs.

Note

Use the ApsaraVideo Live Pricing Calculator to estimate costs based on your requirements.

Scenario

Alex runs a live streaming social app in Hangzhou. Each day, 100 hosts go live on the app.

  • Alex chooses the pay-as-you-go billing method.

  • Time shifting is enabled for each live stream with a one-day retention period.

  • Hosts broadcast from PCs and mobile phones, but all viewers watch on the mobile app. Each stream is transcoded to H.264 at 1080p for consistent quality.

  • Automated review is enabled for each live stream to detect pornographic, political, violent, and terrorist content. A snapshot is captured every 5 seconds, stored in OSS, and deleted after two days.

  • Live stream recording is enabled for replays. Streams are recorded in both MP4 and FLV formats and stored in OSS.

This scenario uses the following ApsaraVideo Live features: live stream traffic, time shifting, transcoding, snapshots, automated review, recording, and storage.

Usage calculation

Billable item

Data

Quantity

Usage calculation

Live stream traffic

Concurrent ingest streams

100

  • Traffic for 1,000 concurrent viewers watching for 1 hour:

    1,000 (viewers) × 0.5 (video bitrate in Mbps) × 3,600 (viewing time in seconds) ÷ 1,024 ÷ 8 = 219.7 GB

  • Total daily downstream traffic for 100 hosts:

    100 × 219.7 GB ÷ 1,024 = 21.46 TB

Concurrent viewers per stream

1,000

Duration of each stream (hours)

1

Video bitrate after transcoding (Mbps)

0.5

Video bitrate before transcoding (Mbps)

1

Time shifting

Duration of each stream (hours)

1

Daily time shifting data written:

100 (streams) × 0.5 (video bitrate in Mbps) × 3,600 (viewing time in seconds) ÷ 1,024 ÷ 8 = 21.97 GB

Concurrent ingest streams

100

Video bitrate after transcoding (Mbps)

0.5

Transcoding

Transcoded streams

100

Daily transcoding duration:

100 (streams) × 60 (minutes) = 6,000 minutes

Duration of each stream (hours)

1

Snapshot

Streams for review

100

Daily snapshots:

100 (streams) × 3,600 (stream duration in seconds) ÷ 5 (interval in seconds) = 72,000

Duration of each stream (hours)

1

Snapshot interval (seconds)

5

Automated review

Snapshots for review

72,000

Daily images reviewed for pornography, politics, violence, and terrorism:

72,000 (images) × 2 (categories) = 144,000 images

Review categories

2

Live stream recording

Concurrent recording streams

100

  • Peak concurrent recording streams per month: 100.

  • Daily recording length (MP4 and FLV):

    100 (streams) × 60 (minutes) × 2 (formats) = 12,000 minutes

Duration of each stream (hours)

1

Storage

Video storage

87.90 GB per day

  • Daily MP4 video storage: 100 (streams) × 1 (video bitrate in Mbps) × 3,600 (viewing time in seconds) ÷ 1,024 ÷ 8 = 43.95 GB

  • Daily FLV video storage: 100 (streams) × 1 (video bitrate in Mbps) × 3,600 (viewing time in seconds) ÷ 1,024 ÷ 8 = 43.95 GB

Total daily storage: 43.95 GB + 43.95 GB = 87.90 GB

Note

The recorded videos are the original ingested streams, not the transcoded streams.

Snapshot storage

72,000 snapshots at 0.5 MB each

35.16 GB per day

Cost calculation

Note

Unit prices are from the Alibaba Cloud website as of January 1, 2021. For current pricing, visit the ApsaraVideo Live Pricing page.

Billable item

Billable metric

Usage

Daily cost

Live stream traffic

Downstream traffic

21.46 TB per day

Traffic uses tiered pricing. Usage accumulates monthly and is billed progressively. Pay-as-you-go.

10 TB × CNY 0.264/GB + 11.46 TB × CNY 0.253/GB = CNY 5,672.30

Time shifting

Time shifting data written

21.97 GB per day

Costs depend on the retention period and data volume. Billing of time shifting.

21.97 GB × CNY 0.27/GB = CNY 5.93

Transcoding

Transcoding duration

6,000 minutes per day

Costs depend on the transcoding standard, resolution, and duration. Billing of live stream transcoding.

6,000 minutes × CNY 0.065/minute = CNY 390.00

Snapshot

Number of snapshots

72,000 per day

Costs depend on the snapshot count. Billing of snapshots.

72 (in thousands) × CNY 0.10/thousand = CNY 7.20

Automated review

Number of reviewed images

144,000 per day

Costs depend on the number of images scanned. Billing of automated review.

Assuming all results are determined by the algorithm:

(144 - 3) (in thousands) × CNY 1.44/thousand = CNY 203.04

Live stream recording

Peak number of concurrent recording streams per month

100 per month

Monthly recording service fee:

100 streams/month × CNY 30/stream = CNY 3,000.00/month

Recording length

12,000 minutes per day

Recording and format conversion fee, billed by recording length. Billing of live stream recording.

12,000 minutes × CNY 0.007/minute = CNY 84.00

Storage

Video storage

87.90 GB per day;

2,637 GB per month.

Storage billing: Storage costs.

Estimated monthly cost with LRS Standard storage:

(2,637 GB + 70.32 GB) × CNY 0.12/GB/month = CNY 324.88/month

Snapshot storage

35.16 GB per day;

Two-day retention: 70.32 GB.

Billing by peak bandwidth

If hosts stream at different times, Alex can choose peak bandwidth billing. The peak bandwidth:

10,000 (peak viewers) × 0.5 (video bitrate in Mbps) = 5,000 Mbps

Peak bandwidth cost:

5,000 Mbps × CNY 0.638/Mbps/day = CNY 3,190.00

Summary

Alex receives two types of bills: monthly and daily.

  • Monthly bills are generated and charged at the end of each month:

    Monthly costs include CNY 324.88 for storage and CNY 3,000.00 for the monthly recording service fee.

  • Daily bills are generated and charged at the end of each day:

    Daily costs include CNY 5,672.30 for live stream traffic, CNY 5.93 for time shifting, CNY 390.00 for transcoding, CNY 7.20 for snapshots, CNY 203.04 for automated review, and CNY 84.00 for the recording and container format conversion fee.

For stable workloads like Alex's, we recommend:

  • Purchase resource plans and storage plans to reduce costs. The more you purchase, the greater the discount.

  • Combine prepaid resource plans with pay-as-you-go to maximize utilization and minimize costs.