|
Parameter |
Type |
Description |
Example |
|---|---|---|---|
|
object |
The configuration of a transcoded output. |
||
| Bufsize |
integer |
The buffer size. It controls bitrate fluctuations. A larger value allows for more bitrate variation and potentially higher video quality.
|
20000 |
| Qscale |
integer |
The video quality scale. This parameter applies to VBR mode. A higher value means lower video quality and a higher compression ratio.
|
13 |
| ScanMode |
string |
The scan mode. Valid values:
Best practice: The interlaced scan mode saves data traffic than the progressive scan mode but provides poor image quality. Therefore, the latter is commonly used in mainstream video production.
|
auto |
| LongShortMode |
boolean |
Specifies whether to enable orientation-adaptive scaling. This parameter takes effect if at least one of the Width and Height parameters is specified. Valid values:
Best practice: Enable this feature when your inputs include both horizontal and vertical videos. This prevents videos from stretching. |
true |
| Fps |
any |
The frame rate of the video stream.
|
25 |
| Gop |
any |
The keyframe interval.
Best practice: Set this parameter to 2-7s to improve the Time-to-First-Frame and seeking performance. |
10s |
| Remove |
boolean |
Specifies whether to delete the video stream. Valid values:
|
false |
| Bitrate |
integer |
The average bitrate of the output. If you use the CRB, ABR, or VBR bitrate control mode, you must specify Bitrate, and you must set TransMode to a valid value.
Best practices:
|
6000 |
| Profile |
string |
The codec profile.
Best practice: For multi-bitrate streaming, use baseline for the lowest quality rendition to ensure maximum compatibility with older devices. Use main or high for other renditions. |
high |
| Crop |
string |
Crops the video frame. You can set automatic black border removal or custom cropping.
Example: 1920:800:0:140. |
1920:800:0:140 |
| Codec |
string |
The video codec.
|
H.264 |
| Maxrate |
integer |
The maximum bitrate of the output.
|
10000 |
| Pad |
string |
The black borders added to the video.
Example: 1920:1080:0:140. |
1920:1080:0:140 |
| MaxFps |
any |
The maximum frame rate. |
25 |
| Crf |
any |
The quality control factor. To use the CRF mode, you must specify Crf and set TransMode to fixCRF. A larger value means lower quality and a higher compression ratio.
Best Practice:
|
23 |
| Height |
integer |
The height or short edge of the output. If LongShortMode is set to false or left empty, this parameter specifies the height of the output. If LongShortMode is set to true, this parameter specifies the short edge of the output.
|
1080 |
| Width |
integer |
The width or long edge of the output. If LongShortMode is set to false or left empty, this parameter specifies the width of the output. If LongShortMode is set to true, this parameter specifies the long edge of the output.
|
1920 |
MediaConvertVideo
Updated at:
Is this page helpful?