Based on the proprietary transcoding technology of Alibaba Cloud, Narrowband HD™ transcoding analyzes each scene, action, content, and texture in videos. This way, video bitrates can be optimized to lower bandwidth costs without the need to sacrifice video quality. Compared with regular transcoding, Narrowband HDTM 1.0 transcoding reduces 20% to 40% bitrate. Narrowband HDTM 2.0 transcoding can reduce the bitrate, and repair and enhance video images. Compared with Narrowband HDTM 1.0, Narrowband HD™ 2.0 provides higher resolutions at lower bitrates.
Benefits
Benefit | Narrowband HDTM 1.0 | Narrowband HDTM 2.0 |
Reduce unnecessary bits | ✔️ | ✔️ |
Allocate bits to where the bits can create the most value | ✔️ | ✔️ |
Weaken the area that is less noticeable or out of focus and insignificant details | ✔️ | ✔️ |
Strengthen the noticeable details, focused area, and regular textures | ❌ | ✔️ |
Fix glitches, flashes, and mosaics | ❌ | ✔️ |
Billing
You are charged for using the video transcoding feature based on the specification and duration of the transcoded videos. For more information about billing, see Media transcoding.
Limits
Narrowband HDTM 2.0 is available only in the China (Shanghai), China (Beijing), China (Shenzhen), and Singapore regions. Narrowband HDTM 1.0 is available in all regions. For more information about the ApsaraVideo VOD service regions, see Regions.
You can use Narrowband HDTM 1.0 and Narrowband HDTM 2.0 transcoding to export videos only in the HTTP Live Streaming (HLS) or MP4 format.
Usage notes
Video specifications such as the resolution and bitrate are preset configurations in the Narrowband HDTM 1.0 transcoding template and cannot be modified. The following table describes the preset parameters.
Definition
Bitrate (Unit: Kbit/s)
Resolution - width (Unit: pixel)
LD - Narrowband HD 1.0
≤ 400
640
SD - Narrowband HD 1.0
≤ 800
848
HD - Narrowband HD 1.0
≤ 1500
1280
UHD - Narrowband HD 1.0
≤ 3000
1920
2K - Narrowband HD 1.0
≤ 4000
2048
4K - Narrowband HD 1.0
≤ 8000
3840
Narrowband HDTM 2.0 transcoding is relatively slow. We recommend that you use a video whose duration is less than 3 minutes for testing.
How to use Narrowband HD™ transcoding
Transcode media files by using the ApsaraVideo VOD console
Step 1: Create a Narrowband HD™ transcoding template group
You must create a Narrowband HD™ transcoding template group before you submit transcoding tasks. For more information, see the following topics:
Step 2: (Optional) Create a workflow and associate the workflow with the transcoding template group
You can add media processing tasks such as transcoding, review, snapshot capture tasks to a workflow based on a specific order. This way, you can use the workflow to process media files in the specified order.
Create a workflow, add a Transcode node, and specify the Narrowband HD™ transcoding template group that you created in Step 1. For more information, see Manage workflows.
Step 3: Start transcoding
Transcode media files by using the Narrowband HD™ transcoding template group or workflow in the preceding steps. You can trigger transcoding for uploaded files or during uploads.
Automatically trigger transcoding during uploads
Log on to the ApsaraVideo VOD console.
In the left-side navigation pane, choose Media Files > Audio/Video. Then, click Upload.
On the Upload Media page that appears, click Add Media. In the dialog box that appears, specify the parameters such as Upload Method and Bucket, select Use Transcoding Template Group or Use Workflow from the drop-down list, and specify the transcoding template group or workflow.
For more information about supported video formats and parameter descriptions, see Upload media files by using the ApsaraVideo VOD console.
Select the media files that you want to upload and click Upload.
Start transcoding for uploaded videos
In most cases, this operation is used to re-transcode existing videos, encrypt existing videos in HLS encryption mode, or override watermark parameters.
Log on to the ApsaraVideo VOD console.
In the left-side navigation pane, choose Media Files > Audio/Video.
On the Audio/Video page, find the media file that you want to transcode and click Media Processing in the Actions column.
In the dialog box that appears, select Use Transcoding Template Group or Use Workflow and specify the transcoding template group or workflow that you want to use.
Click OK.
Step 3: View the transcoding results
After a media file is transcoded, you can use one of the following methods to view the transcoding results, such as the transcoding status and the playback URL of the video. You can obtain the playback URL and use ApsaraVideo Player or a third-party player to play the transcoded video.
If you do not configure an accelerated domain name in ApsaraVideo VOD, you are charged for outbound traffic when you play or download a video based on the URL. For more information, see Billing of basic services.
Method 1: By using the ApsaraVideo VOD console
Log on to the ApsaraVideo VOD console.
In the left-side navigation pane, choose Media Files > Audio/Video.
On the Audio/Video page, view the transcoding status of the media file.
Normal indicates that the media file is transcoded. For more information about other transcoding statuses, see Status: the status of a video.
Find the transcoded media file that you want to manage and click Manage in the Actions column. On the page that appears, view the playback URL on the Video URL tab.
After a media file is transcoded, streams in different definitions and playback URLs are generated.
Method 2: By event notifications
ApsaraVideo VOD supports HTTP callbacks and MNS callbacks. After you configure event notifications, ApsaraVideo VOD sends you a notification based on the callback method that you specified when media files are processed. For example, ApsaraVideo VOD notifies you when media files are uploaded or transcoded. You can obtain information such as the transcoding status and playback URL of the video from the callbacks. For more information, see Overview.
The following content describes the events related to transcoding:
Transcode media files by using the ApsaraVideo VOD API
Usage notes
For more information about how to call API operations to transcode media files, see List of operations by function. We recommend that you use the command-line tool OpenAPI Explorer developed by Alibaba Cloud for debugging. This frees you from signature calculations. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.
Step 1: Create a Narrowband HD™ transcoding template group
You must create a Narrowband HD™ transcoding template group before you submit transcoding tasks.
Call the AddTranscodeTemplateGroup operation to create a transcoding template group and specify the
Definition
parameter inTranscodeTemplate
.
Step 2: (Optional) Create a workflow and associate the workflow with the transcoding template group
You can add media processing tasks such as transcoding, review, snapshot capture tasks to a workflow based on a specific order. This way, you can use the workflow to process media files in the specified order.
You can create workflows only by using the ApsaraVideo VOD console. For more information, see Manage workflows.
Step 3: Start transcoding
Transcode media files by using the Narrowband HD™ transcoding template group or workflow in the preceding steps. You can trigger transcoding for uploaded files or during uploads.
Automatically trigger transcoding during uploads
You can call the CreateUploadVideo operation only to obtain the upload URLs and credentials for media files and create media assets in ApsaraVideo VOD. You cannot call this operation to upload media files. You must implement the logic for the entire upload process. For more information about how to upload media files by calling API operations, see Upload media files by calling API operations.
When you call the CreateUploadVideo or UploadMediaByURL operation, you can specify the ID of the transcoding template group for the
TemplateGroupId
parameter or the ID of the workflow that contains the Transcode node for theWorkflowId
parameter. After the audio and video files are uploaded, the system automatically transcodes the files based on the specified transcoding template group or workflow.
Start transcoding for uploaded videos
In most cases, this operation is used to re-transcode existing videos, encrypt existing videos in HLS encryption mode, or override watermark parameters.
Call the SubmitTranscodeJobs operation and specify the ID of the transcoding template group for the
TemplateGroupId
parameter, or call the SubmitWorkflowJob operation and specify the ID of the workflow that contains the Transcode node for theWorkflowId
parameter. Then, the system automatically transcodes the audio and video files based on the specified transcoding template group or workflow after you submit a transcoding job.
Step 3: View the transcoding results
After a media file is transcoded, you can use one of the following methods to view the transcoding results, such as the transcoding status and the playback URL of the video. You can obtain the playback URL and use ApsaraVideo Player or a third-party player to play the transcoded video.
If you do not configure an accelerated domain name in ApsaraVideo VOD, you are charged for outbound traffic when you play or download a video based on the URL. For more information, see Billing of basic services.
Method 1: By calling API operations
Obtain the TranscodeTaskId
from the response to the SubmitTranscodeJobs operation. Then, call the GetTranscodeTask to query information such as the transcoding status and playback URL of the video.
Method 2: By event notifications
ApsaraVideo VOD supports HTTP callbacks and MNS callbacks. After you configure event notifications, ApsaraVideo VOD sends you a notification based on the callback method that you specified when media files are processed. For example, ApsaraVideo VOD notifies you when media files are uploaded or transcoded. You can obtain information such as the transcoding status and playback URL of the video from the callbacks. For more information, see Overview.
The following content describes the events related to transcoding: