Use this API to submit a task to generate a dynamic image.
Operation description
This is an asynchronous interface. When you submit a task, you will immediately receive a task ID while the task is queued for asynchronous execution in the background. The final result is sent via a callback notification, or you can poll the task status by querying the dynamic image task details.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ice:SubmitDynamicImageJob |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Name |
string |
No |
The job name. |
SampleJob |
| Input |
object |
Yes |
The job input. |
|
| Type |
string |
Yes |
The type of the job input. Valid values:
Valid values:
|
OSS |
| Media |
string |
Yes |
The input media resource.
An OSS URL must be in one of the following formats:
In these formats, Note
The specified OSS bucket must be registered in IMS storage management. |
oss://bucket/object.mp4 |
| Output |
object |
Yes |
The job output. |
|
| Type |
string |
Yes |
The type of the job output. Valid values:
Valid values:
|
Media |
| Media |
string |
Yes |
The destination OSS URL for the output file. This parameter is required when
In these formats, Note
The specified OSS bucket must be registered in IMS storage management. |
****96e8864746a0b6f3**** |
| TemplateConfig |
object |
Yes |
The snapshot template configuration. |
|
| TemplateId |
string |
Yes |
The template ID. |
****96e8864746a0b6f3**** |
| OverwriteParams |
object |
No |
The overwrite parameters. |
|
| Format |
string |
No |
The animated image format. Valid values:
Valid values:
|
gif |
| Width |
integer |
No |
The width of the output animated image. Valid range: [128, 4096]. |
1024 |
| Height |
integer |
No |
The height of the output animated image. Valid range: [128, 4096]. |
720 |
| Fps |
integer |
No |
The frame rate. Valid range: [1, 60]. |
15 |
| ScanMode |
string |
No |
The scan mode. Valid values:
Valid values:
|
progressive |
| LongShortMode |
boolean |
No |
Specifies whether to enable adaptive orientation based on the long and short edges of the video. Valid values:
Default value: true. Note
When enabled, this mode sets the output width to the source video's long edge and the output height to its short edge. For a portrait video, its height is treated as the long edge and its width as the short edge. Valid values:
|
false |
| TimeSpan |
object |
No |
Specifies the time range of the video to process for the animated image. |
|
| Seek |
string |
No |
The start time of the video segment to be processed.
|
01:59:59.999 或 32000.23 |
| Duration |
string |
No |
The duration of the video segment to be processed.
|
01:59:59.999 或 32000.23 |
| End |
string |
No |
The end time of the video segment to be processed. If this parameter is set, the
|
01:59:59.999 或 32000.23 |
| ScheduleConfig |
object |
No |
The scheduling configuration. |
|
| PipelineId |
string |
No |
The pipeline ID. |
****96e8864746a0b6f3**** |
| Priority |
integer |
No |
The priority of the job. Valid range: [1, 10]. A higher value indicates a higher priority. Default value: 6. |
6 |
| UserData |
string |
No |
The user-defined data. |
{"SampleKey": "SampleValue"} |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
PlainResponse |
||
| RequestId |
string |
The ID of the request. |
******11-DB8D-4A9A-875B-275798****** |
| JobId |
string |
The ID of the job. |
****20b48fb04483915d4f2cd8ac**** |
Examples
Success response
JSON format
{
"RequestId": "******11-DB8D-4A9A-875B-275798******",
"JobId": "****20b48fb04483915d4f2cd8ac****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.