ListTranscodeJobs

Updated at:

Queries a list of transcoding jobs for media files.

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

ice:ListTranscodeJobs

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

StartOfCreateTime

string

No

The start time for filtering jobs by creation time. Format: yyyy-MM-ddTHH:mm:ssZ.

2022-07-01T00:00:00Z

EndOfCreateTime

string

No

The end time for filtering jobs by creation time. Format: yyyy-MM-ddTHH:mm:ssZ.

2022-07-15T00:00:00Z

ParentJobId

string

No

The ID of the parent job used to filter results.

7b38a5d86f1e47838927b6e7ccb1****

Status

string

No

The job status. Valid values:

  • Init: Submitted.

  • Success: Succeeded.

  • Fail: Failed.

Success

OrderBy

string

No

The sort order. Valid values:

  • CreateTimeDesc: Sorts by creation time in descending order.

  • CreateTimeAsc: Sorts by creation time in ascending order.

CreateTimeDesc

PageSize

integer

No

The number of entries per page. Valid values: 0 to 100. Default value: 20.

10

NextPageToken

string

No

The mark for the next page during continuous paging in a paged query. This parameter is not required for the first page.

ab4802364a2e49208c99efab82df****

Response elements

Element

Type

Description

Example

object

RequestId

string

The request ID.

31E30781-9495-5E2D-A84D-759B0A01E262

Jobs

array<object>

The list of jobs.

array<object>

The job information.

CreateTime

string

The time when the job was created. Format: yyyy-MM-ddTHH:mm:ssZ.

2022-01-12T08:49:41Z

Name

string

The name of the job.

transcode-job

RequestId

string

The request ID used to submit the job.

31E30781-9495-5E2D-A84D-759B0A01E262

ParentJobId

string

The ID of the parent job.

8b2198504dd340b7b3c9842a74fc****

JobCount

integer

The number of sub-jobs.

1

Status

string

The status of the job. Valid values:

  • Success: The job is successful if at least one sub-job succeeds after all sub-jobs are completed.

  • Fail: The job fails if all sub-jobs fail.

Success

TriggerSource

string

The source that triggered the job. Valid values:

  • API: API.

  • WorkFlow: Workflow.

  • Console: Console.

API

Percent

integer

The completion percentage of the job.

0

SubmitTime

string

The time when the job was submitted. Format: yyyy-MM-ddTHH:mm:ssZ.

2022-01-12T08:49:41Z

FinishTime

string

The time when the job was completed. Format: yyyy-MM-ddTHH:mm:ssZ.

2022-01-12T08:49:41Z

InputGroup

array<object>

The input group of the job. A single input indicates a transcoding job. Multiple inputs indicate an audio and video merging job.

object

The job input.

Type

string

The media object type. Valid values:

  • OSS: OSS file.

  • Media: Media asset ID.

OSS

Media

string

The media value.

  • If Type is set to OSS, the value is a URL that supports the OSS and HTTP protocols.

  • If Type is set to Media, the value is a media asset ID.

oss://bucket/path/to/video.mp4

InputUrl

string

The URL of the media asset stream. Specify this parameter only when you transcode a media asset stream.

oss://bucket/path/to/video.mp4

OutputGroup

array<object>

The output group of the job.

array<object>

The job output.

Output

object

The output media configuration.

Type

string

The media object type. Valid values:

  • OSS: OSS file.

  • Media: Media asset ID.

OSS

Media

string

The media value.

  • If Type is set to OSS, the value is a URL that supports the OSS and HTTP protocols.

  • If Type is set to Media, the value is a media asset ID.

oss://bucket/path/to/video.mp4

OutputUrl

string

The URL of the transcoded output stream. Specify this parameter only when the output is a media asset stream.

oss://bucket/path/to/{MediaId}/{JobId}.mp4

ProcessConfig

object

The processing configuration of the job.

Transcode

object

The transcoding configuration.

TemplateId

string

The ID of the template.

9547c6ad97cb4f2aaa29683ebd18****

OverwriteParams

object

The overwrite parameters. If specified, these parameters overwrite the corresponding parameters in the template.

Video

object

The video settings.

Codec

string

The encoding format.

H.264

Profile

string

The encoding profile. Valid values:

  • baseline: For mobile devices.

  • main: For standard-resolution devices.

  • high: For high-resolution devices.

Default value: high.

Main

Bitrate

string

The average video bitrate.

  • Valid values: 10 to 50000.

  • Unit: Kbit/s.

3000

Crf

string

The Constant Rate Factor (CRF) for bitrate-quality control.

  • Valid values: 0 to 51.

  • Default value: 23 for H.264 and 26 for H.265.

If Crf is specified, the Bitrate setting becomes invalid.

23

Width

string

The width of the video.

  • Valid values: 128 to 4096.

  • Unit: pixels.

  • Default value: the original width of the video.

1920

Height

string

The height of the video.

  • Valid values: 128 to 4096.

  • Unit: pixels.

  • Default value: the original height of the video.

1080

Fps

string

The frame rate.

  • Valid values: 0 (exclusive) to 60 (inclusive).

  • 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

Gop

string

The maximum number of frames between keyframes.

  • Valid values: 1 to 1080000.

  • Default value: 250.

250

Preset

string

The video algorithm preset. This parameter is supported only for H.264. Valid values: veryfast, fast, medium, slow, and slower. Default value: medium.

medium

ScanMode

string

The scan mode. Valid values: interlaced and progressive.

progressive

PixFmt

string

The pixel format of the video. Valid values: standard pixel formats such as yuv420p and yuvj420p.

yuv420p

Remove

string

Specifies whether to remove the video.

false

Crop

string

The video cropping settings. Two methods are supported:

  • Automatically detect and crop black borders. Set the value to border.

  • Custom cropping. Format: width:height:left:top. Example: 1280:800:0:140.

1280:800:0:140

Pad

string

The video padding settings used to add black borders.

  • Format: width:height:left:top.

  • Example: 1280:800:0:140.

1280:800:0:140

LongShortMode

string

Specifies whether to enable adaptive orientation mode (long and short side mode).

false

Bufsize

string

The buffer size.

  • Valid values: 1000 to 128000.

  • Default value: 6000.

  • Unit: Kb.

6000

Maxrate

string

The peak video bitrate. Valid values: 10 to 50000. Unit: Kbps.

9000

AbrMax

string

The maximum adaptive bitrate (ABR). This parameter takes effect only when Narrowband HD 1.0 is enabled. Valid values: 10 to 50000. Unit: Kbps.

6000

Audio

object

The audio settings.

Codec

string

The audio codec. Valid values: AAC, MP3, VORBIS, and FLAC. Default value: AAC.

AAC

Profile

string

The audio encoding profile. When the codec is AAC, valid values are aac_low, aac_he, aac_he_v2, aac_ld, and aac_eld.

aac_low

Samplerate

string

The sample rate.

  • Default value: 44100.

  • Valid values: 22050, 32000, 44100, 48000, and 96000.

  • Unit: Hz.

44100

Bitrate

string

The audio bitrate of the output file.

  • Valid values: 8 to 1000.

  • Unit: Kbps.

  • Default value: 128.

128

Channels

string

The number of audio channels. Default value: 2.

2

Remove

string

Specifies whether to remove the audio stream.

false

Volume

object

The volume control settings.

Method

string

The volume adjustment method.

auto

IntegratedLoudnessTarget

string

The target integrated loudness.

-6

TruePeak

string

The peak volume.

-1

LoudnessRangeTarget

string

The target loudness range.

8

Container

object

The container format settings.

Format

string

The container format.

mp4

MuxConfig

object

The multiplexing settings.

Segment

object

The segmentation settings.

Duration

string

The segment duration.

10

ForceSegTime

string

The forced segmentation time.

2,3

Tags

object

The tags to add to the media stream.

string

The tag value.

value

ImageWatermarks

array<object>

The image watermark settings.

array<object>

The image watermark settings.

TemplateId

string

The ID of the template.

9547c6ad97cb4f2aaa29683ebd18****

OverwriteParams

object

The overwrite parameters. If specified, these parameters overwrite the corresponding parameters in the template.

Width

string

The width.

32

Height

string

The height.

32

Dx

string

The x-coordinate of the watermark.

10

Dy

string

The y-coordinate of the watermark.

10

ReferPos

string

The reference position. Valid values: TopLeft, TopRight, BottomLeft, and BottomRight. Default value: TopLeft.

TopLeft

Timeline

object

The display time settings.

Start

string

The start time.

00:00:05

Duration

string

The display duration. The value can be a number of seconds or ToEND.

ToEND

File

object

The watermark image file.

Type

string

The media object type. Valid values:

  • OSS: OSS file.

  • Media: Media asset ID.

OSS

Media

string

The media value:

  • If the type is OSS, the value is a URL that supports the OSS and HTTP protocols.

  • If the type is Media, the value is a media asset ID.

oss://bucket/path/to/video.mp4

TextWatermarks

array<object>

The text watermark settings.

array<object>

The text watermark settings.

TemplateId

string

The ID of the template.

9547c6ad97cb4f2aaa29683ebd18****

OverwriteParams

object

The overwrite parameters. If specified, these parameters overwrite the corresponding parameters in the template.

Content

string

The watermark text. Base64 encoding is not required. The string must be UTF-8 encoded.

Test Watermark

FontName

string

The font name.

SimSun

FontColor

string

The font color.

#006400

FontAlpha

string

The font transparency.

1.0

Top

string

The distance from the top edge for the watermark position.

10

Left

string

The distance from the left edge for the watermark position.

10

FontSize

integer

The font size.

16

BorderWidth

integer

The border width.

0

BorderColor

string

The border color.

#006400

Adaptive

string

Specifies whether to adjust the font size based on the output video size. Valid values:

  • true: The system automatically adjusts the font size of the text based on the output video size.

  • false: The font size remains fixed and is not affected by the output video size. Default value: false.

false

Subtitles

array<object>

The subtitle configuration.

array<object>

The subtitle configuration.

TemplateId

string

The ID of the template.

9547c6ad97cb4f2aaa29683ebd18****

OverwriteParams

object

The overwrite parameters. If specified, these parameters overwrite the corresponding parameters in the template.

Format

string

The format of the subtitle file.

vtt

CharEnc

string

The encoding format of the file.

UTF-8

File

object

The subtitle file.

Type

string

The object type of the media. Valid values:

  • OSS: OSS file.

  • Media: Media asset ID.

OSS

Media

string

The media value. If the type is OSS, the value is a URL that supports the OSS and HTTP protocols. If the type is Media, the value is a media asset ID.

oss://bucket/path/to/video.mp4

Encryption

object

The encryption configuration.

EncryptType

string

The encryption type.

PrivateEncryption

CipherText

string

The ciphertext of the standard encryption key.

MTYi00NDU0LTg5O****

DecryptKeyUri

string

The URL of the decryption service for standard encryption.

https://sample.com/path?CipherText=MTYi00NDU0LTg5O****

CombineConfigs

array<object>

The multi-input mixing configuration.

object

The multi-input stream mixing configuration.

AudioIndex

string

The index of the audio stream.

0 or exclude

VideoIndex

string

The index of the video stream.

0 or exclude

Start

number

The start time of the input stream. Default value: 0.

0.0

Duration

number

The duration of the input stream. Default value: the duration of the video.

20.0

IsInheritTags

boolean

Specifies whether to inherit the tags of the input stream. This parameter does not take effect if the input is not a media asset. Default value: false.

UserData

string

The user data.

user-data

ScheduleConfig

object

The job scheduling configuration.

PipelineId

string

The pipeline ID.

e37ebee5d98b4781897f6086e89f****

Priority

integer

The priority of the job. A larger value indicates a higher priority. Valid values: 1 to 10.

5

NextPageToken

string

The token for the next page. Leave this parameter empty for the first request. The token is returned after the first query.

019daf5780f74831b0e1a767c9f1****

Examples

Success response

JSON format

{
  "RequestId": "31E30781-9495-5E2D-A84D-759B0A01E262",
  "Jobs": [
    {
      "CreateTime": "2022-01-12T08:49:41Z",
      "Name": "transcode-job",
      "RequestId": "31E30781-9495-5E2D-A84D-759B0A01E262",
      "ParentJobId": "8b2198504dd340b7b3c9842a74fc****",
      "JobCount": 1,
      "Status": "Success",
      "TriggerSource": "API",
      "Percent": 0,
      "SubmitTime": "2022-01-12T08:49:41Z",
      "FinishTime": "2022-01-12T08:49:41Z",
      "InputGroup": [
        {
          "Type": "OSS",
          "Media": "oss://bucket/path/to/video.mp4",
          "InputUrl": "oss://bucket/path/to/video.mp4"
        }
      ],
      "OutputGroup": [
        {
          "Output": {
            "Type": "OSS",
            "Media": "oss://bucket/path/to/video.mp4",
            "OutputUrl": "oss://bucket/path/to/{MediaId}/{JobId}.mp4"
          },
          "ProcessConfig": {
            "Transcode": {
              "TemplateId": "9547c6ad97cb4f2aaa29683ebd18****",
              "OverwriteParams": {
                "Video": {
                  "Codec": "H.264",
                  "Profile": "Main",
                  "Bitrate": "3000",
                  "Crf": "23",
                  "Width": "1920",
                  "Height": "1080",
                  "Fps": "25",
                  "Gop": "250",
                  "Preset": "medium",
                  "ScanMode": "progressive",
                  "PixFmt": "yuv420p",
                  "Remove": "false",
                  "Crop": "1280:800:0:140",
                  "Pad": "1280:800:0:140",
                  "LongShortMode": "false",
                  "Bufsize": "6000",
                  "Maxrate": "9000",
                  "AbrMax": "6000"
                },
                "Audio": {
                  "Codec": "AAC",
                  "Profile": "aac_low",
                  "Samplerate": "44100",
                  "Bitrate": "128",
                  "Channels": "2",
                  "Remove": "false",
                  "Volume": {
                    "Method": "auto",
                    "IntegratedLoudnessTarget": "-6",
                    "TruePeak": "-1",
                    "LoudnessRangeTarget": "8"
                  }
                },
                "Container": {
                  "Format": "mp4"
                },
                "MuxConfig": {
                  "Segment": {
                    "Duration": "10",
                    "ForceSegTime": "2,3"
                  }
                },
                "Tags": {
                  "key": "value"
                }
              }
            },
            "ImageWatermarks": [
              {
                "TemplateId": "9547c6ad97cb4f2aaa29683ebd18****",
                "OverwriteParams": {
                  "Width": "32",
                  "Height": "32",
                  "Dx": "10",
                  "Dy": "10",
                  "ReferPos": "TopLeft",
                  "Timeline": {
                    "Start": "00:00:05",
                    "Duration": "ToEND"
                  },
                  "File": {
                    "Type": "OSS",
                    "Media": "oss://bucket/path/to/video.mp4"
                  }
                }
              }
            ],
            "TextWatermarks": [
              {
                "TemplateId": "9547c6ad97cb4f2aaa29683ebd18****",
                "OverwriteParams": {
                  "Content": "Test Watermark",
                  "FontName": "SimSun",
                  "FontColor": "#006400",
                  "FontAlpha": "1.0",
                  "Top": "10",
                  "Left": "10",
                  "FontSize": 16,
                  "BorderWidth": 0,
                  "BorderColor": "#006400",
                  "Adaptive": "false"
                }
              }
            ],
            "Subtitles": [
              {
                "TemplateId": "9547c6ad97cb4f2aaa29683ebd18****",
                "OverwriteParams": {
                  "Format": "vtt",
                  "CharEnc": "UTF-8",
                  "File": {
                    "Type": "OSS",
                    "Media": "oss://bucket/path/to/video.mp4"
                  }
                }
              }
            ],
            "Encryption": {
              "EncryptType": "PrivateEncryption",
              "CipherText": "MTYi00NDU0LTg5O****",
              "DecryptKeyUri": "https://sample.com/path?CipherText=MTYi00NDU0LTg5O****"
            },
            "CombineConfigs": [
              {
                "AudioIndex": "0 or exclude",
                "VideoIndex": "0 or exclude",
                "Start": 0,
                "Duration": 20
              }
            ],
            "IsInheritTags": false
          }
        }
      ],
      "UserData": "user-data",
      "ScheduleConfig": {
        "PipelineId": "e37ebee5d98b4781897f6086e89f****",
        "Priority": 5
      }
    }
  ],
  "NextPageToken": "019daf5780f74831b0e1a767c9f1****"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.