All Products
Search
Document Center

ApsaraVideo VOD:GetTranscodeTask

Last Updated:Oct 27, 2026

Queries the details of transcoding jobs based on the transcoding task ID.

Operation description

Usage notes

This operation only supports querying transcoding task data within the last year.

QPS limit

The QPS limit for a single user calling this operation is 15 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

vod:GetTranscodeTask

get

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

TranscodeTaskId

string

No

The transcoding task ID. You can obtain the ID by using one of the following methods:

  • The value of the TranscodeTaskId response parameter returned when you call the SubmitTranscodeJobs operation to submit a transcoding task.

  • The value of the TranscodeTaskId response parameter returned when you call the ListTranscodeTask operation to query transcoding tasks.

b1b65ab107e14*****3dbb900f6c1fe0

JobIds

string

No

The IDs of the transcoding jobs. You can specify up to 10 IDs. Separate multiple IDs with commas (,). You can obtain the IDs by using the following method:

  • The value of the JobId response parameter returned when you call the SubmitTranscodeJobs operation to submit a transcoding task.

86c1925fba0****,7afb201e7fa****,2cc4997378****

Response elements

Element

Type

Description

Example

object

RequestId

string

The request ID.

F4C6D5BE-BF13-45*****6C-516EA8906DCD

NonExistJobIds

array

The list of IDs of transcoding jobs that do not exist.

string

The list of IDs of transcoding jobs that do not exist.

["hhhhhhh"]

TranscodeJobInfoList

array<object>

The transcoding job information.

array<object>

The transcoding job information.

Definition

string

The definition of the video. Valid values:

  • LD: Smooth.

  • SD: Standard definition.

  • HD: High definition.

  • FHD: Ultra-high definition.

  • OD: Original quality.

  • 2K: 2K.

  • 4K: 4K.

  • SQ: Standard audio quality.

  • HQ: High audio quality.

  • AUTO: Adaptive bitrate. This definition is output only when packaging is configured in the transcoding template. For more information, see Transcoding template configuration - PackageSetting.

Note

This value is the definition tag configured in the transcoding template and does not indicate the actual resolution range of the transcoded output file.

LD

CreationTime

string

The time when the transcoding job was created. The time is displayed in the yyyy-MM-ddTHH:mm:ssZ format. The time is in UTC.

2019-02-26T08:27:16Z

InputFileUrl

string

The OSS URL of the transcoding source file.

http://outin-40564*****e1403e7.oss-cn-shanghai.aliyuncs.com/customerTrans/5b95e568f8e*****47f38e/31f1184c-*****b2a2-f94-c213f.wmv

ErrorMessage

string

The error message returned when the transcoding job fails.

ErrorMessage

ErrorCode

string

The error code returned when the transcoding job fails.

200

CompleteTime

string

The time when the transcoding job was completed. The time is displayed in the yyyy-MM-ddTHH:mm:ssZ format. The time is in UTC.

2019-02-26T08:30:16Z

TranscodeProgress

integer

The processing progress of the transcoding job. Valid values: [0,100].

2019-02-26T08:30:16Z

Priority

string

The priority of the transcoding task.

6

TranscodeJobStatus

string

The status of the transcoding job. Valid values:

  • Transcoding: The transcoding job is in progress.

  • TranscodeSuccess: The transcoding job succeeded.

  • TranscodeFail: The transcoding job failed.

Transcoding

TranscodeTemplateId

string

The ID of the transcoding template used for transcoding.

174b0534fea3*****b51c8f0ad1374

TranscodeJobId

string

The ID of the transcoding job.

38f0e513c88*****85515f9d50be188

OutputFile

object

The information about the transcoded output file.

VideoStreamList

string

The list of video streams.

[{\"AvgFPS\":\"30.0\",\"Bitrate\":\"933.814\",\"CodecLongName\":\"H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10\",\"CodecName\":\"h264\",\"CodecTag\":\"0x31637661\",\"CodecTagString\":\"avc1\",\"CodecTimeBase\":\"1/60\",\"Dar\":\"9:16\",\"Duration\":\"12.033333\",\"Fps\":\"30.0\",\"HasBFrames\":\"2\",\"Height\":\"360\",\"Index\":\"0\",\"Lang\":\"und\",\"Level\":\"30\",\"PixFmt\":\"yuv420p\",\"Profile\":\"High\",\"Sar\":\"81:256\",\"StartTime\":\"0.000000\",\"Timebase\":\"1/15360\",\"Width\":\"640\"}]

OutputFileUrl

string

The OSS URL of the transcoded output file.

http://outin-40564*****e1403e7.oss-cn-shanghai.aliyuncs.com/883f5d*****f20aaa352f/c3be4f073*****7d5193ec8-{DestMd5}-od-S00000001-200000.mp4

Encryption

string

The encryption configuration used for the transcoded output file. Valid values:

  • AliyunVoDEncryption: Alibaba Cloud video encryption (proprietary encryption).

  • HLSEncryption: HLS encryption.

{\"EncryptType\":\"AliyunVoDEncryption\"}

Height

string

The height of the video frame in the transcoded output file. Unit: px.

360

SubtitleStreamList

string

The list of subtitle streams.

[]

Bitrate

string

The average bitrate of the transcoded output file. Unit: Kbps.

964

AudioStreamList

string

The list of audio streams.

"AudioStreamList": "[{\"Bitrate\":\"64.533\",\"ChannelLayout\":\"stereo\",\"Channels\":\"2\",\"CodecLongName\":\"AAC (Advanced Audio Coding)\",\"CodecName\":\"aac\",\"CodecTag\":\"0x6134706d\",\"CodecTagString\":\"mp4a\",\"CodecTimeBase\":\"1/44100\",\"Duration\":\"12.615533\",\"Index\":\"1\",\"Lang\":\"und\",\"SampleFmt\":\"fltp\",\"Samplerate\":\"44100\",\"StartTime\":\"-0.046440\",\"Timebase\":\"1/44100\"}]

Width

string

The width of the video frame in the transcoded output file. Unit: px.

640

Fps

string

The frame rate of the transcoded output file. Unit: FPS.

25

Duration

string

The duration of the transcoded output file. Unit: seconds.

12

Format

string

The container format of the transcoded output file.

m3u8

Filesize

integer

The size of the transcoded output file. Unit: bytes.

851076

WatermarkIdList

array

The list of watermarks used for transcoding.

string

The list of watermarks used for transcoding.

["64079a0e3e286*****b48a8c9413"]

TranscodeTask

object

The transcoding task information.

CreationTime

string

The time when the transcoding task was created. The time is displayed in the yyyy-MM-ddTHH:mm:ssZ format. The time is in UTC.

2019-01-23T12:35:12Z

Trigger

string

The trigger type. Valid values:

  • Auto: Automatically triggered when a video is uploaded.

  • Manual: Triggered by the SubmitTranscodeJobs operation.

Auto

TaskStatus

string

The status of the transcoding task. Valid values:

  • Processing: The task is being processed.

  • Partial: The task is partially completed.

  • CompleteAllSucc: The task is fully completed and all transcoding jobs succeeded.

  • CompleteAllFail: The task is fully completed but all transcoding jobs failed. If the source file has issues, no transcoding jobs are initiated and the entire transcoding task fails.

  • CompletePartialSucc: All transcoding jobs are completed, but only some of them succeeded.

Processing

VideoId

string

The audio or video ID.

883f5d98107*****b7f20aaa352f

CompleteTime

string

The time when the transcoding task was completed. The time is displayed in the yyyy-MM-ddTHH:mm:ssZ format. The time is in UTC.

2019-01-23T12:40:12Z

TranscodeTemplateGroupId

string

The ID of the transcoding template group used for transcoding.

b500c7094bd241*****3e9900752d7c3

TranscodeTaskId

string

The ID of the transcoding task.

b1b65ab107e14*****3dbb900f6c1fe0

TranscodeJobInfoList

array<object>

The transcoding job information.

array<object>

The transcoding job information.

Definition

string

The definition of the video. Valid values:

  • LD: Smooth.

  • SD: Standard definition.

  • HD: High definition.

  • FHD: Ultra-high definition.

  • OD: Original quality.

  • 2K: 2K.

  • 4K: 4K.

  • SQ: Standard audio quality.

  • HQ: High audio quality.

  • AUTO: Adaptive bitrate. This definition is output only when packaging is configured in the transcoding template. For more information, see Transcoding template configuration - PackageSetting.

Note

This value is the definition tag configured in the transcoding template and does not indicate the actual resolution range of the transcoded output file.

LD

CreationTime

string

The time when the transcoding job was created. The time is displayed in the yyyy-MM-ddTHH:mm:ssZ format. The time is in UTC.

2019-02-26T08:27:16Z

InputFileUrl

string

The OSS URL of the transcoding source file.

http://outin-40564*****e1403e7.oss-cn-shanghai.aliyuncs.com/customerTrans/5b95e568f8e*****47f38e/31f1184c-*****b2a2-f94-c213f.wmv

ErrorMessage

string

The error message returned when the transcoding job fails.

ErrorMessage

ErrorCode

string

The error code returned when the transcoding job fails.

200

CompleteTime

string

The time when the transcoding job was completed. The time is displayed in the yyyy-MM-ddTHH:mm:ssZ format. The time is in UTC.

2019-02-26T08:30:16Z

TranscodeProgress

integer

The processing progress of the transcoding job. Valid values: [0,100].

100

Priority

string

The priority of the transcoding task.

6

TranscodeJobStatus

string

The status of the transcoding job. Valid values:

  • Transcoding: The transcoding job is in progress.

  • TranscodeSuccess: The transcoding job succeeded.

  • TranscodeFail: The transcoding job failed.

Transcoding

TranscodeTemplateId

string

The ID of the transcoding template used for transcoding.

174b0534fea3*****b51c8f0ad1374

TranscodeJobId

string

The ID of the transcoding job.

38f0e513c88*****85515f9d50be188

OutputFile

object

The information about the transcoded output file.

VideoStreamList

string

The list of video streams.

[{\"AvgFPS\":\"30.0\",\"Bitrate\":\"933.814\",\"CodecLongName\":\"H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10\",\"CodecName\":\"h264\",\"CodecTag\":\"0x31637661\",\"CodecTagString\":\"avc1\",\"CodecTimeBase\":\"1/60\",\"Dar\":\"9:16\",\"Duration\":\"12.033333\",\"Fps\":\"30.0\",\"HasBFrames\":\"2\",\"Height\":\"360\",\"Index\":\"0\",\"Lang\":\"und\",\"Level\":\"30\",\"PixFmt\":\"yuv420p\",\"Profile\":\"High\",\"Sar\":\"81:256\",\"StartTime\":\"0.000000\",\"Timebase\":\"1/15360\",\"Width\":\"640\"}]

OutputFileUrl

string

The OSS URL of the transcoded output file.

http://outin-40564*****e1403e7.oss-cn-shanghai.aliyuncs.com/883f5d*****f20aaa352f/c3be4f073*****7d5193ec8-{DestMd5}-od-S00000001-200000.mp4

Encryption

string

The encryption configuration used for the transcoded output file. Valid values:

  • AliyunVoDEncryption: Alibaba Cloud video encryption (proprietary encryption).

  • HLSEncryption: HLS encryption.

{\"EncryptType\":\"AliyunVoDEncryption\"}

Height

string

The height of the video frame in the transcoded output file. Unit: px.

360

SubtitleStreamList

string

The list of subtitle streams.

[]

Bitrate

string

The average bitrate of the transcoded output file. Unit: Kbps.

964

AudioStreamList

string

The list of audio streams.

"AudioStreamList": "[{\"Bitrate\":\"64.533\",\"ChannelLayout\":\"stereo\",\"Channels\":\"2\",\"CodecLongName\":\"AAC (Advanced Audio Coding)\",\"CodecName\":\"aac\",\"CodecTag\":\"0x6134706d\",\"CodecTagString\":\"mp4a\",\"CodecTimeBase\":\"1/44100\",\"Duration\":\"12.615533\",\"Index\":\"1\",\"Lang\":\"und\",\"SampleFmt\":\"fltp\",\"Samplerate\":\"44100\",\"StartTime\":\"-0.046440\",\"Timebase\":\"1/44100\"}]

Width

string

The width of the video frame in the transcoded output file. Unit: px.

640

Fps

string

The frame rate of the transcoded output file. Unit: FPS.

25

Duration

string

The duration of the transcoded output file. Unit: seconds.

12

Format

string

The container format of the transcoded output file.

m3u8

Filesize

integer

The size of the transcoded output file. Unit: bytes.

851076

WatermarkIdList

array

The list of watermark IDs used for the transcoded output file.

string

The list of watermark IDs used for the transcoded output file.

["64079a0e3e286*****b48a8c9413"]

Examples

Success response

JSON format

{
  "RequestId": "F4C6D5BE-BF13-45*****6C-516EA8906DCD",
  "NonExistJobIds": [
    "[\"hhhhhhh\"]"
  ],
  "TranscodeJobInfoList": [
    {
      "Definition": "LD",
      "CreationTime": "2019-02-26T08:27:16Z",
      "InputFileUrl": "http://outin-40564*****e1403e7.oss-cn-shanghai.aliyuncs.com/customerTrans/5b95e568f8e*****47f38e/31f1184c-*****b2a2-f94-c213f.wmv",
      "ErrorMessage": "ErrorMessage",
      "ErrorCode": "200",
      "CompleteTime": "2019-02-26T08:30:16Z\n",
      "TranscodeProgress": 0,
      "Priority": "6",
      "TranscodeJobStatus": "Transcoding",
      "TranscodeTemplateId": "174b0534fea3*****b51c8f0ad1374",
      "TranscodeJobId": "38f0e513c88*****85515f9d50be188",
      "OutputFile": {
        "VideoStreamList": "[{\\\"AvgFPS\\\":\\\"30.0\\\",\\\"Bitrate\\\":\\\"933.814\\\",\\\"CodecLongName\\\":\\\"H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10\\\",\\\"CodecName\\\":\\\"h264\\\",\\\"CodecTag\\\":\\\"0x31637661\\\",\\\"CodecTagString\\\":\\\"avc1\\\",\\\"CodecTimeBase\\\":\\\"1/60\\\",\\\"Dar\\\":\\\"9:16\\\",\\\"Duration\\\":\\\"12.033333\\\",\\\"Fps\\\":\\\"30.0\\\",\\\"HasBFrames\\\":\\\"2\\\",\\\"Height\\\":\\\"360\\\",\\\"Index\\\":\\\"0\\\",\\\"Lang\\\":\\\"und\\\",\\\"Level\\\":\\\"30\\\",\\\"PixFmt\\\":\\\"yuv420p\\\",\\\"Profile\\\":\\\"High\\\",\\\"Sar\\\":\\\"81:256\\\",\\\"StartTime\\\":\\\"0.000000\\\",\\\"Timebase\\\":\\\"1/15360\\\",\\\"Width\\\":\\\"640\\\"}]",
        "OutputFileUrl": "http://outin-40564*****e1403e7.oss-cn-shanghai.aliyuncs.com/883f5d*****f20aaa352f/c3be4f073*****7d5193ec8-{DestMd5}-od-S00000001-200000.mp4",
        "Encryption": "{\\\"EncryptType\\\":\\\"AliyunVoDEncryption\\\"}",
        "Height": "360",
        "SubtitleStreamList": "[]",
        "Bitrate": "964",
        "AudioStreamList": "\"AudioStreamList\": \"[{\\\"Bitrate\\\":\\\"64.533\\\",\\\"ChannelLayout\\\":\\\"stereo\\\",\\\"Channels\\\":\\\"2\\\",\\\"CodecLongName\\\":\\\"AAC (Advanced Audio Coding)\\\",\\\"CodecName\\\":\\\"aac\\\",\\\"CodecTag\\\":\\\"0x6134706d\\\",\\\"CodecTagString\\\":\\\"mp4a\\\",\\\"CodecTimeBase\\\":\\\"1/44100\\\",\\\"Duration\\\":\\\"12.615533\\\",\\\"Index\\\":\\\"1\\\",\\\"Lang\\\":\\\"und\\\",\\\"SampleFmt\\\":\\\"fltp\\\",\\\"Samplerate\\\":\\\"44100\\\",\\\"StartTime\\\":\\\"-0.046440\\\",\\\"Timebase\\\":\\\"1/44100\\\"}]",
        "Width": "640",
        "Fps": "25",
        "Duration": "12",
        "Format": "m3u8",
        "Filesize": 851076,
        "WatermarkIdList": [
          "[\"64079a0e3e286*****b48a8c9413\"]"
        ]
      }
    }
  ],
  "TranscodeTask": {
    "CreationTime": "2019-01-23T12:35:12Z",
    "Trigger": "Auto ",
    "TaskStatus": "Processing",
    "VideoId": "883f5d98107*****b7f20aaa352f",
    "CompleteTime": "2019-01-23T12:40:12Z",
    "TranscodeTemplateGroupId": "b500c7094bd241*****3e9900752d7c3",
    "TranscodeTaskId": "b1b65ab107e14*****3dbb900f6c1fe0",
    "TranscodeJobInfoList": [
      {
        "Definition": "LD",
        "CreationTime": "2019-02-26T08:27:16Z",
        "InputFileUrl": "http://outin-40564*****e1403e7.oss-cn-shanghai.aliyuncs.com/customerTrans/5b95e568f8e*****47f38e/31f1184c-*****b2a2-f94-c213f.wmv",
        "ErrorMessage": "ErrorMessage",
        "ErrorCode": "200",
        "CompleteTime": "2019-02-26T08:30:16Z",
        "TranscodeProgress": 100,
        "Priority": "6",
        "TranscodeJobStatus": "Transcoding",
        "TranscodeTemplateId": "174b0534fea3*****b51c8f0ad1374",
        "TranscodeJobId": "38f0e513c88*****85515f9d50be188",
        "OutputFile": {
          "VideoStreamList": "[{\\\"AvgFPS\\\":\\\"30.0\\\",\\\"Bitrate\\\":\\\"933.814\\\",\\\"CodecLongName\\\":\\\"H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10\\\",\\\"CodecName\\\":\\\"h264\\\",\\\"CodecTag\\\":\\\"0x31637661\\\",\\\"CodecTagString\\\":\\\"avc1\\\",\\\"CodecTimeBase\\\":\\\"1/60\\\",\\\"Dar\\\":\\\"9:16\\\",\\\"Duration\\\":\\\"12.033333\\\",\\\"Fps\\\":\\\"30.0\\\",\\\"HasBFrames\\\":\\\"2\\\",\\\"Height\\\":\\\"360\\\",\\\"Index\\\":\\\"0\\\",\\\"Lang\\\":\\\"und\\\",\\\"Level\\\":\\\"30\\\",\\\"PixFmt\\\":\\\"yuv420p\\\",\\\"Profile\\\":\\\"High\\\",\\\"Sar\\\":\\\"81:256\\\",\\\"StartTime\\\":\\\"0.000000\\\",\\\"Timebase\\\":\\\"1/15360\\\",\\\"Width\\\":\\\"640\\\"}]",
          "OutputFileUrl": "http://outin-40564*****e1403e7.oss-cn-shanghai.aliyuncs.com/883f5d*****f20aaa352f/c3be4f073*****7d5193ec8-{DestMd5}-od-S00000001-200000.mp4",
          "Encryption": "{\\\"EncryptType\\\":\\\"AliyunVoDEncryption\\\"}",
          "Height": "360",
          "SubtitleStreamList": "[]",
          "Bitrate": "964",
          "AudioStreamList": "\"AudioStreamList\": \"[{\\\"Bitrate\\\":\\\"64.533\\\",\\\"ChannelLayout\\\":\\\"stereo\\\",\\\"Channels\\\":\\\"2\\\",\\\"CodecLongName\\\":\\\"AAC (Advanced Audio Coding)\\\",\\\"CodecName\\\":\\\"aac\\\",\\\"CodecTag\\\":\\\"0x6134706d\\\",\\\"CodecTagString\\\":\\\"mp4a\\\",\\\"CodecTimeBase\\\":\\\"1/44100\\\",\\\"Duration\\\":\\\"12.615533\\\",\\\"Index\\\":\\\"1\\\",\\\"Lang\\\":\\\"und\\\",\\\"SampleFmt\\\":\\\"fltp\\\",\\\"Samplerate\\\":\\\"44100\\\",\\\"StartTime\\\":\\\"-0.046440\\\",\\\"Timebase\\\":\\\"1/44100\\\"}]",
          "Width": "640",
          "Fps": "25",
          "Duration": "12",
          "Format": "m3u8",
          "Filesize": 851076,
          "WatermarkIdList": [
            "[\"64079a0e3e286*****b48a8c9413\"]"
          ]
        }
      }
    ]
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.