Template
Last updated: 2024-06-12 14:52:03Download PDF
To increase the ease of use, Media Processing Service (MPS) assembles commonly used key transcoding parameters into templates. A template is identified by its name and ID. For example, common templates named Fluent, SD, HD, and FHD are identified by IDs 10, 20, 30, and 40, respectively. There are different templates for different transcoding tasks:
Transcoding templates
Remuxing templates
Animated image templates
Time point screenshot templates
Sampled screenshot templates
Image sprite templates
Adaptive bitrate streaming templates
Intelligent auditing templates
Intelligent identification templates
Intelligent analysis templates
For the above template types, MPS provides corresponding commonly used templates, referred to as system preset templates . You can also create new parameter templates of various types and specify different parameter values for them, referred to as custom parameter templates . For detailed information on each parameter in the template, refer to Template Parameter Description.
System Preset Templates
The following provides information about system preset templates of various types, including template IDs and key parameter settings.
System Preset Transcoding Templates
Video
Clarity | Template ID | Format | Video Parameters | Audio Parameters | ||||||
| | | Resolution | Bitrate | Frame Rate | Codec | Bitrate | Sample Rate | Sound Channels | Code |
Smooth | 100010 | MP4 | x 360 | 400 kbps | 25 | H.264 | 64 kbps | 44,100 Hz | Stereo | AAC |
| | | | | | | | | 100210 | HLS |
| | | | | | SD | 100020 | MP4 | x 540 | 1,000 kbps |
| | | | | | | | | 100220 | HLS |
| | | | | HD | 100030 | MP4 | x 720 | 1,800 kbps | 128 kbps |
| | | | | | | | | 100230 | HLS |
| | | | | | FHD | 100040 | MP4 | x 1080 | 2,500 kbps |
| | | | | | | | | 100240 | HLS |
| | | | | 2K | 100070 | MP4 | x 1440 | 3,000 kbps | 160 kbps |
| | | | | | | | | 100270 | HLS |
| | | | | | 4K | 100080 | MP4 | x 2160 | 6,000 kbps |
| | | | | | | | | 100280 | HLS |
Audio
Template ID | Format | Bitrate | Codec | Sound Channels | Sample Rate |
1100 | M4A | 24kbps | AAC | Dual-channel | 44100Hz |
1110 | | 48kbps | | | |
1120 | | 96kbps | | | |
1130 | | 192kbps | | | |
1140 | | 256kbps | | | |
1010 | MP3 | 128kbps | MP3 | | |
1020 | | 320kbps | | | |
System Preset TSC Templates
Clarity | Template ID | Format | Video Parameters | Audio Parameters | ||||||
| | | Resolution | Maximum Bitrate | Frame Rate | Code | Bitrate | Sample Rate | Sound Channels | Code |
Same as source | 100800 | MP4 | Same as source | No limit | 25 | H.264 | Same as source | 44,100 Hz | Stereo | AAC |
| | | | | | | Smooth | 100810 | x 360 | 64 kbps |
| | | | | | | | SD | 100820 | x 540 |
| | | | | | | HD | 100830 | x 720 | 128 kbps |
| | | | | | | | FHD | 100840 | x 1080 |
System Preset Remuxing Templates
Template ID | Format |
875 | MP4 |
876 | HLS |
System Preset Animated Image Templates
Template ID | Format | Resolution | Frame Rate |
20000 | GIF | Same as source | 2 |
20001 | WebP | Same as source | 2 |
System Preset Time Point Screenshot Templates
Template ID | Format | Width | Height | Fill Mode |
10 | JPG | Same as source | Same as source | Stretch |
System Preset Sampled Screenshot Templates
Template ID   | Format | Width | Height | Interval Measurement | Interval | Fill Mode |
10 | JPG | Same as source | Same as source | By percent | 10% | Scale to fill |
System Preset Image Sprite Templates
Template ID | Format | Subimage Width | Subimage Height | Subimage Rows | Subimage Columns | Interval Measurement | Interval |
10 | JPG | 142 | 80 | 10 | 10 | By time | 10s |
System Preset Adaptive Bitrate Streaming Templates
Template information
Template ID | Package Type | Substream Info | Disable Low-Res to High-Res Conversion |
10 | HLS | Substreams for 6 clarity levels from "SD" to "4K" | Yes |
Substream information
Substream Clarity | Video Parameters | Audio Parameters | ||||||
| Resolution | Bitrate | Frame Rate | Codec | Bitrate | Sample Rate | Sound Channels | Codec |
Smooth | x 240 | 256 kbps | 24 | H.264 | 48 kbps | 44,100 Hz | Stereo | AAC |
SD | x 480 | 512 kbps | 24 | H.264 | 48 kbps | 44,100 Hz | Stereo | AAC |
HD | x 720 | 512 kbps | 24 | H.264 | 48 kbps | 44,100 Hz | Stereo | AAC |
FHD | x 1080 | 1,024 kbps | 24 | H.264 | 48 kbps | 44,100 Hz | Stereo | AAC |
2K | x 1440 | 3,072 kbps | 24 | H.264 | 48 kbps | 44,100 Hz | Stereo | AAC |
4K | x 2160 | 6,144 kbps | 24 | H.264 | 48 kbps | 44,100 Hz | Stereo | AAC |
System Preset Intelligent Auditing Templates
Template ID | Video Image | | | ASR | | OCR | |
| Porn | Terrorism | Politically Sensitive | Porn | Politically Sensitive | Porn | Politically Sensitive |
10 | Yes | Yes | Yes | No | No | No | No |
20 | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
System Preset Intelligent Identification Templates
Template ID | Full Text Recognition | Text Keyword Recognition | Full Speech Recognition | Spoken Keyword Recognition |
10 | No | No | No | No |
System Preset Intelligent Analysis Templates
Template ID | Intelligent Classification | Intelligent Tagging | Intelligent Cover Generation | Intelligent Frame Tagging |
10 | Yes | Yes | Yes | No |
20 | Yes | Yes | Yes | Yes |
Custom Parameter Templates
In addition to the system preset templates, you can also customize template parameters as needed, i.e., create a custom template . You can create templates of corresponding types through the console or by calling APIs. Such templates are only visible to yourself.
Creating a custom parameter template in the console
Creating a custom parameter template through an API
You can use the following APIs to create different types of custom parameter templates: