Content Moderation calls ApsaraVideo for Media Processing to capture frames for the videos that are uploaded to Object Storage Service (OSS). You must authorize a role to access ApsaraVideo for Media Processing, by using the role management feature of Alibaba Cloud Resource Access Management (RAM). Then, Content Moderation can use the role to submit a video frame capture task. This topic describes how to perform the required steps.
Background information
- If you submit an asynchronous video moderation task and specify the video URL in the oss://xxxx format, Content Moderation can automatically capture frames for the video that is uploaded to OSS. To ensure automatic frame capture, you must authorize a role to access ApsaraVideo for Media Processing.
- The OSS service is available in the following regions: China (Hangzhou), China (Shanghai), China (Beijing), and China (Shenzhen).
Procedure
What to do next
- On the role details page, view and copy ARN, which indicates the Alibaba Cloud resource name.
- Generate a URL for a video to be moderated in OSS. The URL is in the following format:
oss://arn@bucket.region/object
.Assume that you want to moderate the video/bar.mp4 object in the f** OSS bucket that resides in the China (Shenzhen) region. The generated URL of the video is
oss://acs:ram::118484706224****:role/mts-to-a@f**.cn-shenzhen/video/bar.mp4
, where118484706224****
is the 16-digit ID of your Alibaba Cloud account. - When you submit an asynchronous video moderation task, use the generated URL.
Note The method of using a URL to specify the video to be moderated is available only for asynchronous video moderation tasks. For more information, see /green/video/asyncscan.