| Parameter | Type | Description | Example |
|---|---|---|---|
| object | The video processing settings. | ||
| DisableVideo | boolean | Specifies whether to disable video stream generation. Valid values:
| false |
| 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.
| |
| FrameRate | float | The target frame rate. By default, the target frame rate is the same as the source frame rate. | 25 |
| FrameRateOption | string | The frame rate option. Valid values:
Default value:
Note
This parameter must be used together with the FrameRate parameter.
| fixed |
| Refs | integer | The number of reference frames. Default value: 2. | 2 |
| ScaleType | string | The resizing mode. Valid values:
Note
This parameter must be used together with the Resolution parameter.
| crop |
| ResolutionOption | string | The resolution option. Valid values:
Default value:
Note
This parameter must be used together with the Resolution parameter.
| fixed |
| BFrames | integer | The number of consecutive B frames. Default value: 3. | 3 |
| Rotation | integer | The degrees to rotate the video clockwise. Valid values:
| 90 |
| 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 |
| BufferSize | integer | The size of the buffer for decoding when the dynamic bitrate is used. Unit: bit/s. Note
This parameter must be used together with the CRF parameter.
| 4000000 |
| Codec | string | The video coding format. Valid values:
| h264 |
| CRF | float | The constant rate factor (CRF) of the video. The value of this parameter falls within the [0,51] range. A greater indicates lower quality. We recommend that you specify a value within the [18,38] range. This parameter and the Bitrate parameter are mutually exclusive. | 18 |
| BitrateOption | string | The video bitrate option. Valid values:
Default value:
Note
This parameter must be used together with the Bitrate parameter.
| fixed |
| 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 |
| AdaptiveResolutionDirection | boolean | Specifies whether to enable adaptation to resolution based on long and short sides. Valid values:
| true |
| 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 together with the CRF parameter.
| 128000 |
| GOPSize | integer | The keyframe interval. Default value: 150. Note
This parameter is not available to the GenerateVideoPlaylist operation.
| 60 |
| Resolution | string | The target resolution in the
Note
If the source video contains rotation information, the width, height, long side, and short side depend on the frame after rotation (the playback resolution).
| 640x480 |
| 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.
| |
| Delogos | array<object> | The configurations for blurring a rectangular area of the video. This parameter is used to remove logos from videos, such as TV channel logos. | |
| object | The video blurring parameters. | ||
| 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 |
| 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 |
| 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 |
| 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 |
| Speed | float | The video playback speed. Valid values: [0.5,1.0]. Default value: 1.0. Note
Note
| 1.0 |
| Desensitization | object | The video anonymization settings. Note
| |
| LicensePlate | object | The settings for license plate anonymization. | |
| MinSize | integer | The minimum threshold for license plate size. This parameter does not take effect if the width or height of the bounding box of a license plate falls below the specified minimum threshold. Default value: 0. | 0 |
| Confidence | float | The minimum confidence threshold. Valid values: 0 to 1. Default value: 0. | 0 |
| Face | object | The settings for face anonymization. | |
| MinSize | integer | This parameter does not take effect if the width or height of the bounding box of a face falls below the specified minimum threshold. Default value: 0. | 0 |
| Confidence | float | The minimum confidence threshold. Valid values: 0 to 1. Default value: 0. | 0 |
| Watermarks | array<object> | The video watermarks. | |
| object | The information about the watermark. | ||
| StartTime | double | The start time of watermarking (in seconds). By default, the watermark begins at the start time of the video. | 0 |
| FontColor | string | The color of the text watermark. You can specify a color name, such as "red" or "green", or an RGB color code. The default color is #000000. Note
This parameter takes effect only when the Type parameter is set to text.
| red |
| BorderColor | string | The color of the text watermark border. You can specify a color name, such as "red" or "green", or an RGB color code. The default color is #000000. Note
This parameter takes effect only when the Type parameter is set to text.
| red |
| Duration | double | The duration of watermarking (in seconds). By default, the watermark lasts until the video ends. | 0 |
| 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 |
| URI | string | The Object Storage Service (OSS) URI of the watermark file. The watermark file can be a PNG or MOV file. The URI is in the Note
This parameter takes effect only when the Type parameter is set to file.
| oss://test-bucket/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 |
| FontSize | integer | The 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 |
| 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 |
| 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 |
| ReferPos | string | The reference position for adding the watermark. Valid values:
| topleft |
| 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 |
| 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 |