Template Parameter Description
Last updated: 2020-02-24 15:08:38Download PDF
When creating a parameter template, you need to set the parameters, including bitrate, video width and height, remuxing format, and codec. This document describe the key parameters for each template and their value ranges.
Audio/Video Transcoding Template
Category | Parameter | Description |
---|---|---|
Muxing | ||
Container format | The following video and audio container formats are supported:
| |
Video stream deletion | If this parameter is enabled, the output video after transcoding will contain only the audio stream with the video stream discarded | |
Audio stream deletion | If this parameter is enabled, the output video after transcoding will contain only the video stream with the audio stream discarded | |
Video encoding | Codec | H.264 and H.265 are supported |
Bitrate | Supported bitrate range: 10–35 Mbps | |
Frame rate | Supported frame rate range: 1–60 fps; common values: 24, 25, and 30 fps | |
Resolution |
| |
GOP length | Supported GOP length range: 1–10s | |
Profile |
| |
Color space | YUV420P is supported | |
Audio encoding parameters | Codec | MP3, AAC, AC3, and FLAC are supported |
Sample rate |
The following audio sample rates are supported:
| |
Bitrate |
Supported bitrate range: 26–256 Kbps, including the following values:
| |
Channel |
|
Watermark Template
Parameter | Description |
---|---|
Type | Image and text watermarks are supported: |
Position | Relative position of a watermark in the video |
Image Dimension | Size of an image watermark in the video |
Image Content | Binary content of an image watermark |
Font Size | Font size of a text watermark |
Font Type | Font of a text watermark, e.g., Times New Roman |
Font Color | Color of a text watermark, e.g., 0xRRGGBB |
Font Alpha | Transparency of text watermark. Value range: 0–100% |
Screenshot Template
Time point screenshot template
A time point screenshot template is used to take a screenshot at a specified time point or to generate a thumbnail cover.
Parameter | Description |
---|---|
Format | Output format of a screenshot file. Currently, only JPG is supported |
Width | Screenshot width. Value range: 128–4,096 px |
Height | Screenshot height. Value range: 128–4,096 px |
Fill Type | Filling refers to the way of processing a screenshot when its aspect ratio is different from that of the source video. Generally, the following filling types are supported: |
Sampled screenshot template
A sampled screenshot template is used to take sampled screenshots.
Parameter | Description |
---|---|
Format | Output format of a screenshot file. Currently, only JPG is supported |
Width | Screenshot width. Value range: 128–4,096 px |
Height | Screenshot height. Value range: 128–4,096 px |
Sample Type | The following two types are supported: Interval is set to 5% for example, 20 screenshots will be generated Interval is set to 10s for example, the number of generated screenshots will depend on the video length |
Interval | Sampling interval. |
Fill Type | Filling refers to the way of processing a screenshot when its aspect ratio is different from that of the source video. Generally, the following filling types are supported: |
Image sprite screenshot template
An image sprite screenshot template is used to take screenshots and combine them to generate an image sprite.
Parameter | Description |
---|---|
Format | Output format of an image sprite file. Currently, only JPG is supported |
Width | Sub-image width |
Height | Sub-image height |
Rows | Number sub-image rows in an image sprite |
Columns | Number sub-image columns in an image sprite |
Sample Type | Sub-image sampling method. Currently, only sampling by time is supported |
Interval | Time interval for capturing sub-images |
- The value of
Width
*Columns
should be between 128 and 4,096 px (i.e., the range of the image sprite width).- The value of
Height
*Rows
should be between 128 and 4,096 px (i.e., the range of the image sprite height).
Animated Image Generating Template
The target specification of an animated image is subject to parameters such as animated image format, width, height, and frame rate.
Parameter | Description |
---|---|
Format | Output format of an animated image file. Currently, only GIF and WEBP are supported |
Width | Animated image width. Value range: 128–4,096 px |
Height | Animated image height. Value range: 128–4,096 px |
FPS | Supported frame rate range: 1–60 fps |