Consulta as configurações de transcodificação.
Descrição da operação
Você deve obter o domínio de streaming antes de chamar esta operação para consultar as configurações de transcodificação.
Limite de QPS
Você pode chamar esta operação até 60 vezes por segundo por conta. Solicitações que excedam esse limite serão descartadas e você poderá sofrer interrupções no serviço.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
live:DescribeLiveStreamTranscodeInfo |
get |
*All Resource
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| RegionId |
string |
Não |
O ID da região. |
cn-shanghai |
| DomainTranscodeName |
string |
Sim |
O domínio principal de streaming. |
example.com |
| AppName |
string |
Não |
O AppName da transmissão ao vivo. |
myapp |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
As configurações de transcodificação. |
||
| RequestId |
string |
O ID da solicitação. |
62136AE6-7793-45ED-B14A-60D19A9486D3 |
| DomainTranscodeList |
object |
||
| DomainTranscodeInfo |
array<object> |
As configurações de transcodificação. |
|
|
array<object> |
As configurações de transcodificação. |
||
| TranscodeApp |
string |
The AppName. |
liveApp**** |
| TranscodeTemplate |
string |
The transcoding template. Valid values:
|
lld |
| IsLazy |
boolean |
Indicates whether on-demand transcoding is enabled. Valid values:
|
true |
| TranscodeName |
string |
The main streaming domain. |
example.com |
| CustomTranscodeParameters |
object |
The custom transcoding configurations. |
|
| BitrateWithSource |
object |
The configuration for adaptive bitrate. |
{\"UpLimit\":2500,\"LowerLimit\":800,\"Factor\":1} |
| VideoProfile |
string |
The video codec profile. Valid values:
|
high |
| AudioBitrate |
integer |
The audio bitrate. Unit: kbps. Valid values: 1 to 1000. |
64 |
| Height |
integer |
The output video height. |
1200 |
| RtsFlag |
string |
The tag for Real-Time Streaming (RTS). The value is fixed to true. Nota
This parameter is returned only when RTS is used. |
true |
| TemplateType |
string |
The type of the custom transcoding template. Valid values:
|
h264 |
| Bframes |
string |
Controls whether to remove B-frames from the transcoded output video. The value is fixed to 0. |
0 |
| ExtWithSource |
object |
Other adaptive settings that align the transcoded stream with the source stream. |
{\"KeyFrameOpen\":\"yes\",\"Copyts\":\"yes\",\"SeiMode\":1} |
| AudioRate |
integer |
The audio sample rate. Valid values: 22050 to 96000. Nota
If AudioProfile is set to aac_ld, the sample rate cannot exceed 44100. |
44100 |
| FpsWithSource |
object |
Adapts the output frame rate based on the source's frame rate, while keeping it within a specified range. |
{\"UpLimit\":60,\"LowerLimit\":1} |
| AudioCodec |
string |
The audio codec. |
ACC |
| FPS |
integer |
The output video frame rate. 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 output video width. |
1000 |
| VideoBitrate |
integer |
The video bitrate. Unit: kbps. |
3000 |
| AudioChannelNum |
integer |
The number of audio channels. Valid values:
|
2 |
| AudioProfile |
string |
The audio codec profile. Valid values:
|
aac_low |
| ResWithSource |
object |
The adaptive resolution settings. |
{\"Type\":\"short\",\"Value\":\"1080\"} |
| DeInterlaced |
boolean |
Indicates whether to automatically detect and remove interlacing during transcoding. This converts interlaced content to progressive content.
|
|
| 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 period. Unit: seconds. Valid values: 60 to 3600. |
3600 |
Exemplos
Resposta de sucesso
JSON formato
{
"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"
}
}
]
}
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 400 | InvalidParameters | %s Please check and try again later. | Exception parameter exists, please check and try again. |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.