Create a Narrowband HDTM 1.0 transcoding job

更新时间:
复制 MD 格式

Narrowband HDTM 1.0 is a transcoding feature of ApsaraVideo Media Processing (MPS). It intelligently analyzes scenes, movement, content, and textures in a video during transcoding to produce output at a lower bitrate without compromising image quality, helping reduce bandwidth costs.

Before you begin

Complete the following preparations:

  • Enable an MPS queue. For more information, see Manage MPS queues. You can use a standard MPS queue or an MPS queue for high-speed transcoding to run Narrowband HD™ 1.0 transcoding jobs.

  • 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 a video.

    • 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. MPS provides preset Narrowband HD™ 1.0 transcoding templates. You can also apply for custom templates.

  • Optional. Configure a watermark template. If you want to add a watermark to a video, we recommend that you use a watermark template for your convenience. 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.

Create a Narrowband HDTM 1.0 transcoding template

If the preset Narrowband HD™️ 1.0 transcoding templates do not meet your requirements, you can apply for custom templates. Contact your business manager and provide your Alibaba Cloud account UID, the region in which MPS is activated, the transcoding template ID, and your customization requirements such as output resolution, bitrate, encoding format, and image quality.

Create a Narrowband HDTM1.0 transcoding job or workflow in the MPS console

Create a Narrowband HDTM 1.0 transcoding 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 Tasks > Job Management.

  4. On the Encode tab, click Create Task.

  5. On the Create Encoding Task page, configure the parameters. For more information, see the "Create a transcoding job" section of the Job management topic. Configure the Encoding Pipeline and Transcoding Templates parameters based on the following instructions:

    1. Encoding Pipeline: Select a standard MPS queue or an MPS queue for high-speed transcoding.

    2. Transcoding Template: Select Custom Templates (your custom Narrowband HDTM 1.0 template) or Preset Narrowband HD Template (template names end with Narrowband HDTM). In the Output Parameter Settings section, set Template Type to Preset Narrowband HD Template and Output Format to mp4. Then, select the required Narrowband HD template from the template list. Available templates include: MP4-4K-Narrowband HDTM, MP4-2K-Narrowband HDTM, MP4-Full HD-Narrowband HDTM, MP4-HD-Narrowband HDTM, MP4-SD-Narrowband HDTM, and MP4-Fluent-Narrowband HDTM.

  6. Click Submit. The Narrowband HDTM 1.0 transcoding job is created.

Create a Narrowband HDTM 1.0 transcoding 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. Configure the Encoding Pipeline parameter in the Input node and the Transcoding Templates parameter in the Encode node based on the following instructions:

    1. Encoding Pipeline: Select a standard MPS queue or an MPS queue for high-speed transcoding.

    2. Transcoding Template: Select Custom Templates (your custom Narrowband HDTM 1.0 template) or a Preset Narrowband HD Template (template names end with Narrowband HDTM).

  4. If a file is uploaded to the specified path, the workflow is triggered.

    Note

    You can also manually trigger the workflow after a file is uploaded. For more information, see Overview.

Create a Narrowband HDTM 1.0 transcoding job by calling an API operation

  1. Submit a Narrowband HD™️ 1.0 transcoding job.

    For videos and audios uploaded to Object Storage Service (OSS), call the SubmitJobs operation to submit a Narrowband HD™️ 1.0 transcoding job.

    1. PipelineId: the ID of the MPS queue. Set this parameter to the ID of a standard MPS queue or an MPS queue for high-speed transcoding.

    2. TemplateId: the ID of the transcoding template. Set this parameter to the ID of a custom template for Narrowband HD™️ 1.0 transcoding or a preset Narrowband HD™️ 1.0 transcoding template.

    3. For more information about other parameters, see SubmitJobs.

  2. Receive a callback notification.

    If you configured a Simple Message Queue (formerly MNS) queue or topic to receive notifications, MPS sends a notification to the SMQ queue or topic after the transcoding job is complete. For more information, see Receive notifications.

  3. Query the results of the transcoding job.

    1. You can call the QueryJobList operation to query the transcoding results and the URL of the output file.

    2. You can call the ListJob operation to query multiple transcoding jobs at a time based on the MPS queue ID, job status, and time range in which the jobs are created.