All Products
Search
Document Center

Intelligent Media Services:SubmitDynamicImageJob

Last Updated:Dec 16, 2024

Submits an image animation job.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
ice:SubmitDynamicImageJob
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
NamestringNo

The name of the job.

SampleJob
InputobjectYes

The input of the job.

TypestringYes

The type of the input file. Valid values:

  1. OSS: an Object Storage Service (OSS) object.
  2. Media: a media asset.
OSS
MediastringYes

The input file. If Type is set to OSS, set this parameter to the URL of an OSS object. If Type is set to Media, set this parameter to the ID of a media asset. The URL of an OSS object can be in one of the following formats:

  1. oss://bucket/object
  2. http(s)://bucket.oss-[RegionId].aliyuncs.com/object

In the URL, bucket specifies an OSS bucket that resides in the same region as the job, and object specifies the object URL in OSS.

Note Before you use the OSS bucket in the URL, you must add the bucket on the Storage Management page of the Intelligent Media Services (IMS) console.
oss://bucket/object.mp4
OutputobjectYes

The output of the job.

TypestringYes

The type of the output file. Valid values:

  1. OSS: an OSS object.
  2. Media: a media asset.
Media
MediastringYes

The output file. The file can be an OSS object or a media asset. The URL of an OSS object can be in one of the following formats:

  • oss://bucket/object
  • http(s)://bucket.oss-[regionId].aliyuncs.com/object

In the URL, bucket specifies an OSS bucket that resides in the same region as the job, and object specifies the object URL in OSS.

Note Before you use the OSS bucket in the URL, you must add the bucket on the Storage Management page of the IMS console.
****96e8864746a0b6f3****
TemplateConfigobjectYes

The snapshot template configuration.

TemplateIdstringYes

The template ID.

****96e8864746a0b6f3****
OverwriteParamsobjectNo

The parameters that are used to overwrite the corresponding parameters.

FormatstringNo

The format of the animated image. Valid values:

  • gif
  • webp
gif
WidthintegerNo

The width of the animated image. Valid values: [128,4096].

1024
HeightintegerNo

The height of the animated image. Valid values: [128,4096].

720
FpsintegerNo

The frame rate. Valid values: [1,60].

15
ScanModestringNo

The scan mode. Valid values:

  • interlaced
  • progressive This is the default value.
progressive
LongShortModebooleanNo

Specifies whether to enable the auto-rotate screen feature. Valid values:

  • true
  • false

Default value: true.

Note If this feature is enabled, the width of the output video corresponds to the long side of the input video, which is the height of the input video in portrait mode. The height of the output video corresponds to the short side of the input video, which is the width of the input video in portrait mode.
false
TimeSpanobjectNo

The timeline parameters.

SeekstringNo

The start point of the clip.

  • Format: hh:mm:ss[.SSS] or sssss[.SSS].
  • Valid values: [00:00:00.000,23:59:59.999] or [0.000,86399.999].
01:59:59.999 or 32000.23
DurationstringNo

The length of the clip.

  • Format: hh:mm:ss[.SSS] or sssss[.SSS].
  • Valid values: [00:00:00.000,23:59:59.999] or [0.000,86399.999].
01:59:59.999 or 32000.23
EndstringNo

The length of the ending part of the original clip to be cropped out. If you specify this parameter, the Duration parameter becomes invalid.

  • Format: hh:mm:ss[.SSS] or sssss[.SSS].
  • Valid values: [00:00:00.000,23:59:59.999] or [0.000,86399.999].
01:59:59.999 or 32000.23
ScheduleConfigobjectNo

The scheduling settings.

PipelineIdstringNo

The ID of the MPS queue to which the job was submitted.

****96e8864746a0b6f3****
PriorityintegerNo

The priority. Valid values: 1 to 10. Default value: 6. A greater value specifies a higher priority.

6
UserDatastringNo

The user-defined data.

{"SampleKey": "SampleValue"}

Response parameters

ParameterTypeDescriptionExample
object

PlainResponse

RequestIdstring

The request ID.

******11-DB8D-4A9A-875B-275798******
JobIdstring

The job ID.

****20b48fb04483915d4f2cd8ac****

Examples

Sample success responses

JSONformat

{
  "RequestId": "******11-DB8D-4A9A-875B-275798******",
  "JobId": "****20b48fb04483915d4f2cd8ac****"
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2022-08-10The internal configuration of the API is changed, but the call is not affectedView Change Details
2022-07-11Add OperationView Change Details