文档

GetLiveTranscodeTemplate - 获取单个实时媒体转码模版

更新时间:

调用GetLiveTranscodeTemplate获取单个实时转码模板。

调试

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

授权信息

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

请求参数

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

模板 ID。

****a046-263c-3560-978a-fb287666****

返回参数

名称类型描述示例值
object

Schema of Response

RequestIdstring

请求 ID

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

模版内容。

Namestring

模板名称。

my-template
TemplateIdstring

模板 ID。

bcfa57950bc649b2abfb476ecd36ea4f
Typestring

模板类型。

normal
Categorystring

模版类别。

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

模版创建时间。

2022-07-25T06:15:14Z
TemplateConfigobject

模版配置信息。

VideoParamsobject

视频参数。

Codecstring

编码类型。

H.264
Heightstring

转码视频高度。

720
Widthstring

转码视频宽度。

1280
Fpsstring

转码视频帧率。

30
Bitratestring

转码视频比特率。

2500
Gopstring

视频 GOP(Group of Picture)

1000
Profilestring

编码级别。

2
AudioParamsobject

音频参数。

Codecstring

音频编码格式。

AAC
Bitratestring

转码音频比特率。

1000
Sampleratestring

音频采样率。

44100
Channelsstring

声道数。

2
Profilestring

音频编码预置。

1

示例

正常返回示例

JSON格式

{
  "RequestId": "******3B-0E1A-586A-AC29-742247******",
  "TemplateContent": {
    "Name": "my-template",
    "TemplateId": "bcfa57950bc649b2abfb476ecd36ea4f",
    "Type": "normal",
    "Category": "customized",
    "CreateTime": "2022-07-25T06:15:14Z",
    "TemplateConfig": {
      "VideoParams": {
        "Codec": "H.264",
        "Height": "720",
        "Width": "1280",
        "Fps": "30",
        "Bitrate": "2500",
        "Gop": "1000",
        "Profile": "2"
      },
      "AudioParams": {
        "Codec": "AAC",
        "Bitrate": "1000",
        "Samplerate": "44100",
        "Channels": "2",
        "Profile": "1"
      }
    }
  }
}

错误码

HTTP status code错误码错误信息
400InvalidParam%s

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

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