Torch Object Storage
Name | | Type | Required | Example value | Description |
Name | | Type | Required | Example value | Description |
process_template | Query | String | Yes | - | Watermark template identifier, fixed as process_template, no value needed. |
tag | Query | String | Yes | Watermark | Template type, the value is Watermark only in transparent watermark scenarios. |
Name | Type | Required | Example value | Description |
Name | Type | Required | Example value | Description |
Tag | String | Yes | Watermark | Fixed identifier. The watermark template value can only be Watermark, and it must match the Query parameter tag. |
Name | String | Yes | my-test-watermark | User-defined template name:
|
WatermarkConfig | Container | Yes | - | Watermark template detail information. |
Type | String | Yes | Text | Watermark type:
Parent node: Watermark. |
Pos | String | Yes | TopRight | Reference position (see watermark position description in the image below):
Parent node: Watermark. |
LocMode | String | Yes | Relative | watermark offset mode, options are:
parent node: Watermark . |
Dx | Integer | Yes | 10 | Horizontal offset.
Parent node: Watermark. |
Dy | Integer | Yes | 10 | Vertical offset.
Parent node: Watermark. |
StartTime | Integer | No | 0 | Watermark start time in milliseconds, default is 0. Parent node: Watermark. |
EndTime | Integer | No | 10000 | Watermark end time in milliseconds. Default is 0 (indicating it follows the video end time). Must be ≥ StartTime. Parent node: Watermark. |
Text | Container | No | - | Text watermark details. Required when Type is Text. Parent node: Watermark. |
FontSize | Integer | Yes | 100 | Font size in px, value range [5, 100]. Parent node: Text. |
FontType | String | Yes | fangzhengheiti | Font types, supporting the following fonts:
Parent node: Text. |
FontColor | String | Yes | #FF0000 | Font color, hexadecimal RGB. Parent node: Text. |
Transparency | Integer | Yes | 20 | watermark opacity, unit %, range [1, 100]. parent node: Text. |
Text | String | Yes | hello world | Watermark text content, no more than 64 characters, supports Chinese, English, numbers, underscore (_), hyphen (-), and asterisk (*). Parent node: Text. |
Image | Container | No | - | Image watermark details information. Type is required when Image . Parent node: Watermark . |
Url | String | Yes | http://myhost.com/my-watermark-img | The watermark image URL cannot be empty. Parent node: Image. |
Mode | String | Yes | Fixed | Size mode:
Parent node: Image. |
Width | Integer | No | 3200 | Watermark image width:
Parent node: Image. |
Height | Integer | No | 800 | Watermark image height:
|
Transparency | Integer | Yes | 20 | Watermark opacity, in %, value range [1, 100]. Parent node: Image. |
Background | Bool | No | false | Whether it is a background image, the values are as follows:
Parent node: Image. |
Name | Type | Example value | Description |
Name | Type | Example value | Description |
template_id | String | 393161343761366633396119012ee2450b08 | Unique ID for creating audio transcoding templates. |