get-settings 接口

获取设备的设置信息。

请求方式

GET http://ip/usapi?method=get-settings
参数 说明
method 方法名称:get-settings

返回数据

JSON 结构如下:

{
  "result": 0,                       // 返回状态码
  "name": "Ultra...",                // 设备名称
  "is-check-update": 1,              // 是否允许在线检测固件版本
  "audio-sync-offset": 0,            // 音频时延(毫秒)
  "udp-mtu": 1496,                   // UDP协议 最大传输单元
  "enable-ndi-hx3": 0,               // 是否启用 NDI|HX3 
  "softap": {},                      // AP 配置信息
  "date-time": {},                   // 时间日期信息
  "input-source": {},                // 输入源信息
  "video-color": {},                 // 视频相关信息
  "volume": {},                      // 音频相关信息
  "enable-deinterlace": 1,           // 是否进行视频去隔行               
  "main-stream": {},                 // 主码流配置信息
  "sub-stream": {},                  // 次码流配置信息
  "audio": {},                       // 音频配置信息
  "audio-streams": [...],            // 音频码流列表
  "eth": {},                         // 以太网信息
  "wifi": {},                        // Wi-Fi 信息
  "rndis": {},                       // USB 网络信息
  "stream-server": [...] ,           // 直播服务器列表
  "video-input-format": {},          // 视频输入格式信息
  "video-output-format": {},         // 视频输出格式信息
  "use-nosignal-file": 1,            // 是否启用无信号图片
  "nosignal-files": [...],          // 无信号图片列表
  "nas": [...],                     // 网络存储服务器列表
  "send-file-cloud": [...],         // 文件上传服务器列表
  "web": {},                         // 网页安全管理和主题配置信息
  "rec": {},                         // 录制相关配置信息 
  "living": {},                      // 直播相关配置信息 
  "lcd-control": {}                  // 屏幕控制和显示相关配置信息         
}

返回示例:

{
  "result": 0,
  "name": "Ultra Encode B313220727002",
  "is-check-update": 1,
  "living-kbps": 32768,
  "audio-sync-offset": 0,
  "enable-advanced-pcr": 0,
  "udp-mtu": 1496,
  "enable-ndi-hx3": 0,
  "softap": {
    "is-softap": 1,
    "is-visible": 1,
    "softap-ssid": "B313220727002",
    "softap-passwd": "20727002"
  },
  "date-time": {
    "timezone": "Asia/Shanghai",
    "is-auto": 1,
    "ntp-server": "0.pool.ntp.org",
    "ntp-server-backup": "1.pool.ntp.org"
  },
  "input-source": {
    "source": 1,
    "mixer": {
    "input-device": 2,
    "is-hdmi-top": 0,
    "type": 0,
    "location": 2
  }
  },
  "video-color": {
    "hdmi": {
    "contrast": 100,
    "brightness": 0,
    "saturation": 100,
    "hue": 0
  },
  "sdi": {
    "contrast": 100,
    "brightness": 0,
    "saturation": 100,
    "hue": 0
  }
  },
  "volume": {
    "is-spi": 1,
    "spi-gain": 0,
    "is-linein": 1,
    "linein-gain": 127,
    "is-lineout": 1,
    "lineout-gain": 0,
    "enable-mic-bias": 0
  },
  "enable-deinterlace": 1,
  "main-stream": {
    "is-auto": 0,
    "codec": 1,
    "cx": 1920,
    "cy": 1080,
    "duration": 0,
    "kbps": 8192,
    "gop": 60,
    "fourcc": 0,
    "profile": 0,
    "cbrstat": 60,
    "fullrange": 0,
    "is-vbr": 0,
    "min-vbr-qp": 0,
    "max-vbr-qp": 0,
    "is-time-code-sei": 1,
    "is-closed-caption-sei": 0,
    "ar-convert-mode": 2,
    "rotation": 0,
    "mirroring": 0
  },
  "sub-stream": {
    "enable": 1,
    "codec": 1,
    "cx": 1920,
    "cy": 1080,
    "duration": 333333,
    "kbps": 4096,
    "gop": 60,
    "fourcc": 0,
    "profile": 0,
    "cbrstat": 60,
    "fullrange": 0,
    "is-vbr": 0,
    "min-vbr-qp": 0,
    "max-vbr-qp": 0,
    "is-time-code-sei": 1,
    "is-closed-caption-sei": 0,
    "ar-convert-mode": 2,
    "rotation": 0,
    "mirroring": 0
  },
  "audio": {
  "sample-rate": 48000,
    "channels": 0,
    "kbps": 256,
    "ch0": 0,
    "ch1": 1,
    "ch2": 1,
    "ch3": 3
  },
  "audio-streams": [
    {
     "sample-rate": 48000,
      "channels": 0,
      "kbps": 256,
      "ch0": 0,
      "ch1": 1,
      "ch2": 1,
      "ch3": 3
    },
    {
      "sample-rate": 48000,
      "channels": 2,
      "kbps": 32,
      "ch0": 2,
      "ch1": 1,
      "ch2": 2,
      "ch3": 3
    },
    {
      "sample-rate": 48000,
      "channels": 2,
      "kbps": 128,
      "ch0": 3,
      "ch1": 1,
      "ch2": 2,
      "ch3": 3
    },
    {
      "sample-rate": 48000,
      "channels": 2,
      "kbps": 192,
      "ch0": 3,
      "ch1": 1,
      "ch2": 2,
      "ch3": 3
    }
  ],
  "eth": {
    "is-dhcp": 1,
    "ip": "",
    "mask": "",
    "router": "",
    "dns": ""
  },
  "wifi": {
    "is-dhcp": 1,
    "ip": "",
    "mask": "",
    "router": "",
    "dns": ""
  },
  "rndis": {
    "ip": "192.168.66.1",
    "mask": "255.255.255.0"
  },
  "stream-server": [
    {
      "id": 0,
      "type": 130,
      "name": "NDI HX",
      "is-use": 0,
      "source-name": "#serial-no#",
      "group-name": "public",
      "enable-discovery": 0,
      "discovery-server": "",
      "transport-mode": 3,
      "mcast-addr": "",
      "mcast-mask": "",
      "mcast-ttl": 0,
      "enable-fail-over": 0,
      "fail-over-ndi-name": "",
      "fail-over-ip-addr": "",
      "enable-web-control": 0,
      "enable-ptz-control": 0,
      "main-stream": 0,
      "prvw-stream": 1,
      "audio": 2,
      "opt": 0,
      "is-media-hub": 0
    }
  ],
  "video-input-format": {
    "hdmi": {
    "is-color-fmt": 0,
    "color-fmt": 1,
    "is-quant-range": 0,
    "quant-range": 1
  },
  "sdi": {
    "is-color-fmt": 0,
    "color-fmt": 1,
    "is-quant-range": 0,
    "quant-range": 1
  }
  },
  "video-output-format": {
    "hdmi": {
    "is-color-fmt": 0,
    "color-fmt": 3,
    "is-quant-range": 0,
    "quant-range": 2,
    "is-sat-range": 0,
    "sat-range": 2
    },
    "sdi": {
      "is-color-fmt": 0,
      "color-fmt": 3,
      "is-quant-range": 0,
      "quant-range": 2,
      "is-sat-range": 0,
      "sat-range": 2
    }
  },
  "use-nosignal-file": 1,
  "nosignal-files": [
    {
      "id": 0,
      "is-use": 0,
      "is-edit": 0,
      "file-path": "/no-signal/default0.jpg",
      "time": 0
    },
    {
      "id": 1,
      "is-use": 1,
      "is-edit": 0,
      "file-path": "/no-signal/default1.jpg",
      "time": 0
    },
    {
      "id": 2,
      "is-use": 0,
      "is-edit": 1,
      "file-path": "/no-signal/default2.jpg",
      "time": 16687566986732126
    }
  ],
  "nas": [
    {
      "id": 0,
      "type": 2,
      "proto": 0,
      "is-use": 1,
      "addr": "10.10.14.193",
      "mount": "/home/magewell/nfs"
    }
  ],
  "send-file-cloud": [
  ],
  "web": {
    "is-http": 1,
    "http-port": 80,
    "is-https": 0,
    "https-port": 443,
    "is-cert-valid": 0,
    "is-cert-key-valid": 0,
    "theme": 0
  },
  "rec": {
    "is-auto": 0,
    "trigger-mode": 0
  },
  "living": {
    "ts": {
      "mtu": 1497
    },
    "hls-push": {
      "seg-count": 3,
      "seg-duration": 3
    }
  },
  "lcd-control": {
    "no-touch": 0,
    "page-idx": 3,
    "no-flip": 0
  }
}

与“”相关结果约

    找不到与“”相关的结果

    与“”相关结果约

      找不到与“”相关的结果