set-video-input-format
Use this interface to set color space and quantization for input video.
Obtain value range of video format parameters by calling get-info.
"video-format": {
"input-color-fmt": [], // Value range of color space
"quant-range": [], // Value range of quantization
}
HTTP Request
GET http://ip/usapi?method=set-video-input-format&is-color-fmt=0&color-fmt=1&is-quant-range=0&quant-range=1
Parameter | Description |
---|---|
method | set-video-input-format |
is-color-fmt | Whether to customize color space. The default value is 0, which indicates to auto-set color space, while 1 indicates a custom setting. |
color-fmt | Indicates the color format parameter value. The value range is obtained by calling get-info. |
is-quant-range | Whether to customize quantization. The default value is 0, which indicates to auto-set quantization, while 1 indicates a custom setting. |
quant-range | Indicates the quantization parameter value. The value range is obtained by calling get-info. |
Response Body
{
"result": 0
}
Item | Description |
---|---|
result | 0 indicates that the request was accepted successfully. Refer to API Status Codes to find specific description for other values. |