Template Settings
Log in to the MPS console and click Template Settings on the left sidebar. Preset templates in the console include video transcoding, audio transcoding, Top Speed Codec, watermark, screenshot, animated image, moderation, content analysis, and content recognition. They can be added to a workflow for on-cloud transcoding and audio/video processing.
Note:
If a template added to a workflow is edited after the workflow is enabled, the template parameters after editing will be used.
If a template added to a workflow is deleted after the workflow is enabled, the task of the template will fail.
Video Transcoding Template
MPS provides preset video transcoding templates, which can be used in workflows. You can also click Create Template to customize your own video transcoding templates.
Item | Description |
Template name | Max 64 characters; supports Chinese characters, letters, digits, spaces, underscores (_), hyphens (-), and periods |
Container format | MP4, FLV, or HLS |
Configuration items | Video and/or audio parameters |
Video codec | H.264 or H.265 |
Video bitrate (Kbps) | 0 or 128-35000. 0 means to use the original bitrate. |
Video resolution (px) | 0 or 128-4096. 0 means to use the original resolution or resize the video proportionally. |
Video frame rate (fps) | 0-60 |
Audio codec | AAC or MP3 |
Audio sample rate (Hz) | 32000, 44100, or 48000 |
Audio bitrate (Kbps) | 0 or 26-256. 0 means to use the original bitrate. |
Sound channels | Mono or stereo |
Templates created are displayed in the template list. You can view, edit, or delete custom templates, but preset templates can be viewed only, not edited or deleted.
Note:
If the container format is set to MP4, FLV, or HLS, video parameters are required, and audio parameters optional.
List of preset templates
Clarity | Template ID | Format | Video Parameters | Audio Parameters | ||||||
| | | Resolution | Bitrate (Kbps) | Frame Rate (fps) | Codec | Bitrate (Kbps) | Sample Rate (Hz) | Sound Channels | Codec |
Smooth | 100010 | MP4 | Proportionally scaled × 360 | 400 | 25 | H.264 | 64 | 44100 | Stereo | AAC |
| | | | | | | | | 100210 | HLS |
| | | | | | SD | 100020 | MP4 | Proportionally scaled × 540 | 1000 |
| | | | | | | | | 100220 | HLS |
| | | | | HD | 100030 | MP4 | Proportionally scaled × 720 | 1800 | 128 |
| | | | | | | | | 100230 | HLS |
| | | | | | FHD | 100040 | MP4 | Proportionally scaled × 1080 | 2500 |
| | | | | | | | | 100240 | HLS |
| | | | | 2K | 100070 | MP4 | Proportionally scaled × 1440 | 3000 | 160 |
| | | | | | | | | 100270 | HLS |
| | | | | | 4K | 100080 | MP4 | Proportionally scaled × 2160 | 6000 |
| | | | | | | | | 100280 | HLS |
Top Speed Codec Template
MPS provides preset Top Speed Codec (formerly Tencent Extreme Speed High Definition) templates, which can be used in workflows. You can also click Create Template to customize your own Top Speed Codec templates.
Item | Description |
Template name | Max 64 characters; supports Chinese characters, letters, digits, spaces, underscores (_), hyphens (-), and periods |
Container format | MP4, FLV, or HLS |
Configuration items | Video parameters (required); audio parameters (optional) |
Video codec | H.264 or H.265 |
Average bitrate limit | If this parameter is left empty or set to 0 , it means no upper limit is set for the bitrate. |
Video resolution (px) | 0 or 128-4096 for either dimension. 0 means to use the original resolution. |
Frame rate (fps) | 0-60. 0 means to use the original frame rate. |
Audio codec | AAC or MP3 |
Audio sample rate (Hz) | 32000, 44100, or 48000 |
Audio bitrate (Kbps) | 0 or 26-256. 0 means to use the original bitrate. |
Sound channels | Mono or stereo |
Note:
You can view preset Top Speed Codec templates in MPS console > Template Settings.
If the container format is set to MP4, FLV, or HLS, video parameters are required.
Templates created are displayed in the template list. You can filter, view, edit, or delete custom templates, but preset templates can be viewed only, not edited or deleted.
Audio Transcoding Template
MPS provides preset audio transcoding templates, which can be used in workflows. You can also click Create Template to customize your own audio transcoding templates.
Item | Description |
Template name | Max 64 characters; supports Chinese characters, letters, digits, spaces, underscores (_), hyphens (-), and periods |
Container format | MP3, FLAC, OGG, or M4A |
Audio codec | The codec must be MP3 if the container format is MP3, FLAC if the container format is FLAC or OGG, and can be MP3, AAC, or AC3 if the container format is M4A. |
Audio sample rate (Hz) | 32000, 44100, or 48000 |
Audio bitrate (Kbps) | 0 or 26-256. 0 means to use the original audio bitrate. |
Sound channels | Mono or stereo |
Templates created are displayed in the template list. You can view, edit, or delete custom templates, but preset templates can be viewed only, not edited or deleted.
List of preset templates
Template ID | Container Format | Audio Bitrate (Kbps) | Codec | Sound Channels | Audio Sample Rate (Hz) |
1100 | M4A | 24 | AAC | Stereo | 44100 |
1110 | M4A | 48 | AAC | Stereo | 44100 |
1120 | M4A | 96 | AAC | Stereo | 44100 |
1130 | M4A | 192 | AAC | Stereo | 44100 |
1140 | M4A | 256 | AAC | Stereo | 44100 |
1010 | MP3 | 128 | MP3 | Stereo | 44100 |
1020 | MP3 | 320 | MP3 | Stereo | 44100 |
Watermark Template
MPS does not provide preset watermark templates. You can click Create Template to customize watermark templates.
Item | Description |
Template Name | Max 64 characters; supports Chinese characters, letters, digits, underscores (\_), hyphens (-), and periods |
Watermark type | Image watermark |
Image | PNG or JPG images. For better visual experience, transparent images in PNG format are recommended. The image cannot exceed 200 KB in size or 200 × 200 px in dimensions. |
Reference position | Upper left (default), upper right, lower left, or lower right, based on which you can change the position of the watermark image by adjusting the vertical and horizontal offset |
Vertical offset | The percentage represents the ratio of the vertical distance between the watermark and reference position to the height of the video, which is used to specify the vertical position of the watermark. |
Horizontal offset | The percentage represents the ratio of the horizontal distance between the watermark and reference position to the width of the video, which is used to specify the horizontal position of the watermark. |
Image dimensions | You can choose to resize the watermark by percentage (%) or pixel (px). |
The watermark templates created can be found in the template list, which displays watermark previews and information including template name, format, type, position, dimension, etc. You can view, edit, and delete a template.
Screenshot Template
MPS provides preset screenshot templates, which can be used in workflows. Three types of screenshots are supported: time point screenshot, sampled screenshot, and image sprite screenshot. You can also click Create Template to customize your own screenshot templates.
Time point screenshot
To create a time point screenshot, select time point screenshot for screenshot type. You can set the template name and screenshot dimensions when creating a template, but the time point must be set in workflows. For detailed instructions, please see Workflows.
Item | Description |
Template name | Max 64 characters; supports Chinese characters, letters, digits, underscores (_), hyphens, and periods (.) |
Image format | JPG |
Image dimensions | The width and height of the image must be in the range of 128-4096 px. |
List of preset templates
Template ID | Format | Width | Height | Fill Mode |
10 | JPG | Same as source | Same as source | Scale to fill |
Sampled screenshot
Select sampled screenshot for screenshot type.
Item | Description |
Template name | Max 64 characters; supports Chinese characters, letters, digits, underscores (_), hyphens (-), and periods |
Image format | JPG |
Image dimensions | The width and height of the image must be in the range of 128-4096 px. |
Sampling interval | The interval can be a percent value (%) or a time value (s). If % is selected, the value entered cannot exceed 100. |
List of preset 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 |
Image sprite screenshot
Select image sprite screenshot for screenshot type.
Item | Description |
Template name | Max 64 characters; supports Chinese characters, letters, digits, underscores (_), hyphens, and periods (.) |
Image format | JPG |
Image dimensions | The width and height of the image must be in the range of 128-4096 px. |
Sampling interval | The interval can be a percent value (%) or a time value (s). If % is selected, the value entered cannot exceed 100. |
Rows | A positive integer. The number of subimage rows multiplied by subimage columns must not exceed 100. |
Columns | A positive integer. The number of subimage rows multiplied by subimage columns must not exceed 100. |
The screenshot templates created can be found in the template list, which displays information including template name, screenshot type, image dimensions, and template type. You can view, edit, and delete a template.
List of preset templates
Template ID | Format | Subimage Width | Subimage Height | Subimage Rows | Subimage Columns | Interval Measurement | Interval (s) |
10 | JPG | 142 | 80 | 10 | 10 | By time | 10 |
Animated Image Generating Template
MPS provides preset animated image generating templates, which can be used in workflows. You can also click Create Template to customize your own animated image generating templates.
You can set the image format, frame rate, image dimensions and image quality when creating a template, and the time period for generating animated images in workflows. For detailed instructions, see Workflows.
Item | Description |
Template name | Max 64 characters; supports Chinese characters, letters, digits, and underscores (_) |
Image format | WEBP or GIF |
Frame rate (fps) | 1-30 |
Image quality | 0-100. The larger the value, the higher the quality and the larger the image size. |
Image dimensions (px) | 0 or 128-4096 for either dimension |
The templates created can be found in the template list, which displays information including template name, image type, frame rate, image quality, image dimensions, and template type. You can view, edit, or delete a custom template, but preset templates can be viewed only, not edited or deleted.
List of preset templates
Template ID | Format | Resolution | Frame Rate (fps) |
20000 | GIF | Same as source | 2 |
20001 | WebP | 320 × Proportionally scaled | 2 |
Moderation Template
MPS provides preset moderation templates, which can be used in workflows. You can also click Create Template to customize your own moderation templates.
Template name: max 64 characters; supports Chinese characters, letters, digits, spaces, underscores (_), hyphens (-), and periods (.)
Moderation items: image recognition, speech recognition, or text recognition. The subitems of the selected moderation items will appear in the column on the right.
Moderation Item | Subitem | Description |
Image recognition | Eroticism | Porn, vulgarity, intimacy, and sexiness |
| Terrorism | Bloodiness, explosion, fire, etc. |
| Politically sensitive | Banned icons, celebrities in sports and the entertainment industry, etc. |
Speech recognition | Eroticism | Porn, vulgarity, intimacy, and sexiness |
| Politically sensitive | Politically sensitive figures, banned icons, and celebrities (sports and entertainment) |
Text recognition | Eroticism | Porn, vulgarity, intimacy, and sexiness |
| Politically sensitive | Politically sensitive figures, banned icons, and celebrities (sports and entertainment) |
For each subitem, you can set a Confirm Threshold and a Suspicion Threshold, which determine the degree of moderation. If they are left empty, the default values will be used.
Confirm threshold: MPS analyzes the videos uploaded and gives them scores. If the score of a video exceeds the confirm threshold, the video will be marked confirmed. The value range of the threshold is 0-100. The default value is recommended.
Suspicion threshold: MPS analyzes the videos uploaded and gives them scores. If the score of a video exceeds the suspicion threshold, the video will be marked suspicious. You can initiate human moderation tasks for suspicious videos on the video moderation page. The value range of the threshold is 0-100. The default value is recommended.
Note:
The templates created are displayed in the template list, where you can view, edit, or delete a template.
Content Analysis Template
MPS provides preset content analysis templates, which can be used in workflows. You can also click Create Template to customize your own content analysis templates.
Item | Description |
Template name | Max 64 characters; supports Chinese characters, letters, digits, spaces, underscores (_), hyphens (-), and periods |
Content Analysis Items | Smart Tag, Intelligent Classification, Intelligent Thumbnail, Tag by Frame |
Note:
The templates created are displayed in the template list, where you can view, edit, or delete a template.
Content Recognition Template
MPS provides preset content recognition templates, which can be used in workflows. You can also click Create Template to customize your own content recognition templates.
Item | Description |
Template name | Max 64 characters; supports Chinese characters, letters, digits, spaces, underscores (_), hyphens (-), and periods |
Content Recognition Items | Face Recognition, Text Recognition, Speech Recognition |
Note:
The templates created are displayed in the template list, where you can view, edit, or delete a template.