On the Tasks page of the ApsaraVideo Media Processing (MPS) console, you can generate a media file based on an uploaded video file by creating a job. You can create a transcoding job, a video moderation job, or a media fingerprinting job. This topic describes how to create and submit a job. This topic also describes how to view the status and details of a job after it is submitted.

Prerequisites

Input and output media buckets are added before you create a job. For more information, see Add media buckets.

Create a transcoding job

You can create a transcoding job to transcode a video into different formats that are suitable for playback on various platforms.

Note For more information about the overall process of submitting a transcoding job, see Submit an encoding task. You can also create multiple Encode nodes in a workflow to transcode a media file. For more information, see Use a workflow.
  1. Overview pageLog on to the MPS console.
  2. In the top navigation bar, select a region from the drop-down list.
  3. In the left-side navigation pane, click Tasks.
  4. On the Encode tab, click Create Task.
  5. Set the transcoding parameters that are described in the following table.
Parameter Description
Input File URL

Click Select next to the Input File URL field. In the Select File dialog box, select an Object Storage Service (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 The Input File URL parameter specifies the path of the input video file that is stored in the OSS bucket. If no bucket name is displayed in the Bucket drop-down list, create a bucket in this region. For more information, see Add media buckets.
Encoding Pipeline The MPS queue for transcoding.
Note If no MPS queue name is displayed in the Encoding Pipeline drop-down list, enable an MPS queue for transcoding. For more information, see Activate or pause an MPS queue.
Output File Name Enter the name of the output file name in the Output File Name field.
Output Path

Click Select next to the Output Path field. In the Select Output Path 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 The Output Path parameter specifies the path of the output video file that is stored in the OSS bucket. If no bucket name is displayed in the Bucket drop-down list, create a bucket in this region. For more information, see Add media buckets.
  1. Click Next.
  2. Specify a transcoding template.
Parameter Description
Template Type The type of the transcoding template. Default value: Preset Static Template.
Note MPS offers two types of transcoding templates: preset templates and custom templates.
Output format Select the output format from the drop-down list. Default value: mp4.
Template Select a transcoding template from the list. Default value: MP4-4K.
Watermark Template (Optional) Turn on Watermark Template.
  1. Select a watermark template from the Watermark Template drop-down list. For information about how to create a watermark template, see Watermark templates.
  2. Click Select next to the Watermark Image 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.
Clip Output (Optional) Turn on Clip Output.
  1. In the Start From time picker, select the hour, minute, and second for the start time of video editing.
  2. In the Clip Length time picker, select the hour, minute, and second for the duration of a video clip.
Rotate Angle (Optional) Turn on Rotate Angle.

Enter the rotation angle in the Rotate Angle field. Valid values: 0 to 360.

  1. 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.

Create a video moderation job

MPS intelligently detects pornographic content, terrorism 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 use the video moderation feature.

Note You can create a video moderation job only in the China (Beijing) and China (Shanghai) regions. Video moderation will soon be supported in more regions.
  1. Overview pageLog on to the MPS console.
  2. In the left-side navigation pane, click Tasks.
  3. Click the Content Moderation tab. On the tab that appears, click Create Task.
  4. Set the parameters in the Input and Output sections.
Parameter Description
Input File URL

Click Select next to the Input File URL field. In the Select File dialog box, select an Object Storage Service (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.

Content Moderation Pipeline The MPS queue for video moderation. Select an MPS queue from the Content Moderation Pipeline drop-down list.
Note If no MPS queue name is displayed in the drop-down list, enable an MPS queue for video moderation. For more information, see Activate or pause an MPS queue.
Moderation Type The types of prohibited content to be detected. By default, Pornography and Terrorism are selected.
Storage Path

Click Select next to the Output Path field. In the Select Output Path 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 The Output Path parameter specifies the path of the output video file that is stored in the OSS bucket. If no bucket name is displayed in the Bucket drop-down list, create a bucket in this region. For more information, see Add media buckets.
  1. 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.

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. The media fingerprint 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).

Note You can create a media fingerprinting job only in the China (Beijing), China (Hangzhou), China (Shanghai), and Singapore (Singapore) regions. Media fingerprinting will soon be supported in more regions.
  1. Overview pageLog on to the MPS console.
  2. In the top navigation bar, select a region from the drop-down list.
  3. In the left-side navigation pane, click Tasks.
  4. Click the Video DNA tab. On the tab that appears, click Create Task.
  5. Set the media fingerprinting parameters that are described in the following table.
Parameter Description
Input File URL

Click Select next to the Input File URL field. In the Select File dialog box, select an Object Storage Service (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.

Video DNA Pipeline The MPS queue for media fingerprinting.
Note If no MPS queue name is displayed in the Video DNA Pipeline drop-down list, enable an MPS queue for media fingerprinting. For more information, see Activate or pause an MPS queue.
Inbound Rule for DNA Library The rule of adding fingerprints to the media fingerprint library. Default value: Save Non-duplicated Content Only.
Advanced Settings (Optional) Turn on Copyright Protection.
Note After you enable the copyright protection feature, the media fingerprint information is stored by using the Ant Blockchain technologies developed by Ant Financial and is available for future inspections conducted by judicial authorities.
  1. 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.

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.

  1. Overview pageLog on to the MPS console.
  2. In the top navigation bar, select a region from the drop-down list.
  3. In the left-side navigation pane, click Tasks.
  4. Click the Snapshot tab. Select Search by Time or Search by ID from the drop-down list.
  5. If you select Search by Time, set the Start Time and End Time parameters. If you select Search by ID, enter the ID of the snapshot job that you want to query. Then, click Search.
    Related API operation

    QuerySnapshotJobList