On the Tasks page of the ApsaraVideo Media Processing (MPS) console, you can submit a job with a few clicks to process a media file stored in Object Storage Service (OSS). For example, you can submit a job for transcoding, snapshots, video moderation, or media fingerprinting. This topic describes how to create and submit a job, and how to view the status and details of a job after the job is submitted.
Prerequisites
- The input media bucket and output media bucket are specified. For more information, see Add media buckets.
- An MPS queue is activated based on the job type. For more information, see Manage MPS queues.
- Optional: A template is available. If preset templates cannot meet your business requirements, you can create a custom template. For more information, see Transcoding templates.
Limits
The maximum size of a file that a job can process is 100 GB. If the file size exceeds the upper limit, the job fails.
Create a transcoding job
This section describes how to create a transcoding job in the MPS console. You can create a transcoding job to transcode a video into different formats that are suitable for playback on various platforms. For more information about the complete process of submitting a transcoding job, see Submit a transcoding job.
- Log on to the MPS console.
- In the top navigation bar, select a region from the drop-down list.
- In the left-side navigation pane, click Tasks.
- On the Encode tab, click Create Task.
- Configure parameters for the job. The following table describes the parameters.
Parameter | Description |
---|---|
Input File URL | Click Select next to the Input File URL field. In the Select File dialog box, select an OSS bucket from the Bucket drop-down list. Then, folders in the OSS bucket are automatically displayed in the Path section. Select a folder as the input path. Note
|
Encoding Pipeline | Select an MPS queue for transcoding from the Encoding Pipeline drop-down list. Note
|
Output File Name | Enter the name of the output file in the Output File Name field. You must include a file name extension for all types of files except for M3U8 files. Example: example_video01.mp4. |
Output Path | Click Select next to the Input File URL field. In the Select File dialog box, select an OSS bucket from the Bucket drop-down list. Then, folders in the OSS bucket are automatically displayed in the Path section. Select a folder as the output path. Note
|
- Click Next.
- Specify a transcoding template. The following table describes the parameters to be configured.
Parameter | Description |
---|---|
Template Type | Select the type of the transcoding template. For more information about preset templates, see the "Preset template" section of the Transcoding template topic. For information about how to create a custom transcoding template, see Transcoding templates. |
Output Format | Select the output format from the drop-down list. Default value: mp4. |
Templates | Select a transcoding template from the list. Default value: MP4-4K. |
Watermark Templates | Optional. Specify whether to turn on Watermark Templates. If you turn on this switch, you also need to perform the following operations:
|
Clip Output | Optional. Specify whether to turn on Clip Output. In this example, this switch is turned on. You can specify the duration of the video clip by setting the start time for video editing and the length to be trimmed out.
|
Rotate Angle | Optional. Specify the clockwise rotation angle for video images. Valid values: 0 to 360. |
- Click Submit. The transcoding job is created and submitted. After the transcoding job is submitted, you can view the execution status and configurations of the job. You can also click the name of the job to view other information, such as the input and output paths.Note If Failed is displayed in the Encoding Status column for a transcoding job after the job is submitted but no details are provided for the failure, check the network condition and submit the job again after the network condition is back to normal.
Create a video moderation job
MPS intelligently detects pornographic content, terrorist content, ads, and undesirable content in a video. This feature helps you reduce manpower costs for manual review and lower the risks that may be brought by non-compliant content. You can create a job to perform video moderation.
- Log on to the MPS console.
- In the top navigation bar, select a region from the drop-down list.
- In the left-side navigation pane, click Tasks.
- Click the Content Moderation tab. Then, click Create Task.
- Configure the parameters in the Input and Output sections. The following table describes the parameters.
Parameter | Description |
---|---|
Input File URL | Click Select next to the Input File URL field. In the Select File dialog box, select an OSS bucket from the Bucket drop-down list. Then, folders in the OSS bucket are automatically displayed in the Path section. Select a folder as the input path. Note
|
Content Moderation Pipeline | Select an MPS queue for video moderation from the Content Moderation Pipeline drop-down list. Note
|
Moderation Type | The types of prohibited content to be detected. By default, Pornography and Terrorism are selected. |
Storage Path | Click Select next to the Input File URL field. In the Select File dialog box, select an OSS bucket from the Bucket drop-down list. Then, folders in the OSS bucket are automatically displayed in the Path section. Select a folder as the output path. Note
|
- Click Submit. The video moderation job is created and submitted. After the transcoding job is submitted, you can view the execution status and configurations of the job. You can also click the name of the job to view other information, such as the input and output paths.Note If Failed is displayed in the Encoding Status column for a transcoding job after the job is submitted but no details are provided for the failure, check the network condition and submit the job again after the network condition is back to normal.
Create a media fingerprinting job
You can create a media fingerprinting job to extract fingerprint features such as images and audio from a video to generate a media fingerprint. Media fingerprints can be used to find and remove duplicate videos, trace the source of video clips, filter videos that infringe copyright, and identify user-generated content (UGC).
- Log on to the MPS console.
- In the top navigation bar, select a region from the drop-down list.
- In the left-side navigation pane, click Tasks.
- Click the Video DNA tab. Then, click Create Task.
- Configure parameters for the job. The following table describes the parameters.
Parameter | Description |
---|---|
Input File URL | Click Select next to the Input File URL field. In the Select File dialog box, select an OSS bucket from the Bucket drop-down list. Then, folders in the OSS bucket are automatically displayed in the Path section. Select a folder as the input path. Note
|
Video DNA Pipeline | Select an MPS queue for media fingerprinting from the Video DNA Pipeline drop-down list. Note
|
Inbound Rule for DNA Library | The rule of adding fingerprints to the media fingerprint library. Default value: Save Non-duplicated Content Only. |
- Click Submit. The media fingerprinting job is created and submitted. After the transcoding job is submitted, you can view the execution status and configurations of the job. You can also click the name of the job to view other information, such as the input and output paths.Note If Failed is displayed in the Encoding Status column for a transcoding job after the job is submitted but no details are provided for the failure, check the network condition and submit the job again after the network condition is back to normal.
Query a snapshot job
You can query the status of a snapshot job in a workflow that is run. For information about how to add a snapshot node in a workflow, see Create a workflow.
- Log on to the MPS console.
- In the top navigation bar, select a region from the drop-down list.
- In the left-side navigation pane, click Tasks.
- Click the Snapshot tab. Then, select Search by Time or Search by ID from the drop-down list.
- If you select Search by Time, configure the Start Date and End Date parameters. If you select Search by ID, enter the ID of the snapshot job that you want to query. Then, click Search.