Parameter Template

Last updated: 2020-02-24 15:05:11

PDF

MPS uses parameter templates to organize commonly used key transcoding parameters for your convenience. A parameter template is identified by its name and ID. For example, common parameter templates "LD", "SD", "HD", and "FHD" are identified by transcoding template IDs "10", "20", "30", and "40", respectively. Parameter templates can be categorized as follows based on different transcoding tasks:

  • Transcoding template
  • Remuxing template
  • Animated image generating template
  • Time point screencapturing template
  • Sampled screencapturing template
  • Image sprite generating template

MPS provides preset parameter templates for all of the above. You can also create custom parameter templates and set parameter values. For more information on parameter templates, please see Parameter Templates.

Preset Parameter Templates

Information on all types of preset parameter templates, such as template ID and key parameter settings, is as shown below.

Preset transcoding templates

Video transcoding templates

Specification Template ID Format Video Parameters Audio Parameters
Resolution Bitrate FPS Codec Codec
FLU 10 MP4 320 * Proportionally scaled 256 Kbps 24 H.264 AAC
510 MP4 Proportionally scaled * 240 250 Kbps 15 H.265 AAC
210 HLS 320 * Proportionally scaled 256 Kbps 24 H.264 AAC
610 HLS Proportionally scaled * 240 250 Kbps 15 H.265 AAC
10046 FLV 320 * Proportionally scaled 256 Kbps 24 H.264 MP3
710 FLV Proportionally scaled * 240 250 Kbps 15 H.265 AAC
SD 20 MP4 640 * Proportionally scaled 512 Kbps 24 H.264 AAC
520 MP4 Proportionally scaled * 480 600 Kbps 24 H.265 AAC
220 HLS 640 * Proportionally scaled 512 Kbps 24 H.264 AAC
620 HLS Proportionally scaled * 480 600 Kbps 24 H.265 AAC
10047 FLV 640 * Proportionally scaled 512 Kbps 24 H.264 MP3
720 FLV Proportionally scaled * 480 600 Kbps 24 H.265 AAC
HD 30 MP4 1280 * Proportionally scaled 1,024 Kbps 24 H.264 AAC
530 MP4 Proportionally scaled * 720 800 Kbps 25 H.265 AAC
230 HLS 1280 * Proportionally scaled 1,024 Kbps 24 H.264 AAC
630 HLS Proportionally scaled * 720 800 Kbps 25 H.265 AAC
10048 FLV 1280 * Proportionally scaled 1,024 Kbps 24 H.264 MP3
730 FLV Proportionally scaled * 720 800 Kbps 25 H.265 AAC
FHD 40 MP4 1920 * Proportionally scaled 2,500 Kbps 24 H.264 AAC
540 MP4 Proportionally scaled * 1080 1,400 Kbps 30 H.265 AAC
240 HLS 1920 * Proportionally scaled 2,500 Kbps 24 H.264 AAC
640 HLS Proportionally scaled * 1080 1,400 Kbps 30 H.265 AAC
10049 FLV 1920 * Proportionally scaled 2,500 Kbps 24 H.264 MP3
740 FLV Proportionally scaled * 1080 1,400 Kbps 30 H.265 AAC
2K 70 MP4 Proportionally scaled * 1440 3,072 Kbps 30 H.264 AAC
570 MP4 Proportionally scaled * 1440 2,048 Kbps 30 H.265 AAC
270 HLS Proportionally scaled * 1440 3,072 Kbps 30 H.264 AAC
670 HLS Proportionally scaled * 1440 2,048 Kbps 30 H.265 AAC
370 FLV Proportionally scaled * 1440 3,072 Kbps 30 H.264 MP3
770 FLV Proportionally scaled * 1440 2,048 Kbps 30 H.265 AAC
4K 80 MP4 Proportionally scaled * 2160 6,144 Kbps 30 H.264 AAC
580 MP4 Proportionally scaled * 2160 4,096 Kbps 30 H.265 AAC
280 HLS Proportionally scaled * 2160 6,144 Kbps 30 H.264 AAC
680 HLS Proportionally scaled * 2160 4,096 Kbps 30 H.265 AAC
380 FLV Proportionally scaled * 2160 6,144 Kbps 30 H.264 MP3
780 FLV Proportionally scaled * 2160 4,096 Kbps 30 H.265 AAC

Parameters that are not listed in the above table are as shown below:

Category Parameter Description
Video parameters Profile
  • If `Codec` is `H.264`, `Profile` is `High`
  • If `Codec` is `H.265`, `Profile` is `Main`
  • Group of Pictures (GOP) length 240 frames
    Color Space YUV420p
    Bitrate control method VBR
    Audio parameters SampleRate 44,100 Hz
    Bitrate 48 Kbps
    Sound System Stereo

    Audio transcoding templates

    Template ID Format Bitrate Codec Sound System Sample Rate
    1100 M4A 24 Kbps AAC Stereo 44,100 Hz
    1110 M4A 48 Kbps AAC Stereo 44,100 Hz
    1120 M4A 96 Kbps AAC Stereo 44,100 Hz
    1130 M4A 192 Kbps AAC Stereo 44,100 Hz
    1140 M4A 256 Kbps AAC Stereo 44,100 Hz
    1010 MP3 128 Kbps MP3 Stereo 44,100 Hz
    1020 MP3 320 Kbps MP3 Stereo 44,100 Hz

    Preset remuxing templates

    Template ID Format
    6 HLS
    9 MP4

    Preset animated image generating templates

    Template ID Format Resolution FPS
    20000 GIF Same as source 2
    20001 WebP Same as source 2

    Preset time point screencapturing templates

    Template ID Format Width Height Fill Type
    10 JPG Same as source Same as source Stretch

    Preset sampled screencapturing templates

    Template ID Format Width Height Sample Type Interval Fill Type
    10 JPG Same as source Save as source By percent 10% Stretch

    Preset image sprite generating templates

    Template ID Format Width Height Rows Columns Sample Type Interval
    10 JPG 142 80 10 10 By time 10s

    Custom Parameter Templates

    In addition to offering preset parameter templates, MPS allows you to customize template parameters to create your own custom parameter template. You can use the console or APIs to create custom parameter templates. Your created custom parameter templates are visible only to you.

    Creating a custom parameter template in the console

    For more information on how to create a custom parameter template in the console, please see Template Settings.

    Creating a custom parameter template through an API

    You can use the following APIs to create custom parameter templates of corresponding types:

    • Creating a transcoding template
    • Creating a watermarking template
    • Creating a sampled screencapturing template
    • Creating a time point screencapturing template
    • Creating an animated image generating template
    • Creating an image sprite generating template