Preset template details
Transcoding templates bundle processing parameters to simplify transcoding job and workflow configuration. MPS provides static preset templates (regular transcoding, audio transcoding, container format conversion, Narrowband HD™ 1.0, and Narrowband HD™ 2.0), intelligent preset templates, legacy preset templates, and naming rules for template IDs.
Static preset templates
To use preset Narrowband HD™ 2.0 templates, select Narrowband HD 2.0 as the ApsaraVideo Media Processing (MPS) queue type. To use other static preset templates, select a standard MPS queue or high-speed MPS queue.
Regular transcoding templates
Output files can be in HLS (M3U8 + TS), MP4, or FLV format. Audio and video bitrates cannot exceed the maximum values in the following table. All templates produce the same resolution width, and the height scales proportionally based on the input video. Auto-rotate screen is not supported. Video resolution, video bitrate, and audio bitrate checks are not supported. In other words, if the video resolution, video bitrate, or audio bitrate of the input file is less than the corresponding maximum value specified in the template, unsampling occurs. To use the features, configure feature-related parameters when you submit a transcoding job by calling an API operation.
|
Template ID |
Template Name |
Display Name |
Container format |
Video encoding |
Audio encoding |
Maximum video bitrate (Kbit/s) |
Maximum audio bitrate (Kbit/s) |
Resolution - width (pixel) |
|
S00000001-100070 |
M3U8-4K |
H264-M3U8-4K |
M3U8 |
H.264 |
AAC |
6,000 |
160 |
3,840 |
|
S00000001-100060 |
M3U8-2K |
H264-M3U8-2K |
M3U8 |
H.264 |
AAC |
3,500 |
160 |
2,048 |
|
S00000001-100040 |
M3U8-FHD |
H264-M3U8-FHD-Intelligent |
M3U8 |
H.264 |
AAC |
3,000 |
160 |
1,920 |
|
S00000001-100030 |
M3U8-HD |
H264-M3U8-HD-Intelligent |
M3U8 |
H.264 |
AAC |
1,800 |
128 |
1,280 |
|
S00000001-100020 |
M3U8-SD |
H264-M3U8-SD-Intelligent |
M3U8 |
H.264 |
AAC |
800 |
80 |
848 |
|
S00000001-100010 |
M3U8-LD |
H264-M3U8-LD-Intelligent |
M3U8 |
H.264 |
AAC |
400 |
64 |
640 |
|
S00000001-100050 |
M3U8-XLD |
H264-M3U8-XLD |
M3U8 |
H.264 |
AAC |
300 |
32 |
320 |
|
S00000001-200070 |
MP4-4K |
H264-MP4-4K |
MP4 |
H.264 |
AAC |
6,000 |
160 |
3,840 |
|
S00000001-200060 |
MP4-2K |
H264-MP4-2K |
MP4 |
H.264 |
AAC |
3,500 |
160 |
2,048 |
|
S00000001-200040 |
MP4-FHD |
H264-MP4-FHD-Intelligent |
MP4 |
H.264 |
AAC |
3,000 |
160 |
1,920 |
|
S00000001-200030 |
MP4-HD |
H264-MP4-HD-Intelligent |
MP4 |
H.264 |
AAC |
1,800 |
128 |
1,280 |
|
S00000001-200020 |
MP4-SD |
H264-MP4-SD-Intelligent |
MP4 |
H.264 |
AAC |
800 |
80 |
848 |
|
S00000001-200010 |
MP4-LD |
H264-MP4-LD-Intelligent |
MP4 |
H.264 |
AAC |
400 |
64 |
640 |
|
S00000001-200050 |
MP4-XLD |
H264-MP4-XLD |
MP4 |
H.264 |
AAC |
300 |
32 |
320 |
|
S00000001-000070 |
FLV-4K |
H264-FLV-4K |
FLV |
H.264 |
AAC |
6,000 |
160 |
3,840 |
|
S00000001-000060 |
FLV-2K |
H264-FLV-2K |
FLV |
H.264 |
AAC |
3,500 |
160 |
2,048 |
|
S00000001-000040 |
FLV-FHD |
H264-FLV-FHD-Intelligent |
FLV |
H.264 |
AAC |
3,000 |
160 |
1,920 |
|
S00000001-000030 |
FLV-HD |
H264-FLV-HD-Intelligent |
FLV |
H.264 |
AAC |
1,800 |
128 |
1,280 |
|
S00000001-000020 |
FLV-SD |
H264-FLV-SD-Intelligent |
FLV |
H.264 |
AAC |
800 |
80 |
848 |
|
S00000001-000010 |
FLV-LD |
H264-FLV-LD-Intelligent |
FLV |
H.264 |
AAC |
400 |
64 |
640 |
|
S00000001-000050 |
FLV-XLD |
H264-FLV-XLD |
FLV |
H.264 |
AAC |
300 |
32 |
320 |
Audio transcoding templates
Output audio files are in MP3 format. The bitrate cannot exceed the maximum value in the following table. Audio bitrate checks are not supported. In other words, if the bitrate of the input audio file is less than the maximum audio bitrate specified in the template, unsampling occurs. To use the feature, configure feature-related parameters when you submit a transcoding job by calling an API operation.
|
Template ID |
Template Name |
Display Name |
Container format |
Maximum bitrate (Kbit/s) |
|
S00000001-300050 |
MP3-320 |
MP3-320 |
MP3 |
320 |
|
S00000001-300040 |
MP3-192 |
MP3-192 |
MP3 |
192 |
|
S00000001-300030 |
MP3-160 |
MP3-160 |
MP3 |
160 |
|
S00000001-300020 |
MP3-128 |
MP3-128 |
MP3 |
128 |
|
S00000001-300010 |
MP3-64 |
MP3-64 |
MP3 |
64 |
Templates for container format conversion
Container format conversion templates convert only the container format of media files. Encoding-dependent operations such as watermarking, editing, and merging are not supported.
Container format conversion may fail if the source file is invalid or in an unsupported format. In this case, transcoding jobs that use a container format conversion template may also fail.
|
Template ID |
Template Name |
Display Name |
Container format |
|
S00000001-100000 |
M3U8-COPY |
M3U8-COPY |
M3U8 |
|
S00000001-200000 |
MP4-COPY |
MP4-COPY |
MP4 |
|
S00000001-000000 |
FLV-COPY |
FLV-COPY |
FLV |
Narrowband HD™ 1.0 templates
Compared with regular transcoding templates, Narrowband HD™ 1.0 templates produce output video at a lower bitrate without compromising quality, reducing CDN and storage costs. Auto-rotate screen is supported. Video resolution, video bitrate, and audio bitrate checks are not supported. In other words, if the video resolution, video bitrate, or audio bitrate of the input file is less than the corresponding maximum value specified in the template, unsampling occurs. To use the features, configure feature-related parameters when you submit a transcoding job by calling an API operation.
|
Template ID |
Template Name |
Display Name |
Container format |
Video encoding |
Audio encoding |
Maximum video bitrate (Kbit/s) |
Maximum audio bitrate (Kbit/s) |
Resolution - long side (pixel) |
|
S00000002-100070 |
M3U8-4K-NarrowBandHDV1 |
H264-M3U8-4K-NarrowBandHDV1 |
M3U8 |
H.264 |
AAC |
8,000 |
128 |
3,840 |
|
S00000002-100060 |
M3U8-2K-NarrowBandHDV1 |
H264-M3U8-2K-NarrowBandHDV1 |
M3U8 |
H.264 |
AAC |
4,000 |
128 |
2,048 |
|
S00000002-100050 |
M3U8-FHD-NarrowBandHDV1 |
H264-M3U8-FHD-NarrowBandHDV1 |
M3U8 |
H.264 |
AAC |
3,000 |
128 |
1,920 |
|
S00000002-100040 |
M3U8-HD-NarrowBandHDV1 |
H264-M3U8-HD-NarrowBandHDV1 |
M3U8 |
H.264 |
AAC |
1,500 |
128 |
1,280 |
|
S00000002-100030 |
M3U8-SD-NarrowBandHDV1 |
H264-M3U8-SD-NarrowBandHDV1 |
M3U8 |
H.264 |
AAC |
800 |
80 |
848 |
|
S00000002-100020 |
M3U8-LD-NarrowBandHDV1 |
H264-M3U8-LD-NarrowBandHDV1 |
M3U8 |
H.264 |
AAC |
400 |
32 |
640 |
|
S00000002-200070 |
MP4-4K-NarrowBandHDV1 |
H264-MP4-4K-NarrowBandHDV1 |
MP4 |
H.264 |
AAC |
8,000 |
128 |
3,840 |
|
S00000002-200060 |
MP4-2K-NarrowBandHDV1 |
H264-MP4-2K-NarrowBandHDV1 |
MP4 |
H.264 |
AAC |
4,000 |
128 |
2,048 |
|
S00000002-200050 |
MP4-FHD-NarrowBandHDV1 |
H264-MP4-FHD-NarrowBandHDV1 |
MP4 |
H.264 |
AAC |
3,000 |
128 |
1,920 |
|
S00000002-200040 |
MP4-HD-NarrowBandHDV1 |
H264-MP4-HD-NarrowBandHDV1 |
MP4 |
H.264 |
AAC |
1,500 |
128 |
1,280 |
|
S00000002-200030 |
MP4-SD-NarrowBandHDV1 |
H264-MP4-SD-NarrowBandHDV1 |
MP4 |
H.264 |
AAC |
800 |
80 |
848 |
|
S00000002-200020 |
MP4-LD-NarrowBandHDV1 |
H264-MP4-LD-NarrowBandHDV1 |
MP4 |
H.264 |
AAC |
400 |
32 |
640 |
|
S00000002-000070 |
FLV-4K-NarrowBandHDV1 |
H264-FLV-4K-NarrowBandHDV1 |
FLV |
H.264 |
AAC |
8,000 |
128 |
3,840 |
|
S00000002-000060 |
FLV-2K-NarrowBandHDV1 |
H264-FLV-2K-NarrowBandHDV1 |
FLV |
H.264 |
AAC |
4,000 |
128 |
2,048 |
|
S00000002-000050 |
FLV-FHD-NarrowBandHDV1 |
H264-FLV-FHD-NarrowBandHDV1 |
FLV |
H.264 |
AAC |
3,000 |
128 |
1,920 |
|
S00000002-000040 |
FLV-HD-NarrowBandHDV1 |
H264-FLV-HD-NarrowBandHDV1 |
FLV |
H.264 |
AAC |
1,500 |
128 |
1,280 |
|
S00000002-000030 |
FLV-SD-NarrowBandHDV1 |
H264-FLV-SD-NarrowBandHDV1 |
FLV |
H.264 |
AAC |
800 |
80 |
848 |
|
S00000002-000020 |
FLV-LD-NarrowBandHDV1 |
H264-FLV-LD-NarrowBandHDV1 |
FLV |
H.264 |
AAC |
400 |
32 |
640 |
Narrowband HD™ 2.0 templates
To use Narrowband HD™ 2.0 templates, select Narrowband HD 2.0 as the MPS queue type.
Auto-rotate screen is supported. Video resolution, video bitrate, and audio bitrate checks are not supported. In other words, if the video resolution, video bitrate, or audio bitrate of the input file is less than the corresponding maximum value specified in the template, unsampling occurs. To use the features, configure feature-related parameters when you submit a transcoding job by calling an API operation.
|
Template ID |
Template Name |
Display Name |
Container format |
Video encoding |
Audio encoding |
Maximum video bitrate (Kbit/s) |
Maximum audio bitrate (Kbit/s) |
Resolution - long side (pixel) |
|
S00000003-200050 |
MP4-FHD-NarrowBandHDV2 |
H264-MP4-FHD-NarrowBandHDV2 |
MP4 |
H.264 |
AAC |
3,000 |
128 |
1,920 |
|
S00000003-200040 |
MP4-HD-NarrowBandHDV2 |
H264-MP4-HD-NarrowBandHDV2 |
MP4 |
H.264 |
AAC |
1,500 |
128 |
1,280 |
|
S00000003-200030 |
MP4-SD-NarrowBandHDV2 |
H264-MP4-SD-NarrowBandHDV2 |
MP4 |
H.264 |
AAC |
800 |
80 |
848 |
|
S00000003-200020 |
MP4-LD-NarrowBandHDV2 |
H264-MP4-LD-NarrowBandHDV2 |
MP4 |
H.264 |
AAC |
400 |
32 |
640 |
Template selection for short drama scenarios
Both Narrowband HD™ 1.0 and Narrowband HD™ 2.0 preset templates can be used for video transcoding in short drama apps. Select a preset template whose long-side resolution matches the resolution requirements of your short drama videos:
|
Template ID |
Display Name |
Container format |
Resolution - long side (pixel) |
|
S00000002-100050 |
H264-M3U8-FHD-NarrowBandHDV1 |
M3U8 |
1,920 |
|
S00000002-200050 |
H264-MP4-FHD-NarrowBandHDV1 |
MP4 |
1,920 |
|
S00000003-200050 |
H264-MP4-FHD-NarrowBandHDV2 |
MP4 |
1,920 |
To use Narrowband HD™ 2.0 templates, select Narrowband HD 2.0 as the MPS queue type.
Intelligent Media Services (IMS) provides scenario-based preset templates for short dramas and supports transcoding strategies such as Quality First, Bitrate First, Extreme Compression, Balanced, and Vibrant Color. Use the IMS transcoding template as a resolution reference when you select Narrowband HD preset templates in MPS. Preset templates are not interchangeable between IMS and ApsaraVideo Media Processing (MPS), and IMS scenario-based short drama templates cannot be referenced directly in MPS. Configure the corresponding preset template separately in MPS.
Intelligent preset templates
Intelligent preset templates automatically adjust transcoding parameters based on the input video to produce output files that meet quality requirements.
Whether an intelligent preset template applies to an input video depends on properties such as resolution and bitrate. Before you use an intelligent preset template, call the SubmitAnalysisJob operation to analyze the media file, and then call the QueryAnalysisJobList operation to query available intelligent preset templates. Use an appropriate template when you submit a transcoding job.
|
Template ID |
Template Name |
Display Name |
Container format |
Bitrate range (Kbit/s) |
Resolution (pixel) |
|
S00000000-100050 |
M3U8-FHD |
M3U8-FHD |
M3U8 |
[2000,4000] |
[720,1080] |
|
S00000000-100040 |
M3U8-HD |
M3U8-HD |
M3U8 |
[1000,2000] |
≥ 576 |
|
S00000000-100030 |
M3U8-SD |
M3U8-SD |
M3U8 |
[500,1000] |
≥ 480 |
|
S00000000-100020 |
M3U8-LD |
M3U8-LD |
M3U8 |
< 500 |
≥ 270 |
|
S00000000-200050 |
MP4-FHD |
MP4-FHD |
MP4 |
[2000,4000] |
[720,1080] |
|
S00000000-200040 |
MP4-HD |
MP4-HD |
MP4 |
[1000,2000] |
≥ 576 |
|
S00000000-200030 |
MP4-SD |
MP4-SD |
MP4 |
[500,1000] |
≥ 480 |
|
S00000000-200020 |
MP4-LD |
MP4-LD |
MP4 |
< 500 |
≥ 270 |
|
S00000000-000050 |
FLV-FHD |
FLV-FHD |
FLV |
[2000,4000] |
[720,1080] |
|
S00000000-000040 |
FLV-HD |
FLV-HD |
FLV |
[1000,2000] |
≥ 576 |
|
S00000000-000030 |
FLV-SD |
FLV-SD |
FLV |
[500,1000] |
≥ 480 |
|
S00000000-000020 |
FLV-LD |
FLV-LD |
FLV |
< 500 |
≥ 270 |
Preset templates of the previous version
The following table lists legacy preset super-resolution templates. We recommend that you use the latest preset templates instead.
The multi-platform MP4-SDToHD and MP4-2KTo4K templates are preset super-resolution templates. These templates are available only in the China (Hangzhou) and China (Shanghai) regions.
|
Template ID |
Template Name |
Display Name |
Container format |
Maximum video bitrate (Kbit/s) |
Maximum audio bitrate (Kbit/s) |
Resolution - width (pixel) |
Remarks |
|
S00000001-400070 |
MP4-2KTo4K |
MP4-2KTo4K |
MP4 |
20,000 |
128 |
≤ 3,840 |
The super-resolution template of the previous version that uses a narrow standard MPS queue. This template can be used on web browsers, iOS devices, and Android devices. |
|
S00000001-400040 |
MP4-SDToHD |
MP4-SDToHD |
MP4 |
6,000 |
128 |
≤ 1,280 |
The super-resolution template of the previous version that uses a narrow standard MPS queue. This template can be used on web browsers, iOS devices, and Android devices. |
|
S00000003-400040 |
MP4-SDToHD-NarrowBandHDV2 |
MP4-SDToHD |
MP4 |
6,000 |
AAC |
1,280 |
The super-resolution template of the previous version that uses a Narrowband HD™ 2.0 MPS queue. |
|
S00000003-400070 |
MP4-2KTo4K-NarrowBandHDV2 |
MP4-2KTo4K |
MP4 |
20,000 |
AAC |
3840 |
The super-resolution template of the previous version that uses a Narrowband HD™ 2.0 MPS queue. |
Naming rules for preset template IDs
|
Character sequence number |
Description |
|
1 |
The uppercase letter S. |
|
2 to 9 |
The string generated by the system. |
|
10 |
The hyphen (-). |
|
11 |
The category to which the template belongs. |
|
12 to 15 |
The sequence number of the template. |
|
16 |
The minor version of the template. |
FAQ
The output video is blurry after transcoding. What can I do?
Blurry output after transcoding is usually related to the bitrate setting of the transcoding template. Different preset templates use different maximum bitrates. For example, the H264-M3U8-FHD-Intelligent regular transcoding template has a maximum bitrate of 3,800 Kbit/s, while the Narrowband HD™ 1.0 template of the same resolution has a maximum bitrate of 3,000 Kbit/s. In one test, the output bitrate of the regular template was 2,063 Kbit/s and the output bitrate of the Narrowband HD™ 1.0 template was 1,393 Kbit/s, a difference of about 33%.
To troubleshoot blurry output, perform the following steps:
-
Check the encoding bitrate of the source video.
-
Compare the bitrate setting of the transcoding template that you are using with the bitrate of the source video.
-
If the template bitrate is much lower than the source video bitrate, switch to a template that supports a higher bitrate.
How do I choose between Narrowband HD™ 1.0 and Narrowband HD™ 2.0 templates?
Both Narrowband HD™ 1.0 and Narrowband HD™ 2.0 templates are available in the console. Narrowband HD™ 1.0 provides 18 templates, covering the M3U8, MP4, and FLV container formats across 6 resolutions. Narrowband HD™ 2.0 provides only 4 templates, ranging from FHD (1920) down to LD (640), and does not include 4K or 2K options. Note that although the names of some Narrowband HD™ 2.0 templates contain "FLV", the actual output container format is MP4.
Using a template whose resolution is higher than the resolution of the source video causes upsampling, which can reduce output quality instead of improving it. We recommend that you select a template whose resolution does not exceed the resolution of the source video.
Test data (for reference): The same source video was transcoded once with a regular template (maximum bitrate ≤ 3,800 Kbit/s) and once with a Narrowband HD™ 1.0 template (maximum bitrate ≤ 3,000 Kbit/s). The resulting output bitrates were 2,063.722 Kbit/s and 1,392.746 Kbit/s respectively, a difference of about 33% (Job IDs: 40e6deefd7544bc89d9e4a45d9911655, 4b1bd6940fb54a9ba3767028e2b86842). In this test, a 630 Kbit/s source video was transcoded with a 1920p-resolution template, which raised the output bitrate to 2,063/1,393 Kbit/s, confirming the upsampling behavior described above.