Miku 快直播

  • Miku 快直播 > API 文档 > 直播转码API >获取实时流转码模板列表

    获取实时流转码模板列表

    最近更新时间: 2026-01-15 15:14:00

    描述

    获取实时流转码模板列表

    接口信息

    • 请求方法: GET
    • 请求地址: `mls.cn-east-1.qiniumiku.com
    • 请求路径: /

    请求参数

    Query 参数

    参数名称 类型 必填 示例值 描述
    codecTemplates string 必须 固定字段
    content string p 需要搜索的相关内容,例如模版名称
    limit integer 20 返回数量限制,默认20,最大100
    offset integer 0 分页偏移值

    Header 参数

    参数名 类型 必填 示例值 描述
    Host string mls.cn-east-1.qiniumiku.com 请求的服务域名
    Authorization string <QiniuToken> 管理凭证 QiniuToken,生成规则

    请求示例

    GET /?codecTemplates&content=p&offset=0&limit=10 HTTP/1.1
    Host: mls.cn-east-1.qiniumiku.com
    Authorization: <QiniuToken>
    Content-Type: application/json
    

    返回响应

    响应状态码

    响应示例

    {
      "connectId": "CJoCCDR8Zq2ptYgY",
      "total": 10,
      "items": [
        {
          "name": "my480p",
          "desc": "480p实现",
          "preview":{
            "ab":"128k",
            "acodec":"aac",
            "ar":"44100",
            "force_key_frames":"expr:gte(t,n_forced*2)",
            "vcodec":"libx264",
            "vf":"scale='if(gt(640,iw), iw\\, 640)':'if(gt(480,ih)\\, ih\\, 480)'"
          },
          "profile":{
            "vcodec":"libx264",
            "videoWidth":640,
            "videoHigh":480,
            "keyframeInterval":2,
            "ab":128,
            "ar":44100
          }
        }
      ]
    }
    

    响应参数

    参数名称 类型 说明 是否必需
    connectId string 当前请求 connectId 必需
    total integer 转码模板数量 必需
    items object[] 模版列表,模版对象字段可见 codecTemplate 必需

    codecTemplate

    参数名称 类型 说明 是否必需
    desc string 转码模板描述 必需
    name string 转码模板名称 必需
    preview object 转码模版对应ffmpeg转码参数 可选
    profile object 新增转码模板时传入的转码参数 必需
    以上内容是否对您有帮助?