Narrowband HDTM 1.0 transcoding is a transcoding feature provided by ApsaraVideo Media Processing (MPS). Narrowband HDTM 1.0 analyzes the properties such as the scene, movement, content, and texture in a video during transcoding and generates the output video with lower bitrate and bandwidth cost without compromising the image quality.
Before you begin
Make sure that the following operations are performed:
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 Manage 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 Enable the notification feature for MPS jobs or workflows.
Create a Narrowband HDTM 1.0 transcoding template
If the preset Narrowband HD™️ 1.0 transcoding templates do not meet your transcoding requirements, you can apply for custom templates. Contact your business manager and provide the UID of your Alibaba Cloud account, region in which MPS is activated, ID of the transcoding template, and customization requirements, such as output resolution, bitrate, encoding format, and image quality requirements.
Create a Narrowband HDTM1.0 transcoding job or workflow in the MPS console
Create a Narrowband HDTM 1.0 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, choose Tasks > Job Management.
On the Encode tab, click Create Task.
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:
Encoding Pipeline: Select a standard MPS queue or an MPS queue for high-speed transcoding.
Transcoding Templates: Set the Template Type parameter to Custom Templates or Preset Narrowband HD Template, and select a custom template or a preset Narrowband HD™️ 1.0 transcoding template. The name of a preset Narrowband HD™️ transcoding template ends with Narrowband HD™.
Click Submit. The Narrowband HDTM 1.0 transcoding job is created.
Create a Narrowband HDTM 1.0 transcoding workflow
Log on to the MPS console.
In the top navigation bar, select a region from the drop-down list.
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:
Encoding Pipeline: Select a standard MPS queue or an MPS queue for high-speed transcoding.
Transcoding Templates: Set the Template Type parameter to Custom Templates or Preset Narrowband HD Template, and select a custom template or a preset Narrowband HD™️ 1.0 transcoding template. The name of a preset Narrowband HD™️ transcoding template ends with Narrowband HD™.
If a file is uploaded to the specified path, the workflow is triggered.
NoteYou 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
Submit a Narrowband HD™️ 1.0 transcoding job.
For videos and audios that have been uploaded to Object Storage Service (OSS), you can call the SubmitJobs operation to submit a Narrowband HD™️ 1.0 transcoding job.
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.
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.
For more information about other parameters, see SubmitJobs.
Receive a callback notification.
If you have 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.
Query the results of the transcoding job.
You can call the QueryJobList operation to query the results of the transcoding job and the URL of the output file.
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.