视频直播 LIVE-创建直播转码模板:请求示例

时间:2024-12-05 10:10:26

请求示例

创建直播转码模板,应用名称为live,转码质量为SD,转码编码格式为H264,宽为1920像素,高为1080像素。

POST https://{endpoint}/v1/{project_id}/template/transcodings

{
  "domain" : "play.example.com",
  "app_name" : "live",
  "quality_info" : [ {
    "quality" : "lsd",
    "hdlb" : "off",
    "codec" : "H264",
    "width" : 1920,
    "height" : 1080,
    "bitrate" : 4500,
    "video_frame_rate" : 20,
    "gop" : 4
  }, {
    "quality" : "userdefine",
    "templateName" : "yourTemplateName",
    "hdlb" : "off",
    "codec" : "H264",
    "width" : 1920,
    "height" : 1080,
    "bitrate" : 4500,
    "video_frame_rate" : 20,
    "gop" : 4
  } ]
}
support.huaweicloud.com/api-live/live_03_0007.html