Tous les produits
Search
Centre de documentation

:GetTranscodeTask

Dernière mise à jour :Aug 05, 2026

Consulte les détails des travaux de transcodage en fonction de l'identifiant d'une tâche de transcodage.

Description de l'opération

Remarques sur l'utilisation.

Testez maintenant

Testez cette API dans OpenAPI Explorer, sans signature manuelle. Les appels réussis génèrent automatiquement du code SDK correspondant à vos paramètres. Téléchargez-le avec une sécurité intégrée des identifiants pour une utilisation locale. Testez cette API dans OpenAPI Explorer, sans signature manuelle. Les appels réussis génèrent automatiquement du code SDK correspondant à vos paramètres. Téléchargez-le avec une sécurité intégrée des identifiants pour une utilisation locale.

Test

Autorisation RAM

Le tableau ci-dessous décrit les autorisations nécessaires pour appeler cette API. Vous pouvez les définir dans une politique Resource Access Management (RAM). Les colonnes du tableau sont détaillées ci-dessous :

  • Action : les actions peuvent être utilisées dans l'élément Action des instructions de politique de permissions RAM pour accorder les autorisations nécessaires à l'exécution de l'opération.

  • API : l'API que vous pouvez appeler pour exécuter l'action.

  • Niveau d'accès : le niveau d'accès prédéfini accordé pour chaque API. Valeurs valides : create, list, get, update et delete.

  • Type de ressource : le type de ressource qui prend en charge l'autorisation pour exécuter l'action. Il indique si l'action prend en charge les permissions au niveau de la ressource. La ressource spécifiée doit être compatible avec l'action. Sinon, la politique sera inefficace.

    • Pour les API avec permissions au niveau de la ressource, les types de ressource requis sont marqués d'un astérisque (*). Spécifiez l'Alibaba Cloud Resource Name (ARN) correspondant dans l'élément Resource de la politique.

    • Pour les API sans permissions au niveau de la ressource, la valeur All Resources est affichée. Utilisez un astérisque (*) dans l'élément Resource de la politique.

  • Clé de condition : les clés de condition définies par le service. La clé permet un contrôle granulaire, applicable aux actions seules ou aux actions associées à des ressources spécifiques. En plus des clés de condition propres au service, Alibaba Cloud fournit un ensemble de clés de condition communes applicables à tous les services pris en charge par RAM.

  • Action dépendante : les actions dépendantes requises pour exécuter l'action. Pour mener à bien l'opération, l'utilisateur RAM ou le rôle RAM doit disposer des permissions pour toutes les actions dépendantes.

vod:GetTranscodeTask

get

*All Resource

*

Aucune Aucune

Paramètres de requête

Paramètre

Type

Requis

Description

Exemple

TranscodeTaskId

string

Non

L'identifiant de la tâche de transcodage. Vous pouvez obtenir cet identifiant en utilisant l'une des méthodes suivantes :

b1b65ab107e14*****3dbb900f6c1fe0

JobIds

string

Non

Les identifiants des travaux de transcodage. Vous pouvez spécifier jusqu'à 10 identifiants. Séparez les identifiants multiples par des virgules (,). Vous pouvez obtenir ces identifiants en utilisant la méthode suivante :

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

Éléments de réponse

Élément

Type

Description

Exemple

object

RequestId

string

L'identifiant de la requête.

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

NonExistJobIds

array

Les identifiants des travaux de transcodage qui n'existent pas.

string

Les identifiants des travaux de transcodage qui n'existent pas.

["hhhhhhh"]

TranscodeJobInfoList

array<object>

Les informations sur le travail de transcodage.

array<object>

Les informations sur le travail de transcodage.

Definition

string

La définition de la vidéo. Valeurs valides :

LD

CreationTime

string

L'heure de création du travail de transcodage. L'heure est au format yyyy-MM-ddTHH:mm:ssZ (UTC).

2019-02-26T08:27:16Z

InputFileUrl

string

L'URL OSS du fichier source de transcodage.

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

ErrorMessage

string

Le message d'erreur renvoyé en cas d'échec du travail de transcodage.

ErrorMessage

ErrorCode

string

Le code d'erreur renvoyé en cas d'échec du travail de transcodage.

200

CompleteTime

string

L'heure de fin du travail de transcodage. L'heure est au format yyyy-MM-ddTHH:mm:ssZ (UTC).

2019-02-26T08:30:16Z

TranscodeProgress

integer

La progression du travail de transcodage. Plage de valeurs : [0,100].

2019-02-26T08:30:16Z

Priority

string

La priorité de la tâche de transcodage.

6

TranscodeJobStatus

string

L'état du travail de transcodage. Valeurs valides :

Transcoding

TranscodeTemplateId

string

L'identifiant du modèle de transcodage utilisé pour le transcodage.

174b0534fea3*****b51c8f0ad1374

TranscodeJobId

string

L'identifiant du travail de transcodage.

38f0e513c88*****85515f9d50be188

OutputFile

object

Les informations relatives au fichier de sortie de transcodage.

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 transcoding 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 transcoding output file. Valid values:

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

  • HLSEncryption: HLS encryption.

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

Height

string

The height of the transcoding output video. Unit: px.

360

SubtitleStreamList

string

The list of subtitle streams.

[]

Bitrate

string

The average bitrate of the transcoding 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 transcoding output video. Unit: px.

640

Fps

string

The frame rate of the transcoding output file. Unit: frames per second.

25

Duration

string

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

12

Format

string

The container format of the transcoding output file.

m3u8

Filesize

integer

The size of the transcoding 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

Les informations sur la tâche de transcodage.

CreationTime

string

L'heure de création de la tâche de transcodage. L'heure est au format yyyy-MM-ddTHH:mm:ssZ (UTC).

2019-01-23T12:35:12Z

Trigger

string

Le type de déclencheur. Valeurs valides :

Auto

TaskStatus

string

L'état de la tâche de transcodage. Valeurs valides :

Processing

VideoId

string

L'identifiant audio ou vidéo.

883f5d98107*****b7f20aaa352f

CompleteTime

string

L'heure de fin de la tâche de transcodage. L'heure est au format yyyy-MM-ddTHH:mm:ssZ (UTC).

2019-01-23T12:40:12Z

TranscodeTemplateGroupId

string

L'identifiant du groupe de modèles de transcodage utilisé pour le transcodage.

b500c7094bd241*****3e9900752d7c3

TranscodeTaskId

string

L'identifiant de la tâche de transcodage.

b1b65ab107e14*****3dbb900f6c1fe0

TranscodeJobInfoList

array<object>

Les informations sur le travail de transcodage.

array<object>

Les informations sur le travail de transcodage.

Definition

string

The video definition. Valid values:

  • LD: fluent.

  • SD: standard definition.

  • HD: high definition.

  • FHD: ultra high definition.

  • OD: original quality.

  • 2K: 2K.

  • 4K: 4K.

  • SQ: standard sound quality.

  • HQ: high sound quality.

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

Remarque

This value is the definition label 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 in the yyyy-MM-ddTHH:mm:ssZ format (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 failed.

ErrorMessage

ErrorCode

string

The error code returned when the transcoding job failed.

200

CompleteTime

string

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

2019-02-26T08:30:16Z

TranscodeProgress

integer

The transcoding job progress. Value range: [0,100].

100

Priority

string

The priority of the transcoding task.

6

TranscodeJobStatus

string

The status of the transcoding job. Valid values:

  • Transcoding: transcoding in progress.

  • TranscodeSuccess: transcoding succeeded.

  • TranscodeFail: transcoding failed.

Transcoding

TranscodeTemplateId

string

The ID of the transcoding template used for transcoding.

174b0534fea3*****b51c8f0ad1374

TranscodeJobId

string

The transcoding job ID.

38f0e513c88*****85515f9d50be188

OutputFile

object

The information about the transcoding 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 transcoding 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 transcoding output file. Valid values:

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

  • HLSEncryption: HLS encryption.

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

Height

string

The height of the transcoding output video. Unit: px.

360

SubtitleStreamList

string

The list of subtitle streams.

[]

Bitrate

string

The average bitrate of the transcoding 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 transcoding output video. Unit: px.

640

Fps

string

The frame rate of the transcoding output file. Unit: frames per second.

25

Duration

string

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

12

Format

string

The container format of the transcoding output file.

m3u8

Filesize

integer

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

851076

WatermarkIdList

array

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

string

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

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

Exemples

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

Codes d'erreur

Consultez Codes d'erreur pour la liste complète.

Notes de version

Consultez Notes de version pour la liste complète.