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
-
Log on to the ApsaraVideo VOD console.
In the left-side navigation pane, choose Configuration Management > Media Management > Categories.
-
Create a category.
-
Audio/Video/Image Category
ImportantYou 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
ImportantYou can create up to two levels of categories, with a maximum of 100 subcategories per level.
-
On the Short Video Material Category tab, click
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
This example uses a video. The process is similar for audio, image, and short video materials.
Assign a category during upload
-
Log on to the ApsaraVideo VOD console.
In the left-side navigation pane, choose Media Files > Audio/Video.
-
Click Upload Audio/Video.
-
Click Add Audio/Video and configure the upload method, bucket, and other parameters.
-
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.
-
Click Upload.
The Category column displays the assigned category, such as Video-Category-123.
Categorize an existing asset
-
Log on to the ApsaraVideo VOD console.
In the left-side navigation pane, choose Media Files > Audio/Video.
-
Find the video that you want to categorize and click Manage.
-
On the Basics tab, click Editing Video Information .
-
Expand the Categories dropdown list and select a category, such as Tutorials. To create or manage categories, click Manage Categories.
-
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
This example uses a video. The process is similar for audio, image, and short video materials.
-
Log on to the ApsaraVideo VOD console.
In the left-side navigation pane, choose Media Files > Audio/Video.
-
Click the filter icon
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.
Deleting a category also deletes all its subcategories.
Console
-
Log on to the ApsaraVideo VOD console.
In the left-side navigation pane, choose Configuration Management > Media Management > Categories.
-
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: