set-video-config

Use the interface to modify the configuration information of the HDMI video source.

Request Mode

POST http://ip/mwapi/set-video-config
Parameter Description
source-id The source ID
0: HDMI 1
1: HDMI 2

Response Body

{
  "status": 0
}
Name Description
status 0 indicates that the request was accepted successfully. Refer to API Status Codes to find specific description for other values.
source-id The input source ID
0: HDMI 1
1: HDMI 2

Interface Example

1. Set the color space of input signal
{
    "in-auto-color-fmt":false,
    "in-color-fmt":0
}
Parameter Description
in-auto-color-fmt Whether to obtain the color space of input signal automatically.
When modifying the configuration, the value should be false.
in-color-fmt The color space value of input signal, including rgb, bt.601, bt.709 and bt.2020
2. Set the quantization range of input signal
{
    "in-auto-quant-range":false,
    "in-quant-range":"full"
}
Parameter Description
in-auto-quant-range Whether to obtain the quantization range of input signal automatically
When modifying the configuration, the value should be false.
in-quant-range The quantization range of input signal, including full and limited
3. Set the color
{
    "brightness":0,
    "contrast":100,
    "hue":0,
    "saturation":12
}
Parameter Description
brightness The brightness (integer, -100 - +100)
contrast The contrast (integer, 50 - 200)
hue The hue (integer, -90 - 90)
saturation The saturation (integer, 0 - 200)
4. Set deinterlacing
{
    "deinterlace":"none"
}
Parameter Description
deinterlace The deinterlacing option, including none, top-field and bottom-field
4. Set special effects
http://ip/mwapi?method=set-video-config&out-mirror=false
Parameter Description
out-mirror Whether to mirror the output scene
If yes, it shows true; otherwise, it is false.

results matching ""

    No results matching ""