Change configuration of HDMI video source

1. API Description

This API is used to change the configuration of HDMI video source.

Request mode:

  • V2.6.0 and above: POST [ip]/mwapi/V2.0/input/set-video-config
  • V2.5.0 and below: POST [ip]/mwapi/set-video-config
Administrator Rights Logged-in
No Yes

2. Input Parameters

Name Required Type Description
source-id Yes Int Source ID
0: HDMI 1; 1: HDMI 2
in-auto-color-fmt Yes Boolean Whether to obtain the color space of input signal automatically
true: Yes; false: No
in-color-fmt Yes String The color space value of input signal, including rgb, bt.601, bt.709 and bt.2020
in-auto-quant-range Yes Boolean Whether to obtain the quantization range of input signal automatically
true: Yes; false: No
in-quant-range Yes String The quantization range of input signal, including full and limited
brightness Yes Int Brightness, ranging from -100 to +100
contrast Yes Int Contrast, ranging from 50 to 200
hue Yes Int Hue, ranging from -90 to 90
saturation Yes Int Saturation, ranging from 0 to 200
deinterlace Yes String Deinterlacing option, including none, bob, motion_adaptive and motion_compensated
out-mirror Yes Boolean Whether to enable the mirror effect
true: Yes; false: No

3. Output Parameters

Name Type Description
status Int Status code

4. Example

Changing the configuration of HDMI 1 video source.

Input Example
{
    "source-id": 0,
    "in-auto-color-fmt":false,
    "in-color-fmt":0,
    "in-auto-quant-range":false,
    "in-quant-range":"full",
    "brightness":0,
    "contrast":100,
    "hue":0,
    "saturation":12,
    "deinterlace":"none",
    "out-mirror":true
}
Output Example
{
  "status": 0
}

5. Error Code

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

Status Definition Description
7 MW_STATUS_INVALID_ARG Missing required parameters

results matching ""

    No results matching ""