All Products
Search
Document Center

ApsaraVideo Media Processing:QueryAnalysisJobList

Last Updated:Oct 13, 2026

Queries template analysis jobs and returns a list of available preset templates after the template analysis jobs are completed.

Operation description

This operation queries up to 10 template analysis jobs at a time.

QPS limits

The QPS limit for a single user is 100 queries per second. If the limit is exceeded, API calls are throttled, which may affect your business. Make API calls at a reasonable frequency. For more information, see QPS limits.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

mts:QueryAnalysisJobList

get

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

AnalysisJobIds

string

Yes

The IDs of the template analysis jobs.

  • You can query up to 10 jobs at a time.

  • Separate multiple IDs with commas (,).

bb558c1cc25b45309aab5be44d19****

Response elements

Element

Type

Description

Example

object

RequestId

string

The ID of the request.

5CA6E020-4102-4FFF-AA56-5ED7ECD811A1

AnalysisJobList

object

AnalysisJob

array<object>

The list of template analysis jobs.

array<object>

CreationTime

string

The time when the job was added. The time is displayed in UTC and follows the ISO 8601 standard in the YYYY-MM-DDTHH:mm:ssZ format.

2014-01-10T12:00:00Z

Percent

integer

The transcoding progress.

86

State

string

The status of the job. Valid values:

  • Submitted: The job is submitted.

  • Analyzing: The job is being analyzed.

  • Success: The job is successful.

  • Fail: The job failed.

Success

AnalysisConfig

object

The job configurations.

QualityControl

object

The output quality control configurations.

MethodStreaming

string

The playback method. Valid values:

  • network: online playback.

  • local: local playback.

  • Default value: network.

network

RateQuality

string

The output quality level. Default value: 25.

25

PropertiesControl

object

The property control configurations.

Deinterlace

string

The forced scan mode determination. Valid values:

  • Auto: automatic.

  • Force: forced deinterlacing.

  • None: no forced deinterlacing.

Auto

Crop

object

The video cropping configurations.

Top

string

The top margin for cropping.

Note

This parameter becomes invalid if Mode is set to Auto or None.

8

Width

string

The width after cropping.

Note

This parameter becomes invalid if Mode is set to Auto or None.

8

Height

string

The height after cropping.

Note

This parameter becomes invalid if Mode is set to Auto or None.

8

Left

string

The left margin for cropping.

Note

This parameter becomes invalid if Mode is set to Auto or None.

8

Mode

string

The cropping method. Valid values:

  • Auto: automatic.

  • Force: forced.

  • None: no forced cropping.

  • This parameter is required if Crop is not an empty JSON object {}.

Auto

Message

string

The error message returned when the analysis fails.

The resource operated \"PipelineId\" cannot be found

Priority

string

The priority of the job in the corresponding MPS queue.

  • Valid values: [1,10]. A value of 10 indicates the highest priority.

  • Default value: 10.

8

MNSMessageResult

object

The result of the Message Service (MNS) notification sent to the user upon job completion.

MessageId

string

The ID of the message returned when the job is successful. This parameter is not returned when the analysis fails.

3ca84a39a9024f19853b21be9cf9****

ErrorMessage

string

The error message returned when the job fails. This parameter is not returned when the analysis is successful.

The resource operated \"PipelineId\" cannot be found

ErrorCode

string

The error code returned when the job fails. This parameter is not returned when the analysis is successful.

InvalidParameter.ResourceNotFound

TemplateList

object

Template

array<object>

The list of preset templates output by the job.

array<object>

Video

object

The video codec configurations.

Bufsize

string

The buffer size.

  • Unit: KB.

  • Default value: 6000.

6000

Degrain

string

The strength of the independent denoising algorithm.

5

BitrateBnd

object

The range of the average video bitrate.

Max

string

The upper limit of the total bitrate. Unit: Kbps.

1500

Min

string

The lower limit of the total bitrate. Unit: Kbps.

800

PixFmt

string

The video color format. Standard color formats such as yuv420p and yuvj420p are supported.

yuv420p

Codec

string

The codec format. H.264 and H.265 are supported. Default value: H.264.

H.264

Height

string

The video height.

  • Unit: pixel.

  • Default value: the original height of the video.

720

Qscale

string

The video quality control level.

15

Bitrate

string

The average video bitrate. Unit: Kbps.

1000

Maxrate

string

The peak video bitrate.

  • Valid values: [10,50000].

  • Unit: Kbps.

2000

Profile

string

The encoding profile. Valid values:

  • baseline: for mobile devices.

  • main: for standard resolution devices.

  • high: for high resolution devices.

  • Default value: high.

high

Crf

string

The constant rate factor (CRF) for bitrate-quality control.

  • Default value: If the encoding format is H.264, the default value is 23. If the encoding format is H.265, the default value is 26.

  • If Crf is set, the settings for Bitrate become invalid.

26

Gop

string

The maximum number of frames between keyframes. Default value: 250.

250

Width

string

The video width.

  • Unit: pixel.

  • Default value: the original width of the video.

1280

Fps

string

The frame rate.

  • If the frame rate of the input file exceeds 60, the value 60 is used.

  • Default value: the frame rate of the input file.

25

Preset

string

The video algorithm preset. Valid values: veryfast, fast, medium, slow, and slower. Default value: medium.

medium

ScanMode

string

The scan mode. Valid values:

  • interlaced: interlaced scanning.

  • progressive: progressive scanning.

interlaced

TransConfig

object

The general transcoding configurations.

TransMode

string

The transcoding mode. Default value: onepass. Valid values:

  • onepass

  • twopass

  • CBR

onepass

State

string

The status of the template. Valid values:

  • Normal: The template is normal.

  • Deleted: The template is deleted.

Normal

MuxConfig

object

The transcoding muxing configurations.

Gif

object

The GIF format configurations.

FinalDelay

string

The loop interval of the GIF. Unit: 10 milliseconds. For example, a value of 500 indicates an interval of 5 seconds.

0

Loop

string

The number of loops for GIF and WebP. By default, no loop is performed.

0

Segment

object

The segment configurations.

Duration

string

The segment duration. Unit: seconds.

10

Name

string

The name of the template.

FLV-UD

Audio

object

The audio codec configurations.

Profile

string

The audio encoding preset. Valid values when Codec is set to aac:

  • aac_low

  • aac_he

  • aac_he_v2

  • aac_ld

  • aac_eld

aac_low

Codec

string

The audio codec format. Default value: aac. Valid values:

  • aac

  • mp3

  • vorbis

  • flac

aac

Samplerate

string

The sampling rate.

  • Unit: Hz.

  • Default value: 44100.

44100

Qscale

string

The audio quality control level.

15

Channels

string

The number of sound channels. Default value: 2.

2

Bitrate

string

The audio bitrate of the output file.

  • Valid values: 8 to 1000.

  • Unit: Kbps.

  • Default value: 128.

128

Id

string

The ID of the transcoding template.

S00000000-00****

Container

object

The container.

Format

string

The container format.

flv

UserData

string

The custom user data.

testid-001

Code

string

The error code returned when the analysis fails.

InvalidParameter.ResourceNotFound

InputFile

object

The job input.

Object

string

The OSS object.

example.flv

Location

string

The OSS region.

oss-cn-hangzhou

Bucket

string

The OSS bucket of the input file.

example-bucket

PipelineId

string

The ID of the MPS queue.

bb558c1cc25b45309aab5be44d19****

Id

string

The ID of the template analysis job.

57f6aa3f84824309bcba67231b406****

NonExistAnalysisJobIds

object

String

array

The non-existent template analysis jobs.

string

The list of IDs of the non-existent template analysis jobs. This structure is not returned if no data is available.

null

Examples

Success response

JSON format

{
  "RequestId": "5CA6E020-4102-4FFF-AA56-5ED7ECD811A1",
  "AnalysisJobList": {
    "AnalysisJob": [
      {
        "CreationTime": "2014-01-10T12:00:00Z",
        "Percent": 86,
        "State": "Success",
        "AnalysisConfig": {
          "QualityControl": {
            "MethodStreaming": "network",
            "RateQuality": "25"
          },
          "PropertiesControl": {
            "Deinterlace": "Auto",
            "Crop": {
              "Top": "8",
              "Width": "8",
              "Height": "8",
              "Left": "8",
              "Mode": "Auto"
            }
          }
        },
        "Message": "The resource operated \\\"PipelineId\\\" cannot be found",
        "Priority": "8",
        "MNSMessageResult": {
          "MessageId": "3ca84a39a9024f19853b21be9cf9****",
          "ErrorMessage": "The resource operated \\\"PipelineId\\\" cannot be found",
          "ErrorCode": "InvalidParameter.ResourceNotFound"
        },
        "TemplateList": {
          "Template": [
            {
              "Video": {
                "Bufsize": "6000",
                "Degrain": "5",
                "BitrateBnd": {
                  "Max": "1500",
                  "Min": "800"
                },
                "PixFmt": "yuv420p",
                "Codec": "H.264",
                "Height": "720",
                "Qscale": "15",
                "Bitrate": "1000",
                "Maxrate": "2000",
                "Profile": "high",
                "Crf": "26",
                "Gop": "250",
                "Width": "1280",
                "Fps": "25",
                "Preset": "medium",
                "ScanMode": "interlaced"
              },
              "TransConfig": {
                "TransMode": "onepass"
              },
              "State": "Normal",
              "MuxConfig": {
                "Gif": {
                  "FinalDelay": "0",
                  "Loop": "0"
                },
                "Segment": {
                  "Duration": "10"
                }
              },
              "Name": "FLV-UD",
              "Audio": {
                "Profile": "aac_low",
                "Codec": "aac",
                "Samplerate": "44100",
                "Qscale": "15",
                "Channels": "2",
                "Bitrate": "128"
              },
              "Id": "S00000000-00****",
              "Container": {
                "Format": "flv"
              }
            }
          ]
        },
        "UserData": "testid-001",
        "Code": "InvalidParameter.ResourceNotFound",
        "InputFile": {
          "Object": "example.flv",
          "Location": "oss-cn-hangzhou",
          "Bucket": "example-bucket"
        },
        "PipelineId": "bb558c1cc25b45309aab5be44d19****",
        "Id": "57f6aa3f84824309bcba67231b406****"
      }
    ]
  },
  "NonExistAnalysisJobIds": {
    "String": [
      "null"
    ]
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.