Media storage

Updated at:
Copy as MD

ApsaraVideo VOD provides media asset storage based on Alibaba Cloud Object Storage Service (OSS). Storage is a core component of media processing, distribution, and playback. Before you start, you must choose a storage solution that meets your business needs.

What is media storage

Media storage is ApsaraVideo VOD's cloud storage feature. It supports various media file types, such as audio, video, images, and materials for short videos.

Media storage offers two storage solutions:

  • VOD system bucket: A one-stop, managed storage solution provided by ApsaraVideo VOD. It is ready to use out-of-the-box and tightly integrated with ApsaraVideo VOD features. This solution is suitable for scenarios that require an all-in-one audio and video solution.

  • Your own OSS bucket: This solution lets you grant ApsaraVideo VOD access to your OSS buckets. It is ideal for users who already have large amounts of data in OSS or have specific storage management requirements.

Choose a solution

Both ApsaraVideo VOD storage solutions are built on Alibaba Cloud Object Storage Service (OSS) but suit different use cases. You can use a VOD system bucket, your own OSS bucket, or a combination of both. The following table compares the two solutions.

Comparison item

Management method

Data security

Cost

VOD system bucket

One-stop management by ApsaraVideo VOD.

ApsaraVideo VOD provides the service and manages both media asset information and stored files, ensuring high stability.

Low. CDN origin fetch traffic fees and storage API request fees are waived. Billing is handled by ApsaraVideo VOD.

Your own OSS bucket

Managed through both ApsaraVideo VOD and OSS.

Operations in the OSS console can cause media asset inconsistencies, which can lead to playback failures and other issues.

High. You pay OSS for storage, traffic, and API request fees. Billing is handled by OSS.

Scenario 1: No historical data and cost priority

If your project has no historical data and you want to maximize cost savings, we recommend using a VOD system bucket.

  • Reason: This solution has an optimal cost structure because it waives CDN origin fetch traffic fees and storage API request fees.

Scenario 2: Existing data in OSS

If you have many media files stored in your own OSS bucket and data migration is costly, we recommend using your own OSS bucket.

  • Reason: This solution lets you use your existing OSS media assets directly. It avoids the time, cost, and risks of data migration. You only need to add your bucket to the ApsaraVideo VOD service.

VOD system bucket

A VOD system bucket is a bucket created and managed by ApsaraVideo VOD. It offers a simple configuration and a straightforward cost structure. This makes it ideal for projects that require a quick launch and simplified O&M.

Enable a bucket

Procedure

  1. Log on to the ApsaraVideo VOD console.

  2. In the left-side navigation pane, choose Configuration Management > Media Management > Storage.

  3. In the upper-left corner of the page, select the target service region.

    Available service regions include China (Shanghai), China (Beijing), China (Shenzhen), Germany (Frankfurt), Japan (Tokyo), Singapore, Indonesia (Jakarta), and India (Mumbai).

  4. Click Enable VOD System Bucket.

  5. Select a storage redundancy type based on your data reliability requirements.

    1. Locally redundant storage: This option has a lower cost and is suitable for scenarios with general data reliability requirements.

    2. Zone-redundant storage: This option provides higher data reliability and is suitable for production environments or core business.

  6. Once the storage address status changes to Normal, you can use it.

Manage a bucket

After you enable a bucket, you can manage its permissions and associated domain names.

  1. Log on to the Storage Management page in the ApsaraVideo VOD console.

  2. In the Actions column for the target storage address, click Manage to go to the management page.

    The management page displays basic information about the storage bucket, including Region, Type, and Storage Address. In the domain name management area, you can set the origin domain name as the Default.

  3. In the Basics section, you can view basic information about the storage address, such as its region and type.

  4. In the Permissions section, click Modify to change the bucket's read and write permissions.

    1. private (Default): High security. All access must be authenticated by the ApsaraVideo VOD service. The generated playback URL is valid for 3,600 seconds by default. You can call the GetPlayInfo API to adjust the validity period.

    2. public-read: High risk. The storage address is permanently valid. This poses risks of hotlinking and unauthorized downloads, which can lead to high traffic fees. Configure this setting with caution.

  5. In the Domains That Use This Storage Address as the Origin section, you can set the default origin domain name.

    For more information about how to configure domain names that use a storage address as the origin, see Domain Name Management.

Set the default storage address

When you use a VOD system bucket and your own OSS bucket together, you can set one as the default address. Media assets uploaded to that region are then automatically stored there.

Convert the storage redundancy type

You can upgrade the storage type of a VOD system bucket from locally redundant storage to zone-redundant storage. Zone-redundant storage improves data reliability by storing data across multiple zones in the same region, but at a higher storage cost.

Applicability

  • Storage redundancy type conversion is supported in the following regions: China (Shanghai), China (Beijing), China (Shenzhen), Hong Kong (China), Japan (Tokyo), Singapore, Indonesia (Jakarta), and Germany (Frankfurt).

Procedure

  • Log on to the Storage Management page in the ApsaraVideo VOD console and in the Actions column for the target storage address, click Manage to go to the management page.

  • In the Basics section, to the right of Storage Redundancy Type, click Convert to Zone-redundant Storage.

Note

This is a one-way operation. You cannot downgrade from zone-redundant storage to locally redundant storage.

Release a system bucket

If you no longer need the ApsaraVideo VOD service and its media assets in a specific region, you can request to release the VOD system bucket. To ensure the security of your media assets, you must submit a request for approval before releasing it. To back up your media assets, see Migrate ApsaraVideo VOD resources.

  1. Request release permission

    Request release permission

    1. Log on to Quota Center and choose Product List > Equity Quotas.

    2. On the Equity Quota Product List page, select Video and CDN from the Product Category drop-down list. Click ApsaraVideo VOD to go to the quota request page.

    3. In the row for Use the feature to release VOD system storage, click Apply.

    4. Enter the request information.

      Parameter

      Description

      Example

      Quota application value

      After the quota request is approved, the Release/View System Storage button appears or disappears in the ApsaraVideo VOD console. The button appears when the quota is effective and disappears when it expires.

      Effective

      Time

      If you set the Quota Application Value to Effective, you must set an effective time and an expiration time. The expiration time must be later than the effective time.

      • Effective Time: If not specified, it defaults to the time the request is submitted.

      • Expiration Time: If not specified, it defaults to 99 years from the effective time.

      Effective Time: 10:01:01, August 29, 2023

      Expiration Time: -

      Reason for request

      Provide a detailed and reasonable justification for your request.

      The XXX service no longer uses ApsaraVideo VOD. I need to request to release all resources at once.

      Notify of result

      • Yes (Default): The result is sent by text message and email.

      • No: No notification is sent. You can view the status of your quota request by clicking Application History on the Equity Quotas page in the Quota Center console.

      Yes

    5. Click Confirm Adjustment. Wait until the status of the quota request in Application History changes to Approved.

  2. Release the bucket

    1. Log on to the Storage Management page in the ApsaraVideo VOD console, and in the Actions column for the target storage address, click Manage.

    2. In the row for the VOD system bucket that you want to release, click menu按钮.png, and then click Release/View System Storage.

Your own OSS bucket

If your media assets are already stored in an OSS bucket or if you want to use advanced OSS features, you can add your own OSS bucket to ApsaraVideo VOD.

Add a bucket

This operation adds an existing OSS bucket to ApsaraVideo VOD. It does not move or modify existing files in the bucket.

Applicability

  • Ensure that the OSS bucket meets the following requirements:

    • ApsaraVideo VOD is supported in the following service regions: China (Shanghai), China (Beijing), China (Shenzhen), Japan (Tokyo), Singapore, Indonesia (Jakarta), Germany (Frankfurt), and US (Silicon Valley). However, you cannot add your own OSS bucket in the Hong Kong (China) region.

    • The storage class of your OSS bucket must be Standard. Other storage classes, such as Infrequent Access and Archive, are not supported. For more information, see OSS storage classes.

    • If the bucket is attached to ApsaraVideo Media Processing (MPS/MTS), you must detach it first. For more information, see Detach a bucket. ApsaraVideo VOD transcoding uses MPS, and a bucket cannot be attached to both ApsaraVideo VOD and MPS at the same time.

Procedure

  1. Log on to the ApsaraVideo VOD console.

  2. In the left-side navigation pane, choose Configuration Management > Media Management > Storage.

  3. Click Add User-created Bucket and select your OSS bucket in the corresponding region.

  4. Click OK.

    Note
    • When you add your own OSS bucket, ApsaraVideo VOD assigns a default cross-origin resource sharing (CORS) configuration to the bucket. The default configurations are as follows:

      • Allowed Origins: *

      • Allowed Methods: GET, POST, PUT, DELETE, HEAD

      • Allowed Headers: *

      • Exposed Headers: ETag, x-oss-request-id

      To modify the CORS configuration, go to the Object Storage Service (OSS) console. For more information, see Configure CORS.

Manage existing media assets

For media assets that exist in the bucket before you add it, you must call the RegisterMedia API to register their information with ApsaraVideo VOD. After the media assets are registered, you can perform operations such as transcoding, taking a snapshot, and retrieving a playback URL.

Manage a bucket

After you add a bucket, you can manage its permissions and associated domain names.

  1. Log on to the Storage Management page in the ApsaraVideo VOD console.

  2. In the Actions column for the target storage address, click Manage to go to the management page.

    The management page displays basic information about the storage bucket, including Region, Type, and Storage Address. In the domain name management area, you can set the origin domain name as the Default.

  3. In the Basics section, you can view basic information about the storage address, such as its region and type.

  4. In the Permissions section, click Modify to change the bucket's read and write permissions.

    1. private (Default): High security. All access must be authenticated by the ApsaraVideo VOD service. The generated playback URL is valid for 3,600 seconds by default. You can call the GetPlayInfo API to adjust the validity period.

    2. public-read: High risk. The storage address is permanently valid. This poses risks of hotlinking and unauthorized downloads, which can lead to high traffic fees. Configure this setting with caution.

  5. In the Domains That Use This Storage Address as the Origin section, you can set the default origin domain name.

    For more information about how to configure domain names that use a storage address as the origin, see Domain Name Management.

Set the default storage address

If you add multiple of your own OSS buckets, you can set one as the default storage address. Media assets uploaded to that region are automatically stored there.

Remove a bucket

This operation only detaches the bucket from ApsaraVideo VOD. It does not delete the bucket or its files from OSS.

  1. Delete media files

    You can delete media files in the ApsaraVideo VOD console or by calling an API. For more information, see Delete media files. To keep the media files, see Migrate ApsaraVideo VOD resources.

  2. Delete the origin configuration

    Log on to the Domain Names page in the ApsaraVideo VOD console, and click Configure for the target domain name. In the Basic Configuration section, click Edit in the Origin Server area to change the origin server.

  3. Remove the bucket

    1. Log on to the Storage Management page in the ApsaraVideo VOD console and in the Actions column for the target storage address, click Manage to go to the management page.

    2. In the Actions column for the target storage address, click Delete.

Limitations

  • Adding your own OSS bucket

    • Your own OSS bucket must be in the same region as the ApsaraVideo VOD service. You can add only OSS buckets of the Standard storage class.

    • If your OSS bucket is already attached to the ApsaraVideo Media Processing (MPS) service, you cannot add it to ApsaraVideo VOD. You must detach the bucket from MPS first. For more information, see Detach a bucket.

    • To prevent playback or processing failures that are caused by data inconsistencies between ApsaraVideo VOD and OSS, we recommend performing all media file operations, such as adding, deleting, or modifying, through ApsaraVideo VOD.

  • Converting the storage redundancy type of a VOD system bucket

    • The storage redundancy type can be converted only in the following regions: China (Shanghai), China (Beijing), China (Shenzhen), Hong Kong (China), Japan (Tokyo), Singapore, Indonesia (Jakarta), or Germany (Frankfurt).

    • You can only convert from locally redundant storage to zone-redundant storage. The reverse conversion is not supported.

Billing

  • VOD system bucket: The fees are included in your ApsaraVideo VOD bill. No CDN origin fetch traffic fees or storage API request fees are incurred.

  • Your own OSS bucket: Fees are charged separately by OSS and ApsaraVideo VOD. You must pay OSS for storage, outbound traffic over the internet, and API requests. If you use ApsaraVideo VOD features such as transcoding and snapshots, the processing fees are charged by ApsaraVideo VOD.

  • Combined use: Storage fees for your own OSS bucket are billed by OSS. All other fees are charged by ApsaraVideo VOD. For more information, see Basic service billing.

FAQ

Using existing files in your OSS bucket

No. For files that already exist in the bucket, you must call the RegisterMedia API to register them with ApsaraVideo VOD. After that, you can perform operations such as transcoding, taking a snapshot, and retrieving a playback URL. This step is not required for new files uploaded using the ApsaraVideo VOD API after the bucket is added.

Viewing storage usage

VOD system bucket

  1. Log on to the ApsaraVideo VOD console.

  2. In the left-side navigation pane, choose Data Center > Usage.Usage 

  3. On the Usage page, click the Storage tab.

  4. Select the storage region that you want to view.

Your own OSS bucket

  1. Log on to the OSS console.

  2. In the left-side navigation pane, click Buckets, and then click the name of the target bucket.

  3. In the left-side navigation pane, choose Usage to go to the Usage page.