获取 USB Out 信息

1.接口描述

接口说明:获取 USB Out接口信息。

请求方式:

  • 固件版本 V2.6.0 及以上:POST [ip]/mwapi/V2.0/output/get-usb-output-config
  • 固件版本 V2.5.0 及以下:POST [ip]/mwapi/get-usb-output-config
管理员权限 登录认证

2.输入参数

3.输出参数

参数名称 类型 描述
status Int 状态码
uvc-formats Array of UVCData UVC格式列表。
uac-formats Array of UACData UAC格式列表。
UvcData
参数名称 类型 描述
fourcc String 视频规格,支持 NV12、YUYV、ARGB
resolutions ResolutionData 分辨率参数信息
ResolutionData
参数名称 类型 描述
width Int 视频宽度,像素数
height Int 视频高度,像素数
fps Int 帧率(fps X 100)
UACData
参数名称 类型 描述
sample-rate Int 音频采样率(Hz)
channels Int 音频通道数
bits-count Int 音频比特率(bit)

4.示例

获取 USB Out 信息。

输入示例
None
输出示例
{
    "status": 0,
    "uvc-formats": [
        {
            "fourcc": "NV12",
            "resolutions": [
                {
                    "width": 1920,
                    "height": 1080,
                    "fps": 6000
                },
                {
                    "width": 1920,
                    "height": 1080,
                    "fps": 3000
                },
                {
                    "width": 1920,
                    "height": 1080,
                    "fps": 1500
                },
                {
                    "width": 1280,
                    "height": 720,
                    "fps": 6000
                },
                {
                    "width": 1280,
                    "height": 720,
                    "fps": 3000
                },
                {
                    "width": 1280,
                    "height": 720,
                    "fps": 1500
                },
                {
                    "width": 640,
                    "height": 480,
                    "fps": 6000
                },
                {
                    "width": 640,
                    "height": 480,
                    "fps": 3000
                },
                {
                    "width": 640,
                    "height": 480,
                    "fps": 1500
                }
            ]
        },
        {
            "fourcc": "YUYV",
            "resolutions": [
                {
                    "width": 1920,
                    "height": 1080,
                    "fps": 6000
                },
                {
                    "width": 1920,
                    "height": 1080,
                    "fps": 3000
                },
                {
                    "width": 1920,
                    "height": 1080,
                    "fps": 1500
                },
                {
                    "width": 1280,
                    "height": 720,
                    "fps": 6000
                },
                {
                    "width": 1280,
                    "height": 720,
                    "fps": 3000
                },
                {
                    "width": 1280,
                    "height": 720,
                    "fps": 1500
                },
                {
                    "width": 640,
                    "height": 480,
                    "fps": 6000
                },
                {
                    "width": 640,
                    "height": 480,
                    "fps": 3000
                },
                {
                    "width": 640,
                    "height": 480,
                    "fps": 1500
                }
            ]
        },
        {
            "fourcc": "ARGB",
            "resolutions": [
                {
                    "width": 1920,
                    "height": 1080,
                    "fps": 3000
                },
                {
                    "width": 1920,
                    "height": 1080,
                    "fps": 1500
                },
                {
                    "width": 1280,
                    "height": 720,
                    "fps": 6000
                },
                {
                    "width": 1280,
                    "height": 720,
                    "fps": 3000
                },
                {
                    "width": 1280,
                    "height": 720,
                    "fps": 1500
                },
                {
                    "width": 640,
                    "height": 480,
                    "fps": 6000
                },
                {
                    "width": 640,
                    "height": 480,
                    "fps": 3000
                },
                {
                    "width": 640,
                    "height": 480,
                    "fps": 1500
                }
            ]
        }
    ],
    "uac-formats": [
        {
            "sample-rate": 48000,
            "channels": 2,
            "bits-count": 16
        }
    ]
}

5.错误码

以下仅列出了接口业务逻辑相关的错误码,其他错误码详见 公共错误码

错误码 定义 说明
49 MW_STATUS_INVALID_DATA 读取配置失败

与“”相关结果约

    找不到与“”相关的结果