查詢轉碼配置資訊。
介面說明
先擷取主播流網域名稱,再調用本介面查詢轉碼配置資訊。
QPS 限制
本介面的單使用者 QPS 限制為 60 次/秒。超過限制,API 呼叫會被限流,這可能會影響您的業務,請合理調用。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
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 |
| IsLazy |
boolean |
是否開啟強制轉碼。取值:
|
true |
| TranscodeName |
string |
主播流網域名稱。 |
example.com |
| CustomTranscodeParameters |
object |
自訂轉碼配置。 |
|
| BitrateWithSource |
object |
碼率隨源配置。 |
{\"UpLimit\":2500,\"LowerLimit\":800,\"Factor\":1} |
| VideoProfile |
string |
視頻的編碼等級。取值:
|
high |
| AudioBitrate |
integer |
轉碼音頻位元速率。單位:kbps,取值範圍:1~1000。 |
64 |
| Height |
integer |
轉碼視頻高度。 |
1200 |
| RtsFlag |
string |
低延時的標籤。固定取值 true。 說明
當轉碼為低延時轉碼時,才返回此參數。 |
true |
| TemplateType |
string |
自訂轉碼模版類型。取值:
|
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 |
音頻聲道數。取值:
|
2 |
| AudioProfile |
string |
音頻編碼等級。取值:
|
aac_low |
| ResWithSource |
object |
解析度隨源配置。 |
{\"Type\":\"short\",\"Value\":\"1080\"} |
| DeInterlaced |
boolean |
轉碼過程中是否自動檢測並去除隔行處理(將隔行掃描內容轉換為漸進式掃描):
|
|
| 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. | 存在異常參數,請檢查後重試。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。