| Parameter | Type | Description | Example |
|---|---|---|---|
| object | Parameters for transcoding features. | ||
| Clip | object | Configuration for clipping from the source video. | |
| TimeSpan | object | The time range for the clip. | |
| Duration | string | The duration of the clip, starting from the Seek time. The default duration is from the Seek time to the end of the video. Duration and End are mutually exclusive. If End is set, Duration is ignored.
| 60.0 |
| End | string | Specifies a duration to trim from the end of the video. Duration and End are mutually exclusive. If End is set, Duration is ignored.
| 50 |
| Seek | string | The start time of the clip. It defaults to the beginning of the video.
| 180.30 |
| ConfigToClipFirstPart | string | Specifies the order of operations when concatenating multiple files and clipping.
| false |
| Watermarks | array<object> | Image or text watermarks to add to the video. These parameters override the corresponding settings from a specified watermark template.
| |
| object | Configuration for a single watermark. | ||
| FontColor | string | The font color of the text watermark.
| black |
| BorderColor | string | The color of the font border.
| Black |
| BorderWidth | string | The width of the font border.
| 0 |
| FontAlpha | string | The font opacity.
| 1.0 |
| Type | string | The watermark type.
If not specified, the type is inferred from the TemplateId. | Image |
| Adaptive | string | Specifies if the font size adapts to the output resolution. Valid values:
| true |
| FontSize | string | The font size of the text watermark.
| |
| Content | string | The text to be displayed as the watermark. | TextWatarmark |
| X | string | The horizontal offset of the image watermark relative to the output video. This parameter overrides the corresponding setting from a specified watermark template. The following value types are supported:
| 0.08 |
| FontName | string | The font of the text watermark.
| SimSum |
| Y | string | The vertical offset of the image watermark relative to the output video. This parameter overrides the corresponding setting from a specified watermark template. The following value types are supported:
| 0.08 |
| Height | string | The height of the image watermark. This parameter overrides the corresponding setting from a specified watermark template. The following value types are supported:
| 0.1 |
| Width | string | The width of the image watermark. This parameter overrides the corresponding setting from a specified watermark template. The following value types are supported:
| 0.1 |
| TemplateId | string | The ID of the watermark template. | 962e1332fa2d4e12bdfb76dd1402fcfa |
| Metadata | object | A map of key-value pairs to be embedded as container-level metadata in the output file. Provided as a JSON string. Example: {"key1":"value1","key2":"value2"}.
Max 4 key-value pairs. | |
| string | The metadata of the vector data, which is a JSON string in the MAP format. The key specifies the field name, and the value specifies the data type. | {"AIGC": "xxx"} |