set-video-config
Use the interface to modify the video settings.
HTTP Request
GET http://ip/mwapi?method=set-video-config¶m1=value1¶m2=value2...
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. |
Example
http://ip/mwapi?method=set-video-config&in-auto-color-fmt=false&in-color-fmt=rgb
Parameter |
Description |
method |
set-video-config |
in-auto-color-fmt |
Indicates whether to obtain the color space of input signal automatically. If yes, it shows true; otherwise, it is false. |
in-color-fmt |
Indicates the color space of input signal, including rgb, bt.601, bt.709. bt.2020. |
http://ip/mwapi?method=set-video-config&in-auto-quant-range=false&in-quant-range=limited
Parameter |
Description |
method |
set-video-config |
in-auto-quant-range |
Indicates whether to obtain the quantization range of input signal automatically. If yes, it shows true; otherwise, it is false. |
in-quant-range |
Indicates the quantization range of input signal, including full, limited. |
3. Set color
http://ip/mwapi?method=set-video-config&brightness=0&contrast=0&hue=0&saturation=0
Parameter |
Description |
method |
set-video-config |
brightness |
Indicates the brightness of input signal. The value ranges from -100 to +100. |
contrast |
Indicates the contrast of input signal. The value ranges from 50 to 200. |
hue |
Indicates the hue of input signal. The value ranges from -90 to 90. |
saturation |
Indicates the saturation range of input signal. The value ranges from 0 to 200. |
4. Set deinterlace
http://ip/mwapi?method=set-video-config&deinterlace=wave
Parameter |
Description |
method |
set-video-config |
deinterlace |
Indicates deinterlace options of the input signal, including none, top-field, bottom-field. |
4. Set special effect
http://ip/mwapi?method=set-video-config&out-mirror=false
Parameter |
Description |
method |
set-video-config |
out-mirror |
Indicates whether to horizontally flip the output signal.If yes, it shows true; otherwise, it is false. |
5. Set output resolution
http://ip/mwapi?method=set-video-config&out-raw-resolution=false&out-cx=1280&out-cy=720
Parameter |
Description |
method |
set-video-config |
out-cx |
Indicates the width of output resolution, the value is integer and multiple of 4. |
out-cy |
Indicates the height of output resolution, the value is integer and multiple of 2. |
out-raw-resolution |
Indicates whether the resolution of output follows that of input. If yes, it shows true; otherwise, it is false. |
5. Set output frame
http://ip/mwapi?method=set-video-config&out-fr-convertion=frame-rate-raw
Parameter |
Description |
method |
set-video-config |
out-fr-convertion |
Indicates the output frame rate, including raw,half, one-third, quarter. |
6. Set output aspect ratio
http://ip/mwapi?method=set-video-config&out-auto-aspect=false&out-aspect-x=16&out-aspect-y=9
Parameter |
Description |
method |
set-video-config |
out-auto-aspect |
Indicates whether to obtain the aspect ratio of output signal automatically. If yes, it shows true; otherwise, it is false. |
out-aspect-x |
Indicates the width of the output aspect ratio. |
out-aspect-y |
Indicates the height of the output aspect ratio. |
7. Set bitrate ratio
http://ip/mwapi?method=set-video-config&bit-rate-ratio=150
Parameter |
Description |
method |
set-video-config |
bit-rate-ratio |
Indicates the bitrate ratio. The value ranges from 50 to 200, and the default value is 100. |
8. Set Others
http://ip/mwapi?method=set-video-config&out-auto-color-fmt=false&out-color-fmt=rgb&out-auto-sat-range=false&out-sat-range=limited&out-auto-quant-range=false&out-quant-range=limited&low-res-full-fr=true
Parameter |
Description |
method |
set-video-config |
out-auto-color-fmt |
Indicates whether to obtain the color space of output signal automatically. If yes, it shows true; otherwise, it is false. |
out-color-fmt |
Indicates the color space of output signal, including bt.601, bt.709, bt.2020. |
out-auto-sat-range |
Indicates whether to obtain the saturation range of output signal automatically. If yes, it shows true; otherwise, it is false. |
out-sat-range |
Indicates the saturation range of output signal, including full, limited, extended. |
out-auto-quant-range |
Indicates whether to obtain the quantizations range of output signal automatically. If yes, it shows true; otherwise, it is false. |
out-quant-range |
Indicates the quantizations range of output signal, including full, limited. |
low-res-full-fr |
Indicates the Full frame rate for low bandwidth. If yes, it shows true; otherwise, it is false. |