全部產品
Search
文件中心

ApsaraVideo Live:DescribeLiveStreamTranscodeInfo - 查詢轉碼配置資訊

更新時間:Dec 17, 2025

查詢轉碼配置資訊。

介面說明

先擷取主播流網域名稱,再調用本介面查詢轉碼配置資訊。

QPS 限制

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

調試

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

調試

授權資訊

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

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

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

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

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

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

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

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

操作

存取層級

資源類型

條件關鍵字

關聯操作

live:DescribeLiveStreamTranscodeInfo

get

*全部資源

*

請求參數

名稱

類型

必填

描述

樣本值

RegionId

string

地區 ID。

cn-shanghai

DomainTranscodeName

string

主播流網域名稱。

example.com

AppName

string

播流所屬應用程式名稱。

myapp

返回參數

名稱

類型

描述

樣本值

object

轉碼配置資訊。

RequestId

string

請求 ID。

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

DomainTranscodeList

object

DomainTranscodeInfo

array<object>

轉碼配置資訊。

array<object>

轉碼配置資訊。

TranscodeApp

string

應用程式名稱。

liveApp****

TranscodeTemplate

string

轉碼模版。取值:

  • 標準品質模板

    • lld:流暢。

    • lsd:標清。

    • lhd:高清。

    • lud :超清。

  • 窄帶高清™轉碼模板

    • ld:流暢。

    • sd:標清。

    • hd:高清。

    • ud:超清。

lld

IsLazy

boolean

是否開啟強制轉碼。取值:

  • true:延遲轉碼。

  • false:強制轉碼。

true

TranscodeName

string

主播流網域名稱。

example.com

CustomTranscodeParameters

object

自訂轉碼配置。

BitrateWithSource

object

碼率隨源配置。

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

VideoProfile

string

視頻的編碼等級。取值:

  • baseline:適合行動裝置。

  • main:適合標準解析度裝置。

  • high:適合高解析度裝置。

high

AudioBitrate

integer

轉碼音頻位元速率。單位:kbps,取值範圍:1~1000

64

Height

integer

轉碼視頻高度。

1200

RtsFlag

string

低延時的標籤。固定取值 true

說明

當轉碼為低延時轉碼時,才返回此參數。

true

TemplateType

string

自訂轉碼模版類型。取值:

  • h264:自訂 H264 標準模版。

  • h264-nbhd:自訂 H264 窄帶高清™模版。

  • h265:自訂 H265 標準模版。

  • h265-nbhd:自訂 H265 窄帶高清模版。

  • audio:純音頻模板。

h264

Bframes

string

去 B 幀。固定取值:0

0

ExtWithSource

object

其他隨源配置。

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

AudioRate

integer

音頻採樣率。取值:22050~96000

說明

如果 AudioProfile 取值為aac_ld,則採樣率不能超過 44100。

44100

FpsWithSource

object

幀率隨源配置。

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

AudioCodec

string

音頻編碼格式。

ACC

FPS

integer

轉碼視訊框架率。單位:FPS。

15

Gop

string

視頻 GOP(Group of Picture)。單位:幀,取值範圍:1~3000

10

Width

integer

轉碼視頻寬度。

1000

VideoBitrate

integer

轉碼視頻位元速率。單位:kbps。

3000

AudioChannelNum

integer

音頻聲道數。取值:

  • 1:單聲道。

  • 2:雙聲道。

2

AudioProfile

string

音頻編碼等級。取值:

  • aac_low

  • aac_he

  • aac_he_v2

  • aac_ld

aac_low

ResWithSource

object

解析度隨源配置。

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

DeInterlaced

boolean

轉碼過程中是否自動檢測並去除隔行處理(將隔行掃描內容轉換為漸進式掃描):

  • true:開啟去隔行處理。

  • false:保持源格式,不做處理(預設)。

EncryptParameters

object

加密配置。

EncryptType

string

加密類型。固定取值 aliyun

aliyun

KmsKeyID

string

使用者 KMS 主要金鑰 ID。

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

KmsKeyExpireInterval

string

換 Key 周期。取值範圍:60~3600,單位:秒。

3600

樣本

正常返回樣本

JSON格式

{
  "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": true
        },
        "EncryptParameters": {
          "EncryptType": "aliyun",
          "KmsKeyID": "afce5722-81d2-43c3-9930-7601da11****",
          "KmsKeyExpireInterval": "3600"
        }
      }
    ]
  }
}

錯誤碼

HTTP status code

錯誤碼

錯誤資訊

描述

400 InvalidParameters %s Please check and try again later. 存在異常參數,請檢查後重試。

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

變更歷史

更多資訊,參考變更詳情