Parameter | Type | Description | Example |
---|---|---|---|
object | The video processing settings. | ||
DisableVideo | boolean | Specifies whether to disable video stream generation. Valid values:
| false |
Stream | array | The index numbers of video streams. If you do not specify this parameter, the first video stream (the one with the smallest index number) is processed. If the array contains an element greater than 100, all video streams are processed.
Note
If you specify an index number but no video stream with the index number is found, the index number is ignored.
| |
integer | The index number of the video stream. | 0 | |
TranscodeVideo | object | The video transcoding parameters. If you do not specify this parameter, no video streams are included in the output file. Note
We recommend that you do not use this parameter to disable video stream generation.
| |
Codec | string | The video encoding format. Valid values:
| h264 |
PixelFormat | string | The pixel format. By default, the pixel format matches that of the source video. Valid values:
Note
You can set the parameter to yuva420p only when you call the CreateMediaConvert operation and set the Codec parameter to vp9.
| yuv420p |
FrameRateOption | string | The frame rate option. Valid values:
Default value:
Note
This parameter must be used in conjunction with the FrameRate parameter.
| fixed |
FrameRate | float | The target frame rate. By default, the target frame rate is the same as the source frame rate. | 25 |
ResolutionOption | string | The resolution option. Valid values:
Default value:
Note
This parameter must be used in conjunction with the Resolution parameter.
| fixed |
Resolution | string | The target resolution in
Note
If the source video contains rotation information, the width, height, long edge, and short edge depend on the frame after rotation, namely, the playback resolution.
| 640x480 |
AdaptiveResolutionDirection | boolean | Specifies whether to enable adaptive resolution direction. Valid values:
| true |
ScaleType | string | The resizing mode. Valid values:
Note
This parameter must be used in conjunction with the Resolution parameter.
| crop |
Rotation | integer | The degrees to rotate the video clockwise. Valid values:
| 90 |
BitrateOption | string | The video bitrate option. Valid values:
Default value:
Note
This parameter must be used in conjunction with the Bitrate parameter.
| fixed |
Bitrate | integer | The bitrate of the video stream. Unit: bit/s. Note
This parameter and the CRF parameter are mutually exclusive. If you leave both the parameters empty, the CRF parameter with a value of 23 applies.
| 128000 |
GOPSize | integer | The interval between keyframes. Default value: 150. Note
This parameter is not available to the GenerateVideoPlaylist operation.
| 60 |
CRF | float | The constant rate factor (CRF). The value of this parameter falls within the [0,51] range. The greater the value, the poor the quality. We recommend that you specify a value within the [18,38] range. This parameter and the Bitrate parameter are mutually exclusive. | 18 |
BufferSize | integer | The size of the buffer for decoding when the dynamic bitrate is used. Unit: bit/s. Note
This parameter must be used in conjunction with the CRF parameter.
| 4000000 |
MaxBitrate | integer | The maximum bitrate when the dynamic bitrate is used. If you specify this parameter, you must also specify the BufferSize parameter. Note
This parameter must be used in conjunction with the CRF parameter.
| 128000 |
BFrames | integer | The number of consecutive B frames. Default value: 3. | 3 |
Refs | integer | The number of reference frames. Default value: 2. | 2 |
FilterVideo | object | The video processing parameters. This parameter is invalid if TranscodeVideo is left empty or TranscodeVideo.Codec is set to copy. Note
This parameter is not available to the GenerateVideoPlaylist operation.
| |
Watermarks | array<object> | The video watermarks. | |
object | The information about the watermark. | ||
Type | string | The watermark type. Valid values:
| text |
Dx | float | The value of the parameter can be an integer or a decimal.
| 0 |
Dy | float | The value of the parameter can be an integer or a decimal.
| 0 |
StartTime | double | The start time of watermarking (in seconds). By default, the watermark begins at the start time of the video. | 0 |
Duration | double | The duration of the watermark (in seconds). By default, the watermark lasts until the video ends. | 0 |
ReferPos | string | The reference position for adding the watermark. Valid values:
| topleft |
Content | string | The content of the text watermark. By default, this parameter is left empty. Note
This parameter takes effect only when the Type parameter is set to text.
| example |
FontName | string | The font of the text watermark. Valid values:
Note
This parameter takes effect only when the Type parameter is set to text.
| SourceHanSans-Bold |
FontSize | integer | The font size of the text watermark. Default value: 16. The value must be an integer within the (4,120) range. Note
This parameter takes effect only when the Type parameter is set to text.
| 18 |
FontColor | string | The font color of the text watermark. The color can be specified by using the #RRGGBB format or a color name such as red or green. Default value: #000000. Note
This parameter takes effect only when the Type parameter is set to text.
| red |
FontApha | float | The font transparency of the text watermark. Valid values: (0,1]. Default value: 1, which specifies that the text watermark is fully opaque. Note
This parameter takes effect only when the Type parameter is set to text.
| 0.8 |
BorderWidth | integer | The width of the text watermark border. Unit: pixels. The value must be an integer within the [0,4096] range. Default value: 0. Note
This parameter takes effect only when the Type parameter is set to text.
| 2 |
BorderColor | string | The color of the text watermark border. The color can be specified by using the #RRGGBB format or a color name such as red or green. Default value: #000000. Note
This parameter takes effect only when the Type parameter is set to text.
| red |
URI | string | The Object Storage Service (OSS) URI of the watermark file. The watermark file can be a PNG or MOV file. Specify the OSS URI in the oss://<bucket>/<object> format, where <bucket> is the name of the bucket in the same region as the current project and <object> is the path of the object with the extension included.**Note This parameter takes effect only when the Type parameter is set to file. | oss://test-bucket/watermark |
Width | float | The width of the image watermark. By default, the width is the same as the width of the original watermark file. The value of the parameter can be an integer or a decimal.
| 80 |
Height | float | The height of the image watermark. By default, the height is the same as the height of the original watermark file. The value of the parameter can be an integer or a decimal.
| 40 |
Delogos | array<object> | The configurations for blurring a rectangular shape of the video. This parameter is used to remove logos from videos, such as TV channel logos. | |
object | The video blurring parameters. | ||
StartTime | double | The start time of blurring (in seconds). By default, the blur begins at the start time of the video. | 0 |
Duration | double | The duration of the blur in seconds. By default, the blur lasts until the end of the video. | 15 |
Dx | float | The value of the parameter can be an integer or a decimal.
| 0 |
Dy | float | Default value: 0. The value of the parameter can be an integer or a decimal.
| 0 |
Width | float | The width of the blur. The default value is 1.0, which specifies that the blur is as wide as the video. The value can be a decimal or an integer.
| 100 |
Height | float | The height of the blur. The default value is 1.0, which specifies that the blur is as high as the video. The value can be a decimal or an integer.
| 40 |
ReferPos | string | The reference position of the blur. Valid values:
| topleft |