Submits a task to generate an animated image.
Operation description
This is an asynchronous operation. After you submit a task, a task ID is returned. At this point, the task is not yet complete and enters a background queue for asynchronous execution. The final result is delivered through a callback notification. You can also proactively query the task status by calling Query animated 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 task name. |
SampleJob |
| Input |
object |
Yes |
The task input. |
|
| Media |
string |
Yes |
The input media.
OSS URL format:
In the URL, bucket is the name of the OSS bucket that resides in the same region as the current project, and object is the file path. Note
Before you use the OSS bucket in the URL, add it to IMS storage management. |
oss://bucket/object.mp4 |
| Type |
string |
Yes |
The input type. Valid values:
Valid values:
|
OSS |
| Output |
object |
Yes |
The task output. |
|
| Media |
string |
Yes |
The output media. Both OSS URLs and media asset IDs are supported. OSS URL format:
In the URL, bucket is the name of the OSS bucket that resides in the same region as the current project, and object is the file path. Note
Before you use the OSS bucket in the URL, add it to IMS storage management. |
****96e8864746a0b6f3**** |
| Type |
string |
Yes |
The output type. Valid values:
Valid values:
|
Media |
| TemplateConfig |
object |
Yes |
The snapshot template configuration. |
|
| OverwriteParams |
object |
No |
The override parameters. |
|
| Format |
string |
No |
The animated image format. Valid values:
Valid values:
|
gif |
| Fps |
integer |
No |
The frame rate. Valid values: 1 to 60. |
15 |
| Height |
integer |
No |
The height of the output animated image. Valid values: 128 to 4096. |
720 |
| LongShortMode |
boolean |
No |
Specifies whether to enable auto-rotation (long-short side mode). Valid values:
Default value: true. Note
The width of the transcoding output corresponds to the long side of the input source (the height for portrait videos), and the height corresponds to the short side of the input source (the width for portrait videos). Valid values:
|
false |
| ScanMode |
string |
No |
The scan mode. Valid values:
Valid values:
|
progressive |
| TimeSpan |
object |
No |
The timeline parameters. |
|
| Duration |
string |
No |
The duration.
|
01:59:59.999 or 32000.23 |
| End |
string |
No |
The tail trimming duration, which specifies the length of time to trim from the end. When this parameter is set, the Duration parameter becomes invalid.
|
01:59:59.999 or 32000.23 |
| Seek |
string |
No |
The start time.
|
01:59:59.999 or 32000.23 |
| Width |
integer |
No |
The width of the output animated image. Valid values: 128 to 4096. |
1024 |
| TemplateId |
string |
Yes |
The template ID. |
****96e8864746a0b6f3**** |
| ScheduleConfig |
object |
No |
The scheduling configuration. |
|
| PipelineId |
string |
No |
The pipeline ID. |
****96e8864746a0b6f3**** |
| Priority |
integer |
No |
The priority. Valid values: 1 to 10. Default value: 6. A larger value indicates a higher priority. |
6 |
| UserData |
string |
No |
The custom user data. |
{"SampleKey": "SampleValue"} |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
PlainResponse |
||
| JobId |
string |
The task ID. |
****20b48fb04483915d4f2cd8ac**** |
| RequestId |
string |
The request ID. |
******11-DB8D-4A9A-875B-275798****** |
Examples
Success response
JSON format
{
"JobId": "****20b48fb04483915d4f2cd8ac****",
"RequestId": "******11-DB8D-4A9A-875B-275798******"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.