# 获取输入视频信号信息

此接口用来获取指定设备的输入视频信号信息

# 请求路径

{CLTPlatform-ip}:8086/processor/getInputVideoInfo

  • 请求地址替换为对应的 ip 地址
  • 请求端口号为 8086

# 请求协议

HTTP

# 请求方法

POST

# 请求参数

  • 请求体的Content-Type请设置为application/json
参数名 说明 必填 类型 数据字典 限制 示例
command 指令类型 [string] processor/getInputVideoInfo
data 数据 [object]
data>>index 发送器序号(从0开始,-1表示广播) [int]

# 请求参数

{
    "command": "processor/getInputVideoInfo",
    "data": {
        "index": 0
    }
}

# 返回结果

参数名 说明 必填 类型 数据字典 限制 示例
command 指令类型 [string]
code 状态码 [int]
message 消息 [string]
data 数据 [object]
data>>videoInfoList 输入视频信号列表 [array]
data>>videoInfoList>>bConnected 是否连接信号 [boolean] true
data>>videoInfoList>>videoMark 信号标识 [object]
data>>videoInfoList>>videoMark>>slotNum 扩展槽序号 [int]
data>>videoInfoList>>videoMark>>sourceType 信号类型 [string] HDMI2.0
data>>videoInfoList>>videoMark>>sourceIndex 信号序号,(同一板卡上相同信号的序号,从0开始) [int]
data>>videoInfoList>>videoMark>>sourceId 信号ID,(同一板卡上的信号序号) [int]
data>>videoInfoList>>videoFormat 视频格式 [object]
data>>videoInfoList>>videoFormat>>width 宽度 [int] 1920
data>>videoInfoList>>videoFormat>>height 高度 [int] 1080
data>>videoInfoList>>videoFormat>>freq 帧率 [int] 60
data>>videoInfoList>>videoFormat>>colorDepth 颜色深度 [string] 8bit
data>>videoInfoList>>videoFormat>>colorType 颜色格式 [string] RGB
data>>videoInfoList>>videoFormat>>bHDR 是否为HDR [boolean]

# 返回示例

DETAILS
{
    "code": 20000,
    "command": "processor/getInputVideoInfo",
    "data": {
        "videoInfoList": [{
            "bConnected": false,
            "videoFormat": {
                "bHDR": false,
                "colorDepth": "8bit",
                "colorType": "RGB",
                "freq": 0.0,
                "height": 0,
                "width": 0
            },
            "videoMark": {
                "slotNum": 16,
                "sourceId": 0,
                "sourceIndex": 0,
                "sourceType": "SDI"
            }
        }, {
            "bConnected": false,
            "videoFormat": {
                "bHDR": false,
                "colorDepth": "8bit",
                "colorType": "RGB",
                "freq": 0.0,
                "height": 0,
                "width": 0
            },
            "videoMark": {
                "slotNum": 16,
                "sourceId": 1,
                "sourceIndex": 1,
                "sourceType": "SDI"
            }
        }, {
            "bConnected": false,
            "videoFormat": {
                "bHDR": false,
                "colorDepth": "8bit",
                "colorType": "RGB",
                "freq": 0.0,
                "height": 0,
                "width": 0
            },
            "videoMark": {
                "slotNum": 16,
                "sourceId": 2,
                "sourceIndex": 2,
                "sourceType": "SDI"
            }
        }, {
            "bConnected": false,
            "videoFormat": {
                "bHDR": false,
                "colorDepth": "8bit",
                "colorType": "RGB",
                "freq": 0.0,
                "height": 0,
                "width": 0
            },
            "videoMark": {
                "slotNum": 16,
                "sourceId": 3,
                "sourceIndex": 3,
                "sourceType": "SDI"
            }
        }, {
            "bConnected": false,
            "videoFormat": {
                "bHDR": false,
                "colorDepth": "8bit",
                "colorType": "RGB",
                "freq": 0.0,
                "height": 0,
                "width": 0
            },
            "videoMark": {
                "slotNum": 18,
                "sourceId": 0,
                "sourceIndex": 0,
                "sourceType": "HDMI"
            }
        }, {
            "bConnected": false,
            "videoFormat": {
                "bHDR": false,
                "colorDepth": "8bit",
                "colorType": "RGB",
                "freq": 0.0,
                "height": 0,
                "width": 0
            },
            "videoMark": {
                "slotNum": 18,
                "sourceId": 1,
                "sourceIndex": 1,
                "sourceType": "HDMI"
            }
        }, {
            "bConnected": false,
            "videoFormat": {
                "bHDR": false,
                "colorDepth": "8bit",
                "colorType": "RGB",
                "freq": 0.0,
                "height": 0,
                "width": 0
            },
            "videoMark": {
                "slotNum": 18,
                "sourceId": 2,
                "sourceIndex": 2,
                "sourceType": "HDMI"
            }
        }, {
            "bConnected": false,
            "videoFormat": {
                "bHDR": false,
                "colorDepth": "8bit",
                "colorType": "RGB",
                "freq": 0.0,
                "height": 0,
                "width": 0
            },
            "videoMark": {
                "slotNum": 18,
                "sourceId": 3,
                "sourceIndex": 3,
                "sourceType": "HDMI"
            }
        }, {
            "bConnected": false,
            "videoFormat": {
                "bHDR": false,
                "colorDepth": "8bit",
                "colorType": "YCbCr422",
                "freq": 0.0,
                "height": 0,
                "width": 0
            },
            "videoMark": {
                "slotNum": 21,
                "sourceId": 0,
                "sourceIndex": 0,
                "sourceType": "SDI"
            }
        }, {
            "bConnected": false,
            "videoFormat": {
                "bHDR": false,
                "colorDepth": "8bit",
                "colorType": "RGB",
                "freq": 0.0,
                "height": 0,
                "width": 0
            },
            "videoMark": {
                "slotNum": 24,
                "sourceId": 0,
                "sourceIndex": 0,
                "sourceType": ""
            }
        }, {
            "bConnected": false,
            "videoFormat": {
                "bHDR": false,
                "colorDepth": "8bit",
                "colorType": "RGB",
                "freq": 0.0,
                "height": 0,
                "width": 0
            },
            "videoMark": {
                "slotNum": 24,
                "sourceId": 1,
                "sourceIndex": 1,
                "sourceType": ""
            }
        }, {
            "bConnected": false,
            "videoFormat": {
                "bHDR": false,
                "colorDepth": "8bit",
                "colorType": "RGB",
                "freq": 0.0,
                "height": 0,
                "width": 0
            },
            "videoMark": {
                "slotNum": 24,
                "sourceId": 2,
                "sourceIndex": 0,
                "sourceType": ""
            }
        }, {
            "bConnected": false,
            "videoFormat": {
                "bHDR": false,
                "colorDepth": "8bit",
                "colorType": "RGB",
                "freq": 0.0,
                "height": 0,
                "width": 0
            },
            "videoMark": {
                "slotNum": 24,
                "sourceId": 3,
                "sourceIndex": 1,
                "sourceType": ""
            }
        }, {
            "bConnected": false,
            "videoFormat": {
                "bHDR": false,
                "colorDepth": "8bit",
                "colorType": "RGB",
                "freq": 0.0,
                "height": 0,
                "width": 0
            },
            "videoMark": {
                "slotNum": 26,
                "sourceId": 0,
                "sourceIndex": 0,
                "sourceType": "SDI"
            }
        }, {
            "bConnected": false,
            "videoFormat": {
                "bHDR": false,
                "colorDepth": "8bit",
                "colorType": "RGB",
                "freq": 0.0,
                "height": 0,
                "width": 0
            },
            "videoMark": {
                "slotNum": 26,
                "sourceId": 1,
                "sourceIndex": 1,
                "sourceType": "SDI"
            }
        }, {
            "bConnected": false,
            "videoFormat": {
                "bHDR": false,
                "colorDepth": "8bit",
                "colorType": "RGB",
                "freq": 0.0,
                "height": 0,
                "width": 0
            },
            "videoMark": {
                "slotNum": 26,
                "sourceId": 2,
                "sourceIndex": 2,
                "sourceType": "SDI"
            }
        }, {
            "bConnected": false,
            "videoFormat": {
                "bHDR": false,
                "colorDepth": "8bit",
                "colorType": "RGB",
                "freq": 0.0,
                "height": 0,
                "width": 0
            },
            "videoMark": {
                "slotNum": 26,
                "sourceId": 3,
                "sourceIndex": 3,
                "sourceType": "SDI"
            }
        }, {
            "bConnected": false,
            "videoFormat": {
                "bHDR": false,
                "colorDepth": "8bit",
                "colorType": "RGB",
                "freq": 0.0,
                "height": 0,
                "width": 0
            },
            "videoMark": {
                "slotNum": 27,
                "sourceId": 0,
                "sourceIndex": 0,
                "sourceType": "DP"
            }
        }, {
            "bConnected": false,
            "videoFormat": {
                "bHDR": false,
                "colorDepth": "8bit",
                "colorType": "RGB",
                "freq": 0.0,
                "height": 0,
                "width": 0
            },
            "videoMark": {
                "slotNum": 29,
                "sourceId": 0,
                "sourceIndex": 0,
                "sourceType": "DP"
            }
        }, {
            "bConnected": false,
            "videoFormat": {
                "bHDR": false,
                "colorDepth": "8bit",
                "colorType": "YCbCr422",
                "freq": 0.0,
                "height": 0,
                "width": 0
            },
            "videoMark": {
                "slotNum": 30,
                "sourceId": 0,
                "sourceIndex": 0,
                "sourceType": "SDI"
            }
        }]
    },
    "message": "Common_Success"
}

# 详细说明