All Products
Search
Document Center

ApsaraVideo VOD:Get started with ApsaraVideo VOD

Last Updated:Dec 27, 2023

This topic describes how to upload audio and video files to buckets and process these files by using transcoding and workflows for playback in browsers.

Before you begin

  • Activate ApsaraVideo VOD.

  • Prepare audio or video files on your local PC.

  • Prepare a domain name that has completed real-name verification and has obtained an ICP filing. This domain name is added to CDN for acceleration.

    Note

    If you do not have a domain name, skip this step.

Step 1: Enable storage management

ApsaraVideo VOD stores your media resources in Alibaba Cloud Object Storage Service (OSS) buckets. You can allocate an independent bucket in the ApsaraVideo VOD console to store your media files and templates in the bucket.

  1. Log on to the ApsaraVideo VOD console. In the left-side navigation pane, choose Configuration Management > Media Management > Storage.

  2. In the top navigation bar, select the desired region. For example, select China (Shanghai) from the drop-down list.

  3. Click Enable to allocate a storage bucket.

    image.png

  4. Click Manage in the Actions column. On the page that appears, configure the permissions and origin domain name based on your business requirements.

Step 2: Create a transcoding template

A transcoding template is used for video transcoding. The parameters specified in the template determine how the videos that you upload to ApsaraVideo VOD are processed. You can create multiple types of transcoding templates.

  1. In the left-side navigation pane, choose Configuration Management > Media Processing > Transcoding Template Groups.

    Note

    After you enable the storage management feature in a region, the system automatically adds the No Transcoding and TranscodeTemplateGroup transcoding template groups.

  2. Click Create Transcoding Template Group. The Create Transcoding Template Group page appears.

    image.png

  3. On the page that appears, specify Template Group Name, click Add Template in the Regular Transcoding Template section, and then configure the transcoding template as prompted.

  4. Click Save to return to the Transcoding Template Groups page.

    Note

    The newly created transcoding template group is displayed on the Transcoding Template Groups page. You can Edit or Delete the transcoding template group.

Step 3: Create a workflow

You can create a workflow and use the workflow to process media files when or after you upload them to ApsaraVideo VOD.

  1. In the left-side navigation pane, choose Configuration Management > Media Processing > Workflows.

    image.png

  2. Click Add Workflow to go to the Add Workflow page.

  3. Specify Workflow Name.

    This example adds a media transcoding workflow. In the Start section, click + and select Transcode. Click the edit icon next to Transcode to modify Node Name and Transcoding Template Group.

    image.png

  4. Click confirm. After the workflow is created, you are redirected to the Workflows page.

    The newly created workflow is displayed on the Workflows page. You can view Details about the workflow and Delete the workflow.

Step 4: Upload audio and video files

After you upload audio and video files to the VOD bucket, you can process or distribute the files.

  1. In the left-side navigation pane of the ApsaraVideo VOD console, choose Media Files > Audio/Video.

  2. Click Upload to go to the Upload Media page.

    image.png

  3. Click Add Media, select an upload method, and then select Use Transcoding Template Group or Use Workflow.

    • If you select From Local as the upload method, click Add Media to upload the files. Alternatively, you can drag and drop the files to upload them to ApsaraVideo VOD.

    • If you select From URL as the upload method, you must specify the URL, Extension, and Video/Audio Name fields. This option is supported only in the China (Shanghai) region.

  4. Click Upload.

    image.png

    The upload status of the video is displayed on the Upload Media page. When the status changes to Uploaded, the video has been uploaded.

    You can return to the Video and Audio page to view the uploaded video.

    Note

    If transcoding is used during the upload, you are charged for transcoding. To avoid unexpected transcoding costs, we recommend that you use the No Transcoding template group.

Step 5: Process videos

You can use transcoding template groups or workflows to process videos.

  1. In the left-side navigation pane of the ApsaraVideo VOD console, choose Media Files > Audio/Video.

  2. Select the video that you want to process and click Media Processing in the Actions column.

    image.png

  3. Specify Processing Type, select a template or a workflow, and then click OK.

    When the status is Normal, video processing is complete.

Step 6: Obtain the playback URL

Uploaded media files are stored in the ApsaraVideo VOD storage bucket. The system provides the playback URLs. You can enter the URLs in a browser for playback.

Important

You are charged for the outbound traffic if you use the URLs for playback but no accelerated domain name is configured in the corresponding region. If an accelerated domain name is configured in the region, you are charged for ApsaraVideo VOD traffic. The traffic used is offset by your ApsaraVideo VOD data transfer plan.

  1. In the left-side navigation pane of the ApsaraVideo VOD console, choose Media Files > Audio/Video.

  2. Find the video that you want to manage and click Manage in the Actions column.

  3. Click the Video URL tab.

  4. Click Copy in the Actions column.

    image.png

Step 7: (Optional) Configure an accelerated domain name

Important
  1. After you add a domain name and configure it, you can use CDN to improve playback experience. You can purchase a data transfer plan to offset the traffic costs. Data transfer plans are more cost-effective when compared with pay-as-you-go pricing.

  2. If you do not have a domain name, you do not need to configure an accelerated domain name. However, you are charged for OSS outbound traffic if media files are played. ApsaraVideo VOD data transfer plans cannot be used in this case.

  1. In the left-side navigation pane, choose Configuration Management > CDN Configuration > Domain Names.

  2. Click Add Domain Name in the upper-right corner of the page.

    image.png

  3. Click Submit.

    Note

    If your domain name is configured on Alibaba Cloud for the first time, you need to verify the ownership of the domain name. Select Method 1: DNS Settings or Method 2: Verification File.

  4. On the Domain Names page, obtain the CNAME record.

  5. Point the accelerated domain to the CNAME record assigned by Alibaba Cloud CDN.

    You can configure CNAME by following the CNAME instructions on the Domain Names page.

  6. On the Domain Names page, find the domain name and click Configure in the Actions column. On the page that appears, configure Back-to-Origin and Cache based on your business requirements.