1. 主页
  2. 文档
  3. S2 HTTP API
  4. 视频编码
  5. 更新视频编码设置

更新视频编码设置

API URL

/api/codec/codec/Update.json

Request

Method:GET/POSTParameters:

{
    "stream" : "main",
    "new" : {
        "ve": {
            "u32Profile": 1,
            "u32PicHeight": 720,
            "u32PicWidth": 1280
         },  
         "type": "H264",
         "rc": {
             "u32BitRate": 6000,
             "mode": "CBR",
             "u32MinQp": 10,
             "u32MinIQp": 29,
             "u32Gop": 60,
             "fr32DstFrmRate": 60,
             "u32MaxQp": 48,
             "u32MaxBitRate": 6000,
          },
          "grey": false 
      }
}

Response

Example:

{result: "ok", data: true}

Request Data**字段说明:**

Field Value 说明
stream [String] 表示编码码流,分主码流 main 和子码流 sub
new [Object] 表示新设置的数据对象,支持局部更新, 即只传递其中某一部分key-value,对其进行更新

我们要如何帮助您?