获取源信号信息

1.接口描述

获取源信号信息。

请求方式:GET [ip]/api/signal/info

管理员权限 登录认证

2.输入参数

3.输出参数

参数 类型 描述
status Int 状态码
mode Int 视图模式
streams Array 数组类型的流格式
流格式
参数 类型 描述
name String 源名称
state Int 连接状态
video Struct 视频格式
audio Struct 音频格式
视频格式
参数 类型 描述
codec String 编码类型
width Int 视频宽度,像素数
height Int 视频高度,像素数
scan-mode String 扫描方式,有progressive和interlaced
color-depth Int 色深
field-rate String 场率,如24,25,29.97,30,48,50,59.94,60等
quant-range String 量化范围,有效值:limited,full
frame-struct String 帧结构,有效值:2d,3d-left-right,3d-top-bottom,3d-left-right-half,3d-top-bottom-half
aspect-ratio String 显示宽高比,包括 16:9,4:3 等
color-format String 色彩空间,如:rgb,bt.601,bt.709,bt.2020
sampling String 采样方式,包括 4:2:0,4:2:2,4:4:4,4:4:4:4
音频格式
参数 类型 描述
codec String 编码类型
bit-count Int 位深,如16,20,24 等
num-channels Int 通道数
sample-rate Int 采样率,如32000,44100 等

响应示例

{
    "mode": 2,
    "status": 0,
    "streams": [
        {
            "audio": {
                "bit-count": 0,
                "codec": "AAC",
                "num-channels": 8,
                "sample-rate": 48000
            },
            "name": "ULTRA ENCODE AIO (B313230314057-fly)",
            "state": 2,
            "video": {
                "aspect-ratio": "16:9",
                "codec": "H264",
                "color-depth": 8,
                "color-format": "bt.709",
                "field-rate": "60.00",
                "frame-struct": "2d",
                "height": 1080,
                "quant-range": "full",
                "sampling": "420",
                "scan-mode": "progressive",
                "width": 1920
            }
        },
        {
            "audio": {
                "bit-count": 0,
                "codec": "AAC",
                "num-channels": 8,
                "sample-rate": 48000
            },
            "name": "HTTP ultraencoder",
            "state": 2,
            "video": {
                "aspect-ratio": "16:9",
                "codec": "H264",
                "color-depth": 8,
                "color-format": "bt.709",
                "field-rate": "59.94",
                "frame-struct": "2d",
                "height": 1080,
                "quant-range": "limited",
                "sampling": "420",
                "scan-mode": "progressive",
                "width": 1920
            }
        }
    ],
    "version": 0
}

与“”相关结果约

    找不到与“”相关的结果

    与“”相关结果约

      找不到与“”相关的结果