文档

ListLiveTranscodeTemplates - 获取实时媒体转码模版列表

更新时间:

调用ListLiveTranscodeTemplates获取实时媒体转码模版列表。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

当前API暂无授权信息透出。

请求参数

名称类型必填描述示例值
Typestring

模版类型。

  • normal - 普通
  • narrow-band - 窄高
  • audio-only - 纯音频
  • origin - 原画
normal
VideoCodecstring

视频编码。可选值:

  • H.264
  • H.265
H.264
PageNointeger

当前页码。默认值为 1。

1
PageSizeinteger

分页大小,每页显示条数。默认值为 10,最大值为 100。

20
SortBystring

排序,按 CreateTime 排序,默认是 desc。

  • asc - 正序
  • desc - 倒序
asc
KeyWordstring

搜索关键词。模板 ID/名称,名称支持模糊搜索。

my_template
Categorystring

模版类别。

  • system: 系统
  • customized: 自定义
customized

返回参数

名称类型描述示例值
object

Schema of Response

RequestIdstring

请求 ID

******3B-0E1A-586A-AC29-742247******
TotalCountinteger

总数。

100
TemplateContentListobject []

转码模版列表。

Namestring

模版名称。

my_template
TemplateIdstring

模板 ID。

9b1571b513cb44f7a1ba6ae561ff46f7
Typestring

模板类型。

normal
Categorystring

模版类别。

system
CreateTimestring

创建时间。

2022-07-20T03:26:36Z
TemplateConfigobject

模版配置。

VideoParamsobject

视频参数。

Codecstring

编码格式

264
Heightstring

视频分辨率高。

1280
Widthstring

视频分辨率宽。

720
Fpsstring

视频帧率

30
Bitratestring

视频码率。

2500
Gopstring

视频 Gop,单位:帧

1000
Profilestring

编码级别。

3
AudioParamsobject

音频参数。

Codecstring

音频编码。

AAC
Bitratestring

音频码率。

1000
Sampleratestring

音频采样率。

44100
Channelsstring

声道数。

2
Profilestring

编码级别。

aac_low

示例

正常返回示例

JSON格式

{
  "RequestId": "******3B-0E1A-586A-AC29-742247******",
  "TotalCount": 100,
  "TemplateContentList": [
    {
      "Name": "my_template",
      "TemplateId": "9b1571b513cb44f7a1ba6ae561ff46f7",
      "Type": "normal",
      "Category": "system",
      "CreateTime": "2022-07-20T03:26:36Z",
      "TemplateConfig": {
        "VideoParams": {
          "Codec": "264",
          "Height": "1280",
          "Width": "720",
          "Fps": "30",
          "Bitrate": "2500",
          "Gop": "1000",
          "Profile": "3"
        },
        "AudioParams": {
          "Codec": "AAC",
          "Bitrate": "1000",
          "Samplerate": "44100",
          "Channels": "2",
          "Profile": "aac_low"
        }
      }
    }
  ]
}

错误码

HTTP status code错误码错误信息描述
403OperationDeniedYour account has not enabled the ICE service.账号未开通智能媒体生产服务。

访问错误中心查看更多错误码。

  • 本页导读 (1)
文档反馈