You can reduce costs by selecting a billing method based on your usage. This topic describes how to calculate your usage and choose an appropriate billing method.
Scenario
Consider an entrepreneur who leads a team to develop an online education platform. They want to store videos on Alibaba Cloud. They have about 2,000 existing videos that use about 2 TB of storage. Each month, they expect to add 200 new videos, which will use about 200 GB of storage. The duration of most course videos is 25 to 35 minutes, and the videos are classified by course. To ensure a good playback experience on all devices, they plan to offer videos in two definitions: standard definition (SD) 480P and high definition (HD) 720P. The platform has about 500 users, with an average of 2,000 video views per day. The ratio of views on mobile devices to PCs is about 3-to-1. The entrepreneur wants to understand their video resource usage and select the most cost-effective billing method.
Case study
In this scenario, a user requires video-on-demand (VOD) features, such as video upload, storage, and transcoding. The downstream traffic generated by video playback depends on the number of views, video duration, and bitrate. Before calculating the usage, assume the following:
Video duration: The duration of most videos is 25 to 35 minutes. The average duration is assumed to be 30 minutes.
Definition distribution: Based on viewing patterns, mobile devices are assumed to play SD 480P videos by default, and PCs play HD 720P videos. Cases where users manually switch the definition are ignored.
Storage size: The scenario includes existing and new videos. After transcoding, the original video is converted into two versions with different definitions. Therefore, the actual storage usage is calculated as three times the original video size. The effect of the output video resolution and bitrate on the video size is ignored. If the resolution and bitrate of a transcoded video are higher than the original, the actual size will be larger.
Calculate resource usage
The usage and fees calculated in this scenario are estimates.
Based on the scenario, the annual resource usage is as follows. This calculation does not account for rapid business growth.
Item | Formula | Usage |
Storage usage | Storage usage: Existing video storage + New video storage - Free storage |
Average annual storage usage: 6,144 + 7,200 = 13,344 GB. |
Traffic usage | Traffic usage = (Views × Video duration × Video bitrate) / 8 (bytes) |
Average annual traffic usage: (303.75 + 168.75) × 365 = 172,462.5 GB. |
Transcoding duration | Determined by the specifications of the output video. |
|
Select a billing method
This section calculates the average annual fees for the pay-as-you-go and subscription resource plan billing methods.
For the latest pricing, see the ApsaraVideo VOD product page.
To view pricing and purchase resource plans, click Resource Plan.
Billing method | Billing formula | Usage cost |
Pay-as-you-go | Storage fee = Storage unit price × Storage usage |
Average annual storage fee: CNY 0.12/GB/month × 13,344 GB × 12 months = 19,215.36 CNY. |
Traffic fee = Traffic unit price × Traffic usage |
Average annual traffic fee: CNY 0.24/GB × 172,462.5 GB = 41,391 CNY. | |
Transcoding fee = Transcoding unit price × Transcoding duration |
Average annual transcoding fee: (CNY 0.0217/minute × 132,000 minutes) + (CNY 0.0326/minute × 132,000 minutes) = 7,167.6 CNY. | |
Subscription resource plan | Storage fee: Average annual fee for a storage plan |
|
Traffic fee: Average annual fee for a data transfer plan |
| |
Transcoding fee: A transcoding resource plan can be used to cover usage for H.264 LD, SD, and HD transcoding. The duration of the plan is specified in H.264 LD transcoding minutes. The deduction ratio for LD, SD, and HD is 1:1.5:3. |
|
The average annual fees for the two billing methods are:
Pay-as-you-go: 19,215.36 + 41,391 + 7,167.6 = 67,773.96 CNY
Subscription resource plan: 13,950 + 21,800 + 5,425 = 41,175 CNY
By comparing the costs of the two billing methods, you can see that:
Choosing a subscription resource plan can significantly reduce your costs. The more resource plans you purchase, the greater the discount.
You can also combine a subscription resource plan with pay-as-you-go billing to maximize resource utilization and minimize costs.