全部產品
Search
文件中心

:GetTranscodeTask - 查詢轉碼任務詳情

更新時間:Dec 15, 2025

調用本介面根據轉碼任務ID查詢轉碼作業詳細資料。

介面說明

使用說明

本介面僅支援查詢一年內的轉碼任務資料。

QPS 限制

本介面的單使用者 QPS 限制為 15 次/秒。超過限制,API 呼叫會被限流,這可能會影響您的業務,請合理調用。更多資訊,請參見 QPS 限制

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

調試

授權資訊

下表是API對應的授權資訊,可以在RAM權限原則語句的Action元素中使用,用來給RAM使用者或RAM角色授予調用此API的許可權。具體說明如下:

  • 操作:是指具體的許可權點。

  • 存取層級:是指每個操作的存取層級,取值為寫入(Write)、讀取(Read)或列出(List)。

  • 資源類型:是指操作中支援授權的資源類型。具體說明如下:

    • 對於必選的資源類型,用前面加 * 表示。

    • 對於不支援資源級授權的操作,用全部資源表示。

  • 條件關鍵字:是指雲產品自身定義的條件關鍵字。

  • 關聯操作:是指成功執行操作所需要的其他許可權。操作者必須同時具備關聯操作的許可權,操作才能成功。

操作

存取層級

資源類型

條件關鍵字

關聯操作

vod:GetTranscodeTask

get

*全部資源

*

請求參數

名稱

類型

必填

描述

樣本值

TranscodeTaskId

string

轉碼任務 ID,可通過以下方式擷取:

  • 通過 SubmitTranscodeJobs 介面發起轉碼任務時,為返回參數 TranscodeTaskId 的值。

  • 通過 ListTranscodeTask 介面查詢,為請求後返回參數 TranscodeTaskId 的值。

b1b65ab107e14*****3dbb900f6c1fe0

JobIds

string

轉碼作業 ID,最多支援 10 個 ID,多個 ID 之間使用半形逗號(,)分隔。可通過以下方式擷取:

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

返回參數

名稱

類型

描述

樣本值

object

RequestId

string

請求 ID。

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

NonExistJobIds

array

不存在的轉碼作業 ID 列表。

string

不存在的轉碼作業 ID 列表。

["hhhhhhh"]

TranscodeJobInfoList

array<object>

轉碼作業資訊。

array<object>

轉碼作業資訊。

Definition

string

視頻清晰度。取值:

  • LD:流暢。

  • SD:標清。

  • HD:高清。

  • FHD:超清。

  • OD:原畫。

  • 2K:2K。

  • 4K:4K。

  • SQ:普通音質。

  • HQ:高音質

  • AUTO:自適應碼率。僅當轉碼模板中配置了打包時才會有該清晰度輸出,請參見轉碼模板配置-PackageSetting

說明

該值為轉碼模板配置的清晰度標記,不表示轉碼輸出檔案實際的解析度範圍。

LD

CreationTime

string

轉碼作業建立時間。格式為:yyyy-MM-ddTHH:mm:ssZ(UTC 時間)。

2019-02-26T08:27:16Z

InputFileUrl

string

轉碼源檔案的 OSS 地址。

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

ErrorMessage

string

轉碼失敗錯誤資訊。

ErrorMessage

ErrorCode

string

轉碼失敗錯誤碼。

200

CompleteTime

string

轉碼作業完成時間。格式為:yyyy-MM-ddTHH:mm:ssZ(UTC 時間)。

2019-02-26T08:30:16Z

TranscodeProgress

integer

轉碼作業處理進度。取值範圍:[0,100]

2019-02-26T08:30:16Z

Priority

string

轉碼任務優先順序。

6

TranscodeJobStatus

string

轉碼作業狀態。

  • Transcoding:轉碼中。

  • TranscodeSuccess:轉碼成功。

  • TranscodeFail:轉碼失敗。

Transcoding

TranscodeTemplateId

string

轉碼使用的轉碼模板 ID。

174b0534fea3*****b51c8f0ad1374

TranscodeJobId

string

轉碼作業 ID。

38f0e513c88*****85515f9d50be188

OutputFile

object

轉碼輸出檔案的資訊。

VideoStreamList

string

視頻流列表。

[{\"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

轉碼輸出檔案的 OSS 地址。

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

Encryption

string

轉碼輸出檔案使用的加密配置。取值:

  • AliyunVoDEncryption:阿里雲視頻加密(私人加密)。

  • HLSEncryption:HLS 標準加密。

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

Height

string

轉碼輸出檔案視頻畫面高。單位:px。

360

SubtitleStreamList

string

字幕流列表。

[]

Bitrate

string

轉碼輸出檔案平均碼率。單位:Kbps。

964

AudioStreamList

string

音頻流列表。

"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

轉碼輸出檔案視頻畫面寬。單位:px。

640

Fps

string

轉碼輸出檔案的幀率。單位:幀/秒。

25

Duration

string

轉碼輸出檔案時間長度。單位:秒。

12

Format

string

轉碼輸出檔案的封裝格式。

m3u8

Filesize

integer

轉碼輸出檔案大小。單位:Byte。

851076

WatermarkIdList

array

轉碼使用的浮水印列表。

string

轉碼使用的浮水印列表。

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

TranscodeTask

object

轉碼任務資訊。

CreationTime

string

轉碼任務建立時間。格式為:yyyy-MM-ddTHH:mm:ssZ(UTC 時間)。

2019-01-23T12:35:12Z

Trigger

string

觸發類型。取值:

  • Auto:上傳視頻,自動觸發。

  • Manual :SubmitTranscodeJobs 介面觸發。

Auto

TaskStatus

string

轉碼任務狀態。取值:

  • Processing:處理中。

  • Partial:部分轉碼完成。

  • CompleteAllSucc:全部處理完成,且全部轉碼成功。

  • CompleteAllFail:全部處理完成,且全部轉碼失敗,如果源片有問題,則不會發起任何轉碼作業,整個轉碼任務失敗。

  • CompletePartialSucc:全部轉碼完成,但僅部分轉碼成功。

Processing

VideoId

string

音/視頻 ID。

883f5d98107*****b7f20aaa352f

CompleteTime

string

轉碼任務完成時間。格式為:yyyy-MM-ddTHH:mm:ssZ(UTC 時間)。

2019-01-23T12:40:12Z

TranscodeTemplateGroupId

string

轉碼使用的模板組 ID。

b500c7094bd241*****3e9900752d7c3

TranscodeTaskId

string

轉碼任務 ID。

b1b65ab107e14*****3dbb900f6c1fe0

TranscodeJobInfoList

array<object>

轉碼作業資訊。

array<object>

轉碼作業資訊。

Definition

string

視頻清晰度。取值:

  • LD:流暢。

  • SD:標清。

  • HD:高清。

  • FHD:超清。

  • OD:原畫。

  • 2K:2K。

  • 4K:4K。

  • SQ:普通音質。

  • HQ:高音質

  • AUTO:自適應碼率。僅當轉碼模板中配置了打包時才會有該清晰度輸出,請參見轉碼模板配置-PackageSetting

說明

該值為轉碼模板配置的清晰度標記,不表示轉碼輸出檔案實際的解析度範圍。

LD

CreationTime

string

轉碼作業建立時間。格式為:yyyy-MM-ddTHH:mm:ssZ(UTC 時間)。

2019-02-26T08:27:16Z

InputFileUrl

string

轉碼源檔案的 OSS 地址。

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

ErrorMessage

string

轉碼失敗錯誤資訊。

ErrorMessage

ErrorCode

string

轉碼失敗錯誤碼。

200

CompleteTime

string

轉碼作業完成時間。格式為:yyyy-MM-ddTHH:mm:ssZ(UTC 時間)。

2019-02-26T08:30:16Z

TranscodeProgress

integer

轉碼作業處理進度。取值範圍:[0,100]

100

Priority

string

轉碼任務優先順序。

6

TranscodeJobStatus

string

轉碼作業狀態。

  • Transcoding:轉碼中。

  • TranscodeSuccess:轉碼成功。

  • TranscodeFail:轉碼失敗。

Transcoding

TranscodeTemplateId

string

轉碼使用的轉碼模板 ID。

174b0534fea3*****b51c8f0ad1374

TranscodeJobId

string

轉碼作業 ID。

38f0e513c88*****85515f9d50be188

OutputFile

object

轉碼輸出檔案的資訊。

VideoStreamList

string

視頻流列表。

[{\"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

轉碼輸出檔案的 OSS 地址。

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

Encryption

string

轉碼輸出檔案使用的加密配置。取值:

  • AliyunVoDEncryption:阿里雲視頻加密(私人加密)。

  • HLSEncryption:HLS 標準加密。

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

Height

string

轉碼輸出檔案視頻畫面高。單位:px。

360

SubtitleStreamList

string

字幕流列表。

[]

Bitrate

string

轉碼輸出檔案平均碼率。單位:Kbps。

964

AudioStreamList

string

音頻流列表。

"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

轉碼輸出檔案視頻畫面寬。單位:px。

640

Fps

string

轉碼輸出檔案的幀率。單位:幀/秒。

25

Duration

string

轉碼輸出檔案時間長度。單位:秒。

12

Format

string

轉碼輸出檔案的封裝格式。

m3u8

Filesize

integer

轉碼輸出檔案大小。單位:Byte。

851076

WatermarkIdList

array

轉碼輸出檔案使用的浮水印 ID 列表。

string

轉碼輸出檔案使用的浮水印 ID 列表。

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

樣本

正常返回樣本

JSON格式

{
  "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\"]"
          ]
        }
      }
    ]
  }
}

錯誤碼

訪問錯誤中心查看更多錯誤碼。

變更歷史

更多資訊,參考變更詳情