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. Then, Content Moderation can use the role to submit a video frame capture task. You must use the role management feature of Alibaba Cloud Resource Access Management (RAM). 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 China (Hangzhou), China (Shanghai), China (Beijing), and China (Shenzhen) regions.
Procedure
What to do next
- On the role details page, view and copy the Alibaba Cloud resource name (ARN).
- Generate the video URL for a video to be moderated in OSS in the following format:
oss://arn@bucket.region/object
.Assume that you want to moderate the video/bar.mp4 object in the foo OSS bucket that resides in the China (Shenzhen) region. The generated URL of the video is
oss://acs:ram::xxxxxxxxxxxxxxxx:role/mts-to-a@foo.cn-shenzhen/video/bar.mp4
.xxxxxxxxxxxxxxxx
is the 16-digit ID of your Alibaba Cloud account. - When you submit an asynchronous video moderation task, use the generated video URL.
Note
- The method of submitting a video URL to specify the video to be moderated is available only for asynchronous video moderation tasks. For more information, see Asynchronous moderation.
- The supported regions are China (Hangzhou), China (Shanghai), China (Beijing), and China (Shenzhen).