All Products
Search
Document Center

ApsaraVideo Live:DescribeLiveStreamTranscodeInfo

Last Updated:Jun 10, 2026

Mengkueri konfigurasi transkoding.

Deskripsi operasi

You must obtain the streaming domain before you call this operation to query the transcoding configurations.

QPS limit

You can call this operation up to 60 times per second per account. Requests that exceed this limit are dropped and you may experience service interruptions.

Coba sekarang

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tabel berikut menjelaskan otorisasi yang diperlukan untuk memanggil API ini. Anda dapat menentukannya dalam kebijakan Resource Access Management (RAM). Kolom pada tabel dijelaskan sebagai berikut:

  • Action: Aksi yang dapat digunakan dalam elemen Action pada pernyataan kebijakan izin RAM untuk memberikan izin guna melakukan operasi tersebut.

  • API: API yang dapat Anda panggil untuk melakukan aksi tersebut.

  • Access level: Tingkat akses yang telah ditentukan untuk setiap API. Nilai yang valid: create, list, get, update, dan delete.

  • Resource type: Jenis resource yang mendukung otorisasi untuk melakukan aksi tersebut. Ini menunjukkan apakah aksi tersebut mendukung izin tingkat resource. Resource yang ditentukan harus kompatibel dengan aksi tersebut. Jika tidak, kebijakan tersebut tidak akan berlaku.

    • Untuk API dengan izin tingkat resource, jenis resource yang diperlukan ditandai dengan tanda bintang (*). Tentukan Nama Sumber Daya Alibaba Cloud (ARN) yang sesuai dalam elemen Resource pada kebijakan.

    • Untuk API tanpa izin tingkat resource, ditampilkan sebagai All Resources. Gunakan tanda bintang (*) dalam elemen Resource pada kebijakan.

  • Condition key: Kunci kondisi yang didefinisikan oleh layanan. Kunci ini memungkinkan kontrol granular, berlaku baik hanya untuk aksi maupun untuk aksi yang terkait dengan resource tertentu. Selain kunci kondisi spesifik layanan, Alibaba Cloud menyediakan serangkaian common condition keys yang berlaku di semua layanan yang didukung RAM.

  • Dependent action: Aksi dependen yang diperlukan untuk menjalankan aksi tersebut. Untuk menyelesaikan aksi tersebut, pengguna RAM atau role RAM harus memiliki izin untuk melakukan semua aksi dependen.

Action

Access level

Resource type

Condition key

Dependent action

live:DescribeLiveStreamTranscodeInfo

get

*全部资源

*

None None

Parameter permintaan

Parameter

Type

Required

Description

Example

RegionId

string

No

ID wilayah.

cn-shanghai

DomainTranscodeName

string

Yes

Domain streaming utama.

example.com

AppName

string

No

AppName dari aliran langsung.

myapp

Elemen respons

Element

Type

Description

Example

object

The transcoding configurations.

RequestId

string

The request ID.

62136AE6-7793-45ED-B14A-60D19A9486D3

DomainTranscodeList

object

DomainTranscodeInfo

array<object>

The transcoding configurations.

array<object>

The transcoding configurations.

TranscodeApp

string

The application name.

liveApp****

TranscodeTemplate

string

The transcoding template. Valid values:

  • Standard transcoding templates:

    • lld: low definition.

    • lsd: standard definition.

    • lhd: high definition.

    • lud: ultra-high definition.

  • Narrowband HD™ transcoding templates:

    • ld: low definition.

    • sd: standard definition.

    • hd: high definition.

    • ud: ultra-high definition.

lld

IsLazy

boolean

Indicates whether on-demand transcoding is enabled. Valid values:

  • true: Transcoding only starts when the first viewer requests this transcoded stream.

  • false: Transcoding starts immediately after the stream is published.

true

TranscodeName

string

The streaming domain.

example.com

CustomTranscodeParameters

object

The custom transcoding configurations.

BitrateWithSource

object

The adaptive bitrate settings.

{\"UpLimit\":2500,\"LowerLimit\":800,\"Factor\":1}

VideoProfile

string

The video encoding profile. Valid values:

  • baseline: suitable for mobile devices.

  • main: suitable for standard definition (SD) devices.

  • high: suitable for high definition (HD) devices.

high

AudioBitrate

integer

The audio bitrate for transcoding. Unit: kbps. Valid values: 1 to 1000.

64

Height

integer

The height of the transcoded video.

1200

RtsFlag

string

The tag for Real-Time Streaming (RTS). The value is fixed to true.

Catatan

This parameter is returned only for RTS transcoding.

true

TemplateType

string

The type of the custom transcoding template. Valid values:

  • h264: a custom H.264 standard template.

  • h264-nbhd: a custom H.264 Narrowband HD™ template.

  • h265: a custom H.265 standard template.

  • h265-nbhd: a custom H.265 Narrowband HD™ template.

  • audio: an audio-only template.

h264

Bframes

string

The B-frame settings. The value is fixed to 0.

0

ExtWithSource

object

Other adaptive settings that follow the source stream.

{\"KeyFrameOpen\":\"yes\",\"Copyts\":\"yes\",\"SeiMode\":1}

AudioRate

integer

The audio sample rate. Valid values: 22050 to 96000.

Catatan

If AudioProfile is set to aac_ld, the sample rate cannot exceed 44100.

44100

FpsWithSource

object

The adaptive frame rate settings.

{\"UpLimit\":60,\"LowerLimit\":1}

AudioCodec

string

The audio coding format.

ACC

FPS

integer

The frame rate of the transcoded video. Unit: frames per second (fps).

15

Gop

string

The Group of Pictures (GOP) size. Unit: frames. Valid values: 1 to 3000.

10

Width

integer

The width of the transcoded video.

1000

VideoBitrate

integer

The video bitrate for transcoding. Unit: kbps.

3000

AudioChannelNum

integer

The number of audio channels. Valid values:

  • 1: mono.

  • 2: stereo.

2

AudioProfile

string

The audio encoding profile. Valid values:

  • aac_low

  • aac_he

  • aac_he_v2

  • aac_ld

aac_low

ResWithSource

object

The adaptive resolution settings.

{\"Type\":\"short\",\"Value\":\"1080\"}

DeInterlaced

boolean

EncryptParameters

object

The encryption configurations.

EncryptType

string

The encryption type. The value is fixed to aliyun.

aliyun

KmsKeyID

string

The ID of the customer master key (CMK) in Key Management Service (KMS).

afce5722-81d2-43c3-9930-7601da11****

KmsKeyExpireInterval

string

The key rotation interval. Unit: seconds. Valid values: 60 to 3600.

3600

Contoh

Respons sukses

JSONformat

{
  "RequestId": "62136AE6-7793-45ED-B14A-60D19A9486D3",
  "DomainTranscodeList": {
    "DomainTranscodeInfo": [
      {
        "TranscodeApp": "liveApp****",
        "TranscodeTemplate": "lld",
        "IsLazy": true,
        "TranscodeName": "example.com",
        "CustomTranscodeParameters": {
          "BitrateWithSource": {
            "test": "test",
            "test2": 1
          },
          "VideoProfile": "high",
          "AudioBitrate": 64,
          "Height": 1200,
          "RtsFlag": "true",
          "TemplateType": "h264",
          "Bframes": "0",
          "ExtWithSource": {
            "test": "test",
            "test2": 1
          },
          "AudioRate": 44100,
          "FpsWithSource": {
            "test": "test",
            "test2": 1
          },
          "AudioCodec": "ACC",
          "FPS": 15,
          "Gop": "10",
          "Width": 1000,
          "VideoBitrate": 3000,
          "AudioChannelNum": 2,
          "AudioProfile": "aac_low",
          "ResWithSource": {
            "test": "test",
            "test2": 1
          },
          "DeInterlaced": false
        },
        "EncryptParameters": {
          "EncryptType": "aliyun",
          "KmsKeyID": "afce5722-81d2-43c3-9930-7601da11****",
          "KmsKeyExpireInterval": "3600"
        }
      }
    ]
  }
}

Kode kesalahan

HTTP status code

Error code

Error message

Description

400 InvalidParameters %s Please check and try again later.

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.