All Products
Search
Document Center

ApsaraVideo VOD:GetTranscodeSummary

Last Updated:Jul 19, 2024

Queries transcoding summaries of audio and video files based on the file ID. A transcoding summary includes the status and progress of transcoding.

Operation description

  • An audio or video file may be transcoded multiple times. This operation returns only the latest transcoding summary.
  • You can query transcoding summaries for a maximum of 10 audio and video files in one request.
  • You can call the ListTranscodeTask operation to query historical transcoding tasks.
  • **You can call this operation to query information only about transcoding tasks created within the past year.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
VideoIdsstringYes

The ID of the audio or video file. You can specify up to 10 IDs. Separate the IDs with commas (,). You can use one of the following methods to obtain the ID:

  • After you upload a video in the ApsaraVideo VOD console, you can log on to the ApsaraVideo VOD console and choose Media Files > Audio/Video to view the ID of the video.
  • Obtain the value of VideoId from the response to the CreateUploadVideo operation that you call to obtain the upload URL and credential.
  • Obtain the value of VideoId by calling the SearchMedia operation. This method is applicable to files that have been uploaded.
"d4860fcc6ae9fed52e8938244****,e1db68cc586644b83e562bcd94****,hhhhhhh"

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request.

25818875-5F78-4A*****F6-D7393642CA58
NonExistVideoIdsarray

The IDs of the audio or video files that do not exist.

string

The ID of the audio or video file that does not exist.

["hhhhhhh"]
TranscodeSummaryListarray<object>

The transcoding summary of the file.

object
CreationTimestring

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

2019-01-23T12:35:12Z
VideoIdstring

The ID of the audio or video file.

e1db68cc586644b83e562bcd94****
CompleteTimestring

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

2019-01-23T12:40:12Z
TranscodeStatusstring

The status of the transcoding task. Valid values:

  • Processing: Transcoding is in process.
  • Partial: Some transcoding jobs were complete.
  • CompleteAllSucc: All transcoding jobs were successful.
  • CompleteAllFail: All transcoding jobs failed. If an exception occurs in the source file, no transcoding job is initiated and the transcoding task fails.
  • CompletePartialSucc: All transcoding jobs were complete but only some were successful.
Processing
TranscodeTemplateGroupIdstring

The ID of the transcoding template group.

44f9e406bbb*****736a9abe876ecc0
TranscodeJobInfoSummaryListarray<object>

The summaries of transcoding jobs.

object
CreationTimestring

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

2019-02-27T03:34:46Z
ErrorMessagestring

The error message returned when the transcoding job failed.

ErrorMessage
Heightstring

The height of the output video. Unit: pixels.

960
TranscodeProgresslong

The transcoding progress. Valid values: [0,100].

100
TranscodeTemplateIdstring

The ID of the transcoding template.

57496724ae2*****0968d6e08acc8f6
Bitratestring

The average bitrate of the output video. Unit: Kbit/s.

749
ErrorCodestring

The error code returned when the transcoding job failed.

200
CompleteTimestring

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

2019-02-27T03:40:51Z
Widthstring

The width of the output video. Unit: pixels.

544
Durationstring

The duration of the output video. Unit: seconds.

12
Fpsstring

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

30
TranscodeJobStatusstring

The status of the transcoding job. Valid values:

  • Transcoding: Transcoding is in process.
  • TranscodeSuccess: The job was successful.
  • TranscodeFail: The job failed.
Transcoding
Filesizelong

The size of the output video. Unit: bytes.

1144259
Formatstring

The container format of the output video.

mp4
WatermarkIdListarray

The IDs of the watermarks that are applied to the output video.

string

The IDs of the watermarks that are applied to the output video.

["af2afe4761992c*****d947dae97337"]

Examples

Sample success responses

JSONformat

{
  "RequestId": "25818875-5F78-4A*****F6-D7393642CA58",
  "NonExistVideoIds": [
    "[\"hhhhhhh\"]"
  ],
  "TranscodeSummaryList": [
    {
      "CreationTime": "2019-01-23T12:35:12Z",
      "VideoId": "e1db68cc586644b83e562bcd94****",
      "CompleteTime": "2019-01-23T12:40:12Z",
      "TranscodeStatus": "Processing",
      "TranscodeTemplateGroupId": "44f9e406bbb*****736a9abe876ecc0",
      "TranscodeJobInfoSummaryList": [
        {
          "CreationTime": "2019-02-27T03:34:46Z",
          "ErrorMessage": "ErrorMessage",
          "Height": "960",
          "TranscodeProgress": 100,
          "TranscodeTemplateId": "57496724ae2*****0968d6e08acc8f6",
          "Bitrate": "749",
          "ErrorCode": "200",
          "CompleteTime": "2019-02-27T03:40:51Z",
          "Width": "544",
          "Duration": "12",
          "Fps": "30",
          "TranscodeJobStatus": "Transcoding",
          "Filesize": 1144259,
          "Format": "mp4",
          "WatermarkIdList": [
            "[\"af2afe4761992c*****d947dae97337\"]"
          ]
        }
      ]
    }
  ]
}

Error codes

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