set-video-config 接口

修改视频配置信息。

请求方式

GET http://ip/mwapi?method=set-video-config&param1=value1&param2=value2...

返回数据

{
  "status": 0
}
属性 说明
status 返回状态。0:设置成功,返回其它值请参考 API 状态码

接口示例

1. OSD 设置
http://ip/mwapi?method=set-video-config&show-title=true&show-tally=true&show-vu-meter=true&vu-meter-mode=dbu&safe-area-mode=4:3&show-center-cross=true
参数 说明
method 方法名称:set-video-config
show-title 是否显示视频源名称和分辨率,有效值:true/false。
show-tally 是否显示 Tally 灯状态,有效值:true/false。
show-vu-meter 是否显示音频仪表盘,有效值:true/false。
vu-meter-mode 音频表刻度,有效值:none、db、post-gain-db、post-gain-dbfs
show-center-cross 是否显示中心十字,有效值:true/false。
safe-area-mode 安全区域,有效值:none、4:3、80%、square。
ident-mode 标识模式,有效值:none、ident-text、device-name
ident-text 标识文本,字符要求:
1、1 - 32 个字符
2、仅支持 A-Z, a-z, 0-9 和特殊符号,包括空格、下划线(_)、减号(-)、加号(+)。
2. 处理设置
http://ip/mwapi?method=set-video-config&h-flip=false&v-flip=false&deinterlace-mode=weave&ar-convert-mode=full&alpha-disp-mode=alpha-blend-checkerboard
参数 说明
method 方法名称:set-video-config
h-flip 是否水平翻转,有效值:true/false。
v-flip 是否垂直翻转,有效值:true/false。
deinterlace-mode 去隔行模式,有效值:bob、weave
ar-convert-mode 宽高比模式,有效值:windowbox、full、zoom
alpha-disp-mode Alpha 通道模式,有效值:alpha-only、alpha-blend-white、alpha-blend-black、alpha-blend-checkerboard
3. 视频源设置
http://ip/mwapi?method=set-video-config&in-auto-color-fmt=false&in-color-fmt=bt.709&switch-mode=blank
参数 说明
method 方法名称:set-video-config
in-auto-color-fmt 色彩空间编码是否设为自动获取,有效值:true/false。
in-color-fmt 色彩空间编码,有效值:bt.601、bt.709
switch-mode 视频源切换显示,有效值:keep-last、blank
4. 设置输出分辨率是否与输入源保持一致
http://ip/mwapi?method=set-video-config&follow-input-mode=false
参数 说明
follow-input-mode 输出分辨率是否与输入源保持一致,仅适用于产品: NDI to AIO、NDI to HDMI 和 NDI to SDI。有效值:true/false。

与“”相关结果约

    找不到与“”相关的结果

    与“”相关结果约

      找不到与“”相关的结果