Submits a media censor job.
Operation description
This is an asynchronous API. After you submit a job, the system returns a job ID and queues it for asynchronous processing. The final results are delivered through a callback notification. You can also call the Query a media censor job operation to check the job status.
Media censorship is available in the China (Beijing), China (Shanghai), and Asia Pacific SE 1 (Singapore) regions. This feature is not supported in other regions.
QPS limit
The queries per second (QPS) limit for this API is 100 per user. API calls that exceed this limit are rate-limited, which can affect your business. For more information, see QPS limit.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mts:SubmitMediaCensorJob |
none |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Input |
string |
No |
The OSS URL of the media file to censor. Video and audio files are supported. You can obtain the URL from the MPS console under Media Management > Media List. To censor an image file, use the
|
{"Bucket":"example-bucket-****","Location":"oss-cn-shanghai","Object":"example-****.flv"} |
| CoverImages |
string |
No |
The OSS URLs of the cover images. You can obtain the URLs from the MPS console under Media Management > Media List. You can specify up to five cover images. Specify the URLs as a JSON array.
|
[{"Bucket":"example-bucket-****","Location":"oss-cn-shanghai","Object":"example-****.jpeg"}] |
| Title |
string |
No |
The title of the video. The maximum length is 64 bytes. |
Hello World |
| Description |
string |
No |
The description of the video. The maximum length is 128 bytes. |
example description |
| Barrages |
string |
No |
The barrage comments, provided as a string. |
hello world |
| PipelineId |
string |
No |
The ID of the pipeline that is used for message notifications. You can obtain the ID from the MPS console under Global Settings > Pipelines. If you do not specify this parameter, the default pipeline is used. The default pipeline has a concurrency of 10. To increase the concurrency, submit a ticket. Note
Currently, pipelines can only be created on the backend. To query and update pipelines, see Update a pipeline. |
b22c173cced04565b1f38f1ecc39**** |
| VideoCensorConfig |
string |
Yes |
The video censorship configuration and the OSS URL for output snapshots. You can obtain the URL from the MPS console under Media Management > Media List. This parameter is a JSON object.
Note
For input files that have an audio track, the |
{"Scenes" : ["porn"], "OutputFile":{"Bucket": "example-001","Location": "oss-cn-hangzhou","Object": "test/example-{Count}.jpg"},"SaveType" : "abnormal","BizType":"common"} |
| UserData |
string |
No |
Custom user data. The maximum length is 128 bytes. |
UserDatatestid-001-**** |
| ExternalUrl |
string |
No |
The URL of the video. |
http://www.example.com/video-****/test-****.mp4 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The ID of the request. |
25818875-5F78-4A13-BEF6-D7393642CA58 |
| JobId |
string |
The ID of the media censor job. Save this ID for subsequent API calls. |
88c6ca184c0e47098a5b665e2**** |
Asynchronous notification message parameters
| Parameter | Type | Description |
| Type | String | The type of the message. Value: MediaCensor. |
| MediaCensorJobNotify | AliyunMediaCensorJobNotify | The notification object for the media censor job. |
| UserData | String | The custom user data. |
Examples
Success response
JSON format
{
"RequestId": "25818875-5F78-4A13-BEF6-D7393642CA58",
"JobId": "88c6ca184c0e47098a5b665e2****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.