Manage media asset categories

更新时间:
复制 MD 格式

ApsaraVideo VOD lets you categorize audio, video, image, and short video materials for easier search and management.

Limits

Audio, video, and image categories support up to three levels, and short video material categories support up to two levels. Each level allows a maximum of 100 subcategories.

How to use

Step 1: Create a category

Console

  1. Log on to the ApsaraVideo VOD console.

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

  3. Create a category.

    • Audio/Video/Image Category

      Important

      You can create up to three levels of categories, with a maximum of 100 subcategories per level.

      • On the Audio/Video/Image Category tab, click Add Level 1 Category, enter a category name, and press Enter.

        Customize the category tree for your audio and video assets.

      • Keyboard shortcuts:

        • Enter: Add a same-level category.

        • Alt+Enter: Add a subcategory.

        • Delete: Delete the selected category.

    • Short Video Material Category

      Important

      You can create up to two levels of categories, with a maximum of 100 subcategories per level.

      • On the Short Video Material Category tab, click Add category button on a level-1 category, enter a category name, and press Enter to add the category.

        The default level-1 categories (MV, Face Sticker, Dynamic Sticker, Subtitle, and Font) cannot be modified. You can customize subcategories under them.

      • Keyboard shortcuts:

        • Enter: Add a same-level category.

        • Alt+Enter: Add a subcategory.

        • Delete: Delete the selected category.

API

Call the AddCategory operation to create a category or subcategory.

Step 2: Assign a category

Console

Note

This example uses a video. The process is similar for audio, image, and short video materials.

Assign a category during upload

  1. Log on to the ApsaraVideo VOD console.

  2. In the left-side navigation pane, choose Media Files > Audio/Video.

  3. Click Upload Audio/Video.

  4. Click Add Audio/Video and configure the upload method, bucket, and other parameters.

  5. After adding files to the upload list, expand Unclassified to select a category. In the file list, click the drop-down menu in the Category column and select a category, such as Video-Category-123.

  6. Click Upload.

    The Category column displays the assigned category, such as Video-Category-123.

Categorize an existing asset

  1. Log on to the ApsaraVideo VOD console.

  2. In the left-side navigation pane, choose Media Files > Audio/Video.

  3. Find the video that you want to categorize and click Manage.

  4. On the Basics tab, click Editing Video Information .

  5. Expand the Categories dropdown list and select a category, such as Tutorials. To create or manage categories, click Manage Categories.

  6. Click Save.

    The updated category appears on the Audio/Video page.

API

Assign a category during upload

To categorize assets during upload, specify the CateId or CateIds parameter in one of these operations:

Categorize an existing asset

To change the category of an existing media asset, include the CateId or CateIds parameter in one of these operations:

Step 3: Search for media assets by category

Console

Note

This example uses a video. The process is similar for audio, image, and short video materials.

  1. Log on to the ApsaraVideo VOD console.

  2. In the left-side navigation pane, choose Media Files > Audio/Video.

  3. Click the filter icon Filter button in the Category column, select a category name, and then click OK.

    The Audio/Video page displays only files in the selected category.

API

Call the SearchMedia operation and set the Match parameter to filter by CateName (category name) or CateId (category ID).

Manage categories

Query, modify, or delete categories as needed.

Note

Deleting a category also deletes all its subcategories.

Console

  1. Log on to the ApsaraVideo VOD console.

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

  3. Find the target category. Use the on-screen buttons or keyboard shortcuts to modify, add, or delete categories.

API

Call these operations to modify, query, or delete categories: