Create a resolution-redoubling job

更新时间:
复制 MD 格式

This topic describes how to use the resolution-redoubling feature to upscale standard-definition (SD) videos to high-definition (HD), or 2K videos to 4K.

Prerequisites

Before you begin, complete the following setup to ensure the feature works correctly. If you have already completed these steps, you can skip this section.

  • Activate a queue. For resolution-redoubling transcoding, you can select a Narrowband HD 2.0 queue.

  • Upload the video to be processed to OSS.

    • If you want to create a job, directly upload the video to OSS. For more information, see Upload videos.

    • If you want to create a workflow and automatically trigger the workflow, you must add media buckets and create a workflow before you upload the video. After you specify the input and output media buckets and upload a media file to the input media bucket, MPS receives a message about the upload and triggers the associated workflow. After the workflow is complete, the processed media file is uploaded to the output media bucket. For more information, see Add media buckets.

  • Configure a transcoding template.

  • (Optional) To add watermarks to your videos, configure a watermark template. For more information, see Watermark templates.

  • Optional. Enable the notification feature. If you want MPS to send notifications on jobs and workflows to MNS topics or queues, configure an MNS queue or topic as required. For more information, see Set up notifications.

Limitations

  • The resolution-redoubling feature is available only in the China (Hangzhou) and China (Shanghai) regions.

  • Resolution-redoubling transcoding is a time-consuming process. We recommend using video clips shorter than 3 minutes for testing.

Create resolution-redoubling templates

If the preset resolution-redoubling templates do not meet your requirements, you can request a custom template. To apply, contact your sales representative and provide your UID, the region where ApsaraVideo Media Processing (MPS) is activated, the transcoding template ID, and your custom requirements, such as output resolution, bitrate, encoding format, and video quality.

Console: Create resolution-redoubling jobs

Single job

  1. Log on to the MPS console.

  2. In the top navigation bar, select a region from the drop-down list.Region

  3. In the left-side navigation pane, choose Job Management.

  4. On the Transcoding tab, click Create Job.

  5. Configure the parameters as instructed in Create a transcoding job. Specifically, configure the queue and transcoding template as follows:

    1. Queue: Select a Narrowband HD 2.0 queue.

    2. Transcoding Template: From the Preset Narrowband HD Template list, select a template whose name starts with Multi-Platform (MP4). Examples include Multi-Platform (MP4)-SDToHD (bitrate ≤ 6,000 kbit/s, resolution 1280) or Multi-Platform (MP4)-2KTo4K (bitrate ≤ 20,000 kbit/s, resolution 3840).

  6. Click Submit Job.

Workflow

  1. Log on to the MPS console.

  2. In the top navigation bar, select a region from the drop-down list.Region

  3. Create a transcoding workflow. For more information, see Create a workflow. In the workflow, configure the Transcoding node as follows:

    1. Queue: Select a Narrowband HD 2.0 queue.

    2. Transcoding Template: From the Preset Narrowband HD Template list, select a template whose name starts with Multi-Platform (MP4).

  4. After you create the workflow, it automatically runs when a matching file is uploaded to the input path.

    Note

    Workflows can also be manually triggered after a file is uploaded. For more information about how to configure this, see Workflow overview.

API: Create resolution-redoubling jobs

  1. Submit a resolution-redoubling transcoding job.

    Call the SubmitJobs API operation to submit a resolution-redoubling transcoding job for video or audio files in Object Storage Service (OSS).

    1. PipelineId: The queue ID. You must use the ID of a Narrowband HD 2.0 queue.

    2. TemplateId: The ID of the transcoding template. You must use the ID of a custom or preset resolution-redoubling template.

    3. For information about other parameters, see the API reference for SubmitJobs.

  2. Receive callback messages.

    If you have configured event notifications for the queue, ApsaraVideo Media Processing (MPS) sends a message to your specified Simple Message Queue (formerly MNS) queue or topic after the job is complete. For more information, see Receive message notifications.

  3. Query the job result.

    1. Call the QueryJobList API operation to query the execution result and obtain the output file URL.

    2. Call the ListJob API operation to query multiple jobs by queue ID, job status, or creation time range.