set-video-input-format

Added in V1.4

Use the interface to set color space and quantization for input video.

Obtain value range for recording by calling get-info.

"video-format": {
    "input-color-fmt": [],       // range of color space
    "quant-range": [],           // 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 set custom 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 set custom 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.

results matching ""

    No results matching ""

    results matching ""

      No results matching ""